WXforum.net

Web Weather => Weather Web Resources => Topic started by: Jasiu on January 05, 2021, 07:53:31 AM

Title: NWS changing identifiers on CAP messages
Post by: Jasiu on January 05, 2021, 07:53:31 AM
https://www.weather.gov/media/notification/pdf2/scn21-01cap_handler.pdf (https://www.weather.gov/media/notification/pdf2/scn21-01cap_handler.pdf)

At first glance, I don't think this causes any issues for the Curly-based alerts code nor the alert fetch from the NWS API in the v5.xx forecast code. Any thoughts, Ken?

Title: Re: NWS changing identifiers on CAP messages
Post by: saratogaWX on January 05, 2021, 01:17:23 PM
Curly's nws-alerts script set does not use the <identifier> entry in the CAP XML from alerts.weather.gov.

The id field is used by advforecast2.php JSON script to retrieve the text from api.weather.gov.  As long as api.weather.gov changes the id field throughout their data, there should be no issue with the script -- the id field returned is used as the subsequent query as-is.