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
This commit is contained in:
Marco Trevisan (Treviño)
2021-05-31 20:02:36 +02:00
committed by Marco Trevisan (Treviño)
parent 75eb496e07
commit fdb69db48a
+4 -4
View File
@@ -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);
/*