Recovery from power failure

As I understand it, OctoPrint cannot be used to recover from a power failure. (Am I wrong?)

My (non-trolling) question is: Why?

(Due to electrical storms, I've lost power 4 times in 3 days, twice during a print. grrrr)

Correct, OctoPrint can't recover from power failure.

The main reason for this is that it doesn't have an idea exactly where the print head is. You can see this if you look at the gcode viewer, it is never in sync with whatever movement is happening on the printer.

This is due to buffering on the printer's side, so it stores up some commands that OctoPrint has sent it before it prints them. As a result, when power is lost OctoPrint doesn't really know where the print head is, and where to start the gcode file from.

The way that this could be achieved would be through a power panic function, with a battery/UPS System that could safely abort the print & save what point it got to. Would be a cool plugin.

1 Like