[Feature Request] GPIO Input for Alert/Notification/Pop-up #373

Open
opened 2020-11-25 00:15:19 +00:00 by charredchar · 0 comments
charredchar commented 2020-11-25 00:15:19 +00:00 (Migrated from github.com)

I recently wired in an emergency stop onto my printer so that power could be cut with a large, easy to press button that needs to be released in order for power to reach the printer again. I am using a relay triggered outlet which I originally only controlled with Enclosure Plugin so it can turn off my printer after a print. I attempted to only wire in the button for Enclosure to control an emergency stop but I did not like this so I instead wired it in-line. The button has a NC and NO contacts, I am using the NC for power but I would like to use the NO for a state input on Enclosure. I would like to use it to trigger some kind of alert on the screen stating that the emergency stop has been triggered and keep it on screen until the input is open again. Sadly, I see the only thing Enclosure can do with an input is Printer Control or Output Control.

I noticed Enclosure does not seem to constantly watch the state of a input, this was one of the issues I had attempting to use a real stop button as I had to use Toggle output and this could be overwritten by triggering the output again. For such an alert on the screen to stay on the entire time an input is present it would need to monitor that input and not just trigger once. Is that possible? I could see this also being beneficial for Filament Runout as it would keep the state of "Out of Filament" until the state changed back to normal again, no need to worry about timeouts and multiple runout triggers this way.

I recently wired in an emergency stop onto my printer so that power could be cut with a large, easy to press button that needs to be released in order for power to reach the printer again. I am using a relay triggered outlet which I originally only controlled with Enclosure Plugin so it can turn off my printer after a print. I attempted to only wire in the button for Enclosure to control an emergency stop but I did not like this so I instead wired it in-line. The button has a NC and NO contacts, I am using the NC for power but I would like to use the NO for a state input on Enclosure. I would like to use it to trigger some kind of alert on the screen stating that the emergency stop has been triggered and keep it on screen until the input is open again. Sadly, I see the only thing Enclosure can do with an input is Printer Control or Output Control. I noticed Enclosure does not seem to constantly watch the state of a input, this was one of the issues I had attempting to use a real stop button as I had to use Toggle output and this could be overwritten by triggering the output again. For such an alert on the screen to stay on the entire time an input is present it would need to monitor that input and not just trigger once. Is that possible? I could see this also being beneficial for Filament Runout as it would keep the state of "Out of Filament" until the state changed back to normal again, no need to worry about timeouts and multiple runout triggers this way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#373