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.
Eoreh
Posts: 65
Joined: Tuesday 13 October 2015 13:50
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Eoreh »

Thx for help and ofc share this. Finally its starts on my RPI3 :D
Now i have to figure how this works and on start do little "localization" for Polish language.
Next to completing the list of sensors
I dont need also "login pages". :D

Thx again.
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by blackdog65 »

Hi,
Sorry if this appears dense, but I'm not getting very far with this.

The install looks to have gone ok but when I run

Code: Select all

python server.py -c example.conf
I get

Code: Select all

Device with 13 is not available in Domoticz
which I expect as I haven't set devices yet... I want to get it to run before I go through that LOOOOONG process ;)
But when I go to 192.168.1.120:80 I get the nginx welcome page
Where am I going wrong? Do I need to kill nginx?

Many thanks
Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
squandor
Posts: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by squandor »

I believe that it's necessary to have at least 1 device in the dashboard.
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

Hi blackdog65,

If you are going to run the dashboard on port 80, nginx needs to be killed. You can also run the dashboard on a different port by specifying it in the flask_url config setting (e.g. 192.168.1.120:5000) starts the dashboard on port 5000.

The error "Device with 13 is not available in Domoticz" means that there is no device with IDX 13 available in Domoticz, however u probably specified it somewhere in the config. The dashboard checks whether devices exist in Domoticz before starting. So make sure only existing IDX's from Domoticz are specified in the config.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Siewert308SW »

blackdog65 wrote:Hi,
Sorry if this appears dense, but I'm not getting very far with this.

The install looks to have gone ok but when I run

Code: Select all

python server.py -c example.conf
I get

Code: Select all

Device with 13 is not available in Domoticz
which I expect as I haven't set devices yet... I want to get it to run before I go through that LOOOOONG process ;)
But when I go to 192.168.1.120:80 I get the nginx welcome page
Where am I going wrong? Do I need to kill nginx?

Many thanks
Sean
lol...

encountered the same thing and ending up committing out all devices in the conf and changed one idx to one of my own just to see it running.

question:
I have a 2x a Youless for gas and electric.
But if i fill in the idx i get no stats...

Code: Select all

[statistics]
  [[display_components]]
    components = domoticz_smart_charts[1], domoticz_smart_charts[2], domoticz_temp_charts
   [[domoticz_smart_charts]]
      [[[1]]]
        Energie = 80, week, energy
      [[[2]]]
        Gas = 82, month, gas
   [[domoticz_temp_charts]]
    #Temperatuur = 74, day, temp
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
Awst6000
Posts: 108
Joined: Thursday 12 February 2015 7:51
Target OS: Linux
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Awst6000 »

Does this run on Windows 10 too for testing purposes?
squandor
Posts: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by squandor »

I got it running on an Windows 10 machine you just have to make sure to install all the Python dependencys
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

@Siewert

Is the type of the domoticz IDXs "P1 Smart Meter"? We've tested it again that, that works.

Here is a working config:
[[domoticz_smart_charts]]
[[[1]]]
Stroomverbruik = 155, week, energy
[[[2]]]
Gas = 156, month, gas

Removing [[domoticz_temp_charts]] might help, as its not used (also from display_components).
squandor
Posts: 213
Joined: Saturday 19 December 2015 22:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by squandor »

Siewert308SW wrote:
blackdog65 wrote:Hi,
Sorry if this appears dense, but I'm not getting very far with this.

The install looks to have gone ok but when I run

Code: Select all

python server.py -c example.conf
I get

Code: Select all

Device with 13 is not available in Domoticz
which I expect as I haven't set devices yet... I want to get it to run before I go through that LOOOOONG process ;)
But when I go to 192.168.1.120:80 I get the nginx welcome page
Where am I going wrong? Do I need to kill nginx?

Many thanks
Sean

lol...

encountered the same thing and ending up committing out all devices in the conf and changed one idx to one of my own just to see it running.

question:
I have a 2x a Youless for gas and electric.
But if i fill in the idx i get no stats...

Code: Select all

