summaryrefslogtreecommitdiffstats
path: root/collectors/node.d.plugin/sma_webbox/sma_webbox.node.js
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/node.d.plugin/sma_webbox/sma_webbox.node.js')
-rw-r--r--collectors/node.d.plugin/sma_webbox/sma_webbox.node.js13
1 files changed, 7 insertions, 6 deletions
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 = {