Commit Graph
20 Commits
Author SHA1 Message Date
randy 17891c53b5 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
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 17s
2026-11-30 19:19:37 +01:00
randy 5c023619ec Map data pull over brick's nginx: X-Accel-Buffering: no on map files (buffered, nginx's 1 GB temp file cap ended every bigger download there); each attempt resumes from the part on disk (curl's --retry kept its first offset); a file that can't be written is skipped, not the whole run
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 17s
2026-11-29 17:52:02 +01:00
randy ea14b110e6 kiwix waits for a non-empty ZIM instead of a restart loop (on the car's server each restart's veth set off avahi's mDNS announcements and filled the Pi's Wi-Fi); pull-maps drops a connection a minute without data so the retry resumes (Wi-Fi switched under it)
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 17s
2026-11-29 17:03:53 +01:00
randy 6a0d6194fe CANopen diagnostics and map data over HTTPS: /can.html (interfaces, nodes with heartbeat state and last EMCY, decoded signals, every COB-ID with role, count, rate and last data); signals can mark an invalid raw value (esphome-canopen's unknown) and NaN gives no value; the CAN reader never dies and a broken can.json only turns CAN off; the GNSS node mcu-stm32-xiao-c5-2 (0x21) and host networking for the car's server in docs; bin/pull-maps.sh pulls map data from GET /api/sync/maps(/file) with SYNC_TOKEN instead of rsync over SSH, resuming cut-off downloads
CI / check (push) Successful in 42s
CI / deploy (push) Successful in 18s
2026-11-29 12:47:23 +01:00
randy dbe742321a Library sync OsmAnd-style: brick is the server, a client (the car's maptool, SYNC_SERVER_URL) syncs on its Sync button — pulls the server's rows, pushes its own with the source files the server lacks, newer updated_at wins; /api/sync/* guarded by SYNC_TOKEN (written into brick's .env by CI). TRUSTED_NETWORKS logs in the car's LAN (no Gitea offline); TAKEOUT_HOST_DIR for a server without the Takeout; bin/pull-maps.sh pulls map data one way while at home
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 18s
2026-11-27 23:22:32 +01:00
randy 09a9d8baba Test: the cut-off download case runs as the last attempt, so the new retry doesn't hang CI for minutes reconnecting to a one-shot server 2026-11-27 13:59:46 +01:00
randy 80d0039148 GNSS simulator: report the real direction of travel (it drives the loop counterclockwise, so the bearing is -angle, not angle+90°)
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 17s
2026-11-23 16:15:15 +01:00
randy ff5924faf1 Offline regions for the whole world: the region list comes from Geofabrik's index (bin/geofabrik-regions-sync.mjs → geofabrik_regions.geojson, 193 countries plus subregions like the US states), keeping the European ISO codes; the picker folds it by continent with a search box and subregions under their country, flags for all of them
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 17s
2026-11-19 10:03:47 +01:00
randy 085c14beca All 307 NPS symbols (symbol-library 2024 revision, CC0) vendored by bin/nps-symbols-sync.mjs and browsable at /symbols.html; POI_ICONS maps every symbol by name plus the OsmAnd names, the note icon picker gets a filter, and only the glyphs a shown file uses get rasterized 2026-11-18 23:01:13 +01:00
randy 4c704045c5 Material Design Icons replace the hand-drawn UI icons (only the used ones vendored, Renovate-tracked); route panel: saved-point picker, buttons on two rows with icons
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 17s
2026-11-15 11:17:40 +01:00
randy db586c0166 One-way hiking route members (forward/backward roles) kept in their direction by maplibre-gl-lanes; raise Valhalla trace limits for the per-country route summary 2026-11-15 10:16:45 +01:00
randy dbe1804ebf Routing: reject a pre-merge multi-country request, don't resume a failed build, Apply queues when the running build lacks the merge
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 27s
2026-11-14 12:13:25 +01:00
randy acf5256c74 Routing: merge the countries' extracts with osmium before Valhalla, which fails on overlapping extracts
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 12s
2026-11-14 12:11:17 +01:00
randy bf912b96e5 Offline routing phase 1: valhalla container building from the offline map's extracts, status in the Offline data panel
CI / check (push) Successful in 55s
CI / deploy (push) Successful in 2m48s
2026-11-13 21:24:19 +01:00
randy 8a2734d59e Update https://github.com/hyperknot/openfreemap-styles digest to 006ea57
CI / check (push) Successful in 20s
CI / deploy (push) Skipped
CI / check (pull_request) Successful in 17s
CI / deploy (pull_request) Skipped
2026-11-13 08:42:01 +00:00
randy 3834f4fe1e Renovate: allow bin/assets-sync.mjs as a postUpgradeTask, re-pin Liberty one commit back to retest
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 13s
2026-11-13 09:40:23 +01:00
randy f0f463d9b2 Update https://github.com/hyperknot/openfreemap-styles digest to 006ea57
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 22s
2026-11-13 09:36:50 +01:00
randy 5e1d1988ab Renovate: track Noto Sans glyphs and the Liberty style/sprite via git commit pins
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 12s
2026-11-13 09:32:33 +01:00
randy f62987b1de Add Renovate config, track vendored JS libs via package.json
CI / check (push) Successful in 36s
CI / deploy (push) Successful in 13s
The Renovate workflow had no renovate.json, so with onboarding off it
skipped the repo entirely. Now config:recommended plus a regex manager
for the Dockerfile's PMTILES_VERSION/PLANETILER_VERSION pins.

public/vendor/'s npm-published libraries (maplibre-gl, pmtiles,
maplibre-contour, maplibre-gl-lanes, flag-icons, suncalc) are pinned in
package.json; bin/vendor-sync.mjs copies them out of node_modules, and
runs as a Renovate postUpgradeTask so bump PRs carry the new files.
Re-syncing the current versions reproduces the vendored files exactly,
except suncalc's hand-added header, moved into third-party-notices.
2026-11-03 17:15:28 +01:00
randy 61ba86c6e6 Add a GNSS simulator for dev without gpsd running
bin/gnss_simulator.rb speaks gpsd's own JSON wire protocol directly
on its default port -- GpsdClient connects to it exactly as it would
to real gpsd, no app changes needed, and no gpsd install/daemon
required either (unlike the existing fake-NMEA-source approach in
docs/development.adoc, which still needs gpsd itself in front of it).
Drives a loop around a center point at a driving-ish pace rather than
sitting still, since a fixed position isn't much of a "GNSS position"
to look at.

Verified end to end: started it, pointed a dev server at it, and
confirmed /api/gnss/position reports a moving fix across two polls.
2026-09-08 00:28:34 +02:00