mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-27 13:31:10 -05:00
NuWeather: exclude hourly and alerts info for Dark Sky; they are not used
This commit is contained in:
parent
4354697a56
commit
3d8e284901
@ -437,8 +437,8 @@ class NuWeather(callbacks.Plugin):
|
|||||||
|
|
||||||
lat, lon, display_name, geocodeid, geocode_backend = latlon
|
lat, lon, display_name, geocodeid, geocode_backend = latlon
|
||||||
|
|
||||||
# Request US units - this is reflected (mi, mph) and processed in our output format as needed
|
# 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' % (apikey, lat, lon)
|
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)
|
self.log.debug('NuWeather: using url %s', url)
|
||||||
|
|
||||||
f = utils.web.getUrl(url, headers=HEADERS).decode('utf-8')
|
f = utils.web.getUrl(url, headers=HEADERS).decode('utf-8')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user