Skip to content

Commit

Permalink
Use built-in grafana visuals instead of plugins (#3439)
Browse files Browse the repository at this point in the history
* only dashboards

* make the dot blue instead of red, add missing xy chart for charge details

* add missing battery health xy chart

* increase route size for readability

* add new panels to charging-stats

* make plugin version implicit

* red route in drive details because blue doesn't stand out enough on OSM layer

* revert to red for charge location dot, make it somewhat bigger

* fatter line for trip too

* update battery health dash

* update lfp charging-stats

* fix charging stats maps

* improve DC curve visuals in charging stats, link to charging details

* wider lines in visited

* restore ability to edit query in visited dash

* align with #3454
  • Loading branch information
oivindoh authored Nov 21, 2023
1 parent 9c7057c commit 83fe4fa
Show file tree
Hide file tree
Showing 8 changed files with 1,279 additions and 937 deletions.
216 changes: 89 additions & 127 deletions grafana/dashboards/battery-health-lfp.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
"name": "Grafana",
"version": "8.5.15"
},
{
"type": "panel",
"id": "natel-plotly-panel",
"name": "Plotly",
"version": "0.0.7"
},
{
"type": "panel",
"id": "piechart",
Expand Down Expand Up @@ -1196,9 +1190,70 @@
"type": "bargauge"
},
{
"datasource": {
"type": "postgres",
"uid": "TeslaMate"
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"pointSize": {
"fixed": 6
},
"scaleDistribution": {
"type": "linear"
},
"show": "points"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "Median"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "custom.show",
"value": "lines"
},
{
"id": "custom.lineStyle",
"value": {
"fill": "solid"
}
}
]
}
]
},
"gridPos": {
"h": 8,
Expand All @@ -1208,129 +1263,40 @@
},
"id": 28,
"links": [],
"pconfig": {
"fixScale": "",
"layout": {
"dragmode": "zoom",
"font": {
"family": "\"Open Sans\", Helvetica, Arial, sans-serif"
},
"hovermode": "closest",
"legend": {
"orientation": "h"
},
"showlegend": false,
"xaxis": {
"rangemode": "normal",
"showgrid": true,
"title": "Odometer",
"type": "linear",
"zeroline": false
},
"yaxis": {
"rangemode": "normal",
"showgrid": true,
"title": "kWh",
"type": "linear",
"zeroline": false
},
"zaxis": {
"rangemode": "normal",
"showgrid": true,
"type": "linear",
"zeroline": false
}
},
"loadFromCDN": false,
"settings": {
"displayModeBar": false,
"type": "scatter"
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"showAnnotations": true,
"traces": [
"series": [
{
"mapping": {
"color": "id",
"text": "title",
"x": "odometer",
"y": "kWh"
},
"name": "Mileage, kWh",
"settings": {
"color_option": "ramp",
"line": {
"color": "#C0D8FF",
"dash": "dashdot",
"shape": "linear",
"width": 1
},
"marker": {
"color": "#33B5E5",
"colorscale": "Reds",
"line": {
"color": "#DDD",
"width": 0
},
"showscale": false,
"size": 10,
"sizemin": 3,
"sizemode": "diameter",
"sizeref": 0.2,
"symbol": "circle"
}
"pointColor": {
"field": "kWh"
},
"show": {
"line": true,
"lines": false,
"markers": true
}
"x": "odometer",
"y": "kWh"
},
{
"mapping": {
"color": "id",
"x": "M-Odometer",
"y": "M-kWh"
},
"name": "Median",
"settings": {
"color_option": "ramp",
"line": {
"color": "#C0D8FF",
"dash": "solid",
"shape": "linear",
"width": 2
},
"marker": {
"color": "#33B5E5",
"colorscale": "Reds",
"line": {
"color": "#DDD",
"width": 0
},
"showscale": false,
"size": 3,
"sizemin": 3,
"sizemode": "diameter",
"sizeref": 0.2,
"symbol": "circle"
}
"pointColor": {
"fixed": "dark-red"
},
"show": {
"line": true,
"lines": true,
"markers": false
}
"x": "M-Odometer",
"y": "M-kWh"
}
]
],
"seriesMapping": "manual",
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "8.5.6",
"targets": [
{
"alias": "",
"datasource": {
"type": "postgres",
"uid": "TeslaMate"
},
"datasource": "TeslaMate",
"format": "table",
"group": [],
"hide": false,
Expand Down Expand Up @@ -1359,10 +1325,7 @@
},
{
"alias": "",
"datasource": {
"type": "postgres",
"uid": "TeslaMate"
},
"datasource": "TeslaMate",
"format": "table",
"group": [],
"hide": false,
Expand Down Expand Up @@ -1393,8 +1356,7 @@
}
],
"title": "Battery Capacity by Mileage",
"type": "natel-plotly-panel",
"version": 1
"type": "xychart"
}
],
"refresh": "",
Expand Down Expand Up @@ -1547,4 +1509,4 @@
"uid": "DuertWeceu",
"version": 7,
"weekStart": ""
}
}
Loading

0 comments on commit 83fe4fa

Please sign in to comment.