summaryrefslogtreecommitdiff
path: root/weather/weather.go
Commit message (Collapse)AuthorAge
* Use new met.no locationforecast 2.0 APIHEADmasterLaria Carolin Chabowski2022-01-11
| | | | | | | | | | | | | | | | | | The old XML API will be discontinued next month and is already returning errors occasionally (apparently to nudge lazy devs like me to update their code :D). We're also doing a much better job at caching now, as suggested by the API documentation. We're not yet showing a weather icon, I still have to figure out how to do this now (apparently the weather icons are a separate API / actually just a tag.gz archive that the weather API references?), but at least we're not panic()ing any more in the request handlers due to the unexpected error responses :/. See https://developer.yr.no/doc/GettingStarted/ for an intorduction to the new API.
* New config format and new featuresLaria Carolin Chabowski2020-10-04
| | | | | | | | | | We're now using json as a config format instead of our weird own format. The weather icon is now optional, simply don't define WeatherPlace in your config. You can now specify which subreddit to get background images from. The default is still /r/EarthPorn.
* Be nice and tell the yr.no API who we areLaria Carolin Chabowski2020-10-04
|
* Move weather code into own packageLaria Carolin Chabowski2020-10-04