Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 0,
- "id": 1,
- "links": [],
- "liveNow": true,
- "panels": [
- {
- "collapsed": false,
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 123143,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "refId": "A"
- }
- ],
- "title": "PV",
- "type": "row"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "Normal (On-Grid)": {
- "color": "green",
- "index": 0
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 2,
- "x": 0,
- "y": 1
- },
- "id": 123141,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^work_mode$/",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_inverter_work_mode.label AS work_mode\nFROM pv_inverter_record\nLEFT JOIN pv_inverter_work_mode ON pv_inverter_work_mode.id = pv_inverter_record.work_mode\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Inverter Work Mode",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#424242",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 2,
- "x": 2,
- "y": 1
- },
- "id": 123157,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^grid_mode$/",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_inverter_grid_mode.label AS grid_mode\nFROM pv_inverter_record\nLEFT JOIN pv_inverter_grid_mode ON pv_inverter_grid_mode.id = pv_inverter_record.grid_mode\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid Mode",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#424242",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 2,
- "x": 4,
- "y": 1
- },
- "id": 123173,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^diagnose_result$/",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n diagnose_result_label AS diagnose_result\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Diagnostics",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 6,
- "y": 1
- },
- "id": 123153,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 8,
- "y": 1
- },
- "id": 123160,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_e_day AS kwh\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "From PV Today",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 10,
- "y": 1
- },
- "id": 123193,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_e_total AS kwh\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "From PV Total",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 1
- },
- "id": 123172,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_pbattery1 as battery_source\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\n AND battery_mode_label = 'Discharge'\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Source - Discharge Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 6,
- "y": 5
- },
- "id": 123149,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_pbattery1*-1 AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 8,
- "y": 5
- },
- "id": 123162,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_e_bat_discharge_day AS kwh\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "From Battery Today (Discharge)",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 10,
- "y": 5
- },
- "id": 123161,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_e_bat_charge_day AS kwh\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "To Battery Today (Charge)",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 0,
- "spanNulls": false
- },
- "mappings": [
- {
- "options": {
- "Normal (Off-Grid)": {
- "color": "light-green",
- "index": 1
- },
- "Normal (On-Grid)": {
- "color": "semi-dark-green",
- "index": 0
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 6,
- "x": 0,
- "y": 7
- },
- "id": 123206,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n work_mode_label AS mode\nFROM (\n select *, @e as prev, @e:=pv_inverter_work_mode.label AS work_mode_label\n from (pv_inverter_record, (select @e:='') e)\n inner join pv_inverter_work_mode on pv_inverter_work_mode.id = pv_inverter_record.work_mode\n WHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \n) t\nWHERE\n prev <> work_mode_label COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Work Mode",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 6,
- "y": 9
- },
- "id": 123155,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n grid_active_power AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 8,
- "y": 9
- },
- "id": 123203,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n grid_meter_e_total_imp-(SELECT grid_meter_e_total_imp FROM pv_inverter_record WHERE log_date < $__timeFrom() ORDER BY log_date DESC LIMIT 1) AS kwh\nFROM pv_inverter_record\nWHERE\n log_date < $__timeTo()\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "From Grid Imported Today",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 10,
- "y": 9
- },
- "id": 123164,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n grid_meter_e_total_exp-(SELECT grid_meter_e_total_exp FROM pv_inverter_record WHERE log_date < $__timeFrom() ORDER BY log_date DESC LIMIT 1) AS kwh\nFROM pv_inverter_record\nWHERE\n log_date < $__timeTo()\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "To Grid Exported Today",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "dark-red",
- "value": 360
- },
- {
- "color": "semi-dark-orange",
- "value": 422
- },
- {
- "color": "dark-red",
- "value": 432
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 9
- },
- "id": 123175,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_vbattery1 as voltage\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Voltage",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "semi-dark-red",
- "value": null
- },
- {
- "color": "semi-dark-orange",
- "value": 30
- },
- {
- "color": "semi-dark-green",
- "value": 70
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 2,
- "x": 0,
- "y": 11
- },
- "id": 123145,
- "options": {
- "minVizHeight": 75,
- "minVizWidth": 75,
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^soc$/",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true,
- "text": {}
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_soc AS soc\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery SOC",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 100,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 4,
- "x": 2,
- "y": 11
- },
- "id": 123135,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_soc\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Battery SOC",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "max": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 5,
- "w": 2,
- "x": 6,
- "y": 13
- },
- "id": 123156,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n GREATEST((IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0)) + (backup_p1+backup_p2+backup_p3), ac_house_consumption)*-1 AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "House Consumption",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 5,
- "w": 2,
- "x": 8,
- "y": 13
- },
- "id": 123169,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 5,
- "w": 2,
- "x": 10,
- "y": 13
- },
- "id": 123168,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^kwh$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n $__timeTo() AS time,\n SUM(exported) AS kwh\nFROM pv_daily_stats\nWHERE\n DATE(log_date) <= DATE($__timeTo())\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "To Grid Exported Total",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 2,
- "y": 17
- },
- "id": 123198,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^battery_charge_limit$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_charge_limit AS battery_charge_limit\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Charge Limit",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 4,
- "y": 17
- },
- "id": 123199,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^battery_discharge_limit$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_discharge_limit AS battery_discharge_limit\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Discharge Limit",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 100,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 17
- },
- "id": 123177,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "list",
- "placement": "right",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_soc as soc\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery SOC",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 3,
- "x": 6,
- "y": 18
- },
- "id": 123189,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^backup_ups_load$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n backup_ups_load\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "UPS Load",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -99999,
- "result": {
- "color": "red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 3,
- "x": 9,
- "y": 18
- },
- "id": 123190,
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {},
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n backup_ptotal AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "UPS Load Power",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 2,
- "x": 0,
- "y": 19
- },
- "id": 123158,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^voltage$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_vbattery1 AS voltage\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Voltage",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -9999,
- "result": {
- "color": "semi-dark-red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 2,
- "x": 2,
- "y": 19
- },
- "id": 123159,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^current$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_ibattery1*-1 AS current\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Current",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "from": -9999,
- "result": {
- "color": "semi-dark-red",
- "index": 0
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "kwatt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 2,
- "x": 4,
- "y": 19
- },
- "id": 123207,
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^power$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_pbattery1*-1/1000 AS power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date DESC\nLIMIT 1",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Power",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 0,
- "spanNulls": false
- },
- "mappings": [
- {
- "options": {
- "Charge": {
- "color": "semi-dark-green",
- "index": 0
- },
- "Discharge": {
- "color": "semi-dark-red",
- "index": 1
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 6,
- "x": 0,
- "y": 22
- },
- "id": 123147,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_mode_label AS mode\nFROM (\n select *, @e prev, @e:=battery_mode_label\n from pv_inverter_record, (select @e:='') e\n WHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\n) t\nWHERE\n prev <> battery_mode_label COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Mode",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 60
- }
- ]
- },
- "unit": "celsius"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 4,
- "x": 6,
- "y": 22
- },
- "id": 123139,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n temperature_air AS air_temperature, temperature AS inverter_radiator_temperature, battery_temperature\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Temperature",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "min": 30,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#EAB839",
- "value": 40
- },
- {
- "color": "red",
- "value": 50
- }
- ]
- },
- "unit": "celsius"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 10,
- "y": 22
- },
- "id": 123171,
- "options": {
- "colorMode": "background",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "/^temperature$/",
- "values": false
- },
- "text": {
- "valueSize": 40
- },
- "textMode": "auto"
- },
- "pluginVersion": "10.2.0",
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n temperature\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date ASC",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Inverter Temperature",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "dark-red",
- "value": 360
- },
- {
- "color": "yellow",
- "value": 422
- },
- {
- "color": "dark-red",
- "value": 432
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 12,
- "x": 12,
- "y": 25
- },
- "id": 123201,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n min_cell_voltage as min_cell_voltage,\n max_cell_voltage as max_cell_voltage\nFROM pv_battery_state_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Cells Voltage",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 0,
- "spanNulls": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "orange",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 6,
- "x": 0,
- "y": 26
- },
- "id": 123174,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_warning AS battery_warning\nFROM (\n select *, @e prev, @e:=battery_warning\n from pv_inverter_record, (select @e:='') e\n WHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\n) t\nWHERE\n prev <> battery_warning COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Errors",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineStyle": {
- "fill": "solid"
- },
- "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"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 30
- },
- "id": 123137,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv1 AS pv_jihovychod, pv_ppv2 AS pv_jihozapad, pv_ppv1+pv_ppv2 AS pv_total\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Strings Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "dark-red",
- "value": 360
- },
- {
- "color": "yellow",
- "value": 422
- },
- {
- "color": "dark-red",
- "value": 432
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 12,
- "x": 12,
- "y": 34
- },
- "id": 123222,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n max_cell_voltage-min_cell_voltage as voltage_difference\nFROM pv_battery_state_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Cells Min/Max Voltage Difference",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 38
- },
- "id": 123182,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_vpv1 as string1, pv_vpv2 as string2\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Strings Voltage",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 43
- },
- "id": 123176,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_ibattery1*-1 as current\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n current as bms_current\nFROM pv_battery_state_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Current",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 46
- },
- "id": 123183,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ipv1 as string1, pv_ipv2 as string2\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Strings Current",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "amp"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 51
- },
- "id": 123219,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_charge_limit, battery_discharge_limit\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Charge/Discharge Limits",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 54
- },
- "id": 123217,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv1 / (SELECT power*1000 FROM pv_rooftop WHERE id = 1)*100 AS power_efficiency_string1,\n pv_ppv2 / (SELECT power*1000 FROM pv_rooftop WHERE id = 2)*100 AS power_efficiency_string2\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Strings Efficiency",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 100,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 59
- },
- "id": 123197,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "list",
- "placement": "right",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_soc as real_soc\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n soc as predicted_soc\nFROM pv_inverter_battery_soc_prediction\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "load_mode1"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "pv_inverter_record",
- "timeColumn": "log_date",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery SOC Prediction",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 62
- },
- "id": 123218,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv1 / (SELECT power*1000 FROM pv_rooftop WHERE id = 1)*100 AS power_efficiency_string1,\n pv_ppv2 / (SELECT power*1000 FROM pv_rooftop WHERE id = 2)*100 AS power_efficiency_string2\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "0b6N-zQ4k"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv1 / (SELECT power*1000 FROM pv_rooftop WHERE id = 1)*100 AS panjisa_power_efficiency_string1,\n pv_ppv2 / (SELECT power*1000 FROM pv_rooftop WHERE id = 2)*100 AS panjisa_power_efficiency_string2\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Strings Efficiency Comparison",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 0,
- "spanNulls": false
- },
- "mappings": [
- {
- "options": {
- "Charge": {
- "color": "semi-dark-green",
- "index": 0
- },
- "Discharge": {
- "color": "semi-dark-red",
- "index": 1
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 12,
- "x": 12,
- "y": 67
- },
- "id": 123178,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_mode_label AS mode\nFROM (\n select *, @e prev, @e:=battery_mode_label\n from pv_inverter_record, (select @e:='') e\n WHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\n) t\nWHERE\n prev <> battery_mode_label COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Mode",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "kwatt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 0,
- "y": 70
- },
- "id": 123131,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH pv_forecast_ranked AS (\n select\n pv_forecast.forecast_from_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n from\n pv_forecast\n JOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n where\n $__timeFilter(forecast_from_date)\n and pv_rooftop_id = 1\n order by forecast_from_date, request_date\n)\nSELECT\n UNIX_TIMESTAMP(forecast_from_date) AS \"time\",\n rooftop_kilowatts AS \"solcast.com string1\"\nFROM\n pv_forecast_ranked\nWHERE\n rn = 1\n",
- "refId": "C",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH pv_forecast_ranked AS (\n select\n pv_forecast.forecast_from_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n from\n pv_forecast\n JOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n where\n $__timeFilter(forecast_from_date)\n and pv_rooftop_id = 2\n order by forecast_from_date, request_date\n)\nSELECT\n UNIX_TIMESTAMP(forecast_from_date) AS \"time\",\n rooftop_kilowatts AS \"solcast.com string2\"\nFROM\n pv_forecast_ranked\nWHERE\n rn = 1\n",
- "refId": "E",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT time*(10*60) AS time, real_pv_string_1 FROM (\n\tSELECT\n\tFLOOR(UNIX_TIMESTAMP(log_date) / (10*60)) as time,\n\tAVG((pv_ppv1)/1000) AS real_pv_string_1\n\tFROM pv_inverter_record\n\tWHERE\n\t$__timeFilter(log_date)\n\tGROUP BY time\n\tORDER BY time\n)r",
- "refId": "D",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT time*(10*60) AS time, real_pv_string_2 FROM (\n\tSELECT\n\tFLOOR(UNIX_TIMESTAMP(log_date) / (10*60)) as time,\n\tAVG((pv_ppv2)/1000) AS real_pv_string_2\n\tFROM pv_inverter_record\n\tWHERE\n\t$__timeFilter(log_date)\n\tGROUP BY time\n\tORDER BY time\n)r",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Forecast / Real",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 0,
- "spanNulls": false
- },
- "mappings": [
- {
- "options": {
- "Charge": {
- "color": "semi-dark-green",
- "index": 0
- },
- "Dischg": {
- "color": "semi-dark-red",
- "index": 1
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 12,
- "x": 12,
- "y": 71
- },
- "id": 123200,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n base_state_label AS mode\nFROM (\n select *, @e prev, @e:=base_state_label\n from pv_battery_state_record, (select @e:='') e\n WHERE\n $__timeFilter(log_date)\n) t\nWHERE\n prev <> base_state_label COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Mode BMS",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "fillOpacity": 64,
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineWidth": 1,
- "spanNulls": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "orange",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 12,
- "x": 12,
- "y": 75
- },
- "id": 123179,
- "options": {
- "alignValue": "center",
- "legend": {
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "mergeValues": true,
- "rowHeight": 1,
- "showValue": "always",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n label AS label\nFROM (\n select log_date, @e prev, @e:=ifnull(nullif(trim(replace(replace(replace(replace(replace(replace(replace(replace(diagnose_result_label, 'Discharge BUS high PV voltage', ''), 'Self-use off', ''), 'Discharge Driver On', ''), 'Self-use load light', ''), 'Export power limit set', ''), 'PF value set', ''), 'Real power limit set', ''), ',', ' ')), ''), '-') AS label\n from pv_inverter_record, (select @e:='') e\n WHERE\n $__timeFilter(log_date)\n) t\nWHERE\n prev <> label COLLATE utf8_general_ci\nORDER BY log_date\n",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Battery Diagnostics",
- "type": "state-timeline"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 80
- },
- "id": 123188,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH\n\tpv_forecast_ranked_1 AS (\n\t\tselect\n\t\t\tpv_forecast.forecast_to_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n\t\tfrom\n\t\t\tpv_forecast\n\t\tJOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n\t\twhere\n\t\t\tDATE($__timeTo()) = DATE(forecast_to_date)\n\t\t\tand pv_rooftop_id = 1\n\t\torder by forecast_to_date, request_date\n\t),\n\tpv_forecast_ranked_2 AS (\n\t\tselect\n\t\t\tpv_forecast.forecast_to_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n\t\tfrom\n\t\t\tpv_forecast\n\t\tJOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n\t\twhere\n\t\t\tDATE($__timeTo()) = DATE(forecast_to_date)\n\t\t\tand pv_rooftop_id = 2\n\t\torder by forecast_to_date, request_date\n\t)\n\nSELECT * FROM (\n\tSELECT time, total_power AS pv_forecast_rest_power FROM (\n\t\tSELECT time, @curr:=(string1+string2)*(ABS(IF(@prevTime IS NULL, 0, time-@prevTime)/3600)) as kwh, @e:=@e+@curr AS total_power, @prevTime:=time FROM (\n\t\t\tSELECT\n\t\t\tUNIX_TIMESTAMP(pv_forecast_ranked_1.forecast_to_date) AS \"time\",\n\t\t\tpv_forecast_ranked_1.rooftop_kilowatts AS string1, pv_forecast_ranked_2.rooftop_kilowatts AS string2\n\t\t\tFROM\n\t\t\tpv_forecast_ranked_1, pv_forecast_ranked_2\n\t\t\tWHERE\n\t\t\tpv_forecast_ranked_1.forecast_to_date = pv_forecast_ranked_2.forecast_to_date\n\t\t\tAND pv_forecast_ranked_1.rn = 1\n\t\t\tAND pv_forecast_ranked_2.rn = 1\n\t\t\tORDER BY time DESC\n\t\t) forecast, (SELECT@e:=0)e, (SELECT@prevTime:=NULL)prevTime\n\t) forecast2\n\tORDER BY time ASC\n) forecast3",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Forecast Rest Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 84
- },
- "id": 123133,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n pv_ppv AS pv_source,\n -- ac_house_consumption*-1 as ac_house_consumption,\n -- battery_pbattery1 as battery_source,\n grid_active_power*-1 AS grid_source,\n GREATEST((IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0)) + (backup_p1+backup_p2+backup_p3), ac_house_consumption /*ac_pgrid1+ac_pgrid2+ac_pgrid3,*/)*-1 AS ac_house_consumption_maxof\n -- (ac_load_p1+ac_load_p2+ac_load_p3)*-1 AS ac_load_power,\n -- (backup_p1+backup_p2+backup_p3)*-1 AS backup_power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n current*voltage*-1 as bms_battery_source\nFROM pv_battery_state_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Power - All",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 12,
- "x": 0,
- "y": 88
- },
- "id": 123196,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH\n\tpv_forecast_ranked_1 AS (\n\t\tselect\n\t\t\tpv_forecast.forecast_to_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n\t\tfrom\n\t\t\tpv_forecast\n\t\tJOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n\t\twhere\n\t\t\t$__timeFilter(forecast_to_date)\n\t\t\tand pv_rooftop_id = 1\n\t\torder by forecast_to_date, request_date\n\t),\n\tpv_forecast_ranked_2 AS (\n\t\tselect\n\t\t\tpv_forecast.forecast_to_date, pv_forecast.kilowatts*pv_rooftop.power AS rooftop_kilowatts, ROW_NUMBER() OVER (PARTITION BY forecast_from_date ORDER BY request_date DESC) AS rn\n\t\tfrom\n\t\t\tpv_forecast\n\t\tJOIN pv_rooftop ON pv_rooftop.id = pv_rooftop_id\n\t\twhere\n\t\t\t$__timeFilter(forecast_to_date)\n\t\t\tand pv_rooftop_id = 2\n\t\torder by forecast_to_date, request_date\n\t)\n\nSELECT * FROM (\n\tSELECT time, total_power AS pv_forecast_power FROM (\n\t\tSELECT time, @curr:=(string1+string2)*(ABS(IF(@prevTime IS NULL, 0, time-@prevTime)/3600)) as kwh, @e:=@e+@curr AS total_power, @prevTime:=time FROM (\n\t\t\tSELECT\n\t\t\tUNIX_TIMESTAMP(pv_forecast_ranked_1.forecast_to_date) AS \"time\",\n\t\t\tpv_forecast_ranked_1.rooftop_kilowatts AS string1, pv_forecast_ranked_2.rooftop_kilowatts AS string2\n\t\t\tFROM\n\t\t\tpv_forecast_ranked_1, pv_forecast_ranked_2\n\t\t\tWHERE\n\t\t\tpv_forecast_ranked_1.forecast_to_date = pv_forecast_ranked_2.forecast_to_date\n\t\t\tAND pv_forecast_ranked_1.rn = 1\n\t\t\tAND pv_forecast_ranked_2.rn = 1\n\t\t\tORDER BY time ASC\n\t\t) forecast, (SELECT@e:=0)e, (SELECT@prevTime:=NULL)prevTime\n\t) foreast2\n\tORDER BY time ASC\n) foreast3",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS house_consumption_kwh FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\t-- ac_house_consumption AS power_value\n\t\tGREATEST((IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0)) + (backup_p1+backup_p2+backup_p3), ac_house_consumption) AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS pv_harvested_kwh FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tpv_ppv AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS grid_export_kwh FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tIF(grid_meter_active_power1 > 0, grid_meter_active_power1, 0) + IF(grid_meter_active_power2 > 0, grid_meter_active_power2, 0) + IF(grid_meter_active_power3 > 0, grid_meter_active_power3, 0) AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "C",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS grid_import_kwh FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\t-1*(IF(grid_meter_active_power1 < 0, grid_meter_active_power1, 0) + IF(grid_meter_active_power2 < 0, grid_meter_active_power2, 0) + IF(grid_meter_active_power3 < 0, grid_meter_active_power3, 0)) AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "D",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Power Sums",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 92
- },
- "id": 123185,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n grid_active_power1 as L1, grid_active_power2 as L2, grid_active_power3 as L3, grid_active_power1+grid_active_power2+grid_active_power3 as total\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = 1\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid Meter Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMin": 0,
- "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": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 12,
- "x": 0,
- "y": 100
- },
- "id": 123210,
- "options": {
- "barRadius": 0,
- "barWidth": 0.97,
- "fullHighlight": false,
- "groupWidth": 0.7,
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "orientation": "auto",
- "showValue": "auto",
- "stacking": "none",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- },
- "xTickLabelRotation": 0,
- "xTickLabelSpacing": 0
- },
- "targets": [
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_string1 FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tpv_ppv1 AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2 GROUP BY time_sec;",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_string2 FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tpv_ppv2 AS power_value\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2 GROUP BY time_sec;",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Harvest By PV String",
- "type": "barchart"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 100
- },
- "id": 123186,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n ac_pgrid1 as L1, ac_pgrid2 as L2, ac_pgrid3 as L3, ac_pgrid1+ac_pgrid2+ac_pgrid3 AS total\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Inverter AC Output Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 108
- },
- "id": 123209,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n backup_p1 as backup_L1, backup_p2 as backup_L2, backup_p3 as backup_L3,\n ac_load_p3 as ac_load_L3, ac_load_p2 as ac_load_L2, ac_load_p1 as ac_load_L1\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Phases Load",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 6,
- "axisSoftMin": 0,
- "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": "kwatth"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 12,
- "x": 0,
- "y": 112
- },
- "id": 123211,
- "options": {
- "barRadius": 0,
- "barWidth": 0.97,
- "fullHighlight": false,
- "groupWidth": 0.7,
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "orientation": "auto",
- "showValue": "auto",
- "stacking": "none",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- },
- "xTickLabelRotation": 0,
- "xTickLabelSpacing": 0
- },
- "targets": [
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_per_kwp_string1 FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tpv_ppv1 / pv_rooftop_history.power AS power_value\n\t\tFROM pv_inverter_record\n\t\tJOIN pv_rooftop_history ON pv_rooftop_id = 1 AND pv_inverter_record.log_date >= pv_rooftop_history.from_date AND pv_inverter_record.log_date <= pv_rooftop_history.to_date\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2 GROUP BY time_sec;",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_per_kwp_string2 FROM (\n\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tpv_ppv2 / pv_rooftop_history.power AS power_value\n\t\tFROM pv_inverter_record\n\t\tJOIN pv_rooftop_history ON pv_rooftop_id = 2 AND pv_inverter_record.log_date >= pv_rooftop_history.from_date AND pv_inverter_record.log_date <= pv_rooftop_history.to_date\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2 GROUP BY time_sec;",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Harvest By PV String Per KWP",
- "type": "barchart"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 12,
- "y": 116
- },
- "id": 123194,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n ac_load_p1+ac_load_p2+ac_load_p3 AS ac_load_total,\n ac_pgrid1+ac_pgrid2+ac_pgrid3 AS ac_pgrid_total,\n grid_meter_active_power1+grid_meter_active_power2+grid_meter_active_power3 AS grid_meter_active_power,\n backup_p1+backup_p2+backup_p3 AS backup_total,\n ac_house_consumption AS ac_house_consumption,\n GREATEST((IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0)) + (backup_p1+backup_p2+backup_p3), ac_house_consumption) AS ac_house_consumption_maxof\n -- GREATEST(ac_load_p1+ac_load_p2+ac_load_p3, ac_pgrid1+ac_pgrid2+ac_pgrid3, backup_p1+backup_p2+backup_p3, ac_house_consumption) AS ac_house_consumption_maxof\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "AC House Consumption",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds",
- "seriesBy": "last"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 200,
- "axisSoftMin": -200,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 13,
- "gradientMode": "scheme",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "stepBefore",
- "lineStyle": {
- "fill": "solid"
- },
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "line"
- }
- },
- "mappings": [
- {
- "options": {
- "from": 0,
- "result": {
- "color": "purple",
- "index": 0
- },
- "to": 999
- },
- "type": "range"
- },
- {
- "options": {
- "from": -999,
- "result": {
- "color": "yellow",
- "index": 1
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "blue",
- "value": null
- },
- {
- "color": "#EAB839",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 12,
- "x": 0,
- "y": 124
- },
- "id": 123212,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH\n\tpv_string1 AS (\n\t\tSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_per_kwp FROM (\n\t\t\tSELECT time, @curr:=power_value*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @curr AS total_ws, @prevT:=time FROM (\n\t\t\t\tSELECT\n\t\t\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\t\t\tpv_ppv1 / (SELECT power FROM pv_rooftop WHERE id = 1) AS power_value\n\t\t\t\tFROM pv_inverter_record\n\t\t\t\tWHERE\n\t\t\t\t$__timeFilter(log_date)\n\t\t\t\tORDER BY log_date\n\t\t\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n\t\t)r2 GROUP BY time_sec\n\t),\n\tpv_string2 AS (\n\t\tSELECT UNIX_TIMESTAMP(DATE(FROM_UNIXTIME(time))) AS time_sec, SUM(total_ws/1000/3600) AS pv_harvested_kwh_per_kwp FROM (\n\t\t\tSELECT time, @curr:=power_value*(IF(@prevT2 IS NULL, 0, time-@prevT2)) as ws, @curr AS total_ws, @prevT2:=time FROM (\n\t\t\t\tSELECT\n\t\t\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\t\t\tpv_ppv2 / (SELECT power FROM pv_rooftop WHERE id = 2) AS power_value\n\t\t\t\tFROM pv_inverter_record\n\t\t\t\tWHERE\n\t\t\t\t$__timeFilter(log_date)\n\t\t\t\tORDER BY log_date\n\t\t\t)r1, (SELECT@e:=0)e, (SELECT@prevT2:=NULL)prevT2\n\t\t)r2 GROUP BY time_sec\n\t)\n\n\nSELECT\n\tpv_string1.time_sec AS time_sec, IF(pv_string1.pv_harvested_kwh_per_kwp >= pv_string2.pv_harvested_kwh_per_kwp, 1, -1) * (GREATEST(pv_string1.pv_harvested_kwh_per_kwp, pv_string2.pv_harvested_kwh_per_kwp) / LEAST(pv_string1.pv_harvested_kwh_per_kwp, pv_string2.pv_harvested_kwh_per_kwp)-1) * 100 AS efficiency\nFROM \n\tpv_string1\nINNER JOIN pv_string2 ON pv_string2.time_sec = pv_string1.time_sec\n",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "PV Harvesting Efficiency String1 vs String2",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 12,
- "y": 126
- },
- "id": 123213,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n grid_meter_active_power1+grid_meter_active_power2+grid_meter_active_power3 AS export_power\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \n and (grid_meter_active_power1+grid_meter_active_power2+grid_meter_active_power3) > 7000\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid Export > 7kw",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "-- Mixed --"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 136
- },
- "id": 123221,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH RECURSIVE dates AS ( SELECT DATE($__timeFrom()) AS log_date UNION ALL SELECT log_date + INTERVAL 1 DAY FROM dates WHERE log_date < $__timeTo() )\nSELECT time, kwh - (SELECT pv_e_total FROM pv_inverter_record WHERE log_date = DATE($__timeFrom()) LIMIT 1) AS kwh_gibon FROM (\n SELECT \n UNIX_TIMESTAMP(dates.log_date) AS \"time\",\n (SELECT pv_inverter_record.pv_e_total\n FROM pv_inverter_record\n WHERE pv_inverter_record.log_date = dates.log_date\n LIMIT 1) AS kwh\n FROM dates\n HAVING kwh IS NOT NULL\n) a",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "uid": "s4WMx3uVz"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "WITH RECURSIVE dates AS ( SELECT DATE($__timeFrom()) AS log_date UNION ALL SELECT log_date + INTERVAL 1 DAY FROM dates WHERE log_date < $__timeTo() )\nSELECT time, kwh - (SELECT pv_e_total FROM pv_inverter_record WHERE log_date = DATE($__timeFrom()) LIMIT 1) AS kwh_ota FROM (\n SELECT \n UNIX_TIMESTAMP(dates.log_date) AS \"time\",\n (SELECT pv_inverter_record.pv_e_total\n FROM pv_inverter_record\n WHERE pv_inverter_record.log_date = dates.log_date\n LIMIT 1) AS kwh\n FROM dates\n HAVING kwh IS NOT NULL\n) a",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Total Production GIbon vs Oto",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "kwatt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 136
- },
- "id": 123202,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS consumption_kwh_L1 FROM (\n\tSELECT time, @curr:=consumption*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tbackup_p1 + IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0) AS consumption\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS consumption_kwh_L2 FROM (\n\tSELECT time, @curr:=consumption*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tbackup_p2 + IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0) AS consumption\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "\nSELECT time, total_ws/1000/3600 AS consumption_kwh_L3 FROM (\n\tSELECT time, @curr:=consumption*(IF(@prevT IS NULL, 0, time-@prevT)) as ws, @e:=@e+@curr AS total_ws, @prevT:=time FROM (\n\t\tSELECT\n\t\tUNIX_TIMESTAMP(log_date) AS \"time\",\n\t\tbackup_p3 + IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0) AS consumption\n\t\tFROM pv_inverter_record\n\t\tWHERE\n\t\t$__timeFilter(log_date)\n\t\tORDER BY log_date\n\t)r1, (SELECT@e:=0)e, (SELECT@prevT:=NULL)prevT\n)r2;",
- "refId": "C",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "House Consumption Sum",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 144
- },
- "id": 123191,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n backup_p1 AS L1, backup_p2 AS L2, backup_p3 AS L3, backup_ptotal AS total\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "UPS Power",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "max": 100,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 152
- },
- "id": 123192,
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n backup_ups_load\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "UPS Power Load",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "volt"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 160
- },
- "id": 123184,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n ac_vgrid1 as L1, ac_vgrid2 as L2, ac_vgrid3 as L3\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid Voltage",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "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": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "rothz"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 168
- },
- "id": 123187,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "editorMode": "code",
- "format": "time_series",
- "group": [],
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n ac_fgrid1 as L1, ac_fgrid2 as L2, ac_fgrid3 as L3\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\n AND pv_inverter_id = $pv_inverter_id \nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "sql": {
- "columns": [
- {
- "parameters": [],
- "type": "function"
- }
- ],
- "groupBy": [
- {
- "property": {
- "type": "string"
- },
- "type": "groupBy"
- }
- ],
- "limit": 50
- },
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Grid Frequency",
- "type": "timeseries"
- },
- {
- "collapsed": true,
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 176
- },
- "id": 123216,
- "panels": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "line"
- }
- },
- "decimals": 3,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "dark-red",
- "value": 360
- },
- {
- "color": "semi-dark-orange",
- "value": 422
- },
- {
- "color": "dark-red",
- "value": 432
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 2
- },
- "id": 123214,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_vbattery1 as voltage\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "A",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n s1/10 as bms_can_voltage\nFROM bms_can\nWHERE\n $__timeFilter(log_date)\n and cmd=4211\nORDER BY log_date",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_ibattery1 as current\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "C",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n -1*current as pv_battery_state_record_current\nFROM pv_battery_state_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date",
- "refId": "F",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n -1*(b3-48 + (117-b4)*-256 )/10 as bms_can_current, b3 as b3, b4 /*, 117-b4*/\nFROM bms_can\nWHERE\n $__timeFilter(log_date)\n and cmd=4211\nORDER BY log_date",
- "refId": "D",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n b5\nFROM bms_can\nWHERE\n $__timeFilter(log_date)\n and cmd=4211\nORDER BY log_date",
- "refId": "E",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n b8\nFROM bms_can\nWHERE\n $__timeFilter(log_date)\n and cmd=4221\nORDER BY log_date",
- "refId": "G",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": true,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n battery_charge_limit AS battery_charge_limit\nFROM pv_inverter_record\nWHERE\n $__timeFilter(log_date)\nORDER BY log_date ASC",
- "refId": "H",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n UNIX_TIMESTAMP(log_date) AS \"time\",\n b1, b2, b3, b4, b5, b6, b7, b8\nFROM bms_can\nWHERE\n $__timeFilter(log_date)\n and cmd=4211\nORDER BY log_date",
- "refId": "I",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "bms can test",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "line"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "#ffffff",
- "value": 0
- }
- ]
- },
- "unit": "watt"
- },
- "overrides": [
- {
- "__systemRef": "hideSeriesFrom",
- "matcher": {
- "id": "byNames",
- "options": {
- "mode": "exclude",
- "names": [
- "missing_power",
- "battery_power",
- "grid_active_power"
- ],
- "prefix": "All except:",
- "readOnly": true
- }
- },
- "properties": [
- {
- "id": "custom.hideFrom",
- "value": {
- "legend": false,
- "tooltip": false,
- "viz": true
- }
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 2
- },
- "id": 123208,
- "options": {
- "legend": {
- "calcs": [
- "last",
- "min",
- "max"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "format": "time_series",
- "group": [],
- "hide": false,
- "metricColumn": "none",
- "rawQuery": true,
- "rawSql": "SELECT\n time,\n grid_active_power,\n ac_house_consumption_maxof,\n pv_ppv,\n ac_house_consumption_maxof - pv_ppv AS missing_power,\n battery_power\nFROM (\n SELECT\n UNIX_TIMESTAMP(pv_battery_state_record.log_date) AS \"time\",\n grid_active_power,\n GREATEST((IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p1, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p2, 0)+IF(work_mode_label = \"Normal (On-Grid)\", ac_load_p3, 0)) + (backup_p1+backup_p2+backup_p3), ac_house_consumption /*ac_pgrid1+ac_pgrid2+ac_pgrid3,*/) AS ac_house_consumption_maxof,\n pv_inverter_record.pv_ppv,\n pv_battery_state_record.voltage*pv_battery_state_record.current AS battery_power\n FROM pv_battery_state_record\n JOIN pv_inverter_record ON pv_inverter_record.log_date = pv_battery_state_record.log_date\n WHERE\n $__timeFilter(pv_battery_state_record.log_date)\n -- AND pv_battery_state_record.base_state_label = 'Idle'\n -- AND pv_inverter_record.grid_active_power < 100\n ORDER BY pv_battery_state_record.log_date\n) x",
- "refId": "B",
- "select": [
- [
- {
- "params": [
- "id"
- ],
- "type": "column"
- }
- ]
- ],
- "table": "_is_generic_admin_media_objects",
- "timeColumn": "date_of_creation",
- "timeColumnType": "timestamp",
- "where": [
- {
- "name": "$__timeFilter",
- "params": [],
- "type": "macro"
- }
- ]
- }
- ],
- "title": "Err Battery Idle Grid Importing",
- "type": "timeseries"
- }
- ],
- "targets": [
- {
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "refId": "A"
- }
- ],
- "title": "Tests",
- "type": "row"
- }
- ],
- "refresh": "",
- "schemaVersion": 38,
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": false,
- "text": "1",
- "value": "1"
- },
- "datasource": {
- "type": "mysql",
- "uid": "BjbJE3u7z"
- },
- "definition": "SELECT id FROM pv_inverter",
- "hide": 0,
- "includeAll": false,
- "label": "PV Inverter",
- "multi": false,
- "name": "pv_inverter_id",
- "options": [],
- "query": "SELECT id FROM pv_inverter",
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "now/d",
- "to": "now/d"
- },
- "timepicker": {
- "hidden": false,
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ],
- "type": "timepicker"
- },
- "timezone": "browser",
- "title": "PV Power Plant",
- "uid": "tvkQKVwnz",
- "version": 313,
- "weekStart": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment