Wall Mounted Dashboard (now known as HADashboard)

Ok lets rephrase the question, cause I am mingleling thngs up which ends in an not working dashboard,

What does a newbie or anybody who wants to start with a dashboard, (cause it is so cool looking) have to do, to get a basic dashboard running.

Who has the manual/tutorial, what are the steps, is it enough or are there dependencies missing, what are the commands needed to run to make it possible even for an nitwit like me?

Running HASS 0.37.1 at the moment with sqlite.

Sorry for asking this so ecplicit but I think you are doing a lot of newbies a big favor.

O by the way I thought that that was the original dashboard, HADashboard, that is what you can find when you look at the Home Assistant site, and I know I found a couple other dashboards too but started with this one cause I thought original should give less problems starting with.

HADashboard is a 3rd party addon I created for Home Assistant. There is a Stock UI is available out of the box but is nothing to do with HADashboard, but it is a good place to start if you want something simple to get you up and running.

If you want to install HADashboard, start with the steps outlined here

If you have problems with any specific steps let us know and we will try and help. Saying you have many errors makes it very hard to help you! Most people manage OK and maybe have problems with a step or two but we help them sort it out. They key is to take it step by step and let us help you with individual problems as they crop up.

1 Like

That is the tutorial I started with, and only Docker worked as instructed.

And Rene just a few replies above this said docker is not needed, I am puzzled.

Well I love the way it looks, so I am a fan of your work AIMC, but I canā€™t see what I am doing wrong following the instructions on the outlined steps you refer to, both installs failed the first and the manual second option too.

Thanks for the offer, I will do a fresh install of HAS 37.1, Iā€™ll give you an update.

The link was to the manual instructions which are separate from Docker, you do one or the other.

But you do need docker donā€™t you, line ā€“ Docker on Raspberry Pi ā€“ I like to install on raspberry pi3

i dont see why you keep on being puzzled.
the first line from the manual:

Installation can be performed using Docker (Contributed by marijngiesen) or manually if Docker doesnā€™t work for you

so you can choose with or without docker.
and based on if you like docker or not you choose your type of installation.

if you do want to use docker then everything mentioned beneath manual installation should be forgotten
if you dont want to use docker then everything else except beneath manual installation should be forgotten.

and at the end is a small part what should be done in both cases.

1 Like

Thanks for the reply, it is getting clearer to me.

But next question which is a better aproach, with or without Docker? and can I change that if installed say I like to use Docker after all, but started without it?

I think I found the problem, RUBY!

Rereading your tutorial I read the line in the manaul section:

Essentially, you want to make sure that you have Ruby installed on your local machine. Then, install the Dashing gem:

And there is the culprit!!!
Ruby gave all those errors, if you look at the errors given in the first post. I already stated that I got errors accessing the var directory from Ruby 1.8, that Ruby 1.9 was missing important libs and that I already said I have Ruby 2.3 on the Raspberry pi, but needs Ruby 1.9. something.
So my installation fails on Ruby.

Ans it seems I am not the only one with this problem, so will this beautiful dashboard work for everybody is there a tutorial about installing RUBY the right way, so that it isnā€™t missing any library and it is the right version.
What do you do To get Ruby on your system?

Start ReneTodeā€™s way dec16 : sudo apt-get install ruby-full

Another point I of which I am not sure when I read it, and I must add I am not a native English speaker so what do you mean by:

Change your working directory to the repository root. Moving forward, we will be working from this directory.

And then you give:

$ cd hadashboard

Is that the repository root or must I go to the root directory cd ~

Or are all other gem installations done in the hadashboard directory, I find that a bit confusing, sorry.

I donā€™t know if this has been discussed before, but I have an iFrame widget that I would like to update every X seconds. How would I go about doing that?

OK aimc her we go first error,

I am in dir hadashboard installing dashing:

pi@Home_Assistant:~/hadashboard $ gem install dashing
Fetching: sass-3.2.19.gem (100%)
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ dir_s_mkdir - /var/lib/gems

That is the access denied error of which I was talking and why I chmodded my whole raspberry to 777, total access everybody granted everything.

Or do I have to install being super user

Well Now Super user and that skipped that error

if you never used docker and you dont use docker for anything else, and dont plan to use docker for other things in the future, i would advice to use the manual installation.
can you change it afterwards? probably not without deinstalling and reinstalling again. (but im not sure about that.)

Another point I of which I am not sure when I read it, and I must add I am not a native English speaker so what do you mean by:
Change your working directory to the repository root. Moving forward, we will be working from this directory.
And then you give:
$ cd hadashboard
Is that the repository root or must I go to the root directory cd ~
Or are all other gem installations done in the hadashboard directory

its really hard to explain thing like that. the problem is probably not the knowledge of english but about the used terms working on a Linux machine. the repository is that what you have downloaded. and root is the base dir, the highest dir in the tree. so the repository root is the dir where you downloaded and install the dashboard. so if you created the dir hadashboard then that would be your repository root.

