Shutdown Pi from SmartPhone
-
It would be nice to have an App to shutdown the Pi with just the push of a button on your smartphone.
An app that logs into Raspberry via ssh and sends shutdown command would probably enough.
Found some ssh clients for android but no source code so you're not really sure what happens with your user and pwd. On the other a side I can't see a reason why somebody would hack you raspberry.
Opinions/suggestions? -
I used ConnectBot some times ago. It's open source.
https://github.com/connectbot/connectbotYou can use public key and execute a command after connection, so a
sudo shutdown -h now
should do the trick, with a nice shortcut to the server.
One button shutdown -
@UDb23 I use raspberry ssh. Convenient cause I can create buttons with basic shutdown and reboot commands. Also works great for a remote picture button with the camera module I have
-
@herb_fargus @Sano
Thanks for the suggestions, will try them out asap.
Is it safe to execute a shutdown thru ssh while ES is running or should I exit ES first? -
Shutdown does a clean shutdown (SIGTERM then SIGKILL if necessary), it's safe.
-
-
@Sano thanks!
-
@backstander I paid for the full version because I thought it was a worthwhile investment to support the dev.
-
I have the free Android app Raspi Check installed on my phone in case I need to reboot my Pi. It is a system monitoring app but does include the shutdown options to Halt as well as Reboot.
Checking the source code, it appears the Halt option runs the command
sudo -S /sbin/shutdown -h now
. -
I've just been using Mobile SSH but I think I'll give the ones that @herb_fargus and @dudleydes mentioned above a try!
-
@backstander ConnectBot is also worth checking out.
-
-
@backstander It works great for me. Another tip is to set up bash aliases. This means when I type
reboot
the system gets the commandsudo reboot -h now
I have done this for quite a few commands as it makes it easier typing on a phone or tablet to keep it as short as possible. Here's some reading. https://www.raspberrypi.org/documentation/linux/usage/bashrc.md -
Hey, something unrelated, but kinda on topic.
Is there a way to use a phone as a controller for the Pi somehow?
-
@itsnitro There are Apps for Kodi that you can use your phone with. RetroPie doesn't deal with html control or CEC, afaik.
-
Aww. :(
I would like to see a way to do this using Bluetooth or something. -
-
@itsnitro Try it. I heard it was buggy as hell and a pain to remove...
Let me know how you get on.
-
What happened to AlexMurphy?
-
@itsnitro used "aggressive language" with another user.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.