I need to be able to run cool down gcode commands before shutdown is initiated.
gcode:
M140 20 Bed cool down
M109 R50 Wait until hotend cools down to 50
run these before
Specifically, hitting shutdown from Octoprint, wait to cool before shutdown.
What did you already try to solve it?
Tried a couple of different event manager settings to no avail.
Have you tried running in safe mode?
N/A
Did running in safe mode solve the problem?
N/A
Systeminfo Bundle
N/A
Additional information about your setup
Highly modded Anet A6, with pc ps - RPi control, SONOFF S31 Lite Smart Plug wired to gpio, modified Marlin firmware, 2 cams, Text and email notification, custom fans and lighting, solid state x,y,z stop and runout switch.
Plugins:
cmd exec
Gcode system commands
GPIO control
Marlin Slider plugin
Multicam
I would think that shutdown event in event manager would work, but I suppose that the serial connection is killed prior to the commands being sent. Which makes me think the GCODE Scripts for "Before serial connection to printer is closed" would have worked, but that might only be triggered if you click disconnect from the UI.