I got hapush configured but I can’t get the dashboard synchronized in desktop and smartphone with the same URL: http://192.168.0.2:3030/main
.
While running in console:
[hass@home-server hapush]$ ./hapush.py hapush.cfg
2016-12-28 19:30:19,849 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/example.erb
2016-12-28 19:30:19,855 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/main.erb
Had to Ctrl+C twice to end the hapush.py process.
[code][hass@home-server hapush]$ ./hapush.py hapush.cfg
2016-12-28 19:30:19,849 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/example.erb
2016-12-28 19:30:19,855 INFO Reading dashboard: /fileserver/users/homeassistant/hadashboard/dashboards/main.erb
^C2016-12-28 19:38:36,010 CRITICAL Unexpected error:
2016-12-28 19:38:36,010 CRITICAL ------------------------------------------------------------
2016-12-28 19:38:36,018 CRITICAL Traceback (most recent call last):
File “./hapush.py”, line 265, in run
for msg in messages:
File “/usr/lib/python3.5/site-packages/sseclient.py”, line 64, in next
nextline = self.resp_file.readline()
File “/usr/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 380, in read
data = self._fp.read(amt)
File “/usr/lib/python3.5/http/client.py”, line 448, in read
n = self.readinto(b)
File “/usr/lib/python3.5/http/client.py”, line 478, in readinto
return self._readinto_chunked(b)
File “/usr/lib/python3.5/http/client.py”, line 573, in _readinto_chunked
chunk_left = self._get_chunk_left()
File “/usr/lib/python3.5/http/client.py”, line 541, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File “/usr/lib/python3.5/http/client.py”, line 501, in _read_next_chunk_size
line = self.fp.readline(_MAXLINE + 1)
File “/usr/lib/python3.5/socket.py”, line 575, in readinto
return self._sock.recv_into(b)
KeyboardInterrupt
2016-12-28 19:38:36,018 CRITICAL ------------------------------------------------------------
^CTraceback (most recent call last):
File “./hapush.py”, line 348, in
main()
File “./hapush.py”, line 343, in main
run()
File “./hapush.py”, line 274, in run
time.sleep(5)
KeyboardInterrupt
[hass@home-server hapush]$[/code]
Here’s the config minus the api key:
[hass@home-server hapush]$ cat hapush.cfg
ha_url = "http://192.168.0.2:8123"
ha_key = ...secret...
dash_host = "192.168.0.2:3030"
dash_dir = "/fileserver/users/homeassistant/hadashboard/dashboards"
logfile = "/fileserver/users/homeassistant/hadashboard/hapush/hapush.log"
Any luck? At least I can control the lights from the hadashboard and activate scenes which is what I have.
And yes, my home directory is /fileserver/users. User “hass” has a home directory of /fileserver/users/homeassistant.
hadashboard is located in /fileserver/users/homeassistant/hadashboard.
Home Assistant is located in /fileserver/users/homeassistant/.homeassistant
Both of the two directories are owned by user “hass.”