How to shut down the printer on print finish

So I have one of these fancy smart plugs. I intercepted its traffic and now I know what rest commands i need to send to shut it down and turn it on.

What I wanted to do is create a small python script that would poll the message directory and scan for "print finished" messages so it knows when it should shut down, after a timer.

I guess all I really need to know is where can I find these messages on repetier server on the raspberry pi?

Comments

  • Posts: 0
    Not so complicated!

    See manual how to add extcommands.xml file for external commands allowed. With that you can have a server command
    @execute shutdown
    whcih calls your script. Then go printer settings->g-codes->event dependent and add that gcode in the run after job event as last command.
  • This is brilliant, thank you.
Sign In or Register to comment.