summaryrefslogtreecommitdiffstats
path: root/collectors/node.d.plugin/sma_webbox
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-08 07:30:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-08 07:30:37 +0000
commit8a7b72f7cd1ccd547a03eb4243294e741d661d3f (patch)
tree7bc7be4a8e9e298daa1349348400aa2a653866f2 /collectors/node.d.plugin/sma_webbox
parentNew upstream version 1.11.1+dfsg (diff)
downloadnetdata-8a7b72f7cd1ccd547a03eb4243294e741d661d3f.tar.xz
netdata-8a7b72f7cd1ccd547a03eb4243294e741d661d3f.zip
Adding upstream version 1.12.0.upstream/1.12.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/node.d.plugin/sma_webbox')
-rw-r--r--collectors/node.d.plugin/sma_webbox/README.md4
-rw-r--r--collectors/node.d.plugin/sma_webbox/sma_webbox.node.js13
2 files changed, 11 insertions, 6 deletions
diff --git a/collectors/node.d.plugin/sma_webbox/README.md b/collectors/node.d.plugin/sma_webbox/README.md
index 1512c7008..cff7645df 100644
--- a/collectors/node.d.plugin/sma_webbox/README.md
+++ b/collectors/node.d.plugin/sma_webbox/README.md
@@ -1,4 +1,6 @@
+# SMA Sunny Webbox
+
[SMA Sunny Webbox](http://files.sma.de/dl/4253/WEBBOX-DUS131916W.pdf)
Example netdata configuration for node.d/sma_webbox.conf
@@ -23,3 +25,5 @@ The module supports any number of name servers, like this:
]
}
```
+
+[![analytics](https://www.google-analytics.com/collect?v=1&aip=1&t=pageview&_s=1&ds=github&dr=https%3A%2F%2Fgithub.com%2Fnetdata%2Fnetdata&dl=https%3A%2F%2Fmy-netdata.io%2Fgithub%2Fcollectors%2Fnode.d.plugin%2Fsma_webbox%2FREADME&_u=MAC~&cid=5792dfd7-8dc4-476b-af31-da2fdb9f93d2&tid=UA-64295674-3)]()
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 = {