Commit Graph
88 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
Matthias Wirtz 8dd6e74360 feat(db-check): allow beta / rc PostgreSQL versions for testing (#4795) 2025-07-14 09:19:10 +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 ed9bbc9ec4 docs: update changelog 2025-05-16 07:13:38 +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
Matthias Wirtz f03cd96b4e typos fixed 2025-04-25 20:44:56 +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
ca398000f8 fix(nix): non-recursive provider for ../grafana/dashboards (#4680)
* non-recursive provider for ../grafana/dashboards

* docs: update changelog

* fix(nix): fixc incorrect hashes

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
Co-authored-by: Brian May <brian@linuxpenguins.xyz>
2025-04-22 10:32:34 +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
54a4ee8b61 feat: check Postgres version on startup, require 16.7 / 17.3, update earthdistance extension (#4648)
* check postgres version on startup

* update earthdistance to 1.2

* detail postgres requirement

* align additional requirements

* 17 is available on nixpkgs now

* allow upcoming major as well but issue a warning

* style: linter findings

* ci: skip ghcr build for PRs from outside repo (#4660)

* ci: skip ghcr build for PRs from outside repo

* docs: update changelog

* ci: early exit if check paths triggers

* ci: improve ghcr check_if_pr_from_outside_repo logging

* feat:show tpms value to the low pressure tooltip in webview (#4654)

* Added the tpms value to the tooltip

* Update pot files

* mix format

* Revert "mix format"

This reverts commit bbfe5aaa9f.

* style: linter findings

* Update pot files

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>

* docs: update changelog

---------

Co-authored-by: Jakob Lichterfeld <jakob-lichterfeld@gmx.de>
Co-authored-by: Nir Klinger <45952578+NirKli@users.noreply.github.com>
2025-04-15 10:53:38 +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
Matthias Wirtz f3dc81480d docs: fix and rearrange screenshot links (alphabetical) (#4580)
* fix and rearrange links (alphabetical) - add missing ones

* update screenshots

* add info about screenshots to contribution guideline.
2025-03-24 09:21:58 +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 3771102bb3 fix(nix): temporarily disable browser locale in date formats for nix deployment as well (#4480) 2025-01-13 17:23:23 +01:00
Matthias Wirtz f0d146661b docs: Grafana 11.4 for manual install on FreeBSD (#4474) 2025-01-06 11:30:48 +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
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 fdbf76c741 align node req with what is used in CI (#4430) 2024-12-09 11:11:09 +01:00
Matthias Wirtz 1416165147 bump elixir based on availability (#4431) 2024-12-09 11:09:27 +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
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