Author Topic: NWS changing identifiers on CAP messages  (Read 354 times)

0 Members and 1 Guest are viewing this topic.

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 824
    • LexMAWeather
NWS changing identifiers on CAP messages
« on: January 05, 2021, 07:53:31 AM »
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?


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8412
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NWS changing identifiers on CAP messages
« Reply #1 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.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything