
Tnx,
Antoinne
Moderators: leecollings, htilburgs, robgeerts
Code: Select all
blocks['cumalatief'] = {
title: 'P Elektriciteitsmeter',
devices: [idx], // <---- idx of your P1 device
graph: 'line',
borderColors:['rgba(83, 51, 198, 1)'],
datasetColors: ['rgba(83, 51, 198, 0.33)'],
legend: true
}
Code: Select all
columns[1] = {}
columns[1]['width'] = 12;
columns[1]['blocks'] = [ 'cumalatief']
Code: Select all
config['standard_graph'] = 'day';
No, this is correct for the master and the beta. These will only change if you specify custom data in your block.
This is because P1 meters have multiple datasets. This can be demonstrated by using my example block above, i.e. without any custom data, and with legend set to true. The legend will then show each of your datasets and their key names, e.g. v2, v_2, etc. If you only want to display data for v2 (for example), then add this to your block:
Code: Select all
graphTypes: ['v2'],
Code: Select all
http://[DOMOTICZ_IP_AND_PORT]/json.htm?type=graph&sensor=counter&idx=[IDX]&range=day
Code: Select all
[code]http://[DOMOTICZ_IP_AND_PORT]/json.htm?type=devices&rid=[IDX]
Sorry, I cannot help you with this, I do not use Bienradar. Instead, I use Rainviewer. https://www.rainviewer.com/api.htmlAntoinne wrote: ↑Friday 17 April 2020 0:24 The next challenge will be incorporating information from the JSON Buienradar offers. I already have some 20 Buienradar API-devices running on Domoticz/Dashticz, but now I need to figure out how to incorporate data that is only available through JSON on Buienradar.
Code: Select all
blocks['cumalatief'] = {
title: 'P Elektriciteitsmeter',
devices: [8],
graph: 'line',
graphTypes: ['eu_8'],
borderColors:['rgba(83, 51, 198, 1)'],
datasetColors: ['rgba(83, 51, 198, 0.33)'],
lineFill: [true],
buttonsText: ['Today', 'Week', 'Month'],
maxTicksLimit: 14,
zoom: 'x',
debugButton: true,
legend: {
'Cumalatief' : 'eu_8'
}
}
Users browsing this forum: No registered users and 1 guest