[statistics]
  [[display_components]]
    components = domoticz_smart_charts[1], domoticz_smart_charts[2], domoticz_temp_charts
   [[domoticz_smart_charts]]
      [[[1]]]
        Energie = 80, week, energy
      [[[2]]]
        Gas = 82, month, gas
   [[domoticz_temp_charts]]
    #Temperatuur = 74, day, temp
Everything looks fine but I suggest to remove domoticz_temp_charts from the display components because you comment out the idx.
We didn't had any youless devices so possibly the data that returns from domoticz is different than an p1 smart meter.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Siewert308SW »

wez3 wrote:@Siewert

Is the type of the domoticz IDXs "P1 Smart Meter"? We've tested it again that, that works.

Here is a working config:
[[domoticz_smart_charts]]
[[[1]]]
Stroomverbruik = 155, week, energy
[[[2]]]
Gas = 156, month, gas

Removing [[domoticz_temp_charts]] might help, as its not used (also from display_components).
Type is not p1.
Reinstalling Domoboard at the moment, will try your suggestion.
Hope it works as it is one of my main most wanted features to show of on the wallmount ;-)

Code: Select all

  	81	Electra - Meterstand	80	1	Electra - Meterstand	YouLess Meter	YouLess counter	29760.717 kWh 2058 Watt
  	82	Gas - Meterstand	80	1	Gas - Meterstand	YouLess Meter	YouLess counter	17441.279 kWh 0 Watt
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

You could check the Domoticz log page (behind the "Log" button) of the device. If the javascript function: ShowSmartLog is called in domoticz, it should work in Domoboard as well. We are using the original Domoticz javascript functions (slightly modified) to display the graphs.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Siewert308SW »

wez3 wrote:You could check the Domoticz log page (behind the "Log" button) of the device. If the javascript function: ShowSmartLog is called in domoticz, it should work in Domoboard as well. We are using the original Domoticz javascript functions (slightly modified) to display the graphs.
Got something to display, but only total usage of the counter, week and month.
But current usage is something i can't get, whats the command for current usage?
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

Is domoticz able to display this current usage in a graph?

If so, I would recommend you to do the following:
Open Chrome, turn on inspect > network tab.
Visit the Log page of your Youless device. API calls are visible now to the Domoticz API.
Select the API call you want in Domoboard and fill it into the config. For example:

/json.htm?type=graph&sensor=counter&idx=155&range=week

becomes on our config:
Wekelijks energie verbruik = 155, week, energy

The last options can be one of the following:
"energy"
"gas"
"water"
"counter"

If you can't figure it out with above information, can you share the API call you want to displayed on Domoboard so i can figure out why this should not work in the current setup?
jjnj

Re: Domoboard a New Dashboard using Domoticz as backend

Post by jjnj »

Is it necessary to run Domoboard on the same system as Domoticz? I have Domoticz on a Windows machine currently.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Siewert308SW »

jjnj wrote:Is it necessary to run Domoboard on the same system as Domoticz? I have Domoticz on a Windows machine currently.
Nope, running it on a other raspi to test.
Just fill the ip and username of you domoticz server in the example conf and you capable of running it every where
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by blackdog65 »

Ok!
Many thanks for the help, I have it running... sort of. :?

