I'm switching my code to use the newer NWS API for weather alerts. Everything is in order from a technical standpoint, however the data from the new API does not have the same text as the older XML based API.
The description from the original XML feed (and any other wx software I use to view the alert):
...The Flood Warning has been extended for the following rivers...
Great Pee Dee At Pee Dee affecting Marion and Florence Counties SC
...The Flood Warning continues for the following rivers...
Lumber Near Lumberton affecting Robeson County NC
The Flood Warning continues for
The Lumber Near Lumberton.
* until further notice.
* At 7:50 PM Monday the stage was 14.23 feet.
* Flood stage is 13.0 feet.
* Minor flooding is occurring and Minor flooding is forecast.
* Forecast...The river will continue rising to near 14.7 feet by early Thursday
afternoon then begin falling.
* Impact...At 15.0 feet...Flood waters will affect yards in the Pines area, Coxs
Pond area, and along River Road. Additional residential property will be
affected between the Pepsi plant and the river on the east side of Lumberton.
&&
From the new API:
Great Pee Dee At Pee Dee affecting Marion and Florence Counties SC
...The Flood Warning continues for the following rivers...
Lumber Near Lumberton affecting Robeson County NC
The Flood Warning continues for
The Lumber Near Lumberton.
* until further notice.
* At 7:50 PM Monday the stage was 14.23 feet.
* Flood stage is 13.0 feet.
* Minor flooding is occurring and Minor flooding is forecast.
* Forecast...The river will continue rising to near 14.7 feet by early Thursday
afternoon then begin falling.
* Impact...At 15.0 feet...Flood waters will affect yards in the Pines area, Coxs
Pond area, and along River Road. Additional residential property will be
affected between the Pepsi plant and the river on the east side of Lumberton.
Notice the new API is missing the first sentence ...The Flood Warning has been extended for the following rivers.... The alert doesn't make as much sense with that missing. I've seen this in multiple cases.
Here is the entire JSON for the new API for that alert to show that text is nowhere in the new data.
"properties": {
"@id": "https://api.weather.gov/alerts/NWS-IDP-PROD-3469529-3035248",
"@type": "wx:Alert",
"id": "NWS-IDP-PROD-3469529-3035248",
"areaDesc": "Robeson, NC",
"geocode": {
"UGC": ["NCC155"],
"SAME": ["037155"]
},
"affectedZones": ["https://api.weather.gov/zones/county/NCC155"],
"references": [{
"@id": "https://api.weather.gov/alerts/NWS-IDP-PROD-3468242-3034266",
"identifier": "NWS-IDP-PROD-3468242-3034266",
"sender": "w-nws.webmaster@noaa.gov",
"sent": "2019-04-08T11:02:00-04:00"
}
],
"sent": "2019-04-08T20:56:00-04:00",
"effective": "2019-04-08T20:56:00-04:00",
"onset": "2019-04-08T20:56:00-04:00",
"expires": "2019-04-09T12:55:00-04:00",
"ends": null,
"status": "Actual",
"messageType": "Update",
"category": "Met",
"severity": "Severe",
"certainty": "Observed",
"urgency": "Immediate",
"event": "Flood Warning",
"sender": "w-nws.webmaster@noaa.gov",
"senderName": "NWS Wilmington NC",
"headline": "Flood Warning issued April 8 at 8:56PM EDT by NWS Wilmington NC",
"description": "Great Pee Dee At Pee Dee affecting Marion and Florence Counties SC\n\n...The Flood Warning continues for the following rivers...\n\nLumber Near Lumberton affecting Robeson County NC\nThe Flood Warning continues for\nThe Lumber Near Lumberton.\n* until further notice.\n* At 7:50 PM Monday the stage was 14.23 feet.\n* Flood stage is 13.0 feet.\n* Minor flooding is occurring and Minor flooding is forecast.\n* Forecast...The river will continue rising to near 14.7 feet by early Thursday\nafternoon then begin falling.\n* Impact...At 15.0 feet...Flood waters will affect yards in the Pines area, Coxs\nPond area, and along River Road. Additional residential property will be\naffected between the Pepsi plant and the river on the east side of Lumberton.",
"instruction": "PRECAUTIONARY/PREPAREDNESS ACTIONS...\n\nPeople with interests along the river should take the necessary precautions to\nprotect life and property from the flood waters.\n\nAdditional information is available on our website at weather.gov/ilm under the\n\"Rivers and Lakes\" link.",
"response": "Avoid",
"parameters": {
"VTEC": ["/O.CON.KILM.FL.W.0015.000000T0000Z-000000T0000Z/"],
"EAS-ORG": ["WXR"],
"PIL": ["ILMFLSILM"],
"BLOCKCHANNEL": ["CMAS", "EAS", "NWEM"]
}
}
Anyone have any insight into this?