Output Feature: Shutdown on Serial Connection Error or Disconnect #439

Merged
Dak0r merged 7 commits from feature/shutdown_on_error into master 2021-10-14 03:56:25 +01:00
Dak0r commented 2021-10-13 19:58:42 +01:00 (Migrated from github.com)

I added a toggle that allows to automatically turn off an output, when there was an error detected over the serial connection or a disconnect happened.
The detection is based on the ERROR, DISCONNECTED and PRINTER_STATE_CHANGED Events from the EventPlugin.
Error and disconnected always triggers the automatic turn off, PRINTER_STATE_CHANGED triggers it if the new state contains 'error'.

In the past my printer randomly disconnected during a print, which stopped all movement, but the heating elements were still running. So I use this feature to cut the power to my printer, if it for some reason disconnects during a print, as an additional security measure.

I added a toggle that allows to automatically turn off an output, when there was an error detected over the serial connection or a disconnect happened. The detection is based on the ERROR, DISCONNECTED and PRINTER_STATE_CHANGED Events from the EventPlugin. Error and disconnected always triggers the automatic turn off, PRINTER_STATE_CHANGED triggers it if the new state contains 'error'. In the past my printer randomly disconnected during a print, which stopped all movement, but the heating elements were still running. So I use this feature to cut the power to my printer, if it for some reason disconnects during a print, as an _additional_ security measure.
vitormhenrique commented 2021-10-14 03:56:36 +01:00 (Migrated from github.com)

Thanks for the PR!

Thanks for the PR!
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#439