feat(mobile): weather and storm layers, card compositor, pins and nearest eye

Radar (nowCOAST, with replay), satellite IR clouds, lightning density,
NHC cones and 34/50/64-kt wind radii, 10 m and 250 hPa wind on the
repo's GPU renderer, air quality, GNSS interference and transit.

situations() now yields 25-30 cards across orbit, sky and ground with
band, archetype, telemetry, headline, real series and live camera media;
genres whose feed fails are omitted and reported by omitted().
thumbnail() composites each card in an offscreen canvas from the layers
that describe it. addPin() draws posts, witnesses and live view
frustums; nearestEye() finds the closest public camera.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-19 02:57:24 +00:00
1 parent a644e797a7
commit 2ef9dd7448
6 files changed
+73 -9

No files matched your search

+12 -2
View File
@@ -412,7 +412,17 @@ export async function buildSituations(engine, { observer } = {}) {
'Storm';
const kmh = s.windKt ? Math.round(s.windKt * 1.852) : null;
const lastTau = s.forecast?.at(-1)?.tauHours ?? 0;
const radii = radiiFor(s, tcm)?.radii || null;
const adv = radiiFor(s, tcm);
const radii = adv?.radii || null;
// NHC sometimes publishes an advisory before its cone geometry: the
// TCM text still carries the forecast positions.
const forecast = s.forecast?.length
? s.forecast
: (adv?.forecast || []).map((p) => ({
lon: p.lon,
lat: p.lat,
windKt: p.windKt,
}));
const r34 = radii?.find((r) => r.kt === 34);
const cat = stormCategory(s.windKt);
return card(
@@ -485,7 +495,7 @@ export async function buildSituations(engine, { observer } = {}) {
lat: s.lat,
windKt: s.windKt,
cone: s.cone,
forecast: s.forecast || [],
forecast,
pastTrack: s.pastTrack || null,
track: s.track || null,
radii,