Change Total Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
hemant5400z
Posts: 101
Joined: Monday 05 November 2018 17:41
Target OS: Linux
Domoticz version:
Contact:

Change Total

Post by hemant5400z »

Hi,

Just started with dashticz, and look great!

I have a graph which shows me the monthly totals and cumulated totals. What I would like in the graph header (currtly shwos daily totals. to shows me the meter totals.

Is that possible as it only shows me the day total which is the eu, i think but do not have that in the year total en not sure where to change the firue that appreas there.

Hemant
hemant5400z
Posts: 101
Joined: Monday 05 November 2018 17:41
Target OS: Linux
Domoticz version:
Contact:

Re: Change Total

Post by hemant5400z »

Hi,

Anyone able to assist?

In the header I currently have the total = xxx which shows me the day total however i would like to see the total of the the meter rather than the day total.

I tried to solve it with custom header as a calculated value but the value stays empty so a hint would be appreciated to get the total value.

Hemant
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Change Total

Post by Lokonli »

hemant5400z wrote: Thursday 29 April 2021 14:16 Hi,

Anyone able to assist?

In the header I currently have the total = xxx which shows me the day total however i would like to see the total of the the meter rather than the day total.

I tried to solve it with custom header as a calculated value but the value stays empty so a hint would be appreciated to get the total value.

Hemant
For my solar panels I use an energy device.

The total counter is reported in the Data field. I can use the following block to show this counter in the graph header:

Code: Select all

blocks['graph_6'] = {
    devices: [6],
    graphTypes: ['v'],
    debugButton: true,
    flash: 250,
    height: '200px',
    customHeader: '"Total counter: " + devices[6].Data '
}
(customHeader starts with a single tick, followed by a double tick)

For other device types you may have to use other device fields. You can find the correct data field from the Domoticz json response:

Code: Select all

http://domoticz ip: port/json.htm?type=devices&rid=6
You have to replace 6 with your own Domoticz device id.
hemant5400z
Posts: 101
Joined: Monday 05 November 2018 17:41
Target OS: Linux
Domoticz version:
Contact:

Re: Change Total

Post by hemant5400z »

Hi Lokonli,

That did the trick, did not know where to look i was using V_xx and V2_XX and C1 and C2 to solve this but it did not work.

Thanks finally got it working, i need to work with Data0 and Data1 in my case.

Cheers,
Hemant
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest