Skip to content

Commit

Permalink
Remove DarkSky (RIP) weather provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Jan 7, 2023
1 parent b17bacf commit 463fb1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 86 deletions.
6 changes: 0 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ LocationIQ
Weather
*******
Dark Sky

.. code-block::
https://darksky.net/
OpenWeatherMap

.. code-block::
Expand Down
70 changes: 0 additions & 70 deletions sopel_modules/weather/providers/weather/darksky.py

This file was deleted.

12 changes: 2 additions & 10 deletions sopel_modules/weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
from sopel.tools import Identifier
from sopel.tools.time import format_time

from .providers.weather.darksky import darksky_forecast, darksky_weather
from .providers.weather.openweathermap import openweathermap_forecast, openweathermap_weather

WEATHER_PROVIDERS = [
'darksky',
'openweathermap',
]

Expand Down Expand Up @@ -235,11 +233,8 @@ def get_forecast(bot, trigger):
bot.reply(str(e))
return NOLIMIT

# DarkSky
if bot.config.weather.weather_provider == 'darksky':
return darksky_forecast(bot, latitude, longitude, location)
# OpenWeatherMap
elif bot.config.weather.weather_provider == 'openweathermap':
if bot.config.weather.weather_provider == 'openweathermap':
return openweathermap_forecast(bot, latitude, longitude, location)
# Unsupported Provider
else:
Expand All @@ -253,11 +248,8 @@ def get_weather(bot, trigger):
bot.reply(str(e))
return NOLIMIT

# DarkSky
if bot.config.weather.weather_provider == 'darksky':
return darksky_weather(bot, latitude, longitude, location)
# OpenWeatherMap
elif bot.config.weather.weather_provider == 'openweathermap':
if bot.config.weather.weather_provider == 'openweathermap':
return openweathermap_weather(bot, latitude, longitude, location)
# Unsupported Provider
else:
Expand Down

0 comments on commit 463fb1d

Please sign in to comment.