Skip to content

馃崚weather/noaa: Fix the URL for retreving the station list

Ismael Asensio requested to merge work/cherry-pick-386985ea into Plasma/6.1

It seems the noaa outages on the legacy API continue, and the previous URL that provided the list of weather stations is no longer working (it errors out as a 404).

There is however a probable alias/mirror that still works (w1.weather.gov).

Instead of a pure replacement, add a small fallback mechanism to also check the older URL in case it changes again in the future. At some point we might be even want to cache it in a local file.

(cherry picked from commit 386985ea)

Merge request reports