Domoboard - General Discussions

Domoboard is a dashboard for Domoticz based on Python Flask.

Moderators: leecollings, 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.
miljume
Posts: 62
Joined: Thursday 03 December 2015 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8742
Contact:

Re: Domoboard - General Discussions

Post by miljume »

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: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Domoboard - General Discussions

Post by SwordFish »

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.
squandor
Posts: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor »

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: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Domoboard - General Discussions

Post by jake »

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

xbian@xbian ~/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: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor »

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

xbian@xbian ~/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: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: RE: Re: Domoboard - General Discussions

Post by jake »

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: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: RE: Re: Domoboard - General Discussions

Post by squandor »

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: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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: 8
Joined: Thursday 29 December 2016 19:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by bbos »

@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: 36
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 »

is this project still active?
Any updates lately?
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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: 8
Joined: Thursday 29 December 2016 19:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by bbos »

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: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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: 36
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 »

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: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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: 36
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 »

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: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by wez3 »

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 :)
janvier123
Posts: 36
Joined: Saturday 17 September 2016 22:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard - General Discussions

Post by janvier123 »

Error Found:

------------------------------------------------------------------------------------------------- First one

Code: Select all

XML Parsing Error: syntax error
Location: https://domoboard.nl/version.md?_=1495206829537
Line Number 1, Column 1:
1.0.16,1.0.18

Code: Select all

XML Parsing Error: syntax error Location: moz-nullprincipal:{d9dde203-ba69-4cea-9122-1f27dcdde6b5} Line Number 1, Column 1:
1.0.16,1.0.18
^
------------------------------------------------------------------------------------------------- 2nd one


Instellingen => Plugins
When clicking install, it just keeps loading but nothing changes
(Using FF latest version)
squandor
Posts: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard - General Discussions

Post by squandor »

janvier123 wrote:Error Found:

------------------------------------------------------------------------------------------------- First one

Code: Select all

XML Parsing Error: syntax error
Location: https://domoboard.nl/version.md?_=1495206829537
Line Number 1, Column 1:
1.0.16,1.0.18

Code: Select all

XML Parsing Error: syntax error Location: moz-nullprincipal:{d9dde203-ba69-4cea-9122-1f27dcdde6b5} Line Number 1, Column 1:
1.0.16,1.0.18
^
------------------------------------------------------------------------------------------------- 2nd one


Instellingen => Plugins
When clicking install, it just keeps loading but nothing changes
(Using FF latest version)
Hi janvier123 which plug-in did you try to install And does this happen with every plugin you try to install? And do you have you're server running in debug mode? For the first error I must ask wez3 to check so I'll get back on that one
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests