1091 lines
29 KiB
JSON
1091 lines
29 KiB
JSON
|
{
|
||
|
"__inputs": [
|
||
|
{
|
||
|
"name": "DS_ENERGY",
|
||
|
"label": "energy",
|
||
|
"description": "",
|
||
|
"type": "datasource",
|
||
|
"pluginId": "grafana-postgresql-datasource",
|
||
|
"pluginName": "PostgreSQL"
|
||
|
}
|
||
|
],
|
||
|
"__elements": {},
|
||
|
"__requires": [
|
||
|
{
|
||
|
"type": "grafana",
|
||
|
"id": "grafana",
|
||
|
"name": "Grafana",
|
||
|
"version": "10.3.3"
|
||
|
},
|
||
|
{
|
||
|
"type": "datasource",
|
||
|
"id": "grafana-postgresql-datasource",
|
||
|
"name": "PostgreSQL",
|
||
|
"version": "1.0.0"
|
||
|
},
|
||
|
{
|
||
|
"type": "panel",
|
||
|
"id": "table",
|
||
|
"name": "Table",
|
||
|
"version": ""
|
||
|
},
|
||
|
{
|
||
|
"type": "panel",
|
||
|
"id": "timeseries",
|
||
|
"name": "Time series",
|
||
|
"version": ""
|
||
|
}
|
||
|
],
|
||
|
"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": 0,
|
||
|
"id": null,
|
||
|
"links": [],
|
||
|
"liveNow": false,
|
||
|
"panels": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"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",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 5,
|
||
|
"w": 12,
|
||
|
"x": 0,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 2,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n yieldday AS \"Yield\"\nFROM\n opendtu_log\nWHERE\n $__timeFilter(\"timestamp\")",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Yield per day",
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"description": "",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"spanNulls": false,
|
||
|
"stacking": {
|
||
|
"group": "A",
|
||
|
"mode": "none"
|
||
|
},
|
||
|
"thresholdsStyle": {
|
||
|
"mode": "off"
|
||
|
}
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "kwatth",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 5,
|
||
|
"w": 12,
|
||
|
"x": 12,
|
||
|
"y": 0
|
||
|
},
|
||
|
"id": 3,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"firstNotNull",
|
||
|
"lastNotNull",
|
||
|
"range"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n yieldtotal AS \"Total yield\"\nFROM\n opendtu_log\nWHERE\n $__timeFilter(\"timestamp\")",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Total yield since commissioning",
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"spanNulls": false,
|
||
|
"stacking": {
|
||
|
"group": "A",
|
||
|
"mode": "none"
|
||
|
},
|
||
|
"thresholdsStyle": {
|
||
|
"mode": "off"
|
||
|
}
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "watt",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 12,
|
||
|
"x": 0,
|
||
|
"y": 5
|
||
|
},
|
||
|
"id": 1,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n power AS \"Power\"\nFROM\n opendtu_log\nWHERE\n $__timeFilter(\"timestamp\")",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Power all inverters",
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"spanNulls": false,
|
||
|
"stacking": {
|
||
|
"group": "A",
|
||
|
"mode": "none"
|
||
|
},
|
||
|
"thresholdsStyle": {
|
||
|
"mode": "off"
|
||
|
}
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "celsius",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 12,
|
||
|
"x": 12,
|
||
|
"y": 5
|
||
|
},
|
||
|
"id": 4,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n inverter_serial,\n temperature AS \"Temperature\"\nFROM\n opendtu_inverters_inv\nWHERE\n $__timeFilter(\"timestamp\")",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Temperature per inverter",
|
||
|
"transformations": [
|
||
|
{
|
||
|
"id": "prepareTimeSeries",
|
||
|
"options": {
|
||
|
"format": "multi"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"spanNulls": false,
|
||
|
"stacking": {
|
||
|
"group": "A",
|
||
|
"mode": "none"
|
||
|
},
|
||
|
"thresholdsStyle": {
|
||
|
"mode": "off"
|
||
|
}
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "watt",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": [
|
||
|
]
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 12,
|
||
|
"x": 0,
|
||
|
"y": 13
|
||
|
},
|
||
|
"id": 5,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n inverter_serial,\n power AS \"AC\"\nFROM\n opendtu_inverters_ac\nWHERE\n $__timeFilter(timestamp)",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"hide": false,
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n inverter_serial,\n power_dc AS \"DC\"\nFROM\n opendtu_inverters_inv\nWHERE\n $__timeFilter(\"timestamp\")",
|
||
|
"refId": "B",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Power per inverter AC / DC",
|
||
|
"transformations": [
|
||
|
{
|
||
|
"id": "prepareTimeSeries",
|
||
|
"options": {
|
||
|
"format": "multi"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"description": "",
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"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",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 8,
|
||
|
"w": 12,
|
||
|
"x": 12,
|
||
|
"y": 13
|
||
|
},
|
||
|
"id": 6,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n inverter_serial,\n voltage AS \"AC voltage\"\nFROM\n opendtu_inverters_ac\nWHERE\n $__timeFilter(timestamp)",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "AC voltage per inverter",
|
||
|
"transformations": [
|
||
|
{
|
||
|
"id": "prepareTimeSeries",
|
||
|
"options": {
|
||
|
"format": "multi"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"color": {
|
||
|
"mode": "palette-classic"
|
||
|
},
|
||
|
"custom": {
|
||
|
"axisBorderShow": false,
|
||
|
"axisCenteredZero": false,
|
||
|
"axisColorMode": "text",
|
||
|
"axisLabel": "",
|
||
|
"axisPlacement": "auto",
|
||
|
"barAlignment": 0,
|
||
|
"drawStyle": "line",
|
||
|
"fillOpacity": 10,
|
||
|
"gradientMode": "opacity",
|
||
|
"hideFrom": {
|
||
|
"legend": false,
|
||
|
"tooltip": false,
|
||
|
"viz": false
|
||
|
},
|
||
|
"insertNulls": false,
|
||
|
"lineInterpolation": "linear",
|
||
|
"lineWidth": 1,
|
||
|
"pointSize": 5,
|
||
|
"scaleDistribution": {
|
||
|
"type": "linear"
|
||
|
},
|
||
|
"showPoints": "auto",
|
||
|
"spanNulls": false,
|
||
|
"stacking": {
|
||
|
"group": "A",
|
||
|
"mode": "none"
|
||
|
},
|
||
|
"thresholdsStyle": {
|
||
|
"mode": "off"
|
||
|
}
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green",
|
||
|
"value": null
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unit": "watt",
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 14,
|
||
|
"w": 24,
|
||
|
"x": 0,
|
||
|
"y": 21
|
||
|
},
|
||
|
"id": 7,
|
||
|
"options": {
|
||
|
"legend": {
|
||
|
"calcs": [
|
||
|
"logmin",
|
||
|
"max",
|
||
|
"mean",
|
||
|
"lastNotNull"
|
||
|
],
|
||
|
"displayMode": "table",
|
||
|
"placement": "bottom",
|
||
|
"showLegend": true
|
||
|
},
|
||
|
"tooltip": {
|
||
|
"mode": "multi",
|
||
|
"sort": "none"
|
||
|
}
|
||
|
},
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS time,\n name,\n power AS \"Power per panel (DC)\"\nFROM\n opendtu_inverters_dc\nWHERE\n $__timeFilter(\"timestamp\")\nORDER BY name, timestamp",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Power per solar panel",
|
||
|
"transformations": [
|
||
|
{
|
||
|
"id": "prepareTimeSeries",
|
||
|
"options": {
|
||
|
"format": "multi"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"type": "timeseries"
|
||
|
},
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"fieldConfig": {
|
||
|
"defaults": {
|
||
|
"custom": {
|
||
|
"align": "auto",
|
||
|
"cellOptions": {
|
||
|
"type": "auto"
|
||
|
},
|
||
|
"inspect": false
|
||
|
},
|
||
|
"mappings": [],
|
||
|
"thresholds": {
|
||
|
"mode": "absolute",
|
||
|
"steps": [
|
||
|
{
|
||
|
"color": "green"
|
||
|
},
|
||
|
{
|
||
|
"color": "red",
|
||
|
"value": 80
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"unitScale": true
|
||
|
},
|
||
|
"overrides": []
|
||
|
},
|
||
|
"gridPos": {
|
||
|
"h": 12,
|
||
|
"w": 24,
|
||
|
"x": 0,
|
||
|
"y": 35
|
||
|
},
|
||
|
"id": 8,
|
||
|
"options": {
|
||
|
"cellHeight": "sm",
|
||
|
"footer": {
|
||
|
"countRows": false,
|
||
|
"fields": "",
|
||
|
"reducer": [],
|
||
|
"show": false
|
||
|
},
|
||
|
"showHeader": true
|
||
|
},
|
||
|
"pluginVersion": "10.3.3",
|
||
|
"targets": [
|
||
|
{
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"editorMode": "code",
|
||
|
"format": "table",
|
||
|
"rawQuery": true,
|
||
|
"rawSql": "SELECT\n timestamp AS \"Timestamp\",\n inverter_serial AS \"Inverter\",\n message_id AS \"Message ID\",\n message AS \"Message\",\n to_char(make_interval(secs => start_time), 'HH24:MI:SS') as \"Start time\",\n to_char(make_interval(secs => end_time), 'HH24:MI:SS') as \"End time\"\nFROM\n opendtu_events\nORDER BY\n timestamp DESC",
|
||
|
"refId": "A",
|
||
|
"sql": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"parameters": [],
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"groupBy": [
|
||
|
{
|
||
|
"property": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "groupBy"
|
||
|
}
|
||
|
],
|
||
|
"limit": 50
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"title": "Event log",
|
||
|
"type": "table"
|
||
|
}
|
||
|
],
|
||
|
"refresh": "5s",
|
||
|
"schemaVersion": 39,
|
||
|
"tags": [],
|
||
|
"templating": {
|
||
|
"list": [
|
||
|
{
|
||
|
"current": {},
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"definition": "SELECT DISTINCT inverter_serial FROM opendtu_inverters_inv ORDER BY inverter_serial ASC;",
|
||
|
"hide": 0,
|
||
|
"includeAll": true,
|
||
|
"label": "Inverter",
|
||
|
"multi": false,
|
||
|
"name": "inverter",
|
||
|
"options": [],
|
||
|
"query": "SELECT DISTINCT inverter_serial FROM opendtu_inverters_inv ORDER BY inverter_serial ASC;",
|
||
|
"refresh": 1,
|
||
|
"regex": "",
|
||
|
"skipUrlSync": false,
|
||
|
"sort": 0,
|
||
|
"type": "query"
|
||
|
},
|
||
|
{
|
||
|
"current": {},
|
||
|
"datasource": {
|
||
|
"type": "grafana-postgresql-datasource",
|
||
|
"uid": "${DS_ENERGY}"
|
||
|
},
|
||
|
"definition": "SELECT DISTINCT name \nFROM opendtu_inverters_dc\nORDER BY name ASC;",
|
||
|
"hide": 0,
|
||
|
"includeAll": true,
|
||
|
"label": "Panel",
|
||
|
"multi": false,
|
||
|
"name": "panel",
|
||
|
"options": [],
|
||
|
"query": "SELECT DISTINCT name \nFROM opendtu_inverters_dc\nORDER BY name ASC;",
|
||
|
"refresh": 1,
|
||
|
"regex": "",
|
||
|
"skipUrlSync": false,
|
||
|
"sort": 0,
|
||
|
"type": "query"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"time": {
|
||
|
"from": "now/d",
|
||
|
"to": "now"
|
||
|
},
|
||
|
"timepicker": {},
|
||
|
"timezone": "",
|
||
|
"title": "PV",
|
||
|
"uid": "a64a0baf-5a22-4bd0-812c-6f8da84db44g",
|
||
|
"version": 3,
|
||
|
"weekStart": ""
|
||
|
}
|