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 authored and RustyBower committed Nov 2, 2023
1 parent eafae26 commit 37d33a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 83 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 (Deprecated 03/31/2023)

.. code-block::
https://darksky.net/
Open-Meteo

Does not require an API key; use any string you want.
Expand Down
70 changes: 0 additions & 70 deletions sopel_modules/weather/providers/weather/darksky.py

This file was deleted.

7 changes: 0 additions & 7 deletions sopel_modules/weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from sopel.tools import Identifier
from sopel.tools.time import format_time

from .providers.weather.darksky import darksky_forecast, darksky_weather
from .providers.weather.openmeteo import openmeteo_forecast, openmeteo_weather
from .providers.weather.openweathermap import openweathermap_forecast, openweathermap_weather
from .providers.weather.pirateweather import pirateweather_forecast, pirateweather_weather
Expand Down Expand Up @@ -239,9 +238,6 @@ 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)
# Open-Meteo
if bot.config.weather.weather_provider == 'openmeteo':
return openmeteo_forecast(bot, latitude, longitude, location)
Expand All @@ -263,9 +259,6 @@ 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)
# Open-Meteo
if bot.config.weather.weather_provider == 'openmeteo':
return openmeteo_weather(bot, latitude, longitude, location)
Expand Down

0 comments on commit 37d33a1

Please sign in to comment.