Vehicle & ITS-G5 overlay: a stdlib MQTT subscriber (MQTT_URL/USERNAME/PASSWORD) keeps the car's LTE tracker position and the ITS-G5 stations heard by mcu-its-g5 (decoded header, stations expire after 60 s), served by /api/live and drawn as a car badge plus stations colored by type with DENM in red; Meshtastic noted in TODO
This commit is contained in:
1 parent
b381ca289f
commit
02c2ef05f8
12 files changed
+608
-12
No files matched your search
@@ -126,17 +126,22 @@ Deprioritized for now — revisit after the sections above land.
|
||||
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/<node>/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
|
||||
* [x] One MQTT subscriber in the maptool server — `lib/maptool/mqtt_client.rb` (stdlib MQTT
|
||||
3.1.1, QoS 0, reconnects), `MQTT_URL`/`MQTT_USERNAME`/`MQTT_PASSWORD` (read-only broker
|
||||
user), latest state in app.rb's `LIVE`, `GET /api/live`; the "Vehicle & ITS-G5" overlay
|
||||
(`public/js/live.js`) polls it
|
||||
* [x] Car position from the LTE GNSS tracker (`mcu-tracker/location`) — a badge with its age
|
||||
and details; the last position stays (a parked tracker reports rarely)
|
||||
* [ ] … also as a source for the GNSS control ("where is the car" / follow it)
|
||||
* [x] ITS-G5: `mcu-its-g5.yaml` publishes the decoded header as JSON on `mcu-its-g5/decoded`
|
||||
(1 Hz per station); stations on the map colored by type, DENM bigger and red, gone after 60 s
|
||||
* [ ] Meshtastic nodes (each has GNSS) — incl. a running tracker to follow on the map. Not in
|
||||
the broker today: the HA Meshtastic integration only makes `device_tracker` entities and
|
||||
doesn't republish them. Options: read HA's REST API (`/api/states`, `device_tracker` with
|
||||
coordinates; needs `HA_URL` + a read-only long-lived `HA_TOKEN`, and covers any other HA
|
||||
tracker too), HA's `mqtt_statestream` (one topic per attribute — awkward), or MQTT with JSON
|
||||
output on `rpi-meshtastic` itself (fights the HA integration over the single TCP API while
|
||||
configuring, see home-gitops docs/embedded-services.adoc)
|
||||
* [ ] 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
|
||||
|
||||
Reference in new issue
Block a user