Repository navigation
BUG: fetch Windy forecasts from the official Point Forecast API - #1254
Open
Gui-FernandesBR wants to merge 3 commits into
Open
Gui-FernandesBR wants to merge 3 commits into
Gui-FernandesBR wants to merge 3 commits into
Conversation
The free endpoint behind type="Windy" now returns 404, so every call failed after a minute of retries with an UnboundLocalError. Forecasts now come from Windy's Point Forecast API v2, which needs a key (api_key= or WINDY_API_KEY). It serves GFS and ICON-EU; ECMWF and ICON raise an error pointing to Open-Meteo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDW574tsj2yzaQ2JFZusEw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDW574tsj2yzaQ2JFZusEw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDW574tsj2yzaQ2JFZusEw
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1254 +/- ##
===========================================
+ Coverage 87.03% 87.30% +0.26%
===========================================
Files 130 130
Lines 18098 18141 +43
===========================================
+ Hits 15752 15838 +86
+ Misses 2346 2303 -43 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Windy part of #1247. The free endpoint behind
type="Windy"now returns 404, so every call failed after about a minute of retries with anUnboundLocalError; forecasts now come from Windy's official Point Forecast API v2, which needs a key (api_key=or theWINDY_API_KEYenvironment variable, from https://api.windy.com/keys). That API serves GFS (now the default) and ICON-EU but not ECMWF, and has no pressure-level heights for ICON-Global, so those two raise an error pointing to the Open-Meteo equivalents. The response parsing is covered by unit tests with a mocked response, but the real API was not called because I have no key; the integration test is skipped unless aWINDY_API_KEYsecret is set in CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01XDW574tsj2yzaQ2JFZusEw