You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to program some automation using Continuous Print, and I'm finding it difficult to get a preprocessor script to function that accomplishes what I'm looking for.
I have my bed clearing script set to run on Print Success, but I want a preprocessor to wait until my bed has reached a certain temperature.
The default "If the bed temp...." script only checks the bed temp at runtime, and then since the bed is still too warm, my bed clearing script does not run.
I tried a loop, but this ends up hanging Octoprint requiring a hard restart:
while True:
if current['bed_temp'] < 32:
return True
I couldn't find documentation on how to add a sleep delay, so it's getting stuck in an infinite loop.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to program some automation using Continuous Print, and I'm finding it difficult to get a preprocessor script to function that accomplishes what I'm looking for.
I have my bed clearing script set to run on Print Success, but I want a preprocessor to wait until my bed has reached a certain temperature.
The default "If the bed temp...." script only checks the bed temp at runtime, and then since the bed is still too warm, my bed clearing script does not run.
I tried a loop, but this ends up hanging Octoprint requiring a hard restart:
while True:
if current['bed_temp'] < 32:
return True
I couldn't find documentation on how to add a sleep delay, so it's getting stuck in an infinite loop.
Beta Was this translation helpful? Give feedback.
All reactions