Commit Graph

9 Commits

Author SHA1 Message Date
ntoff
c8ae6e7dde delete onEventDisconnected unregister it
delete it, remove it, make it gone. I dunno what's right anymore
2018-03-10 04:35:55 +10:00
ntoff
beff41780b fix bizarre set of circumstances that could lead to malfunction of reconnect
If the setting to reconnect is unticked, and a user hits the e-stop button, and then ticks the box to reconnect, and then manually disconnects, the printer would automatically reconnect. This fixes that.

Also  added an "unknown status" to the button, since the status should always be known, if it's not then it's not, you know? Yeah, me either.
2018-03-10 02:41:37 +10:00
ntoff
3666aa5e8d different handling of offline event detect
setting to null was giving javascript console errors. Changed it to just not do anything if the emergency button wasn't pressed.
2018-03-10 02:25:51 +10:00
ntoff
15889e0dc7 unregister event disconnect
https://github.com/ntoff/OctoPrint-Estop/issues/4#issuecomment-371146397
2018-03-08 10:45:58 +10:00
ntoff
62a6dac6e9 add connection cycle option
adds the option to disconnect / reconnect after sending M112.
May help break out of blocking commands by resetting some control boards
2018-03-01 12:04:10 +10:00
ntoff
4f37707acb Update icon + add command setting
Update icon to new FA icon to be compatible with octoprint 1.3.5's move to an update font awesome

Add a setting to allow changing of the command in situations where the user may wish to issue some other command other than M112
2017-11-10 00:22:35 +10:00
ntoff
ab3d1b66d5 dynamic class, invisible to anon users
dynamic class based on state, completely invisible to non logged in
users
2017-03-24 16:18:30 +10:00
ntoff
f12c3903c0 function to check if user and printer is operational
clean up the jinja a bit too
2017-03-23 08:54:26 +10:00
ntoff
1fb15a0ea0 estop plugin 2017-03-23 07:17:16 +10:00