softScheck/tplink-smartplug

Turning on from a raspberry pi

Closed this issue · 1 comments

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

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