Shutting down printer after print

@doormat1
Hello . Hope you doing good.
Sorry I m replying late.
i have tested this code on octoklipper. When i done my first trial the printer and server both gets shutdown completely after finishing the print. but when i again tested it then it dosen’t work. i dont what happened in second trial & third trial.
This feature is getting complicated for me but i need it.
Is your printer get automatically shutdown after completing the print. ?

Hi. I have to admit it’s not perfect on my printer. The cb1 does shut down but doesn’t always trigger the smart plug to turn off.

@doormat1
Ohh okay. Well anyways . Thank you for your help.
Also in my machine it only works once when i freshly copy paste it. After that only the RPI shutdown or nothing shut down. I tested with 3-4 test prints.

Just out of curiosity, why did you chose this approach? What is the main goal, you want to achieve?

I was given the code and went with it.

@doormat1
Hii.

The code you have provided me is not working. My printer will not shutdown after print completed. Even the Raspberry pi will not shutdown.

Sorry, you got me wrong or my question had an unfortunate choice of words.

So I try again, you are going to use something like this https://static.tp-link.com/2020/202011/20201124/1910012937_HS100(EU)_UG_V1.pdf to power your rpi and printer?

Klipper shall turn off the TP-Link after print, so rpi and printer are powered down?

How are you going to turn on the TP-Link again? Your rpi is powered down.

Yes I did use a KP105 for both my pi and printer (Im now using a Manta board with a CB1 on board, so only use one plug now). Theres a time delay in the code to switch off the pi, so the pi has time to properly shut down.

Again, I don’t understand your final goal!

Do you want to turn on the KP105 with another device?

I now just turn on the one plug with the kasa app when I want to start a print remotely. Before I did have code that switched on the printers plug after start up of the pi but can’t find that.

1 Like