Domoboard - General Discussions

Domoboard is a dashboard for Domoticz based on Python Flask.

Moderator: wez3

Forum rules
Before posting here, make sure you are using the latest Beta or Stable version.

In order to fix issues or add features these have to be reported on the Domoboard Github pages.
This makes it possible to keep track of issues/features on a centralized place.

Refer to the issue of the github tracker when possible.

This subforum is meant to discuss issues and/or feature requests, or anything else related to Domoboard.
squandor
Posts: 201
Joined: Saturday 19 December 2015 23:34
Target OS: Raspberry Pi
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor » Tuesday 28 March 2017 17:36

miljume wrote:
squandor wrote:
miljume wrote:Yes, I have authentication enabled but not for local IP adresses and the Domoboard is on the same RPI so that shouldnt be the problem

I did a git pull from the development branch so I am on the latest development version
Could you send the [general_settings] part of the config so we can see if the problem is in there.
Sure, see below
I guess the username/password part for Domoticz isn't needed when I have excluded login for local IP's?

Code: Select all

[general_settings]
  [[server]]
    url = 192.168.0.51:8081			# IP-address of Domoticz backend
    flask_url = 192.168.0.51:8090		# Please note: this is the internal IP-address including port of the Domoboard server
    user = username			# Username for Domoticz (if required)
    password = password			# Password for Domoticz (if required)
    secret_key = <secret key> # A random secret key used for Python authentication. Change to anything random.
  [[users]]
    user1 = password1			# Add users for Domoboard here. In this case login with username "username" and password "password"
    user2 = password2
  [[domoboard]]
    time = True			# True/False: show time in top bar
    date = True			# True/False: show date in top bar
    language = "sv"			# Change this to display date/time in local language and format
    #google_maps_api_key = <api key>		# Google Maps Embed API key
    autologon = True       # True/False: enable autologon
  [[wunderground]]
  	api = <api key>
  	language = en
you could try that to make sure that it's not needed and also set something in the secret key to make sure that all the possibility's are filled in. beside that you could try to set the url to url = 127.0.0.1:8081

miljume
Posts: 62
Joined: Thursday 03 December 2015 22:36
Target OS: Raspberry Pi
Domoticz version: v3.8742
Contact:

Re: Domoboard - General Discussions

Post by miljume » Tuesday 28 March 2017 18:15

miljume wrote:
squandor wrote:
miljume wrote:Yes, I have authentication enabled but not for local IP adresses and the Domoboard is on the same RPI so that shouldnt be the problem

I did a git pull from the development branch so I am on the latest development version
Could you send the [general_settings] part of the config so we can see if the problem is in there.
Sure, see below
I guess the username/password part for Domoticz isn't needed when I have excluded login for local IP's?

Code: Select all

[general_settings]
  [[server]]
    url = 192.168.0.51:8081			# IP-address of Domoticz backend
    flask_url = 192.168.0.51:8090		# Please note: this is the internal IP-address including port of the Domoboard server
    user = username			# Username for Domoticz (if required)
    password = password			# Password for Domoticz (if required)
    secret_key = <secret key> # A random secret key used for Python authentication. Change to anything random.
  [[users]]
    user1 = password1			# Add users for Domoboard here. In this case login with username "username" and password "password"
    user2 = password2
  [[domoboard]]
    time = True			# True/False: show time in top bar
    date = True			# True/False: show date in top bar
    language = "sv"			# Change this to display date/time in local language and format
    #google_maps_api_key = <api key>		# Google Maps Embed API key
    autologon = True       # True/False: enable autologon
  [[wunderground]]
  	api = <api key>
  	language = en
I have found the error!

The switch in Domoticz was called "Ljusträd" and it seems like it's the same error I reported on before (for temperature sensor) that the script can't handle Swedish letters when receiving info from Domoticz. When renaming the switch to "Light Tree" it started working again :)

SwordFish
Posts: 268
Joined: Sunday 14 December 2014 13:28
Target OS: Raspberry Pi
Domoticz version: V3.7207
Location: Helmond, netherlands
Contact:

Re: Domoboard - General Discussions

Post by SwordFish » Thursday 30 March 2017 14:17

Nice work with this frontend.
I setup Domoboard and it is working but i noticed that with klikaanklikuit dimmers the sliders only work within the 1 to 16%. The dimmers don't support dimming in % only in steps (16 in this case). Is there a fix for?
Keep up the good work.

sander815
Posts: 25
Joined: Friday 13 January 2017 16:49
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by sander815 » Tuesday 11 April 2017 14:07

