Author Topic: Disable Certain Conditions in NWS-Alerts  (Read 290 times)

0 Members and 1 Guest are viewing this topic.

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 521
    • Tyler Texas Weather
Disable Certain Conditions in NWS-Alerts
« on: January 14, 2019, 03:41:53 PM »
Because we've had excessive amounts of rain over the last few months, there have been ongoing flood warnings on some rivers in surrounding counties. Unfortunately, these overshadow other actual 'weather' event statements like a Thunderstorm Warning or Special Weather Statement. I was wondering if there is a way to ignore these specific River Flood Warnings. In other words, is there a way to selectively enable or disable the various watches/warnings/advisories/alerts from the NWS in order to show only specific ones?

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Disable Certain Conditions in NWS-Alerts
« Reply #1 on: January 14, 2019, 03:58:04 PM »
You should be able to comment out the River Flood Warnings in nws-alerts.php I believe.

Around line 760 in mine

Code: [Select]
array('N'=>'Radiological Hazard Warning',     'C'=>'#D00', 'S'=>'37', 'I'=>'WSW.gif'),
    array('N'=>'Red Flag Warning',                'C'=>'#D00', 'S'=>'38', 'I'=>'FWW.gif'),
    array('N'=>'River Flood Warning',             'C'=>'#D00', 'S'=>'39', 'I'=>'FLW.gif'),
    array('N'=>'Shelter In Place Warning',       'C'=>'#D00', 'S'=>'40', 'I'=>'WSW.gif'),
    array('N'=>'Sleet Warning',                      'C'=>'#D00', 'S'=>'41', 'I'=>'IPW.gif'),
Tony




Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: Disable Certain Conditions in NWS-Alerts
« Reply #2 on: January 15, 2019, 11:19:07 AM »
Curly wrote a script to do just that called "Filtered Alerts".  He has given me permission to pass his work along to those interested.