Author Topic: What File to Force a "$NOAAEvent" Value?  (Read 598 times)

0 Members and 1 Guest are viewing this topic.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
What File to Force a "$NOAAEvent" Value?
« on: March 14, 2018, 06:37:47 PM »
For testing purposes I would like to be able to force a NWS alert, "$NOAAEvent", to either a value or null. Within the "nws-alert" programs which file and where can I insert this testing value?

Thanks folks ...
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: What File to Force a "$NOAAEvent" Value?
« Reply #1 on: March 14, 2018, 07:52:15 PM »
Ummm... $NOAAEvent is in testtags.php and created by Weather-Display.
In the testtags.txt template you could change
Code: [Select]
$NOAAEvent = '%NOAAEvent%'; // NOAA Watch/Warning/Advisory

to
Code: [Select]
$NOAAEvent = 'Some Urgent Warning Here'; // NOAA Watch/Warning/Advisory
and have WD upload testtags.php.

Keep in mind that the default Saratoga template doesn't use that tag anywhere, nor does the nws-alert set of scripts.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: What File to Force a "$NOAAEvent" Value?
« Reply #2 on: March 14, 2018, 08:02:30 PM »
Thanks for the info. Ken. I thought that it might be in the "nws-alerts" set of scripts. I like your solution  \:D/ I wish that everything was as straight forward. I'll give it a try. Much appreciated!  =D> My question should be directed to Brian as to where he uses "%NOAAEvent%".
« Last Edit: March 14, 2018, 08:05:23 PM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D