softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.14k stars 296 forks source link

How to control the plug remotely #13

Open GanZ2016 opened 7 years ago

GanZ2016 commented 7 years ago

Hi,

Just wondering is there any way to control the plug through Internet? The code works for me in my home wifi, but I want to control the plug outside, just like the Kasa app.

Thanks!

cocohub commented 7 years ago

Hey, my solution is using a public server connected to the same network as my plug. I use Pagekite to make my computer become accessible on the web, then I just created a php script that executes the python script to turn on or off my smart plug. Super easy

FiletZitas commented 7 years ago

Hi, i use it without a public server. Just created an Apache instance with Django framework which executes the python code. Then i did a simple PortForward on my internet Firewall. Works perfect, but for security reasons i guess it's more like a disaster :-)