jneilliii / OctoPrint-TPLinkSmartplug

106 stars 57 forks source link

Shut down octoprint #292

Open Biz810 opened 2 years ago

Biz810 commented 2 years ago

Hi there,

Is it possible that you first shut down Octoprint with your plug-in and then switch off the socket with a time delay?

jneilliii commented 2 years ago

That is achievable with the correct combination of settings. I documented an example in my Tasmota plugin, which is similar. Basically use countdown timers and system commands with the correct delays to achieve this.

https://github.com/jneilliii/OctoPrint-Tasmota#examples