Commit Graph
53 Commits
Author SHA1 Message Date
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 68b5e356a6 update nix module with recent changes in grafana docker image 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
Matthias Wirtz bfe5e171aa fix image path (#4309) 2024-10-28 09:18:02 +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 999e947464 tuple returned here (#4293) 2024-10-22 07:43:56 +02:00
Matthias Wirtz 2fc749c899 docs: small wording refinements in changelog (#4292) 2024-10-21 18:13:19 +02:00
Matthias WirtzandJakob Lichterfeld 93fb64e846 docs: add best practice section to contribution guide (#4288)
* add some notes about db performance to contribution guide

* add docs for usage of timestamp columns

* format prettier

* fix: remove unneeded apostrophe

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
2024-10-21 16:04:13 +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
Matthias WirtzandJan S 6249287788 fix: for drives not showing if duration < 1 minute and feat: add max speed in drives dashboard (#4284)
* fix for drives not showing if duration < 1 minute

* feat: add max Speed column to drives table

---------

Co-authored-by: Jan S <jan@js94x.de>
2024-10-20 09:39:37 +02:00
Matthias Wirtz 183bd2e252 feat: use Grafana 11.0.6-security-01 (#4279) 2024-10-20 09:35:49 +02:00
Matthias Wirtz 955bde3cb6 fix: number of drives per day in drive stats (#4285) 2024-10-20 09:33:43 +02:00
Matthias Wirtz 9adc7dd8b0 perf-improvements-drive-stats (#4258) 2024-10-19 15:58:24 +02:00
Matthias Wirtz 2b36bad743 perf: fix skipping streaming data in charging stats (#4252)
* perf-fix-skipping-streaming-data

* use drives instead of positions for another 60x improvement
2024-10-19 15:49:23 +02:00
Matthias Wirtz b582b0be8b limit positions to set elevation for to last 10 days (#4228) 2024-10-06 12:33:48 +02:00
Matthias Wirtz a4f2e42534 json_build_object instead of concat in battery-health (#4229) 2024-09-29 11:21:52 +02:00
Matthias Wirtz 1c2fa7830f multiple cars, same name, add vin next to name (#4230) 2024-09-29 11:19:42 +02:00
Matthias Wirtz c67573e708 feat: PostgreSQL 17 (#4231) 2024-09-29 11:17:31 +02:00
Matthias Wirtz 62b1ec579a timezone fixes and moving window on beginning of period (#4217) 2024-09-19 19:12:53 +02:00
Matthias Wirtz c64384f0f6 add moving average / percentiles to charge level (#4200) 2024-09-16 14:09:45 +02:00
Matthias Wirtz ad3f34b693 Improve rounding to month / weeks / days in Updates "Since Previous Update" column (#4164) 2024-09-03 11:05:02 +02:00
Matthias Wirtz 4d152a38d9 downgrade grafana until maps issue in upstream grafana is resolved (#4071) 2024-07-10 08:25:58 +02:00
Matthias Wirtz 9be6aded4e localized grafana (#4064) 2024-07-08 13:51:38 +02:00
Matthias Wirtz a50bc74de4 use lfp_battery setting in dashboards & speed up updates dashboard (#4051)
* use lfp_battery setting in dashboards

* query perf. improvements in updates dashboard
2024-07-07 10:49:06 +02:00
Matthias Wirtz 6f3757f5b1 Grafana & Dashboard improvements (#4019) 2024-07-02 18:29:01 +02:00
Matthias Wirtz 796e13c82d Export all Dashboards via Grafana 11.0.0 (#3971) 2024-06-18 18:16:04 +02:00
Matthias Wirtz 6615acbc71 Integrate LFP specific dashboards into regular dashboards (#3966)
* Remove LFP Dashboards

* update LFP detect via VIN based on latest info available
2024-06-18 14:45:26 +02:00
Matthias Wirtz 7daf6f4e5e feat: use Grafana 11.0.0 (#3895) 2024-06-07 18:55:00 +02:00
Matthias Wirtz 9716a8be73 feat: Grafana 10.4.0 & Angular Deprecation (#3726)
* Grafana 10.4.0

* try disabling angular support again
2024-03-11 12:35:31 +01:00
Matthias Wirtz 1796294442 Grafana update to 10.1.2 (#3455)
* Grafana Update to 10.1.2

* add a hint on why 10.1.2 is chosen
2023-11-21 08:36:23 +01:00
Matthias Wirtz 578cae6935 Ensure Dashboards can be modified after Import - Migrate Projected Range to TimeSeries (#3454)
* Migrate Projected Range to TimeSeries (Graph Panel is deprecated)

* Ensure Panel Query Builder is rendered correctly after Import
2023-11-21 08:35:41 +01:00
Matthias Wirtz ed70976770 Endpoints Query Param, Docker 60s delay fixed, Typo fixed, Update several Dependencies (#3398)
* Endpoints Query Param, Docker 60s delay fixed, Typo fixed

* Update dependencies
2023-11-12 17:51:14 +01:00