mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-29 06:51:10 -05:00
NuWeather: drop apixu -> weatherstack link
This commit is contained in:
parent
f960b66a72
commit
de4d74a3a9
@ -60,7 +60,7 @@ conf.registerChannelValue(NuWeather.units, 'temperature',
|
|||||||
F/C means show "50F/10C", C means display only Celsius, and so on.""")))
|
F/C means show "50F/10C", C means display only Celsius, and so on.""")))
|
||||||
|
|
||||||
# List of supported backends for weather & geocode. This is reused by plugin.py
|
# List of supported backends for weather & geocode. This is reused by plugin.py
|
||||||
BACKENDS = ('openweathermap', 'darksky', 'weatherstack', 'apixu')
|
BACKENDS = ('openweathermap', 'darksky', 'weatherstack')
|
||||||
GEOCODE_BACKENDS = ('nominatim', 'googlemaps', 'opencage', 'weatherstack')
|
GEOCODE_BACKENDS = ('nominatim', 'googlemaps', 'opencage', 'weatherstack')
|
||||||
class NuWeatherBackend(registry.OnlySomeStrings):
|
class NuWeatherBackend(registry.OnlySomeStrings):
|
||||||
validStrings = BACKENDS
|
validStrings = BACKENDS
|
||||||
|
@ -446,7 +446,6 @@ class NuWeather(callbacks.Plugin):
|
|||||||
'visibility': self._format_distance(mi=currentdata.get('visibility')),
|
'visibility': self._format_distance(mi=currentdata.get('visibility')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_apixu_fetcher = _weatherstack_fetcher
|
|
||||||
|
|
||||||
def _darksky_fetcher(self, location, geobackend=None):
|
def _darksky_fetcher(self, location, geobackend=None):
|
||||||
"""Grabs weather data from Dark Sky."""
|
"""Grabs weather data from Dark Sky."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user