Skip to content

Instantly share code, notes, and snippets.

@eranrund
Created May 3, 2020 22:29
Show Gist options
  • Save eranrund/60c9e708aa1880fa5637de5d51f829d2 to your computer and use it in GitHub Desktop.
Save eranrund/60c9e708aa1880fa5637de5d51f829d2 to your computer and use it in GitHub Desktop.
electrodacus grafana json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 3,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 24,
"interval": "1h",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg_over_time(sbms_pv_watts_combined[1h])",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Solar Watt/Hour generated",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 0,
"y": 8
},
"id": 8,
"options": {
"fieldOptions": {
"calcs": [
"mean"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 100,
"min": -100,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 0
}
],
"unit": "amp"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_battery_amperes",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Battery Current",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 3,
"y": 8
},
"id": 26,
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"mappings": [],
"max": 500,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 400
}
],
"unit": "watt"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_battery_watts",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Battery Watts",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 6,
"y": 8
},
"id": 6,
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 28,
"min": 25,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 28
}
],
"unit": "volt"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sum(sbms_battery_volts)",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Battery Voltage",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 9,
"y": 8
},
"id": 2,
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
],
"unit": "percent"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_battery_soc",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "SOC",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 0,
"y": 15
},
"id": 29,
"options": {
"fieldOptions": {
"calcs": [
"mean"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 100,
"min": -100,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 0
}
],
"unit": "amp"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sum(sbms_pv_amperes_combined)",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "PV Current",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 3,
"y": 15
},
"id": 28,
"options": {
"fieldOptions": {
"calcs": [
"mean"
],
"defaults": {
"mappings": [],
"max": 500,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
],
"unit": "watt"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sum(sbms_pv_watts_combined)",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "PV Watts",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 6,
"y": 15
},
"id": 30,
"options": {
"fieldOptions": {
"calcs": [
"mean"
],
"defaults": {
"mappings": [],
"max": 500,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
],
"unit": "watt"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_pv_watts_combined - sbms_battery_watts",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Load Watts",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 9,
"y": 15
},
"id": 14,
"options": {
"fieldOptions": {
"calcs": [
"mean"
],
"defaults": {
"mappings": [],
"max": 60,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 35
}
],
"unit": "celsius"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_thermistor_celsius{sensor=\"internal\"}",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Temperature",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 3,
"x": 0,
"y": 22
},
"id": 31,
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"decimals": 0,
"mappings": [],
"max": 150,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 28
}
],
"unit": "mvolt"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "(max(sbms_cell_volts) - min(sbms_cell_volts)) * 1000",
"instant": true,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Cell imbalance",
"type": "gauge"
},
{
"gridPos": {
"h": 7,
"w": 9,
"x": 3,
"y": 22
},
"id": 4,
"options": {
"displayMode": "lcd",
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"decimals": 3,
"mappings": [],
"max": 3,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 3.35
}
],
"title": "",
"unit": "volt"
},
"override": {},
"values": false
},
"orientation": "vertical"
},
"pluginVersion": "6.3.6",
"targets": [
{
"expr": "sbms_cell_volts",
"instant": true,
"legendFormat": "{{cell}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Cell Voltage",
"type": "bargauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 29
},
"id": 22,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sbms_battery_soc",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "SOC over time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "percent",
"label": null,
"logBase": 1,
"max": "100",
"min": "0",
"show": true
},
{
"format": "percent",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 12,
"w": 12,
"x": 0,
"y": 37
},
"id": 32,
"interval": "",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sbms_battery_watts",
"legendFormat": "Battery Watts",
"refId": "C"
},
{
"expr": "sbms_pv_watts_combined",
"legendFormat": "PV Watts",
"refId": "D"
},
{
"expr": "sbms_pv_watts_combined - ignoring(instance, job) sbms_battery_watts",
"legendFormat": "Load Watts",
"refId": "F"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Watts over time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 2,
"format": "watt",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": 2,
"format": "watt",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 12,
"w": 12,
"x": 0,
"y": 49
},
"id": 10,
"interval": "",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sbms_battery_amperes",
"instant": false,
"intervalFactor": 1,
"legendFormat": "Battery Current",
"refId": "A"
},
{
"expr": "sbms_pv_amperes_combined",
"legendFormat": "PV Current",
"refId": "B"
},
{
"expr": "sbms_pv_amperes_combined - ignoring(instance, job) sbms_battery_amperes",
"legendFormat": "Load Current",
"refId": "E"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Current over time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 2,
"format": "amp",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": 2,
"format": "watt",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 61
},
"id": 12,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sbms_thermistor_celsius{sensor=\"internal\"}",
"legendFormat": "{{sensor}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Temperature",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "celsius",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 68
},
"id": 16,
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "sbms_updated",
"thresholds": [],
"type": "date",
"unit": "short"
}
],
"targets": [
{
"expr": "sbms_updated *1000",
"legendFormat": "sbms_updated",
"refId": "A"
},
{
"expr": "sbms_up",
"legendFormat": "sbms_up",
"refId": "B"
},
{
"expr": "sbms_device_status",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Panel Title",
"transform": "timeseries_to_columns",
"type": "table"
}
],
"refresh": "5s",
"schemaVersion": 19,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Electrodacus",
"uid": "sdV7bb3Wz",
"version": 12
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment