Server API - continueJob action
I've got a python script that is monitoring the UPS that the server and printers are plugged into. If the power fails, I send @pause to all printers that are currently printing. That works well. Where I am running into issues is that when sending the continueJob command. My pause handling is set up on each printer on the sever to pause and disable heated bed and extruders after x (90) seconds. When the continueJob command fires after the bed and extruders have been disabled, it seems like it is essentially doing the same as hitting "preheat" on the server. This means I must sent the continueJob command (?) again to actually restart the print?
Is there any way to trigger the preheat followed by the job continuation in an automated fashion within Server?
Thanks!
Is there any way to trigger the preheat followed by the job continuation in an automated fashion within Server?
Thanks!
Comments
Not so sure what mean with automated fashion as you already seem to use the api to automate.
Will sending two back-to-back continueJob commands (with no time to allow for preheating) do this, or will it essentially cause it to ignore the preheat? I will experiment on hardware here shortly but was curious if there was a known answer.
Thanks!
Thanks!
0 = unpaused, 1 = paused, waiting cooldown, 2 = cooleddown (if enabled), 3 = heating, 4 = heated, waiting for continue, continue.
So only on state 1 and 4 it will really continue. On 2 it will start heating and hold 3 during heating.