-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 support for the Weather Underground API #2396
Conversation
Thanks! We have to wait until the end of the year before we merge this, because the API stays online until then. |
Wunderground moved the shutdown date to the 15th of Feb, which was yesterday, but for some reason my WeatherAgent is still working ¯_(ツ)_/¯ |
The API doesn't work anymore after 5th of March. Please remove the code and maybe even add a better alternative like openweathermap.org. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some minor nits in an error message, but you can fix it later.
app/models/agents/weather_agent.rb
Outdated
@@ -135,22 +117,12 @@ def validate_location | |||
end | |||
|
|||
def validate_options | |||
errors.add(:base, "service must be set to 'darksky' or 'wunderground'") unless wunderground? || dark_sky? | |||
errors.add(:base, "The Weather Underground API has been disables since Jan 1st 2018, please switch to DarkSky") if wunderground? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a trivial typo disables
and maybe the date should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good cach ;-). I just pushed an update
I think that should be "disabled", not "disables". |
Thanks! |
Remove the Weather Underground API to resolve #2391