summaryrefslogtreecommitdiffstats
path: root/collectors/node.d.plugin/sma_webbox
diff options
context:
space:
mode:
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 = {