weather/frontend
jtricerolph 435b59b3fe Add plain-language summary + umbrella tip for today
Neither Met Office's Global Spot API nor Open-Meteo return a narrative text
summary -- both are purely numeric/coded. New lib/summary.js derives one
rule-based from today's already-fetched hourly points (icon + precip_prob),
no extra API call, no LLM:
- Headline: "Scattered showers today", "Rain likely later", "Heavy rain
  today", "Dry today", etc. -- compares rain distribution across the whole
  day vs specifically the hours still ahead of "now".
- Note: "Thunderstorms possible", appended when a thunder icon shows up.
- Umbrella nudge: shown when there's a real rain chance now or later today.

Computed fresh per-request (not cached at fetch time), since "later" means
later than whoever's looking at the screen right now, not later than the
last hourly refresh.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 13:03:24 +00:00
..
public/icons Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
src Add plain-language summary + umbrella tip for today 2026-08-25 13:03:24 +00:00
Dockerfile Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
index.html Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
nginx.conf Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
package-lock.json Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
package.json Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
tsconfig.json Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00
vite.config.ts Scaffold weather app: reception forecast display + shared internal API 2026-08-25 12:22:53 +00:00