From fdb69db48ac30a11d64a1403aafef5494a749eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 31 May 2021 19:59:01 +0200 Subject: [PATCH] weather-service: Enable met.no provider As per the switch to libgweather 40 with commits 216a8984 and a2a6d2e4 we already comply with met.no TOS [1] as we already provide explicitly the application contact info and (implicitly, being a GApplication) the application-id. So we can enable the met.no weather provider, making the weather forecast to work again. [1] https://api.met.no/doc/TermsOfService Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682 --- src/weather/gcal-weather-service.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/weather/gcal-weather-service.c b/src/weather/gcal-weather-service.c index f67afd69..9fbedb51 100644 --- a/src/weather/gcal-weather-service.c +++ b/src/weather/gcal-weather-service.c @@ -640,10 +640,10 @@ update_location (GcalWeatherService *self, gweather_info_set_contact_info (self->gweather_info, "https://gitlab.gnome.org/GNOME/gnome-calendar/-/raw/master/gnome-calendar.doap"); - /* FIXME: Enable GWEATHER_PROVIDER_MET_NO if we can comply with their terms of service. - * https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682 - */ - gweather_info_set_enabled_providers (self->gweather_info, GWEATHER_PROVIDER_METAR | GWEATHER_PROVIDER_OWM); + gweather_info_set_enabled_providers (self->gweather_info, + GWEATHER_PROVIDER_METAR | + GWEATHER_PROVIDER_MET_NO | + GWEATHER_PROVIDER_OWM); g_signal_connect_object (self->gweather_info, "updated", (GCallback) on_gweather_update_cb, self, 0); /*