From 3d8e2849011c7ec67455cf3695d42b8c86d1f8dc Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 6 Oct 2019 15:42:40 -0700 Subject: [PATCH] NuWeather: exclude hourly and alerts info for Dark Sky; they are not used --- NuWeather/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuWeather/plugin.py b/NuWeather/plugin.py index c9ac99a..689176c 100644 --- a/NuWeather/plugin.py +++ b/NuWeather/plugin.py @@ -437,8 +437,8 @@ class NuWeather(callbacks.Plugin): lat, lon, display_name, geocodeid, geocode_backend = latlon - # Request US units - this is reflected (mi, mph) and processed in our output format as needed - url = 'https://api.darksky.net/forecast/%s/%s,%s?units=us&exclude=minutely' % (apikey, lat, lon) + # We don't use minutely or hourly data; alerts are not supported yet + url = 'https://api.darksky.net/forecast/%s/%s,%s?units=us&exclude=minutely,hourly,alerts' % (apikey, lat, lon) self.log.debug('NuWeather: using url %s', url) f = utils.web.getUrl(url, headers=HEADERS).decode('utf-8')