Raspberry Shutdown after Print finished?



I like to shutdown the Octoprint Pi automatically on a safe way when the printer has finished printing.

But how do i do this, i need to implement a command that automatically stops Octoprint when the print is done, and i need a command to shut down the Raspberry after stopping Octoprint. Where and how can i do this?

Thanks & Best regards



Have a look at this plugin: