-
-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I enjoy this plugin and its intended function, but I would like to go one step further and design a watchdog system.
I would like this plugin to periodically (configurable) send a "keepalive" command (also configurable) to a Tasmota device. On said device, I will write a ruleset to shut off power if the "keepalive" command is not received for several intervals.
All I need is the ability to send a configurable web request at a configurable interval. The specific web request I will send is event KEEPALIVE=1 in the format of http://<ip>/cm?cmnd=Event%20KEEPALIVE=1 but allowing it to be user-configurable is also of merit.
Alternatively, having two keepalive options (one during print, the other while idle) would allow for different intervals/sensitivity IE Event KEEPALIVE=125 re-sent every 30 seconds would prevent shutdown for ~120 seconds while idle but allow three missed triggers before powering off, and Event KEEPALIVE=35 sent every 15 seconds would prevent shutdown for ~30 seconds but allow two missed triggers before failsafe. (The stated interval/keepalive durations here are hypothetical and not intended implementation.)
My target is to run the command a few times per minute, which will reset a countdown timer in a watchdog ruleset which I will write and store on the Tasmota device itself.
This will terminate power to the system if;
- OctoPi freezes
- RPi freezes
- RPi is shut down ([Question] Power off relay when shutting down Octoprint from web UI / Power button #180, indirectly)
- Errors persist ([FR] Have printer idle for X minutes before shutting down on certain errors - Avoid heat creep #163, if configured not to shut down on error and "skip keepalive during error condition" is added as secondary option)
- Over-temp persists (same secondary option requirement as former note)
- Internet/LAN connection is lost (not ideal/intended, but needs mentioning)
If you like, I could even share my ruleset with you, and the plugin could also transmit the watchdog ruleset to the Tasmota device on request, allowing any* user to enable a printer safety watchdog.