The timechart collects the actual measurement data of one or more Domoticz devices, and shows them in a moving time chart.
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'
}
]
}
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.