Disable yr.no weather provider

See: #682
This commit is contained in:
Michael Catanzaro
2021-01-12 15:56:53 -06:00
parent 0733844690
commit 216a8984d4
+4 -6
View File
@@ -638,13 +638,11 @@ update_location (GcalWeatherService *self,
self->gweather_info = gweather_info_new (location);
/*
* NOTE: We do not get detailed infos for GWEATHER_PROVIDER_ALL.
* This combination works fine, though. We should open a bug / investigate
* what is going on.
/* 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_PROVIDER_YR_NO);
g_signal_connect_object (self->gweather_info, "updated", (GCallback) on_gweather_update_cb, self, 0);
gweather_info_set_enabled_providers (self->gweather_info, GWEATHER_PROVIDER_METAR | GWEATHER_PROVIDER_OWM);
g_signal_connect_object (self->gweather_info, "updated", (GCallback) on_gqweather_update_cb, self, 0);
/*
* gweather_info_update might or might not trigger a