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:
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):'
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