Commit Graph

47 Commits

Author SHA1 Message Date
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
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
2edbb9bd26 fix efficiency calculation 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
10217dabbe Grafana 11.2.3 2024-11-05 15:20: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
1c2fa7830f multiple cars, same name, add vin next to name (#4230) 2024-09-29 11:19:42 +02:00
Alan Castro
8cae4d83bc feat: display vehicle VIN as a fallback for vehicle name on grafana dashboards (#4198)
Co-authored-by: Alan Castro <arcastroe@gmail.com>
2024-09-15 09:57:20 +02:00
ghostiee
cf4f36de36 Fix the issue of failing to restore efficiency dashboard. (#4153)
* Abort on restore dashboard settings error

* Fix: remove unnecessary settings
2024-08-28 10:53:11 +02:00
Matthias Wirtz
796e13c82d Export all Dashboards via Grafana 11.0.0 (#3971) 2024-06-18 18:16:04 +02:00
Johannes Heck
01a9cf5861 Show all vehicles on drive stats dashboard (#3342)
* show all vehicles on drive stats dashboard

* fix car selection for efficiency and projected range dashboards as well
2023-11-12 18:15:30 +01:00
DrMichael
ccf8ed80b7 Added min, max values to get better gauges (#2395)
Fixes #2372
2022-01-28 12:08:03 +01:00
Lee Willis
a74786aa42 Car display priorities (pass 1) (#1904)
* Add display_priority column to cars table

* Respect display_priority in grafana, falling back to name

* Use smallint for priority rather than int

* Update missed dashboards to respect car priorities

Co-authored-by: Lee Willis <lee@ademti-software.co.uk>
2021-08-31 17:16:07 +02:00
Adrian Kumpf
57f1537cc3 Set a fixed max value and use LCD gaug
Closes #992
2020-10-13 17:10:11 +02:00
Adrian Kumpf
b280e87ebe Enable includeAll option on all dashboards w/ repeating rows 2020-08-27 20:04:44 +02:00
Adrian Kumpf
812b7d94c0 Migrate Efficiency Dashboard 2020-08-27 20:04:44 +02:00
Adrian Kumpf
edc0b5d964 Optimize conversion helper functions 2020-05-30 13:02:28 +02:00
mattw01
2652c0b09e Update Consumption Unit to Watt-hour to Match In-Car Unit (#717)
* Update drives.json

Modify Consumption column to Watt-hour (Wh) unit from Kilowatt-hour (kWh) and set decimal to 0 to match in-car unit.

* Update efficiency.json

Modify Consumption (net) / (gross) Singlestat values and Consumption/100mi table column to Watt-hour (Wh) unit from Kilowatt-hour (kWh) and set decimal to 0 to match in-car unit.

* Remerge drives.json

Remerge master drives.json to include lastest commits

* Increase Consumption Unit Detail in Drives Dashboard

Include length unit in consumption value.
Wh/km or Wh/mi

* Increase Consumption Unit Detail in Efficiency Dashboard

Include length unit in consumption value.
Wh/km or Wh/mi

* Update trip.json

Modify Consumption column to Watt-hour per length unit from Kilowatt-hour (kWh) and set decimal to 0 to match in-car unit.

* Update Efficiency Dashboard Consumption Panels Unit

Fix Consumption panel postfix value
2020-05-19 19:28:23 +02:00
Dulanic
fdc6543e3d Correct gap in efficency.json for mi only. (#672)
* Update efficiency.json

Updated distance to convert_km(distance, '$length_unit') to correct gap in original SQL which wasnt converting the distance and only the min distance.

* Update efficiency.json

Removed convert from filter
2020-05-03 12:36:09 +02:00
Adrian Kumpf
6bf06c6d71 Add dashboard links 2020-02-23 12:23:57 +01:00
Adrian Kumpf
f0f7d0802d Tweak driving dashboards 2020-01-23 13:39:04 +01:00
Adrian Kumpf
ec477f56bc Sync dashboard files 2020-01-22 15:52:50 +01:00
kp47
3a863d8cd7 added 'tesla' tag 2020-01-21 16:21:29 +01:00
Adrian Kumpf
8a9ae819e5 Revamp dashboards
Closes #259
2020-01-21 14:27:10 +01:00
Adrian Kumpf
9f1b5fc0ca Convert avg speed to mph if necessary
Fixes #301
2019-12-12 14:42:00 +01:00
Adrian Kumpf
915f1878f5 Reject efficiencies <= 0
Fixes #250
2019-11-16 12:24:19 +01:00
Adrian Kumpf
6bb171f5e2 Display effects of range gains as NULL
Fixes #190
2019-10-24 23:54:41 +02:00
Adrian Kumpf
dca44e141f Use preferred range for efficiency calculation 2019-10-17 20:45:03 +02:00
Adrian Kumpf
abfa8c96d5 Device efficiency factor from charge data 2019-10-16 21:12:53 +02:00
Adrian Kumpf
8c43b13119 Fix division by zero error 2019-10-12 12:31:08 +02:00
Adrian Kumpf
38bd1ddf05 Require a data source named "TeslaMate" 2019-09-18 20:40:55 +02:00
Adrian Kumpf
99a7655ded Use preferred range in dashboards 2019-09-13 22:07:08 +02:00
Adrian Kumpf
6ef91cabb0 Display efficiency factor(s) 2019-08-29 11:17:31 +02:00
Adrian Kumpf
cda7500cdb Fix efficiency calculation 2019-08-26 13:02:02 +02:00
Adrian Kumpf
1676a89ba1 Swap efficiency columns 2019-08-21 20:42:36 +02:00
Adrian Kumpf
17bb43faa9 Remove pre-calculated consumption columns 2019-08-21 20:21:00 +02:00
Adrian Kumpf
4f741fee3e Dynamically calculate consumption values based on car.efficiency 2019-08-18 20:32:23 +02:00
Adrian Kumpf
8e9356d165 Generate a row per car 2019-08-18 20:32:23 +02:00
Adrian Kumpf
65eac16d5e Display car name instead of id 2019-08-18 20:32:23 +02:00
Adrian Kumpf
8625cb139b Rename trip to drive 2019-08-12 23:48:16 +02:00
Adrian Kumpf
fa97c36d22 Use new unit settings 2019-08-12 23:48:16 +02:00
Adrian Kumpf
9d0b98813f Fetch unit variables from database 2019-07-31 21:45:55 +02:00
Adrian Kumpf
056c06c1ac Introduce custom teslamate/grafana Docker image 2019-07-31 12:14:32 +02:00