* 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
* 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>
* 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
* 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