What is the problem?
I’m trying to perform a M118 A1 action:poweroff from gcode file on SD card and then
G4 S60
M81
What did you already try to solve it?
It seems to work when executing the gcode file from octoprints memory. But then the octoprint shutdown before M81 could be sent to the printer.
Have you tried running in safe mode?
No
Did running in safe mode solve the problem?
Didn’t try
Additional information about your setup
OctoPrint version, OctoPi version, printer,
Creality CR10 smart with a RPi 2 Zero powered by the printer. Moved around connectors on the 5v power board so I reconfigured the camera port to a powered USB A serial port.
Powers up the RPi 2 Zero and connects to the serial without any issue.
I’m trying to create an correct power off sequence to not corrupt the RPi SD card. A M81 kills the power and also the Pi.
My thought is to run a gcode file standalone on the SD. It first shutdown the Pi, dwells for 30 sec and then poweroff.
M118 A1 action:poweroff in a gcode file on the pi triggers action command plugin and the pi shuts off.
But doesn’t work with the gcode file on SD