Page 1 of 1

need help with dashticz graph

Posted: Wednesday 04 October 2023 12:03
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',
           }
       }
    }
}

Re: need help with dashticz graph

Posted: Wednesday 04 October 2023 18:42
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.

Re: need help with dashticz graph

Posted: Wednesday 04 October 2023 20:40
by willemd
thanks, that explains why I was struggling :-)
I will work with a graph with monthly (and other period) totals instead for now.