Did the Alert format change?

  • 1
  • Question
  • Updated 5 years ago
Did the alert format change? I have written code to handle multiple alerts as they have been being formatted as items in an array. Today I notice my formatting is totally "busted" by what appears to be three alerts combined into one big entry separated by commas. Perhaps grouping by type is what is happening here but since these are 3 separate alerts as issued by NWS, would it not make sense to transmit them as 3 separate entries of type WAT? The combined entry is kludgy since the alerts have different descriptions, dates and times. Not a very good presentation to the end user as transmitted and darn near impossible to parse reliably with software. If it was sent as 3 alerts it would be much better...
---
Here is the text from the query.
-----
"alerts": [
{
"type": "WAT",
"description": "Flash Flood Watch, High Surf Advisory, Coastal Hazard Statement",
"date": "5:36 am CDT on July 4, 2013",
"date_epoch": "1372934160",
"expires": "7:00 PM CDT on July 05, 2013",
"expires_epoch": "1373068800",
"message": "\u000A...Flash Flood Watch in effect through Saturday morning...\u000A\u000AThe National Weather Service in Mobile has expanded the\u000A\u000A* Flash Flood Watch to include a portion of southwest Alabama... \u000A including the following areas...lower Baldwin and upper \u000A Baldwin. \u000A\u000A* Through Saturday morning\u000A\u000A* Doppler weather radar rainfall totals from Wednesday evening shows\u000A that 3 to 6 inches of rain occurred over southern portions of\u000A Baldwin County. Some minor flash flooding was reported. An\u000A aditional 2 to 4 inches is possible through early Saturday morning\u000A over this same area...with localized areas receiving double these\u000A amounts. \u000A\u000APrecautionary/preparedness actions...\u000A\u000AA Flash Flood Watch means that conditions may develop that lead\u000Ato flash flooding. Flash flooding is a very dangerous situation.\u000A\u000AYou should monitor later forecasts and be prepared to take action\u000Ashould flash flood warnings be issued.\u000A\u000A\u000A\u000A\u000A\u000A756 PM CDT Wed Jul 3 2013\u000A\u000A...High rip current risk remains in effect through Friday\u000Aevening...\u000A...High surf advisory remains in effect from 1 am Thursday to\u000A7 PM CDT Friday...\u000A\u000AA high risk of rip currents is forecast through Friday evening.\u000A\u000A* Waves and surf...a rough surf with 5 to 7 foot waves... \u000A potentially higher at times. \u000A\u000A* Timing...through Friday evening.\u000A\u000A* Impacts...the combination of the increasing onshore wind... \u000A offshore swell...and increasingly rough surf will likely \u000A result in the creation of frequent life threatening rip \u000A currents. Be watchful for breaks in the surf line where an \u000A increased rip current risk may exist. \u000A\u000APrecautionary/preparedness actions...\u000A\u000ARip currents are powerful channels of water flowing quickly away\u000Afrom shore...which occur most often at low spots or breaks in The\u000ASandbar and in the vicinity of structures such as groins...\u000Ajetties and piers. Heed the advice of lifeguards and the beach\u000Apatrol. Pay attention to flags and posted signs.\u000A\u000AIf you become caught in a rip current...do not panic. Remain calm\u000Aand begin to swim parallel to shore. Once you are away from the\u000Aforce of the rip current...begin to swim back to the beach. Do\u000Anot attempt to swim directly against a rip current. Even a strong\u000Aswimmer can become exhausted quickly.\u000A\u000AA high surf advisory means that high surf will affect beaches in\u000Athe advisory area...producing rip currents and localized beach\u000Aerosion.\u000A\u000A\u000A\u000A\u000A\u000A\u000A\u000A",
Photo of MREwx

MREwx

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of geopet

geopet

  • 1 Post
  • 0 Reply Likes
I'm having a similar issue with alerts, but in my case the JSON is invalid and breaking my apps. Essentially, the alerts are 90% of the reason I built my personal apps to begin with.

Any chance that the JSON invalidation can be addressed?