[gnome-calendar/wip/3v1n0/use-met.no] weather-service: Enable met.no provider
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/3v1n0/use-met.no] weather-service: Enable met.no provider
- Date: Mon, 31 May 2021 18:04:34 +0000 (UTC)
commit fdb69db48ac30a11d64a1403aafef5494a749eae
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Mon May 31 19:59:01 2021 +0200
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);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]