From 2d73e0567c9ac6e03cfc8bfc62a8f24ef4fadebc Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 11 Jan 2022 23:39:30 +0100 Subject: Use new met.no locationforecast 2.0 API 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. --- README.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index aa87dbb..0a4037c 100644 --- a/README.markdown +++ b/README.markdown @@ -15,7 +15,10 @@ Here is an example with all fields filled out. { // The place for which to get the weather data. If omitted, no weather will be shown - "WeatherPlace": "Germany/Hamburg/Hamburg", + "WeatherCoords": { + "Lat": "53.6", + "Lon": "10.0" + }, // A list of links to show. Can be omitted. "Links": [ -- cgit v1.2.3-70-g09d2