Wall Mounted Dashboard (now known as HADashboard)

What SSE Client? No SSL enabled locally.

Sseclient is a python module that\ hapush depends on.

Ok trying to build a complete setup on the PI now. But no go on the Docker Install of HaDashboard. I did not reboot after Docker install on the Pi So I rebooted and will try to Install again. But the end of the install is below from the first time. It said something of an error code in Ruby.

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted (core dumped)
The command '/bin/sh -c gem install dashing  && gem install bundler  && bundle  && pip3 install daemonize sseclient configobj  && pip3 install --upgrade requests' returned a non-zero code: 134

hapush is reading the status from HA only when I hit refrest on the dash.

This is what I`m seeing in the hapush log:

any help much apreciated

2017-01-21 13:15:55,684 CRITICAL Traceback (most recent call last):
File “/home/pi/hadashboard/hapush/hapush.py”, line 264, in run
messages = SSEClient(ha_url + “/api/stream”, verify = False, headers = headers, retry = 3000)
File “/usr/local/lib/python3.4/dist-packages/sseclient.py”, line 38, in init
self._connect()
File “/usr/local/lib/python3.4/dist-packages/sseclient.py”, line 46, in _connect
self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
File “/usr/local/lib/python3.4/dist-packages/requests/api.py”, line 70, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/local/lib/python3.4/dist-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.4/dist-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.4/dist-packages/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.4/dist-packages/requests/adapters.py”, line 423, in send
timeout=timeout
File “/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py”, line 594, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py”, line 350, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py”, line 835, in validate_conn
conn.connect()
File “/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py”, line 311, in connect
cert_reqs=resolve_cert_reqs(self.cert_reqs),
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/ssl
.py", line 267, in create_urllib3_context
context.set_ciphers(ciphers or DEFAULT_CIPHERS)
File “/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py”, line 385, in set_ciphers
self._ctx.set_cipher_list(ciphers)
TypeError: must be str, not bytes

Can you post your hapush.cfg please

ha_url = “https://xxxxxx.duckdns.org:443
ha_key = xxxxxxxxxxx
dash_host = “10.0.0.14:3030”
dash_dir = “/home/pi/hadashboard/dashboards”
logfile = “/home/pi/hadashboard/log/hapush.log”

This looks like an issue with OpenSSL having problems with your certificate. Can you try upgrading to the latest version of OpenSSL? The error isn’t taking place in my code so there isn’t much else I can suggest.

One suggestion I googled was to run the following:

$ pip3 uninstall pyOpenSSL
$ pip3 install pyOpenSSL

thank you for looking into this, I`ll try running the unistall and install back the openssl.

Nothing changed after re-install the puOpenSSL. Its strange that the hapush is sending status to hadash but hadash doesnt refresh, after pressing “reload” on hadash is showing the status of the entity. Might be a browser or a refresh issue?

I would remove the port and try… I have setup HA on SSL too and had the same issue and it works when I removed the port.

Reload and hapush are using different method to get data… I had the exact same thought when running in the same issue.

on hapush or dash?

HAPush is completely separate form the initial dashboard display - that is handled buy the Dashing portion of the code. HAPush pushes updates after the initiasl load so it is not surprising that you have the initial page but no updates.

on the hapush config

hmmm, removing the port from hapush didn`t do anything. Something that I notice is when using crome the page loads, when using firefox the page is displaying ok but firefox is showing the loading icon, and ie is plain dark

What system are you running this on?

everything on pi3, everything work minus the hapush and hapush si loading correctly:

● hapush.service - Push events from Home Assistant to Dashing
Loaded: loaded (/home/pi/hadashboard/init/hapush.service; enabled)
Active: active (exited) since Sat 2017-01-21 14:22:50 CST; 12min ago
Process: 402 ExecStart=/etc/init.d/hapush start (code=exited, status=0/SUCCESS)
Main PID: 402 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/hapush.service
└─813 /usr/bin/python3 /home/pi/hadashboard/hapush/hapush.py -d -p /home/pi/hadashboard/hapush/hapush.pid /home/pi/hadashboard/hapush/hapush.cfg

Jan 21 14:22:50 raspberrypi systemd[1]: Starting Push events from Home Assistant to Dashing…
Jan 21 14:22:50 raspberrypi systemd[1]: Started Push events from Home Assistant to Dashing.
Jan 21 14:22:59 raspberrypi hapush[402]: Starting daemon: hapush.
Jan 21 14:22:59 raspberrypi hapush[813]: Starting daemon.

You said it didn’t do anything but then you said Chrome the page loads… the dashboard page? I only use Chrome so I don’t know how it behaves on others :slight_smile:

crome page loads the dashboard and everything seems to be working fine, minus the hapush.

Do you still have the same error as before after removing the port?