App 2.22.0: Overview style Cockpit, segmented rings and a power trace

A third Overview style beside Tiles and Dashboard: rings for battery,
power (zero at the top, regeneration anticlockwise in green) with the
speed and gear inside, and 5-minute usage with a tick for the average
since start; below, the power of the last two minutes, the clock,
climate and odometer. Unread values light nothing and show "—"; the
trace leaves gaps (PowerTrace, unit-tested). Emulator only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
2026-10-24 16:48:49 +02:00
co-authored by Claude Opus 5.5
parent 234a7e1b60
commit cd0dfcd612
11 changed files with 634 additions and 13 deletions
+11
View File
@@ -131,6 +131,17 @@ tyre pressures, GPS (lat, lon, elevation, heading) and the is_* flags. It does *
confirmed car facts, app structure, UI conventions, build/test/ship, documents. It replaces
upstream's EVABRPUploader text. The test emulator is now in the flake: `nix run .#car-emulator`
(Android 9 AOSP at 1920×720, 160 dpi; the car build installs as the system user — checked).
- 2026-10-24 — App 2.22.0 (branch `dashboard-cockpit`, from `dashboard-gauges`): a third Overview
style, "Cockpit", designed without a reference: three segmented rings (`RingView`, Canvas) —
battery (0…100 %, range inside, below 20 % in the warning colour), power with the speed and the
gear inside (zero at the top: drawing power clockwise to 150 kW in the accent colour,
regeneration anticlockwise to −50 kW in green) and 5-minute usage (0…30 kWh/100 km, a white tick
for the average since start). Segments brighten towards the leading one. Below, the power of the
last two minutes as a trace (`TraceView`; `PowerTrace`, one slot per second, unit-tested; gaps
for unread or missed readings, never zeros), the clock, climate setpoint and odometer. Settings
→ Overview style: Tiles / Dashboard / Cockpit. Checked on the emulator with sample values in a
throwaway build (`screenshots/nilsmg4-2.22.0-cockpit.png`) and without data through the real
setting (nothing lit, "—", the page fits 1778×640). Not tried on the car.
- 2026-10-24 — App 2.21.0 (branch `dashboard-gauges`): Overview style "Dashboard", an instrument
cluster after a reference picture of the owner's: power (−50…150 kW), speed (0…180 km/h, with
TOTAL odometer and TRIP km since start) and battery (E…F, below 20 % in the warning colour,