NuWeather: drop apixu -> weatherstack link

This commit is contained in:
James Lu 2020-05-25 14:02:17 -07:00
parent f960b66a72
commit de4d74a3a9
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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."""