Planning (the Design canvas' Plan and GridToday, ideas from azedler/roadplanner): a stop's type as its NPS pictogram (marker and list), notes on the trip, its days and stops, + on a leg inserts the next point there; a parking spot per stop (P marker, the route goes there, the walk shown); a link pasted into the search becomes a place (/api/link: the URL's coordinates, else the page's geo meta / JSON-LD / a map link; public addresses only, logged in), added on the leg it lengthens least; avoids for the trip (+ ferries, unpaved) or a day (routed in pieces, joined); Check and Costs folds in the Route panel (no leave time, long days, arriving after sunset, long walks, missing vignettes; fuel from km × consumption × price, stop costs / paid, the budget); Today in drive mode's Menu (stops left, tonight, sunset, Open-Meteo weather, the day's notes, Skip next, Tomorrow). Plugins along the trip's route (Maptool::Corridor, a corridor width; Overpass around:) and plugin settings saved server-side; p4n via a host Firefox's cookies (docs/deployment.adoc). The recording's days (cut where the car stood ≥ 4 h, or by hand) and their export (days, a piece A–B, the whole trip; GPX with times). Track replay in the GNSS simulator. Step advance 5 m past a maneuver. The level gauge (drive mode, from Terrain): lift per wheel to the ramps' steps from roll, pitch, wheelbase and track
CI / check (push) Successful in 23s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-12-03 23:34:25 +01:00
1 parent 5e31dfaba9
commit 87d7bd2463
36 files changed
+2047 -123

No files matched your search

+31
View File
@@ -193,6 +193,37 @@ Its `.env` adds:
* `SYNC_SERVER_URL` (`https://map.priesol.net`) and `SYNC_TOKEN`: it's a sync client.
* `SELF_UPDATE=1` — the update button (below).
=== park4night's login from the Pi's Firefox
The private p4n2gpx plugin (`data/plugins/p4n2gpx/`) borrows a logged-in
browser's cookies (park4night's login is behind reCAPTCHA). Log in once in
Firefox on the Pi as `randy` ("remember me" ticked; on its screen or over
remote desktop). A timer on the host runs the plugin's `firefox_cookie.py`
as that user: it copies only park4night.com's cookies into
`data/plugins/p4n2gpx/firefox-cookie` (mode 600). The profile itself (every
synced password, every site's cookies) is never mounted into the container.
----
# /etc/systemd/system/p4n-cookie.service
[Unit]
Description=park4night cookies from Firefox for maptool's p4n2gpx plugin
[Service]
Type=oneshot
User=randy
ExecStart=/usr/bin/python3 -I /srv/podman/maptool/data/plugins/p4n2gpx/firefox_cookie.py
# /etc/systemd/system/p4n-cookie.timer
[Unit]
Description=park4night cookies from Firefox every 15 min
[Timer]
OnBootSec=2min
OnUnitActiveSec=15min
[Install]
WantedBy=timers.target
----
`systemctl daemon-reload && systemctl enable --now p4n-cookie.timer`.
=== Updates (a button, not CI)
CI deploys brick only: the car's server is often offline, and a deploy