Webhook power driver (TP-W215 smart plug) - toy poc

Hi all,

Last night I got tired of manually powering on/off my small test server (it’s just a PC). I had a spare TP-Link W215 smart plug lying around so I wrote a quick hack/toy python server.

It wraps a project someone else did that can interact with the smartplug with a REST api that MAAS can use.

Note: it is NOT battle tested, but it might be useful for anyone wanting to understand how to use the webhook power driver.

It’s probably useful for rpi users (raspberry pi) although it doesn’t solve the issue for people with 20 pis :).


1 Like