Wall Mounted Dashboard (now known as HADashboard)

virtualenv is a virtual enviroment.

that is somewhat like in the past we did create a virtual harddrive or cdromplayer.
it wasnt a real harddrive, but a dir we could use the same way as a harddrive.

everything you do when you are in a virtual enviroment wont effect other enviroments.
so if you install dashboard when your hass enviroment is activated you could afterwards delete everything related to hass at once.

i am not a fan off virtualenv, but i think if you use it, probably the preffered way would be to create a new enviroment for dashboard.
but i am not sure if there would be any fileright problems (i cant think of any at this moment, but it could be)

1 Like

Just to be clear - you don;t have to use Docker on Raspbian, you can also use the manual install instructions. Id you do decide to go down the docker route, you need to use the Raspbian specific docker image - that’s what the instructions were trying to convey.

1 Like

So then, if I did that (and would probably take that route due to limited knowledge of docker), would I then want to be working within my virtualenv I have Home Assistant installed in, or does that not really matter?

Also, looking at those directions, how does one go about install Ruby? Is it just:

curl -L https://get.rvm.io | bash -s stable --ruby

Source:
Ruby Installation on a pi

The Virtual Env is optional, and only applies to ther HAPush piece - Virtualenv is a Python thing. You don;t have to use a Virtualenv if you don;t want to - I don’t.

My PI came with Ruby already installed, if you don’t have it, I would first try something like:

$ sudo apt-get install ruby

That looks correct - what error are you getting now?

pi@raspberrypi:~/hadashboard $ dashing start
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on 0.0.0.0:3030, CTRL+C to stop

scheduler caught exception:
Connection reset by peer
/usr/lib/ruby/2.1.0/net/protocol.rb:153:in read_nonblock' /usr/lib/ruby/2.1.0/net/protocol.rb:153:in rbuf_fill’
/usr/lib/ruby/2.1.0/net/protocol.rb:134:in readuntil' /usr/lib/ruby/2.1.0/net/protocol.rb:144:in readline’
/usr/lib/ruby/2.1.0/net/http/response.rb:39:in read_status_line' /usr/lib/ruby/2.1.0/net/http/response.rb:28:in read_new’
/usr/lib/ruby/2.1.0/net/http.rb:1408:in block in transport_request' /usr/lib/ruby/2.1.0/net/http.rb:1405:in catch’
/usr/lib/ruby/2.1.0/net/http.rb:1405:in transport_request' /usr/lib/ruby/2.1.0/net/http.rb:1378:in request’
/usr/lib/ruby/2.1.0/net/http.rb:1371:in block in request' /usr/lib/ruby/2.1.0/net/http.rb:853:in start’
/usr/lib/ruby/2.1.0/net/http.rb:1369:in request' /home/pi/hadashboard/jobs/homeassistant.rb:23:in ha_api’
/home/pi/hadashboard/jobs/homeassistant.rb:282:in block in <top (required)>' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in call’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in trigger_block' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in block in trigger’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in call' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in block in trigger_job’

================================================================================
scheduler caught exception:
Connection refused - connect(2) for “trafiknyt.smartlog.dk” port 80
/usr/lib/ruby/2.1.0/net/http.rb:879:in initialize' /usr/lib/ruby/2.1.0/net/http.rb:879:in open’
/usr/lib/ruby/2.1.0/net/http.rb:879:in block in connect' /usr/lib/ruby/2.1.0/timeout.rb:76:in timeout’
/usr/lib/ruby/2.1.0/net/http.rb:878:in connect' /usr/lib/ruby/2.1.0/net/http.rb:863:in do_start’
/usr/lib/ruby/2.1.0/net/http.rb:852:in start' /usr/lib/ruby/2.1.0/open-uri.rb:313:in open_http’
/usr/lib/ruby/2.1.0/open-uri.rb:724:in buffer_open' /usr/lib/ruby/2.1.0/open-uri.rb:210:in block in open_loop’
/usr/lib/ruby/2.1.0/open-uri.rb:208:in catch' /usr/lib/ruby/2.1.0/open-uri.rb:208:in open_loop’
/usr/lib/ruby/2.1.0/open-uri.rb:149:in open_uri' /usr/lib/ruby/2.1.0/open-uri.rb:704:in open’
/usr/lib/ruby/2.1.0/open-uri.rb:34:in open' /home/pi/hadashboard/jobs/news.rb:31:in latest_headlines’
/home/pi/hadashboard/jobs/news.rb:66:in block (2 levels) in <top (required)>' /home/pi/hadashboard/jobs/news.rb:65:in each’
/home/pi/hadashboard/jobs/news.rb:65:in block in <top (required)>' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in call’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in trigger_block' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in block in trigger’
/var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in call' /var/lib/gems/2.1.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in block in trigger_job’

This is what i get when starting dashing

Looks like you have the settings for your home assistant instance url incorrect in ha_conf.rb - that is the piece of code where it tries to contact Home Assistant and it is getting a connection refused.

Make sure you are using the right scheme (https vs http) and that the IP address is correct.

okay. have tried with both https and http.
my rpi are on internal ip address 192.168.0.32, but when i try to connect to my HA install via internal ip address (192.168.0.32:8123) i cant connect to HA, only if i use https infront of the ip address and then its telling me its not a secure connection.
I have set up encryption with duckdns and letsencrypt, so i think that i need some sort of portforwarding. Could it be the problem?

just logged in to HA via my duckdns address and now it tells me: Login attempt failed, Invalid password used from 192.168.0.32, which is my rpi and where HADashboard is installed, is it possible to add my HA password in the ha_conf.rb file?

Yes, you need to use the duckdns address or you will get cert errors.

$ha_apikey should be set to your password and you should be good to go.

wuhuuu, now its working :slight_smile: and can control my lights via the dashboard. Thanks alot for your patiences :slight_smile:

Now i need to take a look at the weather things, so maybe i will have a lot of questions again soon:)

Glad we figured it out :slight_smile:

i have mistakenly deleted my example.erb file, and can read that i shouldn’t have done that to avoid problems when ugrading. is it possible to get that file again?

So, I was going to try to manual steps, and in the first step, this is what I got:

(homeassistant_venv) pi@raspberrypi:~ $ git clone https://github.com/home-assistant/hadashboard.git
-bash: git: command not found
(homeassistant_venv) pi@raspberrypi:~ $

I have activated my virtualenv, but when I tried the git command, this happened? Can I not be in the virtualenv?

Shouldn’t be an issue - it will just get replaced the next time you do a pull.

Looks like you need to install git as a first step. Try:

$ apt-get install git

Had to throw a sudo in front of that but it’s installing now. Thanks!

Now I’m getting the same thing with the gem command, which means I don’t think i have ruby installed. Going to try to figure that out for a bit.,

Same answer :wink:

$ sudo apt-get install gem

Should work.

would this all be happening because i’m using raspian lite, and not the full raspian?

I would guess so - looks like a bunch of basics aren’t there - it should still be possible you will just need to do a few extra steps as we are finding out.

I think because of that, I’m going to redo the SD Card with the full Raspian to see if that helps. I don’t really care, I just like working from terminal instead of loading up the Graphical UI, but I can change those settings in the raspi-conf settings. For what it’s worth, i just had to use:

sudo gem install dashing

This got it going, but then I got this error at the end: