Shared trip: one itinerary per server (data/trip.json, GET/PUT /api/trip, routed server-side), the route panel edits it when logged in and polls other screens' changes in without moving the camera; the GNSS simulation skips trips under 1 km and starts elsewhere when it can't get on from a road island; the car's server updates itself from a topbar button (SELF_UPDATE=1: newer main with CI passed → bin/update-maptool.sh via maptool-update.path); Android Auto and the trip's next steps in TODO
This commit is contained in:
1 parent
5f4c7c6ee8
commit
17891c53b5
16 files changed
+513
-5
No files matched your search
@@ -229,6 +229,26 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
** [ ] The "Navigate" follow mode for the CAN GNSS position (today the MQTT tracker and the
|
||||
browser's GNSS control), the dashboard as part of the driving-mode UI
|
||||
** [ ] `locate()` scans the whole route each fix — a window around the last hit on long routes
|
||||
** [ ] Shared trip — one itinerary per server for every screen (the cab's display, the tablet
|
||||
or display in the back, phones): the co-driver adds a stop, the driver's view reroutes on the
|
||||
fly without losing the map (no stop / reload / start like Android Auto between two phones)
|
||||
*** [x] `TripStore` (`lib/maptool/trip.rb`, `data/trip.json`): points, vehicle, avoids, the
|
||||
library route being edited and the route, versioned; `GET /api/trip?version=N` (204 while
|
||||
unchanged), `PUT /api/trip` routes it on the server (not again when only names/nav
|
||||
changed). Logged in, the route panel edits it and polls it every 2 s — other screens'
|
||||
changes swapped in, the camera untouched, the old route shown until the new one is in
|
||||
*** [ ] Rerouting on the server: it has the GNSS (CAN), so off-route detection and the new
|
||||
route once for all screens, not per screen with a dashboard (today's, `dashboard.js`)
|
||||
*** [ ] An itinerary view: stops by day/night, notes, planned arrival times (Valhalla's leg
|
||||
times), "Add to the trip" from search, the library, park4night and other sources
|
||||
*** [ ] Brick ↔ the car: a trip planned at home on brick handed to the car's server (with
|
||||
the library sync, or "send to the car")
|
||||
*** [ ] Push instead of polling (SSE) if 2 s ever feels slow
|
||||
** [ ] Android Auto: the browser can't be cast there, only a native app — a small one with
|
||||
the Car App Library's NavigationTemplate drawing its own map surface (MapLibre Native) off
|
||||
the car server's trip and position (`/api/trip`, `/api/gnss/position`); only the map and
|
||||
the next maneuver, planning stays on the web. Testable without the car: the tablet runs the
|
||||
Android Auto head unit emulation (DHU)
|
||||
** [ ] A native Android app on Ferrostar (rerouting, Valhalla speed limits, TTS built in) over
|
||||
our Valhalla (`format: osrm`) — only if navigation is wanted on a phone outside the car; the
|
||||
car's 16" display is the Pi's browser either way. Ferrostar's web components are beta: no
|
||||
|
||||
Reference in new issue
Block a user