diff --git a/monitoring/grafana/dashboards/weather-day-report.json b/monitoring/grafana/dashboards/weather-day-report.json index d832641..4943ecb 100644 --- a/monitoring/grafana/dashboards/weather-day-report.json +++ b/monitoring/grafana/dashboards/weather-day-report.json @@ -4,7 +4,7 @@ "tags": ["weather", "ecowitt", "homeassistant", "report"], "timezone": "Europe/Berlin", "schemaVersion": 39, - "version": 3, + "version": 4, "refresh": "", "time": { "from": "now-1d/d", "to": "now/d" }, "templating": { "list": [] }, @@ -27,7 +27,7 @@ "id": 3, "title": "Bewertung des Tages", "type": "stat", - "gridPos": { "h": 4, "w": 24, "x": 0, "y": 3 }, + "gridPos": { "h": 3, "w": 24, "x": 0, "y": 3 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { @@ -66,70 +66,79 @@ }, { "id": 10, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 0, "y": 7 }, + "title": "Temp max", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 0, "y": 6 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "celsius", - "decimals": 1, - "displayName": "Temp min", - "color": { "mode": "fixed", "fixedColor": "#4dabf7" } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["min"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"°C\" WHERE entity_id = 'gw3000a_outdoor_temperature' AND $__timeFilter(time) ORDER BY time" } - ] + "fieldConfig": { "defaults": { "unit": "celsius", "min": -10, "max": 40, "decimals": 1, "color": { "mode": "continuous-BlYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"°C\" WHERE entity_id = 'gw3000a_outdoor_temperature' AND $__timeFilter(time) ORDER BY time" } ] }, { "id": 11, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 6, "y": 7 }, + "title": "Temp min", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 4, "y": 6 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "celsius", - "decimals": 1, - "displayName": "Temp max", - "color": { "mode": "thresholds" }, - "thresholds": { "mode": "absolute", "steps": [ - { "color": "#4dabf7", "value": null }, - { "color": "#51cf66", "value": 15 }, - { "color": "#fcc419", "value": 24 }, - { "color": "#ff922b", "value": 29 }, - { "color": "#ff6b6b", "value": 34 } - ] } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"°C\" WHERE entity_id = 'gw3000a_outdoor_temperature' AND $__timeFilter(time) ORDER BY time" } - ] + "fieldConfig": { "defaults": { "unit": "celsius", "min": -10, "max": 40, "decimals": 1, "color": { "mode": "continuous-BlYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["min"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"°C\" WHERE entity_id = 'gw3000a_outdoor_temperature' AND $__timeFilter(time) ORDER BY time" } ] }, { "id": 12, + "title": "Luftfeuchte Ø", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 8, "y": 6 }, + "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, + "fieldConfig": { "defaults": { "unit": "percent", "min": 0, "max": 100, "decimals": 0, "color": { "mode": "continuous-BlYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["mean"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"%\" WHERE entity_id = 'gw3000a_humidity' AND $__timeFilter(time) ORDER BY time" } ] + }, + { + "id": 13, + "title": "Böe max", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 12, "y": 6 }, + "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, + "fieldConfig": { "defaults": { "unit": "velocitykmh", "min": 0, "max": 80, "decimals": 1, "color": { "mode": "continuous-GrYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"km/h\" WHERE entity_id = 'gw3000a_wind_gust' AND $__timeFilter(time) ORDER BY time" } ] + }, + { + "id": 14, + "title": "UV max", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 16, "y": 6 }, + "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, + "fieldConfig": { "defaults": { "unit": "short", "min": 0, "max": 12, "decimals": 1, "color": { "mode": "continuous-GrYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"UV index\" WHERE entity_id = 'gw3000a_uv_index' AND $__timeFilter(time) ORDER BY time" } ] + }, + { + "id": 15, + "title": "Solar max", + "type": "gauge", + "gridPos": { "h": 6, "w": 4, "x": 20, "y": 6 }, + "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, + "fieldConfig": { "defaults": { "unit": "wattm2", "min": 0, "max": 1000, "decimals": 0, "color": { "mode": "continuous-GrYlRd" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "showThresholdMarkers": false, "orientation": "auto" }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"W/m²\" WHERE entity_id = 'gw3000a_solar_radiation' AND $__timeFilter(time) ORDER BY time" } ] + }, + { + "id": 16, "title": "", "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 12, "y": 7 }, + "gridPos": { "h": 4, "w": 8, "x": 0, "y": 12 }, + "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, + "fieldConfig": { "defaults": { "unit": "celsius", "decimals": 1, "displayName": "Gefühlt max", "color": { "mode": "fixed", "fixedColor": "#ff922b" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "value_and_name", "wideLayout": true }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"°C\" WHERE entity_id = 'gw3000a_feels_like_temperature' AND $__timeFilter(time) ORDER BY time" } ] + }, + { + "id": 17, + "title": "", + "type": "stat", + "gridPos": { "h": 4, "w": 8, "x": 8, "y": 12 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { @@ -146,178 +155,24 @@ }, "overrides": [] }, - "options": { - "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"mm\" WHERE entity_id = 'gw3000a_daily_rain' AND $__timeFilter(time) ORDER BY time" } - ] + "options": { "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "value_and_name", "wideLayout": true }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"mm\" WHERE entity_id = 'gw3000a_daily_rain' AND $__timeFilter(time) ORDER BY time" } ] }, { - "id": 13, + "id": 18, "title": "", "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 18, "y": 7 }, + "gridPos": { "h": 4, "w": 8, "x": 16, "y": 12 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "short", - "decimals": 1, - "displayName": "UV max", - "color": { "mode": "thresholds" }, - "thresholds": { "mode": "absolute", "steps": [ - { "color": "#51cf66", "value": null }, - { "color": "#94d82d", "value": 3 }, - { "color": "#fcc419", "value": 6 }, - { "color": "#ff922b", "value": 8 }, - { "color": "#ff6b6b", "value": 11 } - ] } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"UV index\" WHERE entity_id = 'gw3000a_uv_index' AND $__timeFilter(time) ORDER BY time" } - ] - }, - { - "id": 14, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 0, "y": 11 }, - "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "velocitykmh", - "decimals": 1, - "displayName": "Böe max", - "color": { "mode": "thresholds" }, - "thresholds": { "mode": "absolute", "steps": [ - { "color": "#15aabf", "value": null }, - { "color": "#22b8cf", "value": 20 }, - { "color": "#fcc419", "value": 40 }, - { "color": "#ff922b", "value": 60 }, - { "color": "#ff6b6b", "value": 80 } - ] } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"km/h\" WHERE entity_id = 'gw3000a_wind_gust' AND $__timeFilter(time) ORDER BY time" } - ] - }, - { - "id": 15, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 6, "y": 11 }, - "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "percent", - "decimals": 0, - "displayName": "Luftfeuchte Ø", - "color": { "mode": "fixed", "fixedColor": "#22b8cf" } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["mean"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"%\" WHERE entity_id = 'gw3000a_humidity' AND $__timeFilter(time) ORDER BY time" } - ] - }, - { - "id": 16, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 12, "y": 11 }, - "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "pressurehpa", - "decimals": 0, - "displayName": "Luftdruck Ø", - "color": { "mode": "fixed", "fixedColor": "#3bc9db" } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["mean"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"hPa\" WHERE entity_id = 'gw3000a_relative_pressure' AND $__timeFilter(time) ORDER BY time" } - ] - }, - { - "id": 17, - "title": "", - "type": "stat", - "gridPos": { "h": 4, "w": 6, "x": 18, "y": 11 }, - "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, - "fieldConfig": { - "defaults": { - "unit": "wattm2", - "decimals": 0, - "displayName": "Solar max", - "color": { "mode": "thresholds" }, - "thresholds": { "mode": "absolute", "steps": [ - { "color": "#868e96", "value": null }, - { "color": "#fcc419", "value": 200 }, - { "color": "#ff922b", "value": 600 }, - { "color": "#ff6b6b", "value": 900 } - ] } - }, - "overrides": [] - }, - "options": { - "reduceOptions": { "values": false, "calcs": ["max"], "fields": "" }, - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "textMode": "value_and_name", - "wideLayout": true - }, - "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"W/m²\" WHERE entity_id = 'gw3000a_solar_radiation' AND $__timeFilter(time) ORDER BY time" } - ] + "fieldConfig": { "defaults": { "unit": "pressurehpa", "decimals": 0, "displayName": "Luftdruck Ø", "color": { "mode": "fixed", "fixedColor": "#3bc9db" } }, "overrides": [] }, + "options": { "reduceOptions": { "values": false, "calcs": ["mean"], "fields": "" }, "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "textMode": "value_and_name", "wideLayout": true }, + "targets": [ { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"hPa\" WHERE entity_id = 'gw3000a_relative_pressure' AND $__timeFilter(time) ORDER BY time" } ] }, { "id": 20, "title": "Temperatur über den Tag", "type": "timeseries", - "gridPos": { "h": 9, "w": 12, "x": 0, "y": 15 }, + "gridPos": { "h": 9, "w": 12, "x": 0, "y": 16 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "celsius", "custom": { "drawStyle": "line", "fillOpacity": 12, "lineWidth": 2, "showPoints": "never" } }, @@ -338,7 +193,7 @@ "id": 21, "title": "Sonne: Solarstrahlung & UV", "type": "timeseries", - "gridPos": { "h": 9, "w": 12, "x": 12, "y": 15 }, + "gridPos": { "h": 9, "w": 12, "x": 12, "y": 16 }, "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "fillOpacity": 30, "lineWidth": 1, "showPoints": "never", "gradientMode": "opacity" } },