Wall Mounted Dashboard (now known as HADashboard)

My bad i posted the hapush.cfg.

My ha_conf.rb looks like this:

$ha_url = “http://10.0.1.159:8123
$ha_apikey = “test”

I will move my hapush to the dashing server as soon as i can.

I didnt have an apikey on my HA-server, I did add I add the right way?
my configuration.yaml looks like this.

http:
api_password: “test”

Yeah, you look pretty close, my code just doesn’t support the idea of people not using SSL or an API Key :wink: I am fixing that now and will push a new version soon. You don;t need to add a key to HA just for this, I’ll make sure it works without, so change your configuration.yaml back if you prefer, and I will make the key variable optional for dashing an hapush.

Stay tuned …

Thank you for the quick response :slight_smile:

When i run the hapush on the dashing server I’ll get this message.
I guess it’s because i’m not running ssl.

2016-06-21 19:53:49,845 CRITICAL ------------------------------------------------------------
2016-06-21 19:53:54,856 CRITICAL Unexpected error:
2016-06-21 19:53:54,856 CRITICAL ------------------------------------------------------------
2016-06-21 19:53:54,856 CRITICAL Traceback (most recent call last):
File “./hapush.py”, line 233, in run
messages = SSEClient(ha_url + “/api/stream”, verify = False, headers = headers, retry = 3000)
File “/home/kristoffer/.local/lib/python3.5/site-packages/sseclient.py”, line 37, in init
self._connect()
File “/home/kristoffer/.local/lib/python3.5/site-packages/sseclient.py”, line 50, in _connect
self.resp.raise_for_status()
File “/home/kristoffer/.local/lib/python3.5/site-packages/requests/models.py”, line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: UNAUTHORIZED for url: http://10.0.1.159:8123/api/stream

2016-06-21 19:53:54,857 CRITICAL ------------------------------------------------------------

OK, I pushed a new version - you should be able to update your repository with:

$ git pull origin

This release has improved docs and now should work fine with http and with or without the key.

Let me know how you get on!

Now it works like a charm! :smiley:
I am running without ssl and api_key
Right now i trying temperature, script and input_select and works great.

Excellent! Do you have hapush working too?

Post a pic!

I got two warnings as we speak but when i started hapush i got two values.

kristoffer@SKYNETDASH:~/hapush$ ./hapush.py hapush.cfg
2016-06-21 20:27:08,155 INFO Reading dashboard: /srv/hass/src/hadashboard/dashboards/main.erb
2016-06-21 20:34:00,576 INFO Reading dashboard: /srv/hass/src/hadashboard/dashboards/main.erb
2016-06-21 20:37:00,813 INFO Reading dashboard: /srv/hass/src/hadashboard/dashboards/main.erb
2016-06-21 20:37:31,879 INFO sensor.inne_humidity → 46
2016-06-21 20:37:31,918 WARNING Unexpected error calling Dashing: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: //10.0.1.169:3030/widgets/inne_humidity (Caused by NewConnectionError(‘<requests.packages.urllib3.connection.HTTPConnection object at 0x7f2468130908>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
2016-06-21 20:37:31,955 INFO sensor.inne_temperature → 22.1
2016-06-21 20:37:31,963 WARNING Unexpected error calling Dashing: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: //10.0.1.169:3030/widgets/inne_temperature (Caused by NewConnectionError(‘<requests.packages.urllib3.connection.HTTPConnection object at 0x7f24681309e8>: Failed to establish a new connection: [Errno -2] Name or service not known’,))

It now looks like follow. I need to change the units tho :slight_smile:

Nice pic!

Regarding the temperature, yes, I am afraid the easiest and most inelegant way to do this is for you to edit the widget. I guess in the future I could provide one widget for Farenheit and another for Celsius, but for now navigate to hadashboard/widgets/hatemp and edit hatemp.html - you should be able to spot where the “F” is and change it to a C :slight_smile:

Regarding the error message - it looks like you have an issue with your hapush config still. It is reading the events but failing to update the dash.

It is saying the url is //10.0.1.169:3030/widgets/inne_temperature - did you miss out an http somewhere?

I been looking through the hapush and I have http everywhere.

Now I just have figure out how to configure the widgets :wink:

I found the issue with the “missing” http.

Since you adding http in the hapush.py (Line38) you dont need to add it in the hapush.cfg file.

url = “http://” + dash_host + “/widgets/” + widget_id

So I just deleted the http from the cfg-file and it works much better.
It now looks like this.

dash_host = “10.0.1.169:3030”

I guess it became some sort of conflict between those two.

Ahh, well spotted! I’ll fix that in the docs - thanks for being my Beta tester :slight_smile:

EDIT: Done!

Im installing it on a rpi2 and got the following error when running ‘dashing start’

pi@raspberrypi:~/hadashboard $ dashing start
bundler: failed to load command: thin (/usr/local/bin/thin)
<.....................>

I ran ‘sudo gem install thin’ and tried again, but got the same error. Suggestions?

Did you complete the step of running bundler without any errors?

Yes.

pi@raspberrypi:~/hadashboard $ sudo gem install dashing
Successfully installed dashing-1.3.6
Parsing documentation for dashing-1.3.6
Done installing documentation for dashing after 2 seconds
1 gem installed

pi@raspberrypi:~/hadashboard $ sudo gem install bundler
Successfully installed bundler-1.12.5
Parsing documentation for bundler-1.12.5
Done installing documentation for bundler after 46 seconds
1 gem installed

pi@raspberrypi:~/hadashboard $ bundle
<…>
Bundle complete! 10 Gemfile dependencies, 64 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.

i have follow your instruction with no errors , but in the final step when i am try to run (dashing start)

i receive this error:

bundler: failed to load command: thin (/usr/local/bin/thin)
Errno::ENOENT: No such file or directory @ rb_sysopen - config.ru
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:32:in read' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:32:in load’
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:182:in load_rackup_config' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:72:in start’
/var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in run_command' /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in run!’
/var/lib/gems/2.1.0/gems/thin-1.6.4/bin/thin:6:in <top (required)>' /usr/local/bin/thin:23:in load’
/usr/local/bin/thin:23:in `<top (required)>’

i am try to setup in raspberry pi.

thanks!

What happened when you tried to install thin? I just tried the same command and it updated mine for me:

hass@homeassistant:/srv/hass/src/hadashboard $ sudo gem install thin
Fetching: thin-1.7.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed thin-1.7.0
Parsing documentation for thin-1.7.0
Installing ri documentation for thin-1.7.0
Done installing documentation for thin after 9 seconds
1 gem installed

Are you running dashing start from the top level homeassistant directory?

root@rackpanel:/tmp/hadashboard# sudo gem install thin
Building native extensions. This could take a while…
Successfully installed thin-1.7.0
Parsing documentation for thin-1.7.0
Done installing documentation for thin after 27 seconds
1 gem installed

yes everything goes well ,but the same error again when i am running dashing start

What does “type thin” return?

root@rackpanel:/tmp/hadashboard# type thin
thin is /usr/local/bin/thin