Use your smartphone as a remote controller for your RaspberryPi, to shutdown and reboot your device.
The RaspberryPi has no button to shut down or reboot the system. I use my Raspberry to as media center to watch television, and it's always on and connected to my television, also if I turn off the TV.
I didn't want to just cut the power to shutdown my Raspberry, and I developed this little remote control with python and flask to properly shutdown the system, in order to save power and extend the Raspberry's life.
- Clone the repo into your Raspberry Pi
- Install Flask if not already installed with
pip install flask - Launch the server with
python server.py
When the Flask server is running, you can reach the frontend writing the IP address of your Raspberry Pi on the browser.
This is what you will see (from a smartphone):

Just press the button to shutdown or reboot your Raspberry!
I suggest to save the page on the home screen of your smartphone.
This is a really basic version and there is still a lot to do:
- Redirect when a button is pressed
- Add more controles