First i'd like to say that i'm just learning to use my raspberry pi and my linux knowledge isn't up to parr. How ever i do know how to use google and it has come to a point that i'm seeing the same answers over and over again on google.
My problem:
I have used the domoticz raspberry pi image. And to start off I wanted to be able to graph my evohome setup. I have a relatively new one, without separate internet gateways. So i need to use the scripted one ( http://www.domoticz.com/wiki/Evohome#Sc ... _or_RFG100).
But i cannot get my evo-update.sh to initialize. I think i have tried everything, from using the python command to ./evo-home.sh init, in varios combinations.
When i just run it as an excecutable i get:
pi@raspberrypi:~$ evo-update.sh init EvoHomeZones
And i when i use it as a phyton script the error is:/usr/local/bin/evo-update.sh: line 15: import: command not found
from: can't read /var/mail/evohomeclient2
/usr/local/bin/evo-update.sh: line 17: import: command not found
/usr/local/bin/evo-update.sh: line 18: import: command not found
/usr/local/bin/evo-update.sh: line 19: import: command not found
/usr/local/bin/evo-update.sh: line 20: import: command not found
/usr/local/bin/evo-update.sh: line 21: import: command not found
/usr/local/bin/evo-update.sh: line 22: import: command not found
/usr/local/bin/evo-update.sh: line 24: syntax error near unexpected token `"/var/tmp/evo-noup.tmp"'
/usr/local/bin/evo-update.sh: line 24: `if os.path.isfile("/var/tmp/evo-noup.tmp"):'
pi@raspberrypi:~$ python /usr/local/bin/evo-update.sh init EvoHome
I use a mac with ssh on terminal to connect (don't know if its important).File "/usr/local/bin/evo-update.sh", line 53
r=requests.get("http://%s:%s/json.htm?type=command¶m=addhardware&htype=40&port=1&name=%s&enabled=true&datatimeout=0" % (evoconfig.url,evoconfig.port,hwname))
^
SyntaxError: invalid syntax
Any ideas would be much appreciated!