Created
April 27, 2025 15:02
-
-
Save hoegaarden/770979bcdf8a7ae2c2597dd9bd3d3336 to your computer and use it in GitHub Desktop.
Grafana dashboard dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 1, | |
| "id": 4, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "watth" | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byRegexp", | |
| "options": "/average over/" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.axisPlacement", | |
| "value": "right" | |
| }, | |
| { | |
| "id": "custom.fillOpacity", | |
| "value": 0 | |
| }, | |
| { | |
| "id": "custom.lineStyle", | |
| "value": { | |
| "dash": [ | |
| 0, | |
| 5 | |
| ], | |
| "fill": "dot" | |
| } | |
| }, | |
| { | |
| "id": "custom.showPoints", | |
| "value": "always" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 12, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 1, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , \"customLabel\" as metric\n , max(value)\nfrom\n smartmeter data\n left join smartmeter_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and \"meterID\" in (${meter})\ngroup by 1, 2\norder by 1 asc", | |
| "refId": "all", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "hide": false, | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, '1d') + interval '12h' as time\n , \"customLabel\" || ' - average over 24h' as metric\n , avg(value)\nfrom\n smartmeter data\n left join smartmeter_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and \"meterID\" in (${meter})\ngroup by 1, 2\norder by 1 asc", | |
| "refId": "avg", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "title": "Consumption", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "fillOpacity": 80, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineWidth": 1, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "watth" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 12 | |
| }, | |
| "id": 2, | |
| "options": { | |
| "barRadius": 0, | |
| "barWidth": 0.97, | |
| "fullHighlight": false, | |
| "groupWidth": 0.7, | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "orientation": "vertical", | |
| "showValue": "never", | |
| "stacking": "none", | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "multi", | |
| "sort": "none" | |
| }, | |
| "xTickLabelRotation": 0, | |
| "xTickLabelSpacing": 300 | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, '1d') - interval '12h' as time\n , \"customLabel\" as metric\n , sum(value)\nfrom\n smartmeter data\n left join smartmeter_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and \"meterID\" in (${meter})\ngroup by 1, 2\norder by 1 asc\n", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "timeFrom": "31d", | |
| "title": "Consumption per day", | |
| "type": "barchart" | |
| } | |
| ], | |
| "preload": false, | |
| "refresh": "", | |
| "schemaVersion": 40, | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": "\"meterID\"", | |
| "current": { | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "definition": "select\n \"customLabel\" as __text\n , \"meterID\" as __value\nfrom\n smartmeter_tag", | |
| "includeAll": true, | |
| "label": "Smartmeter", | |
| "multi": true, | |
| "name": "meter", | |
| "options": [], | |
| "query": "select\n \"customLabel\" as __text\n , \"meterID\" as __value\nfrom\n smartmeter_tag", | |
| "refresh": 1, | |
| "regex": "", | |
| "sort": 1, | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-7d", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "browser", | |
| "title": "Smartmeter", | |
| "uid": "ddoe7vpcumqyod", | |
| "version": 17, | |
| "weekStart": "" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 1, | |
| "id": 2, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "fieldMinMax": false, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| } | |
| ] | |
| }, | |
| "unit": "kwatth" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "hideTimeOverride": false, | |
| "id": 7, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "percentChangeColorMode": "standard", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showPercentChange": false, | |
| "textMode": "auto", | |
| "wideLayout": true | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , name as metric\n , avg(value)\nfrom\n solar_energy data\n left join solar_energy_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\n and source not like '%day%'\n and value > 0\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "solar_energy" | |
| } | |
| ], | |
| "timeFrom": "now-1w", | |
| "title": "Energy produced, total", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "kwatth" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 4, | |
| "w": 12, | |
| "x": 12, | |
| "y": 0 | |
| }, | |
| "id": 6, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "percentChangeColorMode": "standard", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showPercentChange": false, | |
| "textMode": "value_and_name", | |
| "wideLayout": true | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , name as metric\n , max(value)\nfrom\n solar_energy data\n left join solar_energy_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\n and source like '%day%'\n and source not like all (array['%pv3%', '%pv4%'])\n and value > 0\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "solar_energy" | |
| } | |
| ], | |
| "title": "Energy produced", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "fieldMinMax": false, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "kwatth" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 4, | |
| "w": 12, | |
| "x": 12, | |
| "y": 4 | |
| }, | |
| "id": 10, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "area", | |
| "justifyMode": "auto", | |
| "orientation": "auto", | |
| "percentChangeColorMode": "standard", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showPercentChange": false, | |
| "textMode": "auto", | |
| "wideLayout": true | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , name as metric\n , max(value)\nfrom\n solar_energy data\n left join solar_energy_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\n and source like '%day%'\n and source not like all (array['%pv3%', '%pv4%'])\n and value > 0\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "solar_energy" | |
| } | |
| ], | |
| "timeShift": "24h", | |
| "title": "Energy produced - previous day", | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "fieldMinMax": false, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "watt" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 24, | |
| "x": 0, | |
| "y": 8 | |
| }, | |
| "id": 1, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n -- , name || ' (' || serial || ')' as metric\n , name as metric\n , avg(value)\nfrom\n solar_power data\n left join solar_power_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\n and source != 'operating' -- this thing is always 0\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "solar_energy" | |
| } | |
| ], | |
| "title": "Power", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "fieldMinMax": false, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "watt" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 24, | |
| "x": 0, | |
| "y": 17 | |
| }, | |
| "id": 9, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n -- , name || ' (' || serial || ')' as metric\n , name as metric\n , avg(value)\nfrom\n solar_power data\n left join solar_power_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\n and source != 'operating' -- this thing is always 0\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "solar_energy" | |
| } | |
| ], | |
| "timeShift": "24h", | |
| "title": "Power - previous day", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "amp" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 26 | |
| }, | |
| "id": 2, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, 1m) as time\n , name as metric\n , avg(value)\nfrom\n solar_current data\n left join solar_current_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "title": "Current", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "volt" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 12, | |
| "y": 26 | |
| }, | |
| "id": 3, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, 1m) as time\n , name as metric\n , avg(value)\nfrom\n solar_voltage data\n left join solar_voltage_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\n and source in (${source})\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "title": "Voltage", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green" | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "celsius" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 5, | |
| "w": 12, | |
| "x": 0, | |
| "y": 34 | |
| }, | |
| "id": 4, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, 1m) as time\n , name as metric\n , avg(value)\nfrom\n solar_temp data\n left join solar_temp_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "title": "Temp", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 15, | |
| "gradientMode": "opacity", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": 3600000, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 4, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "never", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green" | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "rothz" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 5, | |
| "w": 12, | |
| "x": 12, | |
| "y": 34 | |
| }, | |
| "id": 5, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, 1m) as time\n , name as metric\n , avg(value)\nfrom\n solar_freq data\n left join solar_freq_tag meta using (tag_id)\nwhere\n $__timeFilter(time)\n and serial in (${device})\ngroup by serial, 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| } | |
| } | |
| ], | |
| "title": "Freq", | |
| "type": "timeseries" | |
| } | |
| ], | |
| "preload": false, | |
| "refresh": "", | |
| "schemaVersion": 40, | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": "serial", | |
| "current": { | |
| "text": [ | |
| "4185096905" | |
| ], | |
| "value": [ | |
| "4185096905" | |
| ] | |
| }, | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "definition": "select serial from solar_up_tag order by serial;", | |
| "description": "The device's serial number", | |
| "includeAll": true, | |
| "label": "Device", | |
| "multi": true, | |
| "name": "device", | |
| "options": [], | |
| "query": "select serial from solar_up_tag order by serial;", | |
| "refresh": 1, | |
| "regex": "", | |
| "type": "query" | |
| }, | |
| { | |
| "allValue": "source", | |
| "current": { | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "definition": "select\n source\nfrom\n solar_power_tag\nwhere\n serial = ${device}\n and source not in ('operating')\norder by 1", | |
| "includeAll": true, | |
| "label": "Source", | |
| "multi": true, | |
| "name": "source", | |
| "options": [], | |
| "query": "select\n source\nfrom\n solar_power_tag\nwhere\n serial = ${device}\n and source not in ('operating')\norder by 1", | |
| "refresh": 1, | |
| "regex": "", | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-12h", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "browser", | |
| "title": "Sun", | |
| "uid": "ednspdt7ci7swe", | |
| "version": 34, | |
| "weekStart": "" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 1, | |
| "id": 5, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "celsius" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 1, | |
| "options": { | |
| "legend": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "displayMode": "list", | |
| "placement": "right", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , coalesce(name, address) as metric\n , max(temperature)\nfrom\n shelly_sensor data\n left join shelly_sensor_tag meta using (tag_id)\n left join shelly_sensor_name name using (address)\nwhere\n $__timeFilter(time)\n and address in (${sensor}) \ngroup by 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "smartprom_temperature_celsius" | |
| } | |
| ], | |
| "title": "Temperature", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "area" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "light-green", | |
| "value": null | |
| }, | |
| { | |
| "color": "light-red", | |
| "value": 60 | |
| }, | |
| { | |
| "color": "semi-dark-red", | |
| "value": 70 | |
| } | |
| ] | |
| }, | |
| "unit": "humidity" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 10 | |
| }, | |
| "id": 2, | |
| "options": { | |
| "legend": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "displayMode": "list", | |
| "placement": "right", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , coalesce(name, address) as metric\n , max(humidity)\nfrom\n shelly_sensor data\n left join shelly_sensor_tag meta using (tag_id)\n left join shelly_sensor_name name using (address)\nwhere\n $__timeFilter(time)\n and address in (${sensor}) \ngroup by 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "smartprom_temperature_celsius" | |
| } | |
| ], | |
| "title": "Humidity", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "default": true, | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": true, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "area" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "light-red", | |
| "value": null | |
| }, | |
| { | |
| "color": "semi-dark-orange", | |
| "value": -100 | |
| }, | |
| { | |
| "color": "semi-dark-yellow", | |
| "value": -90 | |
| }, | |
| { | |
| "color": "semi-dark-green", | |
| "value": -80 | |
| } | |
| ] | |
| }, | |
| "unit": "dBm" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 19, | |
| "x": 0, | |
| "y": 20 | |
| }, | |
| "id": 3, | |
| "options": { | |
| "legend": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "displayMode": "list", | |
| "placement": "right", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "maxHeight": 600, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n $__timeGroup(time, $__interval) as time\n , coalesce(name, address) as metric\n , min(rssi)\nfrom\n shelly_sensor data\n left join shelly_sensor_tag meta using (tag_id)\n left join shelly_sensor_name name using (address)\nwhere\n $__timeFilter(time)\n and rssi is not null\n and address in (${sensor}) \ngroup by 1, 2\norder by 1 asc", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "smartprom_temperature_celsius" | |
| } | |
| ], | |
| "title": "RSSI", | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "default": true, | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "max": 100, | |
| "min": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "red", | |
| "value": null | |
| }, | |
| { | |
| "color": "orange", | |
| "value": 3 | |
| }, | |
| { | |
| "color": "yellow", | |
| "value": 7 | |
| }, | |
| { | |
| "color": "green", | |
| "value": 10 | |
| } | |
| ] | |
| }, | |
| "unit": "%" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 5, | |
| "x": 19, | |
| "y": 20 | |
| }, | |
| "id": 4, | |
| "options": { | |
| "minVizHeight": 75, | |
| "minVizWidth": 75, | |
| "orientation": "auto", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showThresholdLabels": false, | |
| "showThresholdMarkers": true, | |
| "sizing": "auto" | |
| }, | |
| "pluginVersion": "11.5.2", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "editorMode": "code", | |
| "format": "time_series", | |
| "rawQuery": true, | |
| "rawSql": "select\n -- $__timeGroup(time, $__interval) as time\n $__timeGroup(time, '1d') as time\n , coalesce(name, address) as metric\n , last(battery, time)\nfrom\n shelly_sensor data\n left join shelly_sensor_tag meta using (tag_id)\n left join shelly_sensor_name name using (address)\nwhere\n $__timeFilter(time)\n and battery is not null\n and address in (${sensor}) \ngroup by 1, 2\norder by 1 asc\n", | |
| "refId": "A", | |
| "sql": { | |
| "columns": [ | |
| { | |
| "parameters": [ | |
| { | |
| "name": "\"time\"", | |
| "type": "functionParameter" | |
| } | |
| ], | |
| "type": "function" | |
| } | |
| ], | |
| "groupBy": [ | |
| { | |
| "property": { | |
| "type": "string" | |
| }, | |
| "type": "groupBy" | |
| } | |
| ], | |
| "limit": 50 | |
| }, | |
| "table": "smartprom_temperature_celsius" | |
| } | |
| ], | |
| "title": "Battery", | |
| "type": "gauge" | |
| } | |
| ], | |
| "preload": false, | |
| "refresh": "", | |
| "schemaVersion": 40, | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allValue": "address", | |
| "current": { | |
| "text": "All", | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "datasource": { | |
| "type": "grafana-postgresql-datasource", | |
| "uid": "fdnke4rjc9clcf" | |
| }, | |
| "definition": "select address as __value, coalesce(name, address) as __text\nfrom\n shelly_sensor_tag meta\n left join shelly_sensor_name name using (address)", | |
| "includeAll": true, | |
| "label": "Sensor", | |
| "multi": true, | |
| "name": "sensor", | |
| "options": [], | |
| "query": "select address as __value, coalesce(name, address) as __text\nfrom\n shelly_sensor_tag meta\n left join shelly_sensor_name name using (address)", | |
| "refresh": 1, | |
| "regex": "", | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-24h", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "browser", | |
| "title": "Temp & Hum", | |
| "uid": "bdqc7yjmxy9z4d", | |
| "version": 25, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment