jneilliii / OctoPrint-PrintScheduler

MIT License
10 stars 2 forks source link

[Feature Request]: Delay between system commands and Gcode commands #31

Closed Essy1245 closed 2 years ago

Essy1245 commented 2 years ago

I'd say this is a sister request with issue #310 on TPLinkSmartPlug's repo. I'd recommend reading that request first. Running Ender 3 w/ Klipper @ RPI3B+ I tried scheduling a print with smart plugs but it didn't go well. I used system commands to turn on the smart plug, but this plugin starts spamming "GCODE Before Each Print" when Klipper and the connection to the printer are not ready. They generally all get ready within 15 seconds. I need the plugin to wait just 15 seconds after "System Command Before Each Print"

Need an option to add delay to "GCODE Before Each Print" after "System Command Before Each Print" is executed. (as well as delaying the start of the print after "GCODE Before Each Print" is executed)

So the automated process looks like this: At Scheduled time, execute "System Command Before Each Print" > 1st delay > execute "GCODE Before Each Print" > 2nd delay > Start Print

Or an option to execute various commands before the scheduled time like 5 min before the scheduled time: turn on the printer 3 min before scheduled time: home all axis, probe bed 1 min before scheduled time: turn on heaters At scheduled time: start print

Thanks.

jneilliii commented 2 years ago

adding delays makes sense, will look into adding this in a future release.