Just got my HDMI display and second rpi. One question, do i install this on a fresh rpi with raspbian? Or on the rpi that runs domoticz

squandor
Posts: 201
Joined: Saturday 19 December 2015 23:34
Target OS: Raspberry Pi
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor » Tuesday 11 April 2017 15:09

sander815 wrote:Just got my HDMI display and second rpi. One question, do i install this on a fresh rpi with raspbian? Or on the rpi that runs domoticz
It is both possible. If you run domoboard on an fresh rpi you can change the config settings like this:
[general_settings]
[[server]]
url = url of you're domoticz server like 192.168.1.2:8080
flask_url = the ip adres of you're fresh rpi

then it should work fine :)

jake
Posts: 285
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Domoboard - General Discussions

Post by jake » Thursday 13 April 2017 20:11

I tried to install the Domoboard on an Xbain RPI setup. So far I haven't succeeded:

Code: Select all

 sudo apt-get install python-setuptools
sudo easy_install flask flask-auth configobj gitpython simplejson bleach requests
sudo apt-get install git
git clone https://github.com/wez3/domoboard
sudo apt-get install python-pip
pip install setuptools --upgrade
pip install html5lib

[email protected] ~/domoboard $ python server.py -c jacco.conf
Traceback (most recent call last):
  File "server.py", line 8, in <module>
    import modules.api as api
  File "/home/xbian/domoboard/modules/api.py", line 7, in <module>
    import security, charts, plugins, webconfig, domoticz
  File "/home/xbian/domoboard/modules/security.py", line 5, in <module>
    import json, simplejson, hashlib, os, bleach
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/__init__.py", line 5, in <module>
    from bleach.linkifier import (
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/linkifier.py", line 5, in <module>
    from html5lib.filters.base import Filter
ImportError: No module named base
It looks like it gets stuck on every step of the process, but now I am at the 'ImportError: No module named base' and have no clue how to continue.

Suggestions welcome

squandor
Posts: 201
Joined: Saturday 19 December 2015 23:34
Target OS: Raspberry Pi
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor » Sunday 16 April 2017 17:15

jake wrote:I tried to install the Domoboard on an Xbain RPI setup. So far I haven't succeeded:

Code: Select all

 sudo apt-get install python-setuptools
sudo easy_install flask flask-auth configobj gitpython simplejson bleach requests
sudo apt-get install git
git clone https://github.com/wez3/domoboard
sudo apt-get install python-pip
pip install setuptools --upgrade
pip install html5lib

[email protected] ~/domoboard $ python server.py -c jacco.conf
Traceback (most recent call last):
  File "server.py", line 8, in <module>
    import modules.api as api
  File "/home/xbian/domoboard/modules/api.py", line 7, in <module>
    import security, charts, plugins, webconfig, domoticz
  File "/home/xbian/domoboard/modules/security.py", line 5, in <module>
    import json, simplejson, hashlib, os, bleach
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/__init__.py", line 5, in <module>
    from bleach.linkifier import (
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/linkifier.py", line 5, in <module>
    from html5lib.filters.base import Filter
ImportError: No module named base
It looks like it gets stuck on every step of the process, but now I am at the 'ImportError: No module named base' and have no clue how to continue.

Suggestions welcome
could you try the following command:
pip install bleach --upgrade

i thought that base is an module that should be installed with bleach but maybe it needs an update.

jake
Posts: 285
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: RE: Re: Domoboard - General Discussions

Post by jake » Sunday 16 April 2017 18:56

squandor wrote:
could you try the following command:
pip install bleach --upgrade

i thought that base is an module that should be installed with bleach but maybe it needs an update.
I tried your suggestion. I needed to do it as sudo because of permission error. However, it didn't help, the error is still the same.

Verstuurd vanaf mijn GT-I9195 met Tapatalk

squandor
Posts: 201
Joined: Saturday 19 December 2015 23:34
Target OS: Raspberry Pi
Domoticz version: 3.5837
Contact:

Re: RE: Re: Domoboard - General Discussions

Post by squandor » Thursday 27 April 2017 0:08

jake wrote:
squandor wrote:
could you try the following command:
pip install bleach --upgrade

i thought that base is an module that should be installed with bleach but maybe it needs an update.
I tried your suggestion. I needed to do it as sudo because of permission error. However, it didn't help, the error is still the same.

Verstuurd vanaf mijn GT-I9195 met Tapatalk
hmm could you try the follow command:
pip install html5lib==0.999999999

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Saturday 29 April 2017 0:27

If you have some issues installing domoboard on raspbian lite or full (probably other OS's aswell) you could try to use a virtualenv. I've tested this on lite and full, both seem to work flawless (change the path /home/pi if domoboard is located somewhere else):

sudo apt-get install python-virtualenv
virtualenv /home/pi/domoboard/
cd /home/pi/domoboard/bin
source activate
cd ..
pip install -r requirements.txt
python server.py -c config.conf

Please let me know if this works for you guys, so i can modify the installation instructions on the github page :).

bbos
Posts: 9
Joined: Thursday 29 December 2016 20:52
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by bbos » Wednesday 03 May 2017 20:30

@wez3,
I had the same problem today on raspbian full, so I tried the virtualenv as you suggested... and it works like a charm.
Thx

janvier123
Posts: 34
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 » Friday 05 May 2017 20:19

is this project still active?
Any updates lately?

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Friday 05 May 2017 22:18

janvier123 wrote:is this project still active?
Any updates lately?
Yes it is. Soon we will start writing code to configure domoboard through the webinterface.

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Sunday 07 May 2017 12:46

I've created a script to easier install Domoboard. Domoboard can be installed in the current folder with the following command:
curl -L https://www.domoboard.nl/install | bash

bbos
Posts: 9
Joined: Thursday 29 December 2016 20:52
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by bbos » Sunday 07 May 2017 13:41

How can I make the domoboard run at startup?
Previously I used pm2 (on another RPi)
On my new RPi I have to run domoboard via the virtualenv, and setting it up on pm2 has not worked so far.
I have also tried putting the following commands in my rc.local:
cd domoboard/bin
source activate
cd ..
python server.py -c domo.conf

but this also didn't work

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Tuesday 09 May 2017 12:42

bbos wrote:How can I make the domoboard run at startup?
Previously I used pm2 (on another RPi)
On my new RPi I have to run domoboard via the virtualenv, and setting it up on pm2 has not worked so far.
I have also tried putting the following commands in my rc.local:
cd domoboard/bin
source activate
cd ..
python server.py -c domo.conf

but this also didn't work
Checkout the "Install as a service" instructions on the github page:
https://github.com/wez3/domoboard

This explains how to get it running under systemd.

janvier123
Posts: 34
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 » Wednesday 10 May 2017 17:58

Code: Select all

[statistics]
  [[display_components]]
    components = domoticz_temp_charts[1], domoticz_temp_charts[2]
   [[domoticz_temp_charts]]
      [[[1]]]
		Temperatuur = 13, day, temp
      [[[2]]]
		Temperatuur2 = 14, day, temp	
This does not seem to work, i see 2 blocks, but only the bottom one (2) is working, the first one is blank

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Wednesday 10 May 2017 19:56

janvier123 wrote:

Code: Select all

[statistics]
  [[display_components]]
    components = domoticz_temp_charts[1], domoticz_temp_charts[2]
   [[domoticz_temp_charts]]
      [[[1]]]
		Temperatuur = 13, day, temp
      [[[2]]]
		Temperatuur2 = 14, day, temp	
This does not seem to work, i see 2 blocks, but only the bottom one (2) is working, the first one is blank
This is a known issue. Please see:
https://github.com/wez3/domoboard/issues/28

janvier123
Posts: 34
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 » Friday 12 May 2017 20:32

Got a 2nd RPI and i wanted to install domoboard, however it didnt work
i used: 2017-04-10-raspbian-jessie-lite (Minimal Install)

So after installing over and over again, ive made a list that allowes you to install it without any issues.
So please update the install script to the following?

PLEASE NOTE: that i did not use the NOOBS install, so it can be that some lines are not needed ;)

Here is what ive done:

Code: Select all

sudo apt-get update
sudo apt-get install python-dev -y
sudo apt-get install python-pip -y
sudo apt-get install git -y
curl -L https://www.domoboard.nl/install | bash 
its up to you what to do with it, this is the most working install for me :)

wez3
Posts: 50
Joined: Friday 30 December 2016 13:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 » Friday 12 May 2017 21:36

janvier123 wrote:Got a 2nd RPI and i wanted to install domoboard, however it didnt work
i used: 2017-04-10-raspbian-jessie-lite (Minimal Install)

So after installing over and over again, ive made a list that allowes you to install it without any issues.
So please update the install script to the following?

PLEASE NOTE: that i did not use the NOOBS install, so it can be that some lines are not needed ;)

Here is what ive done:

Code: Select all

sudo apt-get update
sudo apt-get install python-dev -y
sudo apt-get install python-pip -y
sudo apt-get install git -y
curl -L https://www.domoboard.nl/install | bash 
its up to you what to do with it, this is the most working install for me :)
Thanks. Just added this to the install script :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest