edekeijzer / OctoPrint-PSUControl-Shelly

GNU Affero General Public License v3.0
10 stars 6 forks source link

Octoprint stops print when losing connection with shelly plug #14

Closed svdstoep closed 1 year ago

svdstoep commented 1 year ago

Hi all,

I'm having an issue, i'm using Octoprint for my printfarm. All my printers are switched with Shelly S plugs and controlled by the PSUControl-Shelly plugin. This all works great, but there one issue. When Octoprint loses it connection with the Shelly S Plug the print stops. When the connection resumes the print continous but this stop is always visible in the print.

Is there a way to prevent Octoprint from stopping the print when losing the connection with the shelly s plug?

2022-10-24 15:52:13,168 - octoprint.plugins.psucontrol_shelly - ERROR - Unable to communicate with server. Check settings. -> At this point the print stops and waits 2022-10-24 15:52:13,215 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1) 2022-10-24 15:52:13,215 - octoprint.plugins.psucontrol - INFO - Switching PSU On 2022-10-24 15:52:34,425 - octoprint.util.comm - INFO - Communication timeout while printing, trying to trigger response from printer. 2022-10-24 15:52:34,441 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1) 2022-10-24 15:52:34,441 - octoprint.plugins.psucontrol - INFO - Switching PSU On

edekeijzer commented 1 year ago

Turn of the Auto-On function (or trigger it only on bed leveling and heating, not on printing codes), as it will block the transmission of the GCODE until a response (or timeout) was received from Shelly. I have put a warning against this in the readme now.