diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-05-31 19:59:01 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <marco@ubuntu.com> | 2021-05-31 20:02:36 +0200 |
commit | fdb69db48ac30a11d64a1403aafef5494a749eae (patch) | |
tree | cb9fc5a190a2bf408770edfcce4233323d4ce344 | |
parent | 75eb496e070915525c564cd1c120a0e8caca05dd (diff) | |
download | gnome-calendar-fdb69db48ac30a11d64a1403aafef5494a749eae.tar.gz |
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
-rw-r--r-- | src/weather/gcal-weather-service.c | 8 |
1 files 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); /* |