raspberry pi 4 set System Options -> Boot by PinOut - raspberry-pi

I have a raspberry pi 4 configured to do a console autologin and when it starts then I start an app.
Sometimes I need to do a desktop login to configure things like wifi, etc.
Is there any way, with PinOut or another way, to put a button that when the raspberry starts if said button is pressed then it turns on with desktop login and if not with console autologin?

Related

Turn off raspberry Pi with Kodi remotely

Let me explain my problem: I have a raspberry Pi with Kodi installed and I use it with a IPTV service. This service only allow me to use it in one device at a time and sometimes I want to use it on my phone.
I'd like to be able to turn off my raspberry remotely so I can watch it in my phone whenever I want. I tried to create a web server that would allow me to run a script that would turn off the device but I can't access it because the raspberry IP takes me to some kodi stuff.
So to sum up, I'd like to go to my raspberry IP with Kodi installed, press a button and turn off the device. The web stuff I can take care of.
Any thoughts?
The only safe way to do this is to have a VPN tunnel that lets you access your internal network. This is much safer than opening up a port to Kodi on your router. It would just attract every bot and hacker out there.
Once you have a working VPN tunnel between your home network and your smartphone, just use a Remote Control App to shut Kodi down cleanly.
You can use a Kodi remote app for your mobile device. E.g. Kore (official remote app for Android) does have a shutdown button.
I think the best and easy way is to install dataplicity in your Raspberry Pi and access via dataplicity web or the app (Android or iOS) to the Terminal and use the command: sudo shutdown -h now or sudo poweroff

make raspberry appear as SSID

I have a nodejs server in my raspberry and I want people to be able to connecto to it just connecting to the raspi.
The ideal scenario is where in my phone I see the raspi SSID, I connect to it. Then I open chrome enter the ip:port of the raspi itself and it works. Nothing fancier.
What I don't know how to search for in the internet is how to set my pi in a way that it opens itself to the world and appears in the SSID list in my phone. I don't need internet sharing nor anything. Just accessing the nodejs server in the pi.
This can be easily achieved depending on the OS you are using in your pi. Use basically need to use hostapd and a DHCP Server.
You can use a script like create_ap.

windows 10 iot raspberry pi 3 wifi hotspot

I am trying to make my RPi 3 an AP using Windows 10 IoT core. RPi is connected with internet through Ethernet port and I want to make RPi 3 builtin WiFi to share internet with other devices. I have read documentation page but it is not working for me. I have tried with Windows IoT Onboarding and from PowerShell also. After selecting adapters from IoR Onboarding, clicked on start sharing service and a message appears which says "internet conncetion sharing has started" but I can't find network on other devices.
After selecting adapters from IoR Onboarding, clicked on start sharing
service and a message appears which says "internet conncetion sharing
has started" but I can't find network on other devices.
You could open Windows Device Portal and set your raspberry pi3 as the following instruction. Before doing this you would connect your raspberry pi3 with WLAN.
Select IoT Onboarding option on the left of the page. Then an Adapter configuration must be chosen. You could choose Access point adapter Microsoft Wi-Fi Direct Virtual Adapter #2 and choose Shared network adapter LAN9512/LAN9514 USB 2.0 to Ethernet 10/100 Adapter.
Then clicked on start sharing service. You could see the message appears which says "internet conncetion sharing has started".
At last make sure select enable in radio box and click on save button under the SoftAP settings. There is a message says reboot your raspberry pi3 for changes to take effect the SoftAP settings. Please click yes and your raspberry pi3 will be restarted.
After your raspberry pi3 is started you could connect your devices like PC or mobile phone on the SoftAP which is on raspberry pi3.

How can I emulate GPIO button presses over SSH connection?

I am working with the raspberry pi, and I have an application on the other end that is supposed to respond to button presses. The problem that I have is that I am not in the room of the Pi that is running and therefore I have no way to push the button. Is there a way that I can somehow emulate a button press via a ssh terminal that way my python program will pick up on it.
Why don't you run a Web server on your PI . Call (http) a script (php) from remote machine. And the script will do the work locally.

Win 10 IoT: WindowsIoTCoreWatcher.exe does not show my Raspberry PI device

I have a Raspberry PI with Win 10 IoT installed.
The device is connected through Ethernet, I can ping it
I've connected through Powershell, changed admin password. Followed instructions here: http://ms-iot.github.io/content/en-US/win10/samples/PowerShell.htm
I can connect to the device's web based interface http://ip:8080
However, WindowsIoTCoreWatcher.exe does not show or list my device. I tried Refresh button, run as admin. Still no result.
How can I fix the issue?
Thank you,
WindowsIoTCoreWatcher listens for UDP broadcasts that are sent every five seconds by a process running on the device: C:\Windows\System32\ebootpinger.exe. It appears that this process occasionally dies or stops broadcasting, particularly if the device has not been rebooted in several days. It can be restarted with the PowerShell command (e.g. in a remote interactive session):
Start-Process ebootpinger.exe