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

[Feature Request] Turn off system on Event #10

Open
aykonsvk opened this issue Jul 17, 2020 · 1 comment
Open

[Feature Request] Turn off system on Event #10

aykonsvk opened this issue Jul 17, 2020 · 1 comment

Comments

@aykonsvk
Copy link

It would be really nice feature to turn off the system on Event same like with the Interrupt for Relay.

Just call this block of code when specific Event (Btn is Pressed)

from subprocess import call
call("sudo poweroff", shell=True)
@ChuckNorrison
Copy link

This could be added to the interrupt page.

Anyway, if you setup the interrupt properly, there should be no need to shutdown the pi. My liquid sensor setup as interrupt works very good.

This topic helped me a lot with my setup:
https://hydrosys4.wixsite.com/hydrosys4forum/forum/hardware-discussion/simiple-float-water-level-sensor

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

No branches or pull requests

2 participants