Closed ChrisHardie closed 7 months ago
Thanks for the report. I think the URI is coming straight from NOAA but I could be wrong. I'm going to ping @alexander0042 to take a look at this issue.
Hi,
Thanks for opening this issue- it's a great catch! The URL formatting did change on me there, and I must have missed the service update bulletin.
The good news is that this is fixed (along with other alert improvements) in V2, which is ready for beta testing at the dev.pirateweather.net
endpoint. If you have a minute to take a look there and see if it's working, I'd appreciate it!
Just did a quick test for Ripley, OH and I can confirm this is fixed in the V2 API so will close this issue.
Describe the bug
When receiving a forecast response that contains an "alerts" component, the uri returned is no longer a valid link to a weather.gov weather alert.
Expected behavior
For example, in requesting the weather just now for Reno, Nevada, USA, I saw this part of the API response:
but visiting that URI
https://alerts-v2.weather.gov/#/?id=urn%3Aoid%3A2.49.0.1.840.0.f8805a851bf8b9cb8dd4ad78b004a062b3b574bb.003.1
just pulls up a generic landing page that allows the user to search for weather alerts, instead of to the expected weather alert. Previously these links worked as expected. Replacing the URL encoding to use...urn:oid:2.49...
does not help.Actual behavior
A landing page for searching for alerts is loaded instead of the the actual alert page.
API Endpoint
Production
Location
39.530895,-119.814972
Other details
This appears to be the result of a redesign of the NWS web interface to a UX that does not support the use of distinct URLs to view individual weather alerts. I can search for an alert by ID or location and view it, but there's no permalink back to that view that I've found. Talk about a step backward! But maybe there's an alternative interface I'm not aware of. The closest I can find is this kind of link that's based on the NWS zone identifier instead: https://forecast.weather.gov/showsigwx.php?warnzone=NVZ003&warncounty=NVC031&firewxzone=NVZ420&local_place1=Reno%20NV&product1=Wind+Advisory&lat=39.5277&lon=-119.8135
Troubleshooting steps