Dashticz - Time charts (experimental)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Dashticz - Time charts (experimental)

Post 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 447 times
timechart3.jpg
timechart3.jpg (25.91 KiB) Viewed 447 times
timechart2.jpg
timechart2.jpg (19.74 KiB) Viewed 447 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.
peterspieg
Posts: 16
Joined: Sunday 19 March 2023 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Purmerend
Contact:

Re: Dashticz - Time charts (experimental)

Post 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
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Time charts (experimental)

Post by Doudy »

Good work.
THANKS
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest