So, looking into the nws-alerts.php code from curly, I found two areas that haven't been (yet) adjusted for the new NWS priorities on alerts.
// FUNCTION - set background color (severity color code)
function get_scc($scc) {
global $tc, $bc; // make colors global
$tc = 'color: #000;';
if($scc >= 0 and $scc <= 49) { // warning background
$bc = 'background-color:#CC0000;';
$tc = 'color: white;';
}
if($scc >= 50 and $scc <= 89) { // advisory background
$bc = 'background-color:#FFCC00;';
}
if($scc >= 90 and $scc <= 119) { // watch background
$bc = 'background-color:#FF9900;';
}
if($scc >= 120 and $scc <= 149) { // other background
$bc = 'background-color:#E6E6E3;';
}
if($scc >= 150) { // none background
$bc = 'background-color:#E6E6E3;';
}
}// end background color function
and
// FUNCTION - convert big icons
function create_bi($a,$b,$c,$d,$e,$g,$h,$i) {
if($h >= 0 and $h <= 49) { $bi = "A-warn.png"; }
if($h >= 50 and $h <= 89) { $bi = "A-advisory.png"; }
if($h >= 90 and $h <= 119) { $bi = "A-watch.png"; }
if($h >= 120 and $h <= 139) { $bi = "A-statement.png"; }
if($h == 140) { $bi = "A-air.png"; }
if($h >= 141 and $h <= 149) { $bi = "A-alert.png"; }
if($h == 150) { $bi = "A-none.png"; }
if($i < 2) {$i = '';}
if($i >= 2) {$i = $i - 1;}
($i == 1) ? $alrts = 'alert' : $alrts = 'alerts';
if($i >= 1) {$i = ' +'.$i.' additional '.$alrts;}
$bico = ' <a href="'.$b.'?a='.$c.'#WA'.$d.'" title=" Details for '.$a
.' '.$e.$i.'" style="width:99%; text-decoration:none; padding-top:3px">'.$a.'<br /><img src="'.$g
.'/'.$bi.'" alt=" Details for '.$a.' '.$e.$i
.'" width="74" height="18" style="border:none; padding-bottom:3px" /><br /></a>
';
return $bico;
}// end convert big icons function
so it looks like I should do an update reflecting the new NWS alert priorities.
So, to answer your question, the script automatically determines the alert-box background/text color based on just statement/advisory/watch/warning types, and not on the NWS specific background/text color for the most-severe one found.. I'll look into how that might be accomplished, but no promises. I will update nws-alerts.php two areas cited above to align with the current NWS alert priority list.