Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown Stratux From Menu #31

Open
npnicholson opened this issue Jan 8, 2020 · 2 comments
Open

Shutdown Stratux From Menu #31

npnicholson opened this issue Jan 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@npnicholson
Copy link
Collaborator

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.

@npnicholson npnicholson added the enhancement New feature or request label Jan 8, 2020
@DocTopi
Copy link

DocTopi commented Jan 9, 2020

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

@c3o8k1g
Copy link

c3o8k1g commented Sep 28, 2020

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:

  • open the browsers menu
  • select "Add to Home Screen"
  • assign an appropriate name

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants