@oerd-at-gripable/yr-weather
Ask MET Norway / yr.no for now-and-tomorrow weather at saved cities.
- Utilities
- weather
- yr.no
- met.no
- locationforecast
- Version
- 1.0.1
- License
- Published
- September 17, 2026
- Pinned commit
cfef359- Rating
- No ratings yet
- Forks
- 0
- Adaptation effort
- —
README
Agent docs@oerd/yr-weather
Ask the temperature now, or the weather tomorrow, for a city. Forecasts come from MET Norway Locationforecast 2.0 compact (the data behind yr.no).
Intent
Resolve a place the first time it is asked, remember its coordinates in this package's storage lookup, and reuse that mapping on later questions. No city is hard-coded in the package.
Setup
No API key. First-time place names are geocoded (Open-Meteo geocoding). Coordinates are stored in this package's packageStorage() lookup map (locationLookup) so the next ask skips geocoding. Platform @kody/environment cannot be a live dependency of a personal package.
getWeather({ place: 'Tirana' })— geocodes on first use, then cachesgetWeather({ place: 'Wurzburg', when: 'tomorrow' })— same lookup mapregisterLocation({ name, latitude?, longitude? })— write or refresh an entry without waiting for a weather questionlistLocations()— show the cached map
Pass latitude and longitude (at most 4 decimals) when you already know them.
Done when
getWeather returns a short summary plus C from MET, names whether the place came from cache or a fresh geocode, and includes MET / yr.no attribution.
Report this listing
Log in to report this listing.