OK aimc her we go first error,
I am in dir hadashboard installing dashing:
pi@Home_Assistant:~/hadashboard $ gem install dashing
Fetching: sass-3.2.19.gem (100%)
ERROR: While executing gem ā€¦ (Errno::EACCES)
Permission denied @ dir_s_mkdir - /var/lib/gems
That is the access denied error of which I was talking and why I chmodded my whole raspberry to 777, total access everybody granted everything.
Or do I have to install being super user
Well Now Super user and that skipped that error

i also run into permission errors sometime.
i never installed or used super user.
most of the time the problem lies in that some parts of the RPI are managed by the user root and most of the time you are connected as user pi.
if i run into a permission error the first thing i try is using sudo in front of the command.
only if i cant get around some errors i change permission from some files or dirs.
chmodding big parts isnt wise. there are all kind off other ways to change small parts or single files. setting ownership to pi will help in most cases.

Hi mate,
If you are new in Linux, follow the tutorial very carefully and step by step and whenever see a non intended output, pause there and search a bit to get around with the issue first.
I am using hassbian image on raspberry pi 3 and from my experience I remember that all the commands except bundle I had to use sudo otherwise it was giving permission error. And regarding ruby version, I think I worked out with version 2.x but in that case you have to keep in mind and change the directory later as required. I donā€™t think version 1.9 is absolutely necessaryā€¦ Thanksā€¦ hope you would see your beautiful dashboard real soonā€¦

bundle error:

An error occurred while installing do_sqlite3 (0.10.17), and Bundler
cannot continue.
Make sure that gem install do_sqlite3 -v '0.10.17' succeeds before
bundling.

Yes I am a newbie, or not really in linux used suse 4.0 so that is some time ago.

I just hope to come to a working solution for whoever newbie that stumbles over my errors

Later versions of Ruby should be fine.

The error above has been seen many times, you need to install another package, use the forum search and you should find the answer.

I installed ruby full

another error

Installing unirest 1.1.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Hi @BarryHampants,
seems like your installation is similar as mine( manual installation in RPI). But in my case hapush isnā€™t auto starting whereas dashing is working fine. However, a manual start works. Right now, I am getting away with it via screen command and do a manual start. But this is a pain :frowning:

Can you please confirm if the below is the right command?

``sudo update-RC.d dashboard defaults`ā€™

or something else? Because there is nothing called dashboard service?? Itā€™s dashing and hapush. But inside hapush file I saw the description is dashboard which I changed to hapush. May be this step is creating the trouble for me?

Also, in the first steps, I believe I donā€™t need to copy the hapush.service file as well, right?

Please advise.

Thanks

`sudo apt-get install postgresql-9.4 postgresql-server-dev-9.4 libpq-dev sqlite libsqlite3-dev

This solution was suggested in this thread regarding this error. As far I can remember, I had this issue as well and this step was a step closer to the solution. By the way, I am also a Linux noob so I did a search for you rather writing anything from my memory :slight_smile:

Just search with the error statement in this forum first then Google, if nothing came out then the community is here to help. Thanks

Yes I saw this solution also earlier on in this feed. But thanks

As a noob you see a lot of great options passing by, but there are always errors involved in getting it to run, and the solutions are always very sckatered even over mutiple posts.

And the folks here are great, helping you, me.

But I like to get a compact foolproof end result and write down what I do, which error does occur and where to goto to solve it, hopefully being of any service to others.

yes bundle ran without errors after:

sudo apt-get install postgresql-9.4 postgresql-server-dev-9.4 libpq-dev sqlite libsqlite3-dev

If you have a detailed write-up for a specific platform I would be happy to add it to the docs. The reason that this does not exist already is that every platform is different and I only have access to one or two and did the best I could with what I had. I rely on others in the community to help expand what we know about installing on different platforms.

O wow there we go starting dashing and:-------

pi@Home_Assistant:~/hadashboard $ dashing start
bundler: failed to load command: thin (/usr/local/bin/thin)
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
  /var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'
  /var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>'
  /var/lib/gems/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require_with_backports'
  /var/lib/gems/2.1.0/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require_with_backports'
  /var/lib/gems/2.1.0/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require'
  /var/lib/gems/2.1.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require_with_backports'
  /var/lib/gems/2.1.0/gems/dashing-1.3.7/lib/dashing/app.rb:5:in `<top (required)>'
  /var/lib/gems/2.1.0/gems/dashing-1.3.7/lib/dashing.rb:3:in `require'
  /var/lib/gems/2.1.0/gems/dashing-1.3.7/lib/dashing.rb:3:in `<top (required)>'
  config.ru:1:in `require'
  config.ru:1:in `block in <main>'
  /var/lib/gems/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
  /var/lib/gems/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in `eval'
  /var/lib/gems/2.1.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33: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)>'