-
-
Notifications
You must be signed in to change notification settings - Fork 7
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] Multi function button #32
Comments
Hi, In #23 GPIO3 was added. I was told that you can use that GPIO to also wake up the raspberry pi, but did not test that myself. So theoretically, you could setup a button which is connected to GPIO3 and use a system command to shut down the pi and use the same button to turn it on again. Regarding your feature request. I think it could be doable, but a single button with no feedback whatsoever makes this very hard as you would have to set up intervals which you have to hit exactly, if not the wrong activity could be executed 😅 . So generally it could be done, but I don't think this is very user friendly and that would defeat the purpose of easy to use buttons. If you're scared to be running out of Ground pins, you should be able to use multiple buttons on one Ground pin without a problem :) Cheers, |
Hello, Thanks for creating this plugin, it came very handy to turn on and off the printer with the PSU Control plugin via a command to the API. Best Regards |
I'll think about how I could add it without breaking the current setup. |
I would like to third this, for the same reason as @mtabo - press to trigger an on action and hold for a few seconds to trigger an off action. |
you guys could use the toggle command instead. Using a system action with the following command.
|
Yeah, that is what I do currently, but does mean that the actual hold time is the same for both an on and an off action. |
I have an idea on how to implement this feature properly. |
Newcomer here. Love the plugin! would also love the ability to bind different activities depending on the hold duration. Thanks! |
Hello! Any news on this? It would be a very helpful implementation for special situations. |
First of all...great work, very convenient and easy to implement. Thank you.
I have a single (NO) button installed and set to shut down system when pressed and held for 2 sec. Is there any way to start up the Pi again with the same button? and secondly will it be possible to set the button to 500sm, 1000ms, and 2000ms to perform different tasks on hold time? for instance 500ms = Toggle pause, 1000ms = Cancel Print, and 2000ms = Shutdown system.
Cheers!!
The text was updated successfully, but these errors were encountered: