| 
    
     | 
       
        | Author |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          In Alabama it's tornado season once again and I'm looking for a way to replace my weather radio with a "smart" system.
           | Posted: March 28 2010 at 00:02 | IP Logged |   |  
           | 
 |  
 It never fails - in the middle of the night the weather radio blasts an alarm, startling us out of bed, only to notify us that a thunderstorm watch has been issued for our county.  Just when we get back to sleep it goes off again reporting a thunderstorm warning for the adjacent county.  By now we're fed up with being jolted from our sleep so we turn the power off to the stupid thing.  Only in the morning do we find out that a tornado touched down a few hours after we yanked the plug.
 
 I remember reading one of the forum posts which mentioned someone modifying the get_weather macro to report weather warnings.  Does someone have a macro which would only report tornado warnings?  While I'm able to write basic macros I wouldn't know where to start on something like this.
 
 Also I need a working copy of the get_weather macro.  The get_weather macro contained in the ph2.1b sample database doesn't work for me and I have no idea how to fix it.  The macro runs and the TTS speaks but the variables (temperature, humidity, and forecast) are blank.
 
 Thanks,
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          I use the Get Weather macro and modified it to scan for Tornados, Hurricanes, Thunderstorm and coastal flooding. I fire this off every 45 minutes and if there is activity I then fire it every 15 minutes. Also if there is a threat I announce the content on my speaker system. For my location I go to this site:
           | Posted: March 28 2010 at 10:04 | IP Logged |   |  
           | 
 |  
 http://www.weather.gov/alerts/wwarssget.php?zone=FLZ004
 
 
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | grif091 Super User
 
  
 
 Joined: March 26 2008
 Location: United States
 Online Status: Offline
 Posts: 1357
 | 
          The problem using an Internet site to access weather is the delay involved in getting Tornado warnings.  It is obviously great for Hurricane and Flood warnings as there is good advance warning.  For Tornados you may have only minutes or even seconds of lead time which is why the Weather Radio is so good.  With SAME technology and radios that can block alerts such as the Midland WR300 false middle of the night alerts are kept to a minimum.  Perhaps an adaptation on Pete’s approach, when a Thunderstorm warning is issued then pull the current information every 15-30 seconds until the Thunderstorm waning is cancelled.  Even every 15 minutes is not good lead time for a Tornado warning.  You also have the problem of a power outage killing the Internet access.  I keep my system on a UPS but the phone company switch has been known to go down.  We are very rural so high speed Internet service may be more reliable in larger population areas.
           | Posted: March 28 2010 at 10:39 | IP Logged |   |  
           | 
 |  
 __________________
 Lee G
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          I have found here in Northwest Florida there does not appear to be any delay from what you hear on the TV or radio. I believe the TV and radio sites use the same NOAA feeds that I access. The delay will be the frequency of my Timed Event checking the alert. Living here on the edge of the Alabama tornado alley I found there is usually plenty of warning of a possibility but the touchdown is real time. As a front moves into my weather zone, which extends from Mississippi, Alabama to Florida I pick it up as it moves into that region. After that if there is a threat then it’s up to you to decide when you want to duck. For Tornado Watches I fire macro every 5 minutes. It’s not perfect but Chatty Cathy sure gets your attention. If you want to know when to duck then Lee’s approach is probably the better.
           | Posted: March 28 2010 at 11:05 | IP Logged |   |  
           | 
 |  
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          The points you make Lee are certainly valid.  I have looked at the Midland WR300 and may end up buying one.
           | Posted: March 28 2010 at 11:43 | IP Logged |   |  
           | 
 |  
 Pete what you're doing with Get Weather macro is along the lines of what I was contemplating.  Could you post your macro version?
 
 Thanks
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          
           | Posted: March 28 2010 at 13:39 | IP Logged |   |  
           | 
 |  
 Here you go Jimmy:
 
 insert into macroheader values ('WEATHER_ALERT','CHECK WEATHER',0,0,1);
 insert into macrodetail values ('WEATHER_ALERT',1,16,'',NULL,'IF ("{VACATION}" = "ON", 999, 1)',0,'');
 insert into macrodetail values ('WEATHER_ALERT',2,16,'',NULL,'IF (NOW() < 22:00:00, 1, 999)',0,'');
 insert into macrodetail values ('WEATHER_ALERT',3,15,'[LOCAL2]',NULL,'"{CURWWA}"',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',4,38,'',0,'ph_writefile("c:\powerhome\weath er\Weather Alerts.txt", 9,  ph_geturl("http://www.weather.gov/alerts/wwarssget.php?zone= FLZ004"))',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',5,38,'',0,'ph_setvar_s(3,21,ph_geturl("http ://www.weather.gov/alerts/wwarssget.php?zone=FLZ004"  ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',6,37,'',NULL,'NEXT LINE FOR TESTING ONLY',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',7,38,'',0,'ph_setvar_s(3,21,ph_READfile("c: \powerhome\weather\TEST Alerts.txt"))',1,'');
 insert into macrodetail values ('WEATHER_ALERT',8,27,'',NULL,'"TORNADO"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',9,26,'',NULL,'WEATHER_ALERT',0,'');
 insert into macrodetail values ('WEATHER_ALERT',10,36,'',NULL,'"TEST WEATHER ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',11,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), ".NOW." ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',12,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "NO_ALERT", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',13,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"$$",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',14,15,'[TEMP4]',NULL,'mid(ph_getvar_s(3,21), ph_getvar_n(3,26), ph_getvar_n(3,27) - ph_getvar_n(3,26) )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',15,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", ".NOW.", " Weather ALERT!   " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',16,36,'',NULL,'"WEATHER ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',17,10,'CURWWATORNADO',NULL,'"NO"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',18,27,'',NULL,'"ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',19,26,'',NULL,'HURRICANE',0,'');
 insert into macrodetail values ('WEATHER_ALERT',20,36,'',NULL,'"TEST HURRICANE"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',21,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), "HURRICANE..." ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',22,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "TROPICAL", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',23,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), "...NEW INFORMATION" ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',24,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "TROPICAL", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',25,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"$$",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',26,15,'[TEMP4]',NULL,'mid(ph_getvar_s(3,21), ph_getvar_n(3,26), ph_getvar_n(3,27) - ph_getvar_n(3,26) )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',27,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "HURRICANE...", " HURRICANE ALERT!   " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',28,36,'',NULL,'"HURRICANE ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',29,27,'',NULL,'"ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',30,26,'',NULL,'TROPICAL',0,'');
 insert into macrodetail values ('WEATHER_ALERT',31,36,'',NULL,'"TEST TROPICAL"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',32,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), "...STORM INFORMATION..." ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',33,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "SURF", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',34,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"$$",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',35,15,'[TEMP4]',NULL,'mid(ph_getvar_s(3,21), ph_getvar_n(3,26), ph_getvar_n(3,27) - ph_getvar_n(3,26) )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',36,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "TROPICAL...", " TROPICAL STORM  ALERT!   " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',37,36,'',NULL,'"TROPICAL STORM  ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',38,27,'',NULL,'"ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',39,26,'',NULL,'SURF',0,'');
 insert into macrodetail values ('WEATHER_ALERT',40,36,'',NULL,'"TEST SURF"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',41,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), " ...WIND" ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',42,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "WEATHER_ALERT", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',43,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"$$",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',44,15,'[TEMP4]',NULL,'mid(ph_getvar_s(3,21), ph_getvar_n(3,26), ph_getvar_n(3,27) - ph_getvar_n(3,26) )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',45,36,'',NULL,'"SURF ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',46,27,'',NULL,'"ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',47,26,'',NULL,'TORNADO',0,'');
 insert into macrodetail values ('WEATHER_ALERT',48,36,'',NULL,'"TEST TORNADO"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',49,38,'',0,'ph_setvar_a(3,26, posw( ph_getvar_s(3,21), "Tornado Warning - Coastal Santa Rosa" ))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',50,27,'',NULL,'IF (ph_getvar_s(3,26) = "0", "HURRICANE", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',51,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"THE SAFEST PLACE",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',52,27,'',NULL,'IF (ph_getvar_s(3,27) = "0", "NOP", "END2")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',53,38,'',0,'ph_setvar_a(3,27,  posw(ph_getvar_s(3,21),"LAT...LON",ph_getvar_n(3,26)))',0,'' );
 insert into macrodetail values ('WEATHER_ALERT',54,27,'',NULL,'IF (ph_getvar_s(3,27) = "0", "NOP", "END2")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',55,38,'',0,'ph_setvar_a(3,27, posw(ph_getvar_s(3,21),"$$",ph_getvar_n(3,26)))',0,'');
 insert into macrodetail values ('WEATHER_ALERT',56,26,'',NULL,'END2',0,'');
 insert into macrodetail values ('WEATHER_ALERT',57,15,'[TEMP4]',NULL,'mid(ph_getvar_s(3,21), ph_getvar_n(3,26), ph_getvar_n(3,27) - ph_getvar_n(3,26) )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',58,36,'',NULL,'"TORNADO WARNING"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',59,10,'CURWWATORNADO',NULL,'"YES"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',60,27,'',NULL,'"ALERT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',61,26,'',NULL,'ALERT',0,'');
 insert into macrodetail values ('WEATHER_ALERT',62,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "<br>", " " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',63,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "...", " " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',64,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "NM", "natical miles " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',65,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "WIND", "WIEND " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',66,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", " MPH", " miles per hour" )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',67,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "CDT", " " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',68,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", "CST", " " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',69,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", " TO ", " to " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',70,15,'[TEMP4]',NULL,'ph_replaceall( "[TEMP4]", " MB ", " millibars " )',0,'');
 insert into macrodetail values ('WEATHER_ALERT',71,15,'[TEMP4]',NULL,'lower("[TEMP4]")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',72,10,'CURWWA',NULL,'"[TEMP4]"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',73,27,'',NULL,'If( "[LOCAL2]" = "{CURWWA}", "NOP", "WEATHER_ALERT_EXIT")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',74,36,'',NULL,'"NO CHANGE"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',75,27,'',NULL,'if ("{CURWWA}" = "", "NOP", "EXIT15")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',76,26,'',NULL,'NO_ALERT',0,'');
 insert into macrodetail values ('WEATHER_ALERT',77,10,'CURWWA',NULL,'" "',0,'');
 insert into macrodetail values ('WEATHER_ALERT',78,36,'',NULL,'"NO WEATHER ALERTS"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',79,27,'',NULL,'"EXIT45"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',80,26,'',NULL,'WEATHER_ALERT_EXIT',0,'');
 insert into macrodetail values ('WEATHER_ALERT',81,27,'',NULL,'if ("{CURWWA}" = "", "EXIT45", "NOP")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',82,9,'',NULL,'"[TEMP4]"',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',83,38,'',0,'ph_writefile("c:\powerhome\weat her\Weather Alert.txt ", 9,  "[TEMP4]")',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',84,38,'',0,'ph_copyfile("c:\powerhome\weath er\Weather Alert.TXT ","p:\weather\Weather Alert.txt ",  9)',1,'');
 insert into macrodetail values ('WEATHER_ALERT',85,38,'',0,'ph_ssrequest("192.168.1.150", 8500, "chc", "mischa", "FORMULA", ''ph_tts("[TEMP4]")'')',1,'');
 insert into macrodetail values ('WEATHER_ALERT',86,38,'',0,'ph_ssrequest("192.168.1.102", 8500, "auto", "test", "FORMULA", ''ph_tts(ph_readfile("c:powerhome\weather\weather alert.txt"))'')',1,'');
 insert into macrodetail values ('WEATHER_ALERT',87,26,'',NULL,'EXIT15',0,'');
 insert into macrodetail values ('WEATHER_ALERT',88,27,'',NULL,'IF (ph_getglobal_s("CURWWATORNADO") = "YES", "EXIT5", "NOP")',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',89,38,'',0,'ph_createtimedevent1("WEATHER_A LERT",1,0,0,1,15,DATETIME(TODAY(),NOW()),0,"WEATHER_ALERT"," 1")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',90,27,'',NULL,'"EXIT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',91,26,'',NULL,'EXIT45',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',92,38,'',0,'ph_createtimedevent1("WEATHER_A LERT",1,0,0,1,45,DATETIME(TODAY(),NOW()),0,"WEATHER_ALERT"," 1")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',93,27,'',NULL,'"EXIT"',0,'');
 insert into macrodetail values ('WEATHER_ALERT',94,26,'',NULL,'EXIT5',0,'');
 insert into macrodetail values  ('WEATHER_ALERT',95,38,'',0,'ph_createtimedevent1("WEATHER_A LERT",1,0,0,1,5,DATETIME(TODAY(),NOW()),0,"WEATHER_ALERT","1 ")',0,'');
 insert into macrodetail values ('WEATHER_ALERT',96,16,'',NULL,'999',0,'');
 insert into macrodetail values ('WEATHER_ALERT',97,26,'',NULL,'EXIT',0,'');
 insert into macrodetail values ('WEATHER_ALERT',98,10,'CURWWATORNADO',NULL,'"NO"',0,'');
 
 
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          Thanks Pete
           | Posted: March 28 2010 at 14:23 | IP Logged |   |  
           | 
 |  
 I set up the Globals and changed the zone to ALZ002.  The macro appears to work - CURWWATORNADO=NO.
 
 It will be a good project for me to decipher the code.
 
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          Jimmy, it needs to be cleaned up as the project is an ongoing changing environment. The key is to trigger off a keyword. NOAA sometimes changes their format so I end up testing and changing. What I do is when I find we are in an alert I save the file to analyze later then test the code against it. I would be interested in what you do.
           | Posted: March 28 2010 at 15:20 | IP Logged |   |  
           | 
 |  
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          As a novice programmer I'm not sure I'll be able to do much but I'll let you know what I end up with.
           | Posted: March 28 2010 at 18:03 | IP Logged |   |  
           | 
 |  
 I've still got to figure out why the Get Weather macro included in the ph2.1b sample database doesn't work.
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          Pete,
           | Posted: March 29 2010 at 11:49 | IP Logged |   |  
           | 
 |  
 Looking at the code, I’m having a problem with lines 510, 530 and 550.  What’s “ph_getvar_n(3,26)” doing?  It’s the start argument in the posw function but I can’t get my mind around what’s actually going on.  My biggest problem is my lack of programming experience - maybe it would make more sense if I had a NWS statement in front of me.
 
 I’m having a similar issue with line 570.  The mid function length argument – “ph_getvar_n(3,27) – ph_getvar_n(3,26)”.
 
 If I can get an explanation of these I think I’ll be able to figure the rest out.
 
 Thanks,
 
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          Let see if I can make sense out of this. Line 50 sets System Global 21 with the data read from the web site. Line 510 is looking for “The Safest Place” in the data from line 50.  I start looking for that data at the point I found Tornado Warning in line 490. Line 570 sets TEMP 4 with the data found in the web site at “Tornado Warning”  with the length derived from the start from line 490 and the end from line 550. An example of the data is:
           | Posted: March 29 2010 at 12:32 | IP Logged |   |  
           | 
 |  
 A TORNADO WARNING REMAINS IN EFFECT UNTIL 830 AM CDT FOR SOUTH
 CENTRAL SANTA ROSA...SOUTHEASTERN ESCAMBIA AND EXTREME SOUTHEASTERN
 BALDWIN COUNTIES...
 
 AT 751 AM CDT...NATIONAL WEATHER SERVICE DOPPLER RADAR CONTINUED TO
 INDICATE A SEVERE THUNDERSTORM CAPABLE OF PRODUCING A TORNADO. THIS
 TORNADO WAS NEAR WARRINGTON...OR ABOUT 6 MILES SOUTHWEST OF
 PENSACOLA...MOVING EAST AT 15 MPH.
 
 THE TORNADO WILL BE NEAR...
 BROWNSVILLE BY 800 AM CDT...
 GOULDING AND 6 MILES SOUTH OF BRENT BY 805 AM CDT...
 PENSACOLA...EAST PENSACOLA HEIGHTS...6 MILES SOUTH OF PENSACOLA
 REGIONAL A/P AND 9 MILES SOUTH OF FERRY PASS BY 815 AM CDT...
 ORIOLE BEACH BY 830 AM CDT...
 
 THE SAFEST PLACE TO BE DURING A TORNADO IS ON THE LOWEST FLOOR OF A
 STURDY BUILDING...PREFERABLY IN AN INTERIOR HALLWAY OR A ROOM SUCH AS
 A CLOSET OR BATHROOM. IF POSSIBLE...GET UNDER A WORKBENCH OR OTHER
 PIECE OF STURDY FURNITURE. USE BLANKETS OR PILLOWS TO COVER YOUR BODY
 AND ALWAYS STAY AWAY FROM WINDOWS. IN ADDITION TO THE TORNADO...THIS
 STORM IS CAPABLE OF PRODUCING LARGE DAMAGING HAIL OR DAMAGING
 STRAIGHT LINE WINDS.
 
 IF YOU ARE IN MOBILE HOME...EVACUATE IT AND GET ON THE LOWEST FLOOR
 OF A NEARBY STURDY BUILDING OR IN AN UNDERGROUND STORM SHELTER. IF NO
 SUBSTANTIAL SHELTER IS AVAILABLE AND A TORNADO IS FAST APPROACHING...
 SEEK SHELTER IN A CULVERT...DITCH OR LOW DEPRESSION AND COVER YOUR
 HEAD WITH YOUR HANDS.
 
 A TORNADO WATCH REMAINS IN EFFECT UNTIL 900 AM CDT THURSDAY MORNING
 FOR SOUTHWESTERN ALABAMA AND NORTHWEST FLORIDA.
 
 LAT...LON 3033 8744 3036 8741 3046 8748 3054 8717
 3050 8713 3052 8710 3055 8714 3057 8707
 3045 8706 3044 8709 3050 8713 3039 8717
 3041 8707 3038 8705 3036 8721 3037 8722
 3042 8717 3042 8718 3035 8726
 TIME...MOT...LOC 1253Z 261DEG 13KT 3038 8727
 
 $$
 
 
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | JimmyL Newbie
 
  
 
 Joined: March 26 2010
 Location: United States
 Online Status: Offline
 Posts: 32
 | 
          I understand (better)...now to experiment.
           | Posted: March 29 2010 at 16:32 | IP Logged |   |  
           | 
 |  
 Thanks
 
 __________________
 Jimmy
 |  
        | Back to Top |     |  
        |  |  
        | MrGibbage Super User
 
  
  
 Joined: October 23 2006
 Location: United States
 Online Status: Offline
 Posts: 513
 | 
          An ever so slight threadjack...
           | Posted: March 30 2010 at 14:15 | IP Logged |   |  
           | 
 |  I noticed that the data here comes from http
 ://www.weather.gov/alerts/wwarssget.php?zone=FLZ004
 and the NWS is about to stop that service (in about minus
 one year, according to http://www.weather.gov/alerts/).
 Anyway, I saw that the new format is xml based, and I was
 wondering, does PH have any built in XML parsers, or is
 there a helper application that ph can use?
 
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          The only I found reference was this:
           | Posted: March 30 2010 at 15:22 | IP Logged |   |  
           | 
 |  
 "Experimental XML Feeds and Web Displays of Watches, Warnings, and Advisories
 The RSS and CAP feeds presented on this page have been phased out and replaced by those available here. These feeds will continue to operate until about March 15, 2009 at which time redirects to the replacement feeds will be put in place. "
 
 
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  
        | MrGibbage Super User
 
  
  
 Joined: October 23 2006
 Location: United States
 Online Status: Offline
 Posts: 513
 | 
          Right.  I read that as "the feed you see here is about to expire around 15 March 2009.  After that time, you
           | Posted: March 30 2010 at 15:48 | IP Logged |   |  
           | 
 |  can still use the same URL, but you will get a different feed format.  You can see the new feed format by
 going to the link provided."
 
 It looks to me like they have not transitioned yet.  The new feeds are indeed xml based, and would be a lot
 easier to parse, I would think... assuming there was an xml parser in PH available for use.
 
 Instead of
 Florida - (Coastal Santa Rosa/FLZ004) - Current Watches, Warnings and Advisories for Florida Issued by the
 National Weather Service http://www.weather.gov/alerts/fl.html Tue, 30 Mar 2010 15:38:03 4 en-us
 robert.bunge@noaa.gov w-nws.webmaster@noaa.gov Current Watches, Warnings and Advisories for Florida (Coastal
 Santa Rosa/FLZ004) Issued by the National Weather Service http://weather.gov/images/xml_logo.gif NOAA -
 National Weather Service http://weather.gov Red Flag Warning - Coastal Santa Rosa (Florida)
 http://www.weather.gov/alerts/FL.html#FLZ004.MOBRFWMOB.11000 0 RED FLAG WARNING NOW IN EFFECT FROM NOON TODAY
 TO 7 PM CDT<br>THIS EVENING FOR THE WESTERN FLORIDA PANHANDLE DUE TO A LONG<br>DURATION OF LOW RELATIVE
 HUMIDITY BELOW 35 PERCENT...<br><br>.DRY HIGH PRESSURE WILL CONTINUE TO DOMINATE THE AREA...WITH<br>RELATIVE
 HUMIDITY VALUES NEAR CRITICAL LEVELS ACROSS THE WESTERN<br>FLORIDA PANHANDLE THIS
 AFTERNOON.<br><br>FLZ001>006-310000-<br> ;/O.EXT.KMOB.FW.W.0031.100330T1700Z-100331T0000Z/<br>I NLAND ESCAMBIA-
 COASTAL ESCAMBIA-INLAND SANTA ROSA-<br>COASTAL SANTA ROSA-INLAND OKALOOSA-COASTAL OKALOOSA-<br>600 AM CDT TUE
 MAR 30 2010<br><br>...RED FLAG WARNING NOW IN EFFECT FROM NOON TODAY TO 7 PM CDT<br>THIS
 EVENING...<br><br>THE DRY CONDITIONS COMBINED WITH WARM AFTERNOON TEMPERATURES WILL<br>LEAD TO RELATIVE
 HUMIDITY LEVELS DROPPING TO BETWEEN 24 AND 31<br>PERCENT THIS AFTERNOON ACROSS THE WESTERN FLORIDA
 PANHANDLE.<br><br>PRECAUTIONARY/PREPAREDNESS ACTIONS...<br><br>A RED FLAG WARNING MEANS THAT DANGEROUS FIRE
 WEATHER CONDITIONS ARE<br>EITHER OCCURRING NOW...OR LIKELY WILL OCCUR. A COMBINATION OF LOW<br>RELATIVE
 HUMIDITY AND WARM TEMPERATURES WILL CREATE EXPLOSIVE FIRE<br>GROWTH  POTENTIAL.<br><br><br><br>$$<br&g t;<a
 href=http://www.srh.noaa.gov/mob/>Issuing Weather Forecast Office Homepage</a>
 
 You would now have (available from http://www.weather.gov/alerts-beta/wwaatmget.php?x=FLZ004)
 
 <!--
 This atom/xml feed is an index to active advisories, watches and warnings issued
 by the National Weather Service.  This index file is not the complete Common
 Alerting Protocol (CAP) alert message.  To obtain the complete CAP alert,
 please follow the links for each entry in this index.  Also note the CAP
 message uses a style sheet to convey the information in a human readable
 format.  Please view the source of the CAP message to see the complete data
 set.  Not all information in the CAP message is contained in this index of
 active alerts.
 -->
 <feed
 xmlns = 'http://www.w3.org/2005/Atom'
 xmlns:cap = 'urn:oasis:names:tc:emergency:cap:1.1'
 xmlns:ha = 'http://www.alerting.net/namespace/index_1.0'
 >
 
 <!-- http-date = Tue, 30 Mar 2010 11:00:00 GMT -->
 <id>http://www.weather.gov/alerts-beta/wwaatmget.php?x =FLZ004</id>
 <generator>
 NWS CAP Server
 </generator>
 <updated>2010-03-30T11:00:00-05:00</updated>
 <author>
 <name>
 w-nws.webmaster@noaa.gov
 </name>
 </author>
 <title>
 Current Watches, Warnings and Advisories for Coastal Santa Rosa (FLZ004) Florida Issued by the National
 Weather Service
 </title>
 <link  href='http://www.weather.gov/alerts-beta/wwaatmget.php?x=FLZ 004'/>
 <entry>
 <id>http://www.weather.gov/alerts-beta/wwacapget.php?
 x=FL20100330110000MOBRedFlagWarningMOB20100331000000FL</i d>
 <updated>2010-03-30T06:00:00-05:00</updated>
 <published>2010-03-30T06:00:00-05:00</published>
 <author>
 <name>w-nws.webmaster@noaa.gov</name>
 </author>
 <title>Red Flag Warning issued March 30 at 6:00AM CDT expiring March 30 at 7:00PM CDT by NWS Mobile
 http://www.srh.noaa.gov/mob/</title>
 <link href="http://www.weather.gov/alerts-beta/wwacapget.php?
 x=FL20100330110000MOBRedFlagWarningMOB20100331000000FL"/>
 <summary>...RED FLAG WARNING NOW IN EFFECT FROM NOON TODAY TO 7 PM CDT THIS EVENING FOR THE WESTERN FLORIDA
 PANHANDLE DUE TO A LONG DURATION OF LOW RELATIVE HUMIDITY BELOW 35 PERCENT... .DRY HIGH PRESSURE WILL
 CONTINUE TO DOMINATE THE AREA...WITH RELATIVE HUMIDITY VALUES NEAR CRITICAL LEVELS ACROSS THE WESTERN FLORIDA
 PANHANDLE THIS AFTERNOON.</summary>
 <cap:effective>2010-03-30T06:00:00-05:00</cap:effec tive>
 <cap:expires>2010-03-30T19:00:00-05:00</cap:expires >
 <cap:status>Actual</cap:status>
 <cap:msgType>Alert</cap:msgType>
 <cap:category>Met</cap:category>
 <cap:urgency>Expected</cap:urgency>
 <cap:severity>Severe</cap:severity>
 <cap:certainty>Likely</cap:certainty>
 <cap:areaDesc>Coastal Escambia; Coastal Okaloosa; Coastal Santa Rosa; Inland Escambia; Inland Okaloosa;
 Inland Santa Rosa</cap:areaDesc>
 <cap:geocode>
 <valueName>FIPS6</valueName>
 <value>012033 012091 012113</value>
 </cap:geocode>
 </entry>
 </feed>
 
 
 |  
        | Back to Top |     |  
        |  |  
        | BeachBum Super User
 
  
  
 Joined: April 11 2007
 Location: United States
 Online Status: Offline
 Posts: 1880
 | 
          I guess we’ll have to adapt to it when it happens. Being government we are way behind in air traffic control software so I won’t count it too soon.
           | Posted: March 30 2010 at 16:00 | IP Logged |   |  
           | 
 |  
 __________________
 Pete - X10 Oldie
 |  
        | Back to Top |     |  
        |  |  |  |