softScheck / tplink-smartplug

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

Turning on from a raspberry pi #74

Closed annunity closed 4 years ago

annunity commented 4 years ago

Hi,

Very noob question. I was wondering how to turn the smartplug on from a raspberry pi. I have the python script in the root directory of my pi. I am running the following command:

bash tplink_smartplug.py -t 192.168.0.245 -p 9999 {"system":{"get_sysinfo":null}}

tplink_smartplug.py: line 22: import: command not found tplink_smartplug.py: line 23: import: command not found tplink_smartplug.py: line 24: import: command not found from: can't read /var/mail/struct tplink_smartplug.py: line 27: version: command not found tplink_smartplug.py: line 30: syntax error near unexpected token (' tplink_smartplug.py: line 30:def validHostname(hostname):'

Thanks

annunity commented 4 years ago

Ignore my stupidity. I worked it out. Thanks for the great project

python tplink_smartplug.py -t 192.168.0.246 -c on #turn on python tplink_smartplug.py -t 192.168.0.246 -c off #turn off