GNOME Bugzilla – Bug 763175
api.yr.no is deprecated, patch for using api.met.no instead
Last modified: 2016-03-15 04:12:07 UTC
Created attachment 323198 [details] [review] 0001-switch-to-https-api-met-no.patch http://api.yr.no is deprecated https://api.yr.no/ is now preferred See announcements, http://lists.met.no/pipermail/api-users/2016-March/000017.html http://lists.met.no/pipermail/api-users/2016-March/000019.html Same license and restrictions as before. Attribution changed to attribute the Norwegian Meteorological Institute’s own website.
Review of attachment 323198 [details] [review]: ::: libgweather/weather-yrno.c @@ +422,2 @@ else + return g_strdup_printf("http://www.yr.no/place/%s/%s/%s", country, city_name, append); Why is this still using yr.no, is it not available from api.met.no? And why not https? In general, we should not ever be using plain http in applications.
No, that URL is for their website at yr.no which is still the end-user endpoint and is not available under HTTPS. This change only applies to their API. The patch is correct as-is. Increasing priority as the old API endpoint will be shut down in just six months. https://www.slightfuture.com/devel/met-norway-api-endpoints
Review of attachment 323198 [details] [review]: Patch looks good to me, do you need me to commit it?
Giovanni Campagna, yes please. I don’t have commit access.
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.