Cancel Print Action GCODE?

When I cancel a print in the Octoprint interface, the printer just stops where it's at. Where can I add GCODE so that cancelling a print does the following:

  1. Retract the filament
  2. Send a position command, for example, X0 Y180 Z180 (move printhead up and out of the way, move printbed forward)

Octoprint 1.1.0, Octopi 0.17.0, running on Raspberry Pi 3 Model B Plus Rev 1.3

Hello @rcsez!

You can put it here:

You get to the Settings via the wrench icon on the top right.

1 Like

Perfect! Thank you.

1 Like

Great! Could you please: PSA: Please mark the solutions to your topics as such