Rain in the next hour: an alert for your city
A bot or widget that warns when rain is coming soon, from free weather-service forecasts and radar.
For your agent: agent.md
Parts
Steps
- Ask MET Norway's Locationforecast for each follower's coordinates (rounded to 4 decimals) and cache it until the Expires header says to refresh.
- When the next hours show precipitation above your threshold, send one alert per rain spell, not one per check.
- Add a radar map with RainViewer tiles for a quick look.
Watch out
- For a commercial app use MET Norway (commercial use allowed with credit) or a paid Open-Meteo plan; the free Open-Meteo API is non-commercial only, ads or subscriptions included.
- Send an identifying User-Agent to MET Norway, credit "MET Norway", and show "Weather data by RainViewer" next to the radar; RainViewer's free use is for personal, educational and small community projects.