From b381ca289f35e978d8aff3de70185965ed606fce Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Thu, 19 Nov 2026 00:18:56 +0100 Subject: [PATCH] TODO: vehicle dashboard over MQTT (LTE tracker position, decoded ITS-G5, car CAN, IMU road roughness, later a CAN bridge in the van), a 3D follow/navigation mode, and the touch fixes done so far --- TODO.adoc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/TODO.adoc b/TODO.adoc index 5a8e994..d23e5cb 100644 --- a/TODO.adoc +++ b/TODO.adoc @@ -85,6 +85,9 @@ The app is already reachable from the internet behind login, so a tablet is enou plan from — the server does the heavy lifting. The UI is built for a mouse today. * [ ] Touch targets ≥ 44 px (tree rows, panel buttons, icon grids) +** [x] Route markers: an invisible 48px grab area around the dot (a finger missed the 26px dot and panned the map) +** [x] Tracks & Points open/close arrows: a 24×28 px hit area, 36×40 on touch screens +** [x] Notes can be moved (Move in the popup: drag the marker or tap the new spot), and new/edited points get an icon, a color and B/I buttons * [ ] Nothing reachable only by hover — tooltips and flyouts must open on tap too * [ ] A touch substitute for the Alt+click debug inspector (e.g. long-press) * [ ] Side panels as an overlay/bottom sheet in portrait instead of a pinned column @@ -118,6 +121,38 @@ Deprioritized for now — revisit after the sections above land. ** [x] Phase 3: elevation profile from terrain.pmtiles, isochrones * [ ] Solar calculator — sun path for location/date, shadows from surroundings, camper orientation +=== Vehicle dashboard & live data + +maptool as the dashboard for the car/van too, not only the map. Idea stage. Most of the data +already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/esphome`: + +* [ ] One MQTT subscriber in the maptool server — its own read-only broker user (ACL on just + the topics below), a thread like the gpsd client, latest state per key with an expiry, pushed + to the browser; one generic "MQTT live" layer/panel rather than one integration per source +* [ ] Car position from the LTE GNSS tracker (`mcu-tracker.yaml`, JSON on + `mcu-tracker/location`) as another source for the GNSS control — "where is the car" even when + away from it +* [ ] ITS-G5 (`mcu-its-g5.yaml`, already receiving): publish the decoded header per packet as + JSON next to the raw `its//packet` (type, station type, lat/lon, speed, heading — + `its_g5_decode::stats.last` already has them; throttle CAMs to ~1 Hz per station), so maptool + needs no ASN.1 decoding; on the map: stations by type (car, truck, roadside unit), DENM events + as warning icons that expire +* [ ] Car CAN data (`mcu-car-can.yaml`, today over the native API to HA): add `mqtt:` like the + tracker; RPM, doors, parking brake, … in a dashboard panel +* [ ] IMU shocks along a drive as a map layer — road roughness / potholes colored by intensity +* [ ] Later in the van: CANopen (or plain CAN with own IDs) to the server, a small CAN → MQTT + bridge on the host (SocketCAN; `can0` lives in the host's network namespace), maptool stays + on MQTT + +=== 3D navigation mode + +* [ ] A "follow" mode like a car navigation: camera locked to the GNSS position, rotated to the + heading, pitched ~60°, smooth easing; the rotation lock released while it's on. The pieces + exist: pitch toggle, raster-dem terrain (MapLibre can also do real 3D relief from it), + Liberty's `building-3d` extrusions +* [ ] While following a planned route: the route ahead highlighted, distance to the next + maneuver from Valhalla's directions + === HW integration * [ ] Level gauge from IMU (ESP32/RPi) — camper tilt, wheel-chock leveling calculation