Commit Graph
418 Commits
Author SHA1 Message Date
Matthias WirtzandJakob Lichterfeld 32b4e0b54f feat: use Grafana 12.1.0 (#4855)
* Grafana 12.1.0

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-07-28 17:15:37 +02:00
Matthias WirtzandJakob Lichterfeld 0eefeac20b feat: add total ascent & descent to the drive table, introduce slope-adjusted efficiency metric in drives dashboard (#4798)
* slope-adjusted efficiency

* docs: update changelog

* docs: include migration time in changelog

* docs: update changelog

* build: bump minor version

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-07-19 11:07:02 +02:00
Juan Carlos HerediaandJakob Lichterfeld 647b8c392c feat: add duration time to charges details dashboard (#4677)
* Add duration time

* Add screenshot

* docs: update screenshot with correct dimensions

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-07-19 11:05:03 +02:00
Ingmar SteinandJakob Lichterfeld 133d2e8c4c feat: use the k8s-style API introduced in Grafana v12 if using manual dashboard setup (#4764)
* Use the k8s-style API introduced in Grafana v12

Ensure that folders are created before restoring dashboards.

Note: the on-disk format will change in the next backup/restore
roundtrip because it now includes both the dashboard spec as well
as metadata. The restore function reads both formats.

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-07-11 08:18:01 +02:00
Matthias WirtzandJakob Lichterfeld e828b6ca17 feat: use Grafana 12.0.2 (#4805)
* Grafana 12.0.2

* docs: update changelog

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-06-21 17:08:03 +02:00
Matthias WirtzandJakob Lichterfeld 8ca246015d feat: use Grafana 12.0.1+security-01 (#4799)
* Grafana 12.0.1+security-01

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-06-14 12:43:31 +02:00
Matthias WirtzandJakob Lichterfeld b0d8ab92d1 feat(dashboards): several Improvements for Charging Stats, Statistics and Trip (#4791)
* duration filter, align query conditions across panels, detect consecutive charges, better cost per 100km for shorter time periods

* docs: update changelog

* add cost per 100km to trip dashboard

* add screenshot

* align cost per 100km calculations across all dashboards

* docs: update changelog with more details

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-06-10 13:27:37 +02:00
Matthias WirtzandJakob Lichterfeld bbbb20f6f0 fix: align usage of time-range filters to fix consumption gross issues in some edge cases (#4787)
* align effects of timerange filter

* consider drives at end of period correctly as well

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-06-09 11:35:33 +02:00
Matthias WirtzandJakob Lichterfeld 571ae70b6f feat: use Grafana 12.0.1 (#4756)
* Grafana 12.0.1

* remove workarounds as all supported platforms have 12.0.0 or later

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-24 13:16:47 +02:00
Matthias WirtzandJakob Lichterfeld 88eaf9a11c fix: consumption for drives with positive soc diff (#4746)
* fix consumption for drives with positive soc diff

* refactor query for total energy consumed (basing it on consumption gross query)

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-24 10:07:31 +02:00
Matthias Wirtz 029f0ec18c fix hardcoded id 2025-05-17 07:09:28 +02:00
Matthias Wirtz 186ddd7fd2 juniper-and-back-to-dark-image 2025-05-14 11:41:59 +02:00
Matthias WirtzandJakob Lichterfeld c31c22d69c feat: use Grafana 12.0.0 (#4721)
* Grafana 12.0.0

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-05-07 18:53:26 +02:00
JakobLichterfeld a7d4e267da fix: new image on home dashboard as old got removed from Tesla mediaserver (#4702)
* fix: new image on home dashboard as old got removed from Tesla media server

* docs: update changelog
2025-04-27 12:39:57 +02:00
Matthias WirtzandJakob Lichterfeld f4cdc6c2b2 feat: use Grafana 11.6.1 to fix issues when using browser locale for date formats (#4662)
* Grafana 11.6.1

* fix #4690

* increase dateTimeAsLocal column width to 210 for en-us locale, remove obsolete config entries

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-25 16:24:36 +02:00
Matthias WirtzandJakob Lichterfeld 4b6e5bb559 fix: set $__timezone explicitly in dashboards to ensure truncation is done with respect to the Grafana timezone (#4684)
* set $__timezone explicitly

* convert to grafana timezone before to_char()

* exclude incomplete drives

* exclude incomplete drives in additional places

* docs: update changelog

* style: linter findings

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-22 11:45:36 +02:00
Matthias WirtzandJakob Lichterfeld 38ff2a2858 fix: explicitly set height of home dashboard background image based on current layout & grafana css (#4681)
* explicitly set height of background image based on current layout & grafana css

* docs: update changelog

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-22 09:34:10 +02:00
Matthias WirtzandJakob Lichterfeld 78e03b8153 fix: use same rated range calculation in updates dashboard as in battery health dashboard (#4682)
* limit drives in range calc to useable_battery_level > 0

this replicates the behavior used in battery health dashboard

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-21 09:31:34 +02:00
Matthias WirtzandJakob Lichterfeld 012b82db25 feat: make use of car filter, add timefilter in locations dashboard (#4647)
* make use of car filter, add timefilter

* add charging_processes to last visited addresses

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2025-04-12 13:26:23 +02:00
Matthias Wirtz 76b8479a44 improve calc for usable (now) (#4644) 2025-04-10 15:11:29 +02:00
Matthias Wirtz 14e910628e feat: Grafana 11.6.0 (#4570)
* disable database high availability mode (single instance)

* Grafana 11.6.0
2025-03-27 15:54:15 +01:00
Juan Carlos Heredia ab47b1471e feat: add Database Information Dashboard (#4578)
* Migrate dashboard from custom repo

* Edit links, tags and grafana plug-in version

* Update comment on Manually fixing data

* Update Index hints

* Rearrange panels and hints

* Update screenshots

* MD Format

* Update screenshots.mdx file

* Format with treefmt
2025-03-09 11:36:00 +01:00
Matthias Wirtz 315fa684f9 feat(dashboards): improve elevation scale in drive stats (#4546) 2025-02-22 09:46:23 +01:00
Matthias Wirtz 73275ff4e2 feat: Grafana 11.5.2 (#4551) 2025-02-22 09:13:42 +01:00
Matthias Wirtz 1902dc5d2f feat: Grafana 11.5.0 (#4509) 2025-02-02 09:52:40 +01:00
Matthias Wirtz 8c999d2d38 feat: add 0 as lower bound for gauge to ensure proper scaling (#4498) 2025-01-28 14:05:41 +01:00
Matthias Wirtz 1a220d97e4 fix(dashboard): replace cross join with left join (#4463)
* replace cross join with left join

* ensure fallback to car efficiency works if derived efficiency is empty
2025-01-03 08:54:43 +01:00
Felix 85fd3cc4b2 fix: url for releases in home dashboard (#4452) 2024-12-23 12:53:17 +01:00
Matthias Wirtz c7770ec121 fix for battery health dashboard erroring out if no charge data has been collected so far (#4448) 2024-12-23 12:03:28 +01:00
Matthias Wirtz 38cca3ce7c feat: Update Grafana to 11.4.0 (#4299)
* Grafana 11.4.0

* clean up annotations json

* small consistency improvements
2024-12-08 06:55:41 +01:00
jameskitt616 6740b1a963 feat: add Detailed Energy Use to drive-details (#4386)
* Add Detailed Energy Use to drive-details.json

* Update drive-details.json

* Fix Typo
2024-11-19 15:37:55 +01:00
Matthias Wirtz 6c79a758c3 feat: Dashboard refinements and standardization (#4367)
* use Unit kwatth instead of custom SQL

* replace last usage of case when with convert_km

* Naming Conventions, Descriptions & Alignments in Calculations

* use same query as in statistics

* adapt Driving Efficiency in Drives (more in line with Efficiency and Statistics)

* fix hard-coded length unit

* fix division by zero

* fix: min allowed of minWidth is 50

* a little more space here...

* fix: minWidth for auto-scaling

* accurate consumption gross (exclude charges only)

* . instead of ,

* improve consumption gross while charging

* faster consumption gross calculation

* consistent # of X for counts

* fix units of xy chart in battery health dashboard

* fix labels of xy charts & add decimals in top suc in charging stats dashboard

* change default time for trip to last 24h

* rework the query for better performance

* perf-fix

* high precision mode in statistics (consumption gross)

* typo

* same query in both dashboards - trips defaulting to high precision mode if period shorter than 10 days

* remove starting at, covered by period

* fix for periods starting and ending with charges + max one drive

* further improve accuracy in low precision mode and low data sample count

* short, fast, accurate

* fix sorting

* fix / improve condition for auto-enabling high precision mode
2024-11-18 08:26:02 +01:00
Matthias Wirtz 6f3be516ee fix: Axis Labels for XY Chart in Battery Health and reduces Query count in Visited (#4364)
* fix charging_curve missing axis labels

* Reduce Query Count on Visited Dashboard

* show full VIN when no name is set
2024-11-08 10:51:50 +01:00
Matthias Wirtz d64f799c5f fix: Charges Dashboard -> Range added renamed to Ø Charge rate (#4349)
* rename column Range added to Charge Rate

* Column refinement, Range gained added, Driven (km) removed
2024-11-05 17:08:17 +01:00
Matthias Wirtz 08873c7a9e layout fixes 2024-11-05 15:20:35 +01:00
Matthias Wirtz 2edbb9bd26 fix efficiency calculation 2024-11-05 15:20:35 +01:00
Matthias Wirtz 2e81a4e32c add GitHub Tags to Welcome Page (to see latest release) 2024-11-05 15:20:35 +01:00
Matthias Wirtz ca9bb1a99d use Open Street Map consistently 2024-11-05 15:20:35 +01:00
Matthias Wirtz 3b4731591a ensure timestamptz when using date_trunc for consistency 2024-11-05 15:20:35 +01:00
Matthias Wirtz 1ee2312bd2 use convert_km over case when ... 2024-11-05 15:20:35 +01:00
Matthias Wirtz e32aa3b28b Simplify SQL when using DATE_TRUNC 2024-11-05 15:20:35 +01:00
Matthias Wirtz 10217dabbe Grafana 11.2.3 2024-11-05 15:20:35 +01:00
Matthias Wirtz 1f734f7b19 Welcome Dashboard 2024-11-05 15:20:35 +01:00
Matthias Wirtz f44eeee937 improve performance in drive stats after #4284 2024-11-05 15:20:35 +01:00
Matthias Wirtz 74f3f878fd fix: ensure dutch-tax dashboard is not repeating multiple times per car (row and table) (#4317) 2024-10-29 13:41:31 +01:00
Matthias Wirtz 93e88815f6 fix: remove convert_km from kwh calculations in timeline dashboard (#4318) 2024-10-29 13:39:48 +01:00
Matthias Wirtz a98faeb1f2 date as datetimelocal (#4313) 2024-10-29 11:39:07 +01:00
Jan 3f32617265 feat: add max speed & speed histogram to drive stats (#4253)
* feat: add max speed & speed histogram to drive stats

* fix: percentages between 0 and 100; set static color

* fix: optimize speed histogram query

* exclude Streaming API data

* bring color in line with drive details speed histrogram

* fix: add speed unit to panel title
2024-10-29 11:13:14 +01:00
Matthias Wirtz 2aab5153f3 fix: re-add missing changes from pr 4124 (#4310) 2024-10-28 08:58:54 +01:00
Matthias Wirtz dffbf3c1d0 perf: add ideal_battery_range_km as query condition (#4305)
* perf: add ideal_battery_range_km as query condition

* fix: add alias to select

* in case of min_id > 0 pass min_id to first query as well
2024-10-28 08:56:35 +01:00