Commit Graph
493 Commits
Author SHA1 Message Date
Ingmar Stein 445289ca66 feat: preserve the folders when restoring dashboards (#4715)
* Preserve the folders when restoring dashboards

Use the dashboard UID instead of the dashboard name to get the folder
ID. This way, the dashboards get restored to their current location
instead of the root folder.

* Remove unused DS_CLOUDWATCH data source
2025-05-26 08:47:22 +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 ccabf27afc editable -> allowUiUpdates - there is no editable config key, see docs 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
Matthias Wirtz bdf4e4e3f0 perf: improvement and deprecated syntax removal (#4304)
* always use ideal_battery_range_km in conditions (to make use of index)

* remove deprecated var syntax
2024-10-27 08:31:14 +01:00
Matthias Wirtz b07dc595c6 perf: improvement in charge level (#4301) 2024-10-24 08:35:50 +02:00
Matthias Wirtz d922c24912 fix: hard-coded length unit in battery health dashboard (#4300) 2024-10-23 11:23:36 +02:00
Matthias Wirtz 6e9c557745 fix: weighted average calculation for consumption in drives dashboard (#4289) 2024-10-22 08:01:12 +02:00
Matthias Wirtz 4d348a1f63 exclude streaming data in visited dashboard (#4287) 2024-10-21 14:07:40 +02:00
Matthias Wirtz d5cb2c652f perf: exclude streaming date when getting battery level (#4286) 2024-10-21 13:24:28 +02:00