knicholson32 / stratux_ahrs

AHRS Display for the Raspberry pi powered Stratux software
MIT License
18 stars 8 forks source link

Shutdown Stratux From Menu #31

Open npnicholson opened 4 years ago

npnicholson commented 4 years ago

Issue It is often cumbersome to have to open up the Stratux config page at the end of each flight to shut down the Raspberry Pi safely.

Ideal Solution The Stratux AHRS application already provides an easily accessible menu. It would be fairly trivial to add an option to shutdown Stratux there, and it could use the same XHR post that the Stratux config page uses.

There are other solutions, such as additional hardware, locked file systems, etc, however the easy of use and low cost of this solution makes it appealing.

DocTopi commented 4 years ago

Perhaps this is the ideal solution - are there any reasons against the "heavy method" (switching off the power supply)?

c3o8k1g commented 3 years ago

Please, check the wiki page I wrote on a possible solution. Shutdown link to home screen button

A more elegant way on iOS involves the creation of a custom profile with Apple Configurator loaded with the links and personalized icons. This profile is then transferred to the device where the icons (shortcuts) act as push buttons.


For convenience, find below the aforementioned wiki.


A more direct shutdown method, without the need to access the web interface.

Place the links you need in the home screen of your device (both Android and iOS). The links appear like any other app.

To add the links:

When you need to shutdown, simply press on the home screen button and the Stratux will shutdown.

A blank page will open in a browser - this is normal. After a few seconds, the device performs the required function.

Shutdown: http://192.168.10.1/shutdown

Reboot: http://192.168.10.1/reboot

The icons on the home screen act as push buttons triggering the above mentioned commands.


iOS only:

A more elegant way on iOS involves the creation of a custom profile with Apple Configurator loaded with the links and personalized icons.

The profile is then transferred to the device where the icons are then displayed.

shutdown 2

shutdown 1

Yellow = Reboot / Red = Shutdown


Working on Stratux - European edition

Update accordingly if working on Stratux as well.