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

+13
View File
@@ -36,6 +36,10 @@
<button type="button" id="random">From a random place</button>
<button type="button" id="stop">Stop</button>
</div>
<div class="actions" style="margin-top: 8px">
<select id="track" aria-label="A library track"><option value="">A library track…</option></select>
<button type="button" id="replay">Replay it</button>
</div>
<p id="hint" style="color: GrayText; font-size: 0.85rem"></p>
<label>Simulated time
<select id="speedup"></select>
@@ -69,6 +73,15 @@
$("route").addEventListener("click", () => send("POST", { trip: true }));
$("random").addEventListener("click", () => send("POST", {}));
$("stop").addEventListener("click", () => send("DELETE"));
$("replay").addEventListener("click", () => $("track").value && send("POST", { track: $("track").value }));
// the library's tracks (a recorded one replays at its own speed; one with no times can't)
json("/api/library/tree").then((tree) => {
const tracks = [];
const walk = (node, path) => node.children.forEach((c) => (c.type === "folder" ? walk(c, c.path) : c.kinds?.includes("track") && tracks.push([c.path, [path, c.name].filter(Boolean).join(" / ")])));
walk(tree, "");
const esc = (s) => s.replace(/[&<>"]/g, (ch) => `&#${ch.charCodeAt(0)};`);
$("track").innerHTML += tracks.map(([key, label]) => `<option value="${key}">${esc(label)}</option>`).join("");
}).catch(() => {});
$("speedup").addEventListener("change", () => send("PUT", { speedup: Number($("speedup").value) }));
async function refresh() {