Trip log crash-safe like a FIT: an append-only journal per trip (data/trip_log/<started>.ndjson, fsynced every 5 s, a torn last line skipped and the next one on a line of its own), a restart picks the running trip up from it into the same track, no state file to corrupt; the library's track built from it every 5 min and at the end. Drive mode: a pinned side panel's room goes back to the map
CI / check (push) Successful in 43s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-01 10:14:57 +01:00
1 parent 0c809b3e2b
commit bd689faa93
5 files changed
+154 -62

No files matched your search

+4 -1
View File
@@ -123,7 +123,10 @@ plan from — the server does the heavy lifting. The UI is built for a mouse tod
the folder's `icon` — by hand (the notes' icon picker, POI_ICONS / NPS) or, unset, from its
points (the destination's, else the most common)
Done: `lib/maptool/trip_log.rb`, `GET/POST/DELETE /api/trip/log`, the Trip menu's
Start / End, the line really driven (`--route-driven`). Still to do: the pictogram, the
Start / End, the line really driven (`--route-driven`). Stored crash-safe like a FIT: an
append-only journal per trip (`data/trip_log/<started>.ndjson`, fsynced every 5 s, a torn
last line skipped), a restart picks the running trip up from it; the library's track built
from it every 5 min and at the end. Still to do: the pictogram, the
planned route dashed behind, a walk from another device shown with it, visited points
** [ ] Colors: planned vs really driven — the planned route (magenta ahead, the part behind
thin and dashed) and the recorded track solid on top (`--route-driven`), docs/design.adoc