Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DarkSky (RIP) weather provider #40

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading