need help with dashticz graph

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

need help with dashticz graph

Post by willemd »

I need some help creating a graph and dashticz.

I have two devices:
Energy delivered to EV with idx 134 and
Energy consumed by EV with idx 169.

134 is of type General, kWh
169 is of type RFXmeter, counter (also showing kWh)
The types are determined by the plugins.

I want to show the cumulative total of each device, day after day, for a selected period, for example last month.

I am totally lost on how to do this. All my efforts have only resulted in showing the individual increases on each day (similar to the graph already available in domoticz), but not the cumulative total of that day.

When I run the jsons against domoticz I can see the data is present. I just can't figure out how to code this in dashticz.

Can anyone give me a graph definition for this? Similar to below code?

Code: Select all

blocks['graph_EV'] = {
    title: 'Delivered vs Used',
    width: 12,
    devices: [134,169],
    custom: {
        "month": {
            range: 'month',
            filter: '1 month',
            data: {
                delivered: 'd.v_134',
                used: 'd.v_169',
           }
       }
    }
}
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: need help with dashticz graph

Post by Lokonli »

That's not possible at the moment, but I think it's a nice feature.

I'll add it to the feature request list.
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: need help with dashticz graph

Post by willemd »

thanks, that explains why I was struggling :-)
I will work with a graph with monthly (and other period) totals instead for now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest