diff --git a/infra/grafana/oelknoten.json b/infra/grafana/oelknoten.json index e69de29bb..70880cb86 100644 --- a/infra/grafana/oelknoten.json +++ b/infra/grafana/oelknoten.json @@ -0,0 +1,628 @@ +{ + "uid": "oelknoten", + "title": "Ölknoten", + "tags": [ + "oelknoten", + "temperatur", + "erdtrasse" + ], + "timezone": "browser", + "schemaVersion": 39, + "version": 2, + "refresh": "30s", + "panels": [ + { + "id": 1, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 0 + }, + "type": "stat", + "title": "Status", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + }, + "mappings": [ + { + "type": "value", + "options": { + "1": { + "text": "ONLINE", + "color": "green", + "index": 0 + }, + "0": { + "text": "OFFLINE", + "color": "red", + "index": 1 + } + } + }, + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "OFFLINE", + "color": "red", + "index": 2 + } + } + } + ], + "noValue": "OFFLINE", + "color": { + "mode": "thresholds" + } + } + }, + "options": { + "reduceOptions": { + "values": false, + "calcs": [ + "lastNotNull" + ] + }, + "orientation": "auto", + "textMode": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto" + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT last(\"value\") FROM \"node_status\" WHERE \"node\"='oelknoten'", + "rawQuery": true + } + ] + }, + { + "id": 2, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 0 + }, + "type": "stat", + "title": "Raum", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "decimals": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 10 + }, + { + "color": "orange", + "value": 25 + }, + { + "color": "red", + "value": 35 + } + ] + }, + "color": { + "mode": "thresholds" + } + } + }, + "options": { + "reduceOptions": { + "values": false, + "calcs": [ + "lastNotNull" + ] + }, + "orientation": "auto", + "textMode": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto" + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT last(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='raum' AND $timeFilter", + "rawQuery": true + } + ] + }, + { + "id": 3, + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 0 + }, + "type": "stat", + "title": "HK Vorlauf", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "decimals": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 10 + }, + { + "color": "orange", + "value": 40 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "color": { + "mode": "thresholds" + } + } + }, + "options": { + "reduceOptions": { + "values": false, + "calcs": [ + "lastNotNull" + ] + }, + "orientation": "auto", + "textMode": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto" + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT last(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='hk_vorlauf' AND $timeFilter", + "rawQuery": true + } + ] + }, + { + "id": 4, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 0 + }, + "type": "stat", + "title": "Erd VL", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "decimals": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 10 + }, + { + "color": "orange", + "value": 40 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "color": { + "mode": "thresholds" + } + } + }, + "options": { + "reduceOptions": { + "values": false, + "calcs": [ + "lastNotNull" + ] + }, + "orientation": "auto", + "textMode": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto" + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT last(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='vl_erd_an' AND $timeFilter", + "rawQuery": true + } + ] + }, + { + "id": 5, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 0 + }, + "type": "stat", + "title": "Erd RL", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "decimals": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 10 + }, + { + "color": "orange", + "value": 30 + }, + { + "color": "red", + "value": 45 + } + ] + }, + "color": { + "mode": "thresholds" + } + } + }, + "options": { + "reduceOptions": { + "values": false, + "calcs": [ + "lastNotNull" + ] + }, + "orientation": "auto", + "textMode": "auto", + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto" + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT last(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='rl_erd_ab' AND $timeFilter", + "rawQuery": true + } + ] + }, + { + "id": 6, + "gridPos": { + "h": 12, + "w": 24, + "x": 0, + "y": 4 + }, + "type": "timeseries", + "title": "Temperaturen", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "custom": { + "drawStyle": "line", + "lineInterpolation": "linear", + "barAlignment": 0, + "lineWidth": 2, + "fillOpacity": 10, + "gradientMode": "none", + "spanNulls": 300000, + "showPoints": "never", + "pointSize": 5, + "stacking": { + "mode": "none", + "group": "A" + }, + "axisPlacement": "auto", + "axisLabel": "", + "axisColorMode": "text", + "scaleDistribution": { + "type": "linear" + }, + "axisCenteredZero": false, + "hideFrom": { + "tooltip": false, + "viz": false, + "legend": false + }, + "thresholdsStyle": { + "mode": "off" + } + } + } + }, + "options": { + "legend": { + "displayMode": "table", + "placement": "bottom", + "calcs": [ + "last", + "mean", + "max" + ] + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT mean(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND $timeFilter GROUP BY time($__interval), \"sensor\"", + "rawQuery": true + } + ] + }, + { + "id": 7, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "type": "timeseries", + "title": "Erdtrasse ΔT (VL − RL)", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "custom": { + "drawStyle": "line", + "lineInterpolation": "linear", + "barAlignment": 0, + "lineWidth": 2, + "fillOpacity": 20, + "gradientMode": "none", + "spanNulls": 300000, + "showPoints": "never", + "pointSize": 5, + "stacking": { + "mode": "none", + "group": "A" + }, + "axisPlacement": "auto" + } + } + }, + "options": { + "legend": { + "displayMode": "table", + "placement": "bottom", + "calcs": [ + "last", + "mean" + ] + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "refId": "vl_erd_an", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT mean(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='vl_erd_an' AND $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "hide": false + }, + { + "refId": "rl_erd_ab", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT mean(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND \"sensor\"='rl_erd_ab' AND $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "hide": false + } + ], + "transformations": [ + { + "id": "calculateField", + "options": { + "mode": "binary", + "binary": { + "left": "vl_erd_an.value", + "operator": "-", + "right": "rl_erd_ab.value" + }, + "alias": "ΔT VL−RL" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "rl_erd_ab.value": true, + "vl_erd_an.value": true, + "ΔT VL−RL": false + } + } + } + ], + "description": "Temperaturdifferenz Vorlauf minus Rücklauf der Erdtrasse. Bei laufender Heizung/Kühlung zeigt ΔT, ob Wärme in den Boden ab- oder aufgenommen wird. Im Sommer ohne Durchfluss liegen VL und RL dicht beieinander (~0 K)." + }, + { + "id": 8, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "type": "timeseries", + "title": "Erdtrasse (VL + RL)", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "fieldConfig": { + "defaults": { + "unit": "celsius", + "custom": { + "drawStyle": "line", + "lineInterpolation": "linear", + "barAlignment": 0, + "lineWidth": 2, + "fillOpacity": 10, + "gradientMode": "none", + "spanNulls": 300000, + "showPoints": "never", + "pointSize": 5, + "stacking": { + "mode": "none", + "group": "A" + }, + "axisPlacement": "auto" + } + } + }, + "options": { + "legend": { + "displayMode": "table", + "placement": "bottom", + "calcs": [ + "last", + "mean" + ] + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "influxdb", + "uid": "ffptl25vzylfke" + }, + "query": "SELECT mean(\"value\") FROM \"temperature\" WHERE \"node\"='oelknoten' AND (\"sensor\"='vl_erd_an' OR \"sensor\"='rl_erd_ab') AND $timeFilter GROUP BY time($__interval), \"sensor\"", + "rawQuery": true + } + ], + "description": "Vorlauf (vl_erd_an) und Rücklauf (rl_erd_ab) der Erdtrasse im Vergleich. VL = Wasser in den Erdwärmetauscher, RL = zurück zum System. Zum Prüfen der Sensor-Zuordnung: bei Betrieb muss VL deutlich von RL abweichen." + } + ], + "time": { + "from": "now-6h", + "to": "now" + }, + "id": null, + "links": [ + { + "title": "Nebengelass / Erdtrasse", + "type": "link", + "url": "/d/heizung_nebengelass", + "icon": "dashboard", + "targetBlank": false + } + ] +} \ No newline at end of file