Page 1 of 1

Dashticz - Time charts (experimental)

Posted: Sunday 18 October 2020 16:13
by Lokonli
I've added a new experimental feature to the latest beta version of Dashticz: moving time charts

The timechart collects the actual measurement data of one or more Domoticz devices, and shows them in a moving time chart.
timechart2.gif
timechart2.gif (389.09 KiB) Viewed 500 times
timechart3.jpg
timechart3.jpg (25.91 KiB) Viewed 500 times
timechart2.jpg
timechart2.jpg (19.74 KiB) Viewed 500 times
Block definition for the charts shown:

Code: Select all

blocks[43] = {
    type: 'timegraph',
    values: ['NettUsage'],
    duration: 60
}

blocks['power'] = {
    type: 'timegraph',
    duration: 600,
    height: '100px',
    xLabels: false,
    values: [
        {
            idx: 43,
            value: 'NettUsage',
            label: 'Nett Usage'
        },
        {
            idx: 6,
            value: 'Usage',
            label: 'Solar',
            scale: -1,
            color: 'lightgreen'
        },

    ]
}

blocks['temps'] = {
    type: 'timegraph',
    duration: 600,
    height: '100px',
    xLabels: false,
    values: [
        {
            idx: 28,
            value: 'Temp',
            label: 'Boiler'
        },
        {
            idx: 31,
            value: 'Temp',
            label: 'Return'
        },
        {
            value: 'Temp',
            idx: 27,
            label: 'Woonkamer',
        },
        {
            value: 'Temp',
            idx: 659,
            label: 'Badkamer'
        }

    ]
}

From the code block above you can see that you have to add an array 'values'. There are two options:
1) Value as an array of field names (string). Each field name represents a field of the Domoticz device.
2) Value is an array of objects. Each object must have a field 'value'. This 'value' is the field name of the Domoticz device.

With the parameter 'idx' you select the Domoticz device id.

The parameter 'duration' is the duration of the graph in seconds.

I still might change the parameter naming. I'll start creating the documentation in the coming week. As soon as that is ready I'll create an 'official' beta release.

Re: Dashticz - Time charts (experimental)

Posted: Thursday 06 April 2023 21:49
by peterspieg
Hi,
I really like this time graph, and it is working nice on my setup.
Is it possible to change the time on the x-axis to 24 hrs settings?

Second question: is it possible to change the font-size of the labels?

Regards, Peter

Re: Dashticz - Time charts (experimental)

Posted: Friday 07 April 2023 8:00
by Doudy
Good work.
THANKS