weather-service: Enable met.no provider
As per the switch to libgweather 40 with commits216a8984anda2a6d2e4we 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:
committed by
Marco Trevisan (Treviño)
parent
75eb496e07
commit
fdb69db48a
@@ -640,10 +640,10 @@ update_location (GcalWeatherService *self,
|
|||||||
gweather_info_set_contact_info (self->gweather_info,
|
gweather_info_set_contact_info (self->gweather_info,
|
||||||
"https://gitlab.gnome.org/GNOME/gnome-calendar/-/raw/master/gnome-calendar.doap");
|
"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.
|
gweather_info_set_enabled_providers (self->gweather_info,
|
||||||
* https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682
|
GWEATHER_PROVIDER_METAR |
|
||||||
*/
|
GWEATHER_PROVIDER_MET_NO |
|
||||||
gweather_info_set_enabled_providers (self->gweather_info, GWEATHER_PROVIDER_METAR | GWEATHER_PROVIDER_OWM);
|
GWEATHER_PROVIDER_OWM);
|
||||||
g_signal_connect_object (self->gweather_info, "updated", (GCallback) on_gweather_update_cb, self, 0);
|
g_signal_connect_object (self->gweather_info, "updated", (GCallback) on_gweather_update_cb, self, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user