Page 1 of 1

Combined graph (line and bar) with different time offset

Posted: Friday 09 June 2023 8:40
by reinos
Hi there,

What I want to accomplish, is the same graph domoticz has: a graph with both the current (interval 5 min) and the hour total for my solar device. (screenshot 1)

What I currently have is a bar and a line chart, but grouped per hour. I cannot see how I can make the line chart grouped per 5 min. (screenshot 2)

Any idea how I can accomplish this?

My config for this block is:

Code: Select all

blocks['solar_211'] = {
    interval: 5,
    title: 'Solar',
    width: 12,
    devices: [211],
    graph: ['line','bar'],
    lineTension: 0.4,
    format: true,
    custom : {
        "last day": {
            range: 'day',
            filter: '24 hours',
            groupBy: 'hour',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        },
        "last 2 weeks": {
            range: 'month',
            filter: '14 days',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        },
        "last 6 months": {
            range: 'year',
            filter: '6 months',
            data: {
                current: 'd.v_211',
                generation: 'd.eu_211'
            }
        }
    },
    legend: true,
    datasetColors:['blue','yellow']
}