Skip to content

Commit

Permalink
small consistency improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
swiffer committed Dec 8, 2024
1 parent 2a5ac8f commit e56b745
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 16 deletions.
24 changes: 19 additions & 5 deletions grafana/dashboards/battery-health.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"type": "grafana-postgresql-datasource",
"uid": "TeslaMate"
},
"description": "**Usable (now)** is the estimated current battery capacity. It is average of the estimated capacity reported by the last 10 charging sessions to have a better estimation.\n\nIf you see just '1.0 kWh' here, it means that you need at least a long charge session.\n\n**Usable (new)** is the estimated Battery Capacity since you begun to use Teslamate. That's why, the more data you have logged from your brand new car the better. For those who have not used Teslamate since they got their new car, or for those who have bought it second hand, it's possible to set the max range to 100% and the battery capacity of the car battery when it was new in order to get a better and accurate estimation.",
"description": "**Usable (now)** is the estimated current battery capacity. It is average of the estimated capacity reported by the last 10 charging sessions to have a better estimation.\n\nIf you see just '1.0 kWh' here, it means that you need at least a long charge session.\n\n**Usable (new)** is the estimated Battery Capacity since you begun to use TeslaMate. That's why, the more data you have logged from your brand new car the better. For those who have not used TeslaMate since they got their new car, or for those who have bought it second hand, it's possible to set the max range to 100% and the battery capacity of the car battery when it was new in order to get a better and accurate estimation.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -305,7 +305,7 @@
"type": "grafana-postgresql-datasource",
"uid": "TeslaMate"
},
"description": "\"Logged\" is the distance traveled that is saved on Teslamate database.\n\n\"Mileage\" is the distance the car has traveled since using Teslamate.\n\nSo, if there is a difference between both values, it is the distance that for some reason a drive hasn't been fully recorded, for example due to a bug or an unexpected restart and that Teslamate has not been able to record, either due to lack of connection, areas without signal, or that it has been out of service.",
"description": "\"Logged\" is the distance traveled that is saved on TeslaMate database.\n\n\"Mileage\" is the distance the car has traveled since using TeslaMate.\n\nSo, if there is a difference between both values, it is the distance that for some reason a drive hasn't been fully recorded, for example due to a bug or an unexpected restart and that TeslaMate has not been able to record, either due to lack of connection, areas without signal, or that it has been out of service.",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -331,6 +331,13 @@
"y": 0
},
"id": 37,
"links": [
{
"targetBlank": true,
"title": "Drive Stats",
"url": "/d/_7WkNSyWk/drive-stats"
}
],
"options": {
"colorMode": "value",
"graphMode": "none",
Expand Down Expand Up @@ -665,7 +672,7 @@
"type": "grafana-postgresql-datasource",
"uid": "TeslaMate"
},
"description": "This dashboard is meant to have a look of the Battery health based on the data logged in Teslamate. So, the more data you have logged from your brand new car the better.\n\n**Degradation** is just an estimated value to have a reference, measured on **usable battery level** of every charging session with enough kWh added (in order to avoid dirty data from the sample), calculated according to the rated efficiency of the car.",
"description": "This dashboard is meant to have a look of the Battery health based on the data logged in TeslaMate. So, the more data you have logged from your brand new car the better.\n\n**Degradation** is just an estimated value to have a reference, measured on **usable battery level** of every charging session with enough kWh added (in order to avoid dirty data from the sample), calculated according to the rated efficiency of the car.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -928,6 +935,13 @@
"y": 6
},
"id": 36,
"links": [
{
"targetBlank": true,
"title": "Charging Stats",
"url": "/d/-pkIkhmRz/charging-stats"
}
],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
Expand Down Expand Up @@ -1909,7 +1923,7 @@
"text": "0",
"value": "0"
},
"description": "Set the capacity of your car battery when it was new, in case you started using Teslamate after a while of having it. If not, leave it at 0, it will be calculated with the data that is logged in Teslamate",
"description": "Set the capacity of your car battery when it was new, in case you started using TeslaMate after a while of having it. If not, leave it at 0, it will be calculated with the data that is logged in TeslaMate",
"label": "Custom Battery Capacity (kWh) when new",
"name": "custom_kwh_new",
"options": [
Expand All @@ -1927,7 +1941,7 @@
"text": "0",
"value": "0"
},
"description": "Set the max range to 100% of your car when it was new, in case you started using Teslamate after a while of having it. If not, leave it at 0, the degradation will be calculated with the data that is logged in Teslamate",
"description": "Set the max range to 100% of your car when it was new, in case you started using TeslaMate after a while of having it. If not, leave it at 0, the degradation will be calculated with the data that is logged in TeslaMate",
"label": "Custom Max Range when new",
"name": "custom_max_range",
"options": [
Expand Down
2 changes: 1 addition & 1 deletion grafana/dashboards/charges.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
{
"targetBlank": false,
"title": "View charge details",
"url": "d/BHhxFeZRz/charge-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-charging_process_id=${__data.fields.id.numeric}"
"url": "/d/BHhxFeZRz/charge-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-charging_process_id=${__data.fields.id.numeric}"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion grafana/dashboards/charging-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@
"value": [
{
"title": "Show charge details",
"url": "d/BHhxFeZRz/charge-details?from=${__data.fields.start_date.numeric}&to=${__data.fields.end_date.numeric}&var-car_id=${car_id}&var-charging_process_id=${__data.fields.charging_process_id.numeric}"
"url": "/d/BHhxFeZRz/charge-details?from=${__data.fields.start_date.numeric}&to=${__data.fields.end_date.numeric}&var-car_id=${car_id}&var-charging_process_id=${__data.fields.charging_process_id.numeric}"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion grafana/dashboards/drives.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
{
"targetBlank": false,
"title": "View drive details",
"url": "d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-drive_id=${__data.fields.drive_id.numeric}"
"url": "/d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-drive_id=${__data.fields.drive_id.numeric}"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions grafana/dashboards/statistics.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"targetBlank": true,
"title": "Trip",
"url": "d/FkUpJpQZk/trip?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
"url": "/d/FkUpJpQZk/trip?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
}
]
},
Expand Down Expand Up @@ -184,7 +184,7 @@
{
"targetBlank": true,
"title": "Charging stats",
"url": "d/-pkIkhmRz/charging-stats?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
"url": "/d/-pkIkhmRz/charging-stats?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
}
]
},
Expand Down Expand Up @@ -246,7 +246,7 @@
{
"targetBlank": true,
"title": "Charges",
"url": "d/TSmNYvRRk/charges?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
"url": "/d/TSmNYvRRk/charges?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
}
]
},
Expand All @@ -268,7 +268,7 @@
{
"targetBlank": true,
"title": "Drives",
"url": "d/Y8upc6ZRk/drives?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
"url": "/d/Y8upc6ZRk/drives?from=${__data.fields.date_from}&to=${__data.fields.date_to}&var-car_id=$car_id"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion grafana/dashboards/timeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"targetBlank": true,
"title": "",
"url": "d/FkUpJpQZk/trip?from=${__data.fields.start_date_ts}&to=${__data.fields.end_date_ts}&var-car_id=$car_id"
"url": "/d/FkUpJpQZk/trip?from=${__data.fields.start_date_ts}&to=${__data.fields.end_date_ts}&var-car_id=$car_id"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions grafana/dashboards/trip.json
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@
{
"targetBlank": false,
"title": "View drive details",
"url": "d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-drive_id=${__data.fields.drive_id.numeric}"
"url": "/d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-drive_id=${__data.fields.drive_id.numeric}"
}
]
},
Expand Down Expand Up @@ -2009,7 +2009,7 @@
{
"targetBlank": false,
"title": "View charge details",
"url": "d/BHhxFeZRz/charge-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-charging_process_id=${__data.fields.id.numeric:raw}"
"url": "/d/BHhxFeZRz/charge-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}&var-car_id=${__data.fields.car_id.numeric}&var-charging_process_id=${__data.fields.id.numeric:raw}"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion grafana/dashboards/vampire-drain.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{
"targetBlank": false,
"title": "",
"url": "d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}"
"url": "/d/zm7wN6Zgz/drive-details?from=${__data.fields.start_date_ts.numeric}&to=${__data.fields.end_date_ts.numeric}"
}
]
},
Expand Down

0 comments on commit e56b745

Please sign in to comment.