Dashticz - Gas graph no longer showing usage

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Dashticz - Gas graph no longer showing usage

Post by Sjonnie2017 »

Hi All,

It's been a while :)

I noticed that since a few weeks my gas usage graph is no longer showing the usage. An example of what I see nowadays:

Image

I examined the block and made some adjustments to the height of the block but had no luck. My block looks like this:

Code: Select all

blocks[grafiek_gas] = {}
blocks[grafiek_gas]['title'] = 'Gas';
blocks[grafiek_gas]['devices'] = [200];
blocks[grafiek_gas]['width'] = 12;
blocks[grafiek_gas]['height'] = '400px';
blocks[grafiek_gas]['interval'] = 2;
blocks[grafiek_gas]['graphTypes'] = ['v', 'c'];
blocks[grafiek_gas]['zoom'] = 'xy';
blocks[grafiek_gas]['toolTipStyle'] = true;
blocks[grafiek_gas]['debugButton'] = true;
blocks[grafiek_gas]['datasetColors'] = ['yellow', 'red'];
blocks[grafiek_gas]['legend'] = {'v_200': 'Verbruik', 'c_200': 'Totaal'};
blocks[grafiek_gas]['custom'] = {
        "Laatste uren": {range: 'day',filter: '4 hours',data: {Verbruik: 'd.v_200', Totaal: 'd.c_200'}},
        "Vandaag": {range: 'day',filter: '24 hours',data: {Verbruik: 'd.v_200', Totaal: 'd.c_200'}},
        "Afgelopen maand": {ylabels: ['M³', 'Ʃ M³'],range: 'year',filter: '1 months',data: {Verbruik: 'd.v_200', Totaal: 'd.c_200'}}
         }
 

Note that I define the graph at the beginning of my config.js

Any thoughts on how to get my graph working again?

Thanks!

EDIT: The graph in Domoticz itself works. So it has to be a setting in Dashticz (I hope :-) )
Attachments
Gas Graph not showing usage.jpg
Gas Graph not showing usage.jpg (57.99 KiB) Viewed 262 times
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Gas graph no longer showing usage

Post by Lokonli »

It's caused by the following line:

Code: Select all

blocks[grafiek_gas]['legend'] = {'v_200': 'Verbruik', 'c_200': 'Totaal'};
You have defined a legend consisting of v_200 and c_200, but since you are using custom data these data fields don't exist anymore.

If you want to show the legend you could use the following instead:

Code: Select all

blocks[grafiek_gas]['legend'] = true;
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Dashticz - Gas graph no longer showing usage

Post by Sjonnie2017 »

Hi Lokonli,

That did it! Graph is working again. Thanks!
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest