Timelapse: execute GCode after rendering

Hello there.

My RPI4B is powered by the printer. If I send a poweroff gcode for my smartplug to turn off the printer before the render is complete, it will be loss because the rpi will also be turned off.
I was wondering if it was possible to add a box to make octoprint execute custom GCODE only after the rendering of the timelapse (M81 ip_address for example).

There's a bunch of timelapse events you could respond to:

https://docs.octoprint.org/en/master/events/index.html#timelapses

1 Like