EvoHome Wifi help needed

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
ArjanPeeters
Posts: 10
Joined: Wednesday 07 September 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: Netherlands
Contact:

EvoHome Wifi help needed

Post by ArjanPeeters »

Hi all,

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
/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"):'
And i when i use it as a phyton script the error is:
pi@raspberrypi:~$ python /usr/local/bin/evo-update.sh init EvoHome
File "/usr/local/bin/evo-update.sh", line 53
r=requests.get("http://%s:%s/json.htm?type=command&param=addhardware&htype=40&port=1&name=%s&enabled=true&datatimeout=0" % (evoconfig.url,evoconfig.port,hwname))
^
SyntaxError: invalid syntax
I use a mac with ssh on terminal to connect (don't know if its important).

Any ideas would be much appreciated!
ArjanPeeters
Posts: 10
Joined: Wednesday 07 September 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: Netherlands
Contact:

Re: EvoHome Wifi help needed

Post by ArjanPeeters »

Just to be clear. Domoticz is installed on a raspberry pi model 3 and I use my mac and terminal to ssh my way in to the pi.
Is the command above still needed?
ArjanPeeters
Posts: 10
Joined: Wednesday 07 September 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: Netherlands
Contact:

Re: EvoHome Wifi help needed

Post by ArjanPeeters »

Many thanks! I will try tonight and post results.
DanM
Posts: 79
Joined: Thursday 23 October 2014 22:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: EvoHome Wifi help needed

Post by DanM »

There is a utility called dos2unix that available for the pi (sudo apt-get install dos2unix). Its effectively the same as the command above, but a useful shortcut if like me you do a lot of editing in windows environments before transfer to the pi.
OmeAnne
Posts: 5
Joined: Wednesday 07 October 2015 12:00
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: EvoHome Wifi help needed

Post by OmeAnne »

I know it's a bit of a topic kick, but since I have the same problem (didn't try the dos2unix solution yet) I was wondering if you got it to work!
The biggist difference is, I'm trying to install it on my Synology DS216play

But I must be doing something right, when I execute the script below I do get a reply with values that look an awefull lot like the values in my EvoHome app. ;)

Code: Select all

#!/usr/bin/python
import sys
import requests
from evohomeclient2 import EvohomeClient

client = EvohomeClient('email', 'password')

for device in client.temperatures():
    print(device['temp'])
    print(device['setpoint'])
    
ArjanPeeters
Posts: 10
Joined: Wednesday 07 September 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: Netherlands
Contact:

Re: EvoHome Wifi help needed

Post by ArjanPeeters »

I got it to work, but i used a different rpi image.
And made the script excecutable, than i ran the script first time outside of domoticz.
That dit it for me.
OmeAnne
Posts: 5
Joined: Wednesday 07 October 2015 12:00
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: EvoHome Wifi help needed

Post by OmeAnne »

Did nothing with the DOS unix thingy??
ArjanPeeters
Posts: 10
Joined: Wednesday 07 September 2016 21:24
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: Netherlands
Contact:

Re: EvoHome Wifi help needed

Post by ArjanPeeters »

Nope. Not a thing.
OmeAnne
Posts: 5
Joined: Wednesday 07 October 2015 12:00
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: EvoHome Wifi help needed

Post by OmeAnne »

Looked at it again with a colleague and it seems there was a copy paste problem. It inserted a lot of tabs! I'll try to fix it when I'm home.
Post Reply

Who is online

Users browsing this forum: Desolator and 1 guest