NOAA WARNINGS not working now

WHat else needs to be changed, NWS Alerts (
Above URL shows flood warning, changing the Zone to GAC109 and clicking go shows
There are no active watches, warnings or advisories

Brian may need to change look up api and update a zip…also check that flood warning is a current one and not archived

I have been in touch with Brian and advised him of the problem and the Saratoga template solution to it. He is away, but will look at it when he gets back.


1 Like

Thank you for this info

I’ve been struggling with the same issue for a few weeks as well. After Brain updates WD, it would be good to clarify if this NOAA change is only for warnings or forecasts/warnings.

suggests it’s only alerts?

What changed was which stopped offering XML format ATOM alerts on the site in favor of offering alerts in JSON or CAP XML on instead, using both a new host and query URI.

As I understand it, WD uses ftp to get zone forecasts and zone alerts (raw text) from that capability still exists and is not being phased out (AFAIK).
A forecast zone like for my CAZ513 zone is at:
which is a Zone, not a Point forecast so is more general.

The alerts for CAZ513 that WD uses in the NOAA Warnings setup is the old query format:

The new format is

But… they changed the ATOM format to omit an <event>...</event> entry where there are not any active alerts in the area. For the nws-alerts program, I had to detect that and insert XML with the missing <event>...</event> so the rest of Curly’s code would work normally. (I was too lazy to just rewrite it).
The missing part I’d inserted was in this function from nws-alerts:

// FUNCTION - generate fake no-data alert for CAP 1.2 no alerts entries
function gen_no_alert($zData) { // Added in V2.00
global $noted,$doDebug;
$output = '';

/* input CAP1.2 with no <event> entry:

<feed xmlns="" xmlns:cap="urn:oasis:names:tc:emergency:cap:1.2">
    <generator>NWS CAP Server</generator>
        <name>[email protected]</name>
    <title>Current watches, warnings, and advisories for Santa Clara Valley Including San Jose (CAZ513) CA</title>
    <link rel="self" href=";limit=500&amp;active=1"/>

Need something in <event> section like:

  	<name>[email protected]</name>
  	<title>There are no active watches, warnings or advisories</title>
  	<link href=";y=0"/>

  $id = isset($zData->id)?(string)$zData->id:'';
	$id = str_replace('&','&amp;',$id);
	$updated = isset($zData->updated)?(string)$zData->updated:'';
	$author = isset($zData->author->name)?(string)$zData->author->name:'';
	$link = $id;
$rawXML = '<entry>
  <title>There are no active watches, warnings or advisories</title>
  <link href="'.$link.'"/>
  $output = simplexml_load_string($rawXML);
	if($doDebug) {$noted .= "<!-- gen_no_entry generated \n".print_r($output,true)." -->\n"; }

I think Brian will have to update the NOAA Warnings program to use/handle the new alerts URL.

I appreciate the clarifications and updates all

Did anyone try the new zipped version Brian updated for NWS Alerts. It is not finding any codes for my State - Tried New Hampshire and got the same. California appeared to find some zones that worked. I did try other states and it appeared hit or miss. Will test on my second system.

Do you not need to enter counties rather than zones now?

It worked once,now failing Tried both old zones format an then county format…

You’ll need county codes not the zone. Stand by, the work is in progress.


As I said in post…tried BOTH…

worked for a while then not…with old zone formats and new county format…

I think Brian may soon be making more changes?

Yes, he is making the needed changes. I am testing them for him, but its not done yet and not ready for prime time. Like i said: Stand by.

You cannot make the old version work. NOAA has changed the format of the warning. Brian will release something as soon as its ready. I prefer he release something that actually works. STAND BY.


Thanks Brian…that is working now. Will there be an eventual change to the custom tag for %NOAAEvent%? to coincide with this new process?

Did not find my State, nor zip but I knew my county code and that did work by manually entering it.

Use the address lookup if you don’t know your code.


there is a new field with ver 7 of wdwarning email exe for postal address