Author Topic: Red Flag Warnings in CarterLake's advisory script  (Read 1394 times)

0 Members and 1 Guest are viewing this topic.

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Red Flag Warnings in CarterLake's advisory script
« on: March 07, 2009, 01:51:28 PM »
I use CarterLake's advisory script and I'm in an area that deals with winds, drought, low humidity and dumb people with matches. #-o
Anyway - I wouldn't get any of the "Red Flag Warnings" for fire weather dangers but found them being issued by NOAA.

I added the 'firewxzone' needed to import those warnings this way:

Between 'county' and 'local' in the "Force Defaults..." area add:
Code: [Select]
if ( ! isset($_REQUEST['firewxzone']) )
        $_REQUEST['firewxzone']="NMZ112";
NOTE: Change "NMZ112" to your specific fire weather zone

A few lines down, between 'warncounty' and 'warnlocal' add:
Code: [Select]
$firewxzone = $_REQUEST['firewxzone'];
"Import NOAA Advisory info" using:
Code: [Select]
$html = implode('', file("http://www.crh.noaa.gov/showsigwx.php?warnzone=${warnzone}&warncounty=${warncounty}&firewxzone=${firewxzone}"));
At the end of the file in the 'warnlist' area use:
Code: [Select]
<a href="http://www.crh.noaa.gov/showsigwx.php?warnzone=' . $warnzone. '&amp;warncounty=' . $warncounty . '&amp;firewxzone=' . $firewxzone . '&amp;local_place1=' . $warnlocal . '&amp;product1=' . $warnheaderplus . '" target="_new">' . $warnheaders[$i] . '</a>';

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Red Flag Warnings in CarterLake's advisory script
« Reply #1 on: March 07, 2009, 05:19:59 PM »
Could that be implemented into the rss-adivsory script or is this the same script. Just an idea.

Chuck

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Red Flag Warnings in CarterLake's advisory script
« Reply #2 on: March 07, 2009, 10:28:31 PM »
My site was getting a Red Flag Warning a couple of days ago thru the top warning.php

« Last Edit: March 08, 2009, 12:22:08 AM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: Red Flag Warnings in CarterLake's advisory script
« Reply #3 on: March 08, 2009, 04:47:39 AM »
This only applies to CarterLake's "NOAA Advisory" script as far as I know. I don't use the other ones.

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com