I have dashboard partially populated.
The switches.html needed to be edited so that "Schakelaars" became "Switches". I assume there will be many more translations needed once I dig deeper. :lol:
Weather and news feeds working ok for UK. :D
None of my navbar links work :( (except "Settings"), all lead to 404 and then back to previous page. Is this because I translated them?... though some are unchanged...

The whole thing looks very good though.
I have a stack of old 7" tablets which I have modded to wireless charging that I plan to use around the house on wall docks... this project is perfect for them! :D :D

Keep up the good work

Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

A navbar item needs to exist in the config, otherwise 404 pages are thrown. If you specify the following navbar:
[navbar]
[[menu]]
Dashboard = dashboard

A component dashboard needs to exists in the rest of the config. e.g.:
[dashboard]
[[display_components]]
components = top_tiles
[[top_tiles]]
Temperatuur tuin = 31, fire

I've created the link that is used to generate the pages in bold.
User avatar
Siewert308SW
Posts: 290
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by Siewert308SW »

wez3 wrote:Is domoticz able to display this current usage in a graph?

If so, I would recommend you to do the following:
Open Chrome, turn on inspect > network tab.
Visit the Log page of your Youless device. API calls are visible now to the Domoticz API.
Select the API call you want in Domoboard and fill it into the config. For example:

/json.htm?type=graph&sensor=counter&idx=155&range=week

becomes on our config:
Wekelijks energie verbruik = 155, week, energy

The last options can be one of the following:
"energy"
"gas"
"water"
"counter"

If you can't figure it out with above information, can you share the API call you want to displayed on Domoboard so i can figure out why this should not work in the current setup?
Nevermind, can't explain what i mean in english.
But the current usage like displayed in the widget o de Domoticz dashboard is what i mean.
The graph shows what it is expected to do, year, week only daily isn't working.
Only thing is that the graph in Domoticz shows for 24hr usage per hour total and per 5 min line.

For the current usage i amended the line saying Stroomverbruik TV = 13, plug to my Youless idx
It does show a output but it's the total counter of my Youless not the current usage.

I like the idea of your project and looks promising.
Don't have chrome installed, Already working on it since last night.
For me it's to much work to get it al working as i'm short on time.
Thx for the help and will keep a eye on this thread and when i do have more time i will see what i can do.

Thx for the afford and keep up the good working...
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
blackdog65
Posts: 311
Joined: Tuesday 17 June 2014 18:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Norfolk, UK
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by blackdog65 »

wez3 wrote:A navbar item needs to exist in the config, otherwise 404 pages are thrown. If you specify the following navbar:
[navbar]
[[menu]]
Dashboard = dashboard

A component dashboard needs to exists in the rest of the config. e.g.:
[dashboard]
[[display_components]]
components = top_tiles
[[top_tiles]]
Temperatuur tuin = 31, fire

I've created the link that is used to generate the pages in bold.
Many thanks,

I think I'll clean out the existing config as it has a mass of commented out info and I think I'm getting confused.
I'll start from scratch as per your instructions.

Thanks again
Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
wez3
Posts: 49
Joined: Friday 30 December 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoboard a New Dashboard using Domoticz as backend

Post by wez3 »

Siewert308SW wrote:
wez3 wrote:Is domoticz able to display this current usage in a graph?

If so, I would recommend you to do the following:
Open Chrome, turn on inspect > network tab.
Visit the Log page of your Youless device. API calls are visible now to the Domoticz API.
Select the API call you want in Domoboard and fill it into the config. For example:

/json.htm?type=graph&sensor=counter&idx=155&range=week

becomes on our config:
Wekelijks energie verbruik = 155, week, energy

The last options can be one of the following:
"energy"
"gas"
"water"
"counter"

If you can't figure it out with above information, can you share the API call you want to displayed on Domoboard so i can figure out why this should not work in the current setup?
Nevermind, can't explain what i mean in english.
But the current usage like displayed in the widget o de Domoticz dashboard is what i mean.
The graph shows what it is expected to do, year, week only daily isn't working.
Only thing is that the graph in Domoticz shows for 24hr usage per hour total and per 5 min line.

For the current usage i amended the line saying Stroomverbruik TV = 13, plug to my Youless idx
It does show a output but it's the total counter of my Youless not the current usage.

I like the idea of your project and looks promising.
Don't have chrome installed, Already working on it since last night.
For me it's to much work to get it al working as i'm short on time.
Thx for the help and will keep a eye on this thread and when i do have more time i will see what i can do.

Thx for the afford and keep up the good working...
To bad that your short on time. I think i get what you mean, however its pretty hard to debug without the device itself. Do not hesitate to contact us whenever you have time to continue :), that way we can keep improving the dashboard.

Also i see that the config can be pretty hard to configure the dashboard. We will see whether we can simplify this in the future.

@Sean
Yes the best way is to start with a clean config, adding components one by one. Like that its pretty easy to debug :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest