diff --git a/visu/GrafanaExample.png b/visu/GrafanaExample.png deleted file mode 100644 index a32491c..0000000 Binary files a/visu/GrafanaExample.png and /dev/null differ diff --git a/visu/Smartmeter Dashboard.json b/visu/Smartmeter Dashboard.json new file mode 100644 index 0000000..34f0887 --- /dev/null +++ b/visu/Smartmeter Dashboard.json @@ -0,0 +1,2010 @@ +{ + "__inputs": [ + { + "name": "DS_INFLUXDB-FLUX", + "label": "InfluxDB-flux", + "description": "", + "type": "datasource", + "pluginId": "influxdb", + "pluginName": "InfluxDB" + } + ], + "__elements": [], + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "8.4.4" + }, + { + "type": "datasource", + "id": "influxdb", + "name": "InfluxDB", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "marcusolsson-hourly-heatmap-panel", + "name": "Hourly heatmap", + "version": "2.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": false, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "limit": 100, + "name": "Annotations & Alerts", + "showIn": 0, + "type": "dashboard" + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 48, + "panels": [], + "title": "Live Daten", + "type": "row" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "m3" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 39, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "alias": "1", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "hide": false, + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -1d)\n |> filter(fn: (r) =>\n r.topic == \"energy/gas/Verbrauch\"\n )\n |> last()", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkenergieL1" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 1000" + ], + "type": "math" + } + ] + ], + "tags": [] + } + ], + "title": "Zählerstand Gas", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "m3" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 22, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\n\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 5)}01-01T00:00:00Z\") from(bucket: \"gas-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/gas/Verbrauch\") |> sum()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Gasverbrauch dieses Jahr", + "type": "stat" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "currencyEUR" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 16, + "y": 1 + }, + "id": 41, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\n\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 5)}01-01T00:00:00Z\") from(bucket: \"gas-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/gas/Verbrauch\") |> sum()\n|> map(fn: (r) => ({\n r with\n _value: r._value * 0.86868\n })\n )", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Gaskosten dieses Jahr", + "transformations": [], + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 3, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "watth" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 0, + "y": 3 + }, + "id": 12, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "alias": "1", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "hide": false, + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -1d)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkenergie_L1-L3\"\n )\n |> last()", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkenergieL1" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + }, + { + "params": [ + " / 1000" + ], + "type": "math" + } + ] + ], + "tags": [] + } + ], + "title": "Zählerstand Strom", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kwatth" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 8, + "y": 3 + }, + "id": 40, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\n\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 5)}01-01T00:00:00Z\") from(bucket: \"smartmeter-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/Wirkenergie_L1-L3\") |> sum()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Stromverbrauch dieses Jahr", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "currencyEUR" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 8, + "x": 16, + "y": 3 + }, + "id": 42, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\n\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 5)}01-01T00:00:00Z\") from(bucket: \"smartmeter-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/Wirkenergie_L1-L3\") |> sum()\n|> map(fn: (r) => ({\n r with\n _value: r._value * 0.2523\n })\n )", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Stromkosten dieses Jahr", + "transformations": [], + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 6000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1000 + }, + { + "color": "red", + "value": 2500 + } + ] + }, + "unit": "watt" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 0, + "y": 5 + }, + "id": 26, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L1\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL1" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Wirkleistung L1", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 6000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1000 + }, + { + "color": "red", + "value": 2500 + } + ] + }, + "unit": "watt" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 8, + "y": 5 + }, + "id": 27, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L2\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL2" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Wirkleistung L2", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 6000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1000 + }, + { + "color": "red", + "value": 2500 + } + ] + }, + "unit": "watt" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 16, + "y": 5 + }, + "id": 28, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L3\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL3" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Wirkleistung L3", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 40, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 10 + }, + { + "color": "red", + "value": 25 + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 0, + "y": 8 + }, + "id": 36, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Strom_L1\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL1" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Strom L1", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 40, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 10 + }, + { + "color": "red", + "value": 25 + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 8, + "y": 8 + }, + "id": 37, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Strom_L2\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL1" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Strom L2", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 40, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 10 + }, + { + "color": "red", + "value": 25 + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 16, + "y": 8 + }, + "id": 38, + "links": [], + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.4.4", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: -5m)\n |> filter(fn: (r) =>\n r.topic == \"energy/Strom_L3\"\n )\n |> last()", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL1" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [] + } + ], + "title": "Strom L3", + "type": "bargauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 95, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "watt" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [ + { + "id": "displayName", + "value": "Wirkleistung L1" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "displayName", + "value": "Wirkleistung L2" + } + ] + }, + { + "matcher": { + "id": "byFrameRefID", + "options": "C" + }, + "properties": [ + { + "id": "displayName", + "value": "Wirkleistung L3" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Strom L1" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Strom L2" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Strom L3" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Wirkleistung L1" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Wirkleistung L2" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Wirkleistung L3" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 13, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 2, + "links": [], + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.3.3", + "targets": [ + { + "alias": "Wirkleistung L1", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "linear" + ], + "type": "fill" + } + ], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L1\"\n )", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL1" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Wirkleistung L2", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "linear" + ], + "type": "fill" + } + ], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L2\"\n )", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL2" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Wirkleistung L3", + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "linear" + ], + "type": "fill" + } + ], + "measurement": "energy", + "orderByTime": "ASC", + "policy": "default", + "query": "from(bucket: \"smartmeter\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r.topic == \"energy/Wirkleistung_L3\"\n )", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "WirkleistungL3" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Leistung", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 46, + "panels": [ + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "bars", + "fillOpacity": 90, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "displayName": "Wirkenergie", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kwatth" + }, + "overrides": [] + }, + "gridPos": { + "h": 13, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 35, + "interval": "", + "links": [], + "options": { + "legend": { + "calcs": [ + "sum" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.3.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\r\n\r\nday = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 10)}T00:00:00+01:00\") from(bucket: \"smartmeter-downsampled-spread\")|> range(start: day) |> filter(fn: (r) => r.topic == \"energy/Wirkenergie_L1-L3\") |> aggregateWindow(\r\n every: 1h,\r\n fn: sum,\r\n timeSrc: \"_start\",\r\n createEmpty: false\r\n)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "timeFrom": "now/d", + "title": "Tagesverbrauch / h", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 1, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "displayName": "Wirkenergie", + "links": [ + { + "title": "Details für den Tag", + "url": "/d/T8Kb9UJnz/daily-detail?orgId=1&var-variableDay=${__value.time}" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kwatth" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 38 + }, + "id": 50, + "interval": "", + "links": [], + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "sum" + ], + "displayMode": "table", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "pluginVersion": "8.3.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\r\n\r\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 8)}01T00:00:00Z\") from(bucket: \"smartmeter-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/Wirkenergie_L1-L3\") |> aggregateWindow(\r\n every: 24h,\r\n fn: sum,\r\n timeSrc: \"_start\",\r\n createEmpty: false\r\n)\r\n", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "timeFrom": "now/M", + "title": "Monatsverbrauch / Tag", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-RdYlGr" + }, + "custom": { + "calculation": "last", + "colorPalette": "interpolateRdYlGn", + "colorSpace": "rgb", + "groupBy": 60, + "invertPalette": true, + "nullValueColor": "rgb(155, 155, 155)" + }, + "mappings": [], + "max": 1.5, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "kwatth" + }, + "overrides": [] + }, + "gridPos": { + "h": 16, + "w": 24, + "x": 0, + "y": 50 + }, + "hideTimeOverride": false, + "id": 44, + "links": [], + "maxDataPoints": 8760, + "options": { + "from": "0", + "legendGradientQuality": "high", + "regions": [], + "showCellBorder": true, + "showLegend": false, + "showTooltip": true, + "showValueIndicator": false, + "timeFieldName": "Time", + "to": "0", + "valueFieldName": "value" + }, + "pluginVersion": "8.3.3", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "${DS_INFLUXDB-FLUX}" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "import \"strings\"\r\n\r\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 5)}01-01T00:00:00Z\") from(bucket: \"smartmeter-downsampled-spread\") |> range(start: month) |> filter(fn: (r) => r.topic == \"energy/Wirkenergie_L1-L3\") |> aggregateWindow(\r\n every: 1h,\r\n fn: sum,\r\n timeSrc: \"_start\",\r\n createEmpty: true\r\n)", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "timeFrom": "now/y", + "title": "Jahresverbrauch / Tag", + "type": "marcusolsson-hourly-heatmap-panel" + } + ], + "title": "Historische Daten", + "type": "row" + } + ], + "refresh": "10s", + "schemaVersion": 35, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "hidden": false, + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Smartmeter Dashboard", + "uid": "ES9M3o2ik", + "version": 119, + "weekStart": "monday" +} \ No newline at end of file diff --git a/visu/dashboard.png b/visu/dashboard.png new file mode 100644 index 0000000..83b8ca8 Binary files /dev/null and b/visu/dashboard.png differ diff --git a/visu/piMeter-grafana.json b/visu/piMeter-grafana.json deleted file mode 100644 index f1e7890..0000000 --- a/visu/piMeter-grafana.json +++ /dev/null @@ -1,1143 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": false, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "limit": 100, - "name": "Annotations & Alerts", - "showIn": 0, - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 1, - "id": 1, - "links": [], - "panels": [ - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "decimals": 2, - "format": "kwatth", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 12, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "alias": "1", - "groupBy": [], - "hide": false, - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(\"sum_Gesamt\") / 1000 FROM \"downsampled_energy\" fill(null)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "WirkenergieL1" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [ - " / 1000" - ], - "type": "math" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Verbrauch Gesamt", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": null, - "decimals": 2, - "format": "currencyEUR", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 22, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "alias": "1", - "groupBy": [], - "hide": false, - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT (sum(\"sum_Gesamt\") / 1000) * 0.27 FROM \"downsampled_energy\" fill(null)", - "rawQuery": true, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "WirkenergieL1" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [ - " / 1000" - ], - "type": "math" - } - ] - ], - "tags": [] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Kosten", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "datasource": null, - "gridPos": { - "h": 3, - "w": 8, - "x": 0, - "y": 2 - }, - "id": 26, - "links": [], - "options": { - "displayMode": "lcd", - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "max": 3600, - "min": 0, - "nullValueMode": "connected", - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1000 - }, - { - "color": "red", - "value": 2500 - } - ], - "unit": "watt" - }, - "override": {}, - "values": true - }, - "orientation": "horizontal" - }, - "pluginVersion": "6.5.2", - "targets": [ - { - "groupBy": [], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "WirkleistungL1" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Wirkleistung L1", - "type": "bargauge" - }, - { - "cacheTimeout": null, - "datasource": null, - "gridPos": { - "h": 3, - "w": 8, - "x": 8, - "y": 2 - }, - "id": 27, - "links": [], - "options": { - "displayMode": "lcd", - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "max": 3600, - "min": 0, - "nullValueMode": "connected", - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1000 - }, - { - "color": "red", - "value": 2500 - } - ], - "unit": "watt" - }, - "override": {}, - "values": true - }, - "orientation": "horizontal" - }, - "pluginVersion": "6.5.2", - "targets": [ - { - "groupBy": [], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "WirkleistungL2" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Wirkleistung L2", - "type": "bargauge" - }, - { - "cacheTimeout": null, - "datasource": null, - "gridPos": { - "h": 3, - "w": 8, - "x": 16, - "y": 2 - }, - "id": 28, - "links": [], - "options": { - "displayMode": "lcd", - "fieldOptions": { - "calcs": [ - "lastNotNull" - ], - "defaults": { - "mappings": [ - { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" - } - ], - "max": 3600, - "min": 0, - "nullValueMode": "connected", - "thresholds": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1000 - }, - { - "color": "red", - "value": 2500 - } - ], - "unit": "watt" - }, - "override": {}, - "values": true - }, - "orientation": "horizontal" - }, - "pluginVersion": "6.5.2", - "targets": [ - { - "groupBy": [], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "WirkleistungL3" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Wirkleistung L3", - "type": "bargauge" - }, - { - "aliasColors": { - "Strom L1": "red", - "Strom L2": "purple", - "Strom L3": "orange" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "influx", - "decimals": 2, - "fill": 10, - "fillGradient": 9, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 5 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 0.5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - {} - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "Strom L1", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "StromL1" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "alias": "Strom L2", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "StromL2" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - }, - { - "alias": "Strom L3", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "linear" - ], - "type": "fill" - } - ], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "refId": "C", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "StromL3" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Strom", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "amp", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "dateTimeFromNow", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "L1": "light-green", - "L2": "light-green", - "L3": "light-green" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "Flux (InfluxDB) [BETA]", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 15 - }, - "hiddenSeries": false, - "id": 21, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null as zero", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "query": "import \"strings\"\n\nday = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 10)}T00:00:00+01:00\") from(bucket: \"piMeter\")|> range(start: day) |> filter(fn: (r) => r._measurement == \"downsampled_energy\" and r._field == \"sum_Gesamt\") |> aggregateWindow(\n every: 1h,\n fn: last,\n timeSrc: \"_start\",\n createEmpty: false\n)", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": "now/d", - "timeRegions": [], - "timeShift": null, - "title": "Verbrauch / h", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "watth", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "L1": "green", - "L2": "green", - "L3": "green" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "Flux (InfluxDB) [BETA]", - "decimals": null, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 24, - "x": 0, - "y": 21 - }, - "hiddenSeries": false, - "id": 23, - "interval": "", - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": true, - "values": true - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null as zero", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "query": "import \"strings\"\n\nmonth = time(v: \"${strings.substring(v: string(v: now()), start: 0, end: 8)}01T00:00:00Z\") from(bucket: \"piMeter\") |> range(start: month) |> filter(fn: (r) => r._measurement == \"downsampled_energy\" and r._field == \"sum_Gesamt\") |> aggregateWindow(\n every: 24h,\n fn: sum,\n timeSrc: \"_start\",\n createEmpty: false\n)", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": [], - "timeFrom": "now/M", - "timeRegions": [], - "timeShift": null, - "title": "Verbrauch / Tag", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "watth", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - " ": "light-green" - }, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "Flux (InfluxDB) [BETA]", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 30 - }, - "hiddenSeries": false, - "id": 30, - "interval": "", - "legend": { - "avg": false, - "current": false, - "hideZero": true, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "nullPointMode": "null as zero", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "hide": false, - "query": "today = from(bucket: \"piMeter\") |> range(start: -31d) |> filter(fn: (r) => r._measurement == \"downsampled_energy\" and r._field == \"sum_Gesamt\") |> aggregateWindow(\n every: 24h,\n fn: sum,\n timeSrc: \"_start\",\n createEmpty: false\n) yesterday = from(bucket: \"piMeter\") |> range(start: -62d, stop: -31d) |> filter(fn: (r) => r._measurement == \"downsampled_energy\" and r._field == \"sum_Gesamt\") |> aggregateWindow(\n every: 24h,\n fn: sum,\n timeSrc: \"_start\",\n createEmpty: false\n) join(tables:{today:today, yesterday:yesterday}, on:[\"_field\"]) |> map(fn:(r) => ({ _time: r._time_today,\n _value: r._value_today - r._value_yesterday,\n })) |> aggregateWindow(\n every: 24h,\n fn: mean,\n timeSrc: \"_start\",\n createEmpty: false\n)", - "refId": "A", - "resultFormat": "time_series" - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "fillColor": "#C8F2C2", - "line": false, - "lineColor": "#8AB8FF", - "op": "gt", - "value": 0, - "yaxis": "left" - }, - { - "colorMode": "ok", - "fill": true, - "line": false, - "op": "lt", - "value": 0, - "yaxis": "left" - } - ], - "timeFrom": "now/M", - "timeRegions": [], - "timeShift": null, - "title": "Differenz zum Vormonat", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "watth", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aggregate": "SUM", - "color": { - "colorScheme": "interpolateRdYlGn", - "colorSpace": "RGB", - "customColors": [ - { - "color": "#006837" - }, - { - "color": "#aa0526" - } - ], - "invert": false, - "mode": "SPECTRUM", - "nullColor": "rgba(0, 0, 0, 0)" - }, - "data": { - "decimals": 2, - "unitFormat": "watth" - }, - "datasource": null, - "fragment": "HOUR", - "gridPos": { - "h": 18, - "w": 24, - "x": 0, - "y": 37 - }, - "hideTimeOverride": true, - "id": 24, - "legend": { - "show": false - }, - "links": [], - "options": {}, - "scale": { - "max": 1000, - "min": 0 - }, - "targets": [ - { - "alias": "Gesamt", - "groupBy": [ - { - "params": [ - "1h" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "energy", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT sum(\"sum_Gesamt\") FROM \"downsampled_energy\" GROUP BY time(1h) fill(null)\n", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "WirkenergieL1" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "timeFrom": "now/y", - "timeShift": null, - "title": "Dieses Jahr", - "tooltip": { - "show": true - }, - "type": "petrslavotinek-carpetplot-panel", - "xAxis": { - "labelFormat": "%m/%d", - "minBucketWidthToShowWeekends": 4, - "show": true, - "showCrosshair": true, - "showWeekends": true - }, - "yAxis": { - "hideLabels": false, - "show": true, - "showCrosshair": true - } - } - ], - "refresh": "1m", - "schemaVersion": 21, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "hidden": false, - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "piMeter", - "uid": "ES9M3o2ik", - "version": 143 -} \ No newline at end of file