From 8a7b72f7cd1ccd547a03eb4243294e741d661d3f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 8 Feb 2019 08:30:37 +0100 Subject: Adding upstream version 1.12.0. Signed-off-by: Daniel Baumann --- collectors/node.d.plugin/sma_webbox/sma_webbox.node.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'collectors/node.d.plugin/sma_webbox/sma_webbox.node.js') diff --git a/collectors/node.d.plugin/sma_webbox/sma_webbox.node.js b/collectors/node.d.plugin/sma_webbox/sma_webbox.node.js index b9a168adc..aa60ae816 100644 --- a/collectors/node.d.plugin/sma_webbox/sma_webbox.node.js +++ b/collectors/node.d.plugin/sma_webbox/sma_webbox.node.js @@ -73,10 +73,11 @@ var webbox = { if(found > 0 && service.added !== true) service.commit(); + // Grid Current Power Chart if(d['GriPwr'].value !== null) { - var id = 'smawebbox_' + service.name + '.current'; - var chart = webbox.charts[id]; + const id = 'smawebbox_' + service.name + '.current'; + let chart = webbox.charts[id]; if(typeof chart === 'undefined') { chart = { @@ -111,8 +112,8 @@ var webbox = { } if(d['GriEgyTdy'].value !== null) { - var id = 'smawebbox_' + service.name + '.today'; - var chart = webbox.charts[id]; + const id = 'smawebbox_' + service.name + '.today'; + let chart = webbox.charts[id]; if(typeof chart === 'undefined') { chart = { @@ -147,8 +148,8 @@ var webbox = { } if(d['GriEgyTot'].value !== null) { - var id = 'smawebbox_' + service.name + '.total'; - var chart = webbox.charts[id]; + const id = 'smawebbox_' + service.name + '.total'; + let chart = webbox.charts[id]; if(typeof chart === 'undefined') { chart = { -- cgit v1.2.3