| Author | 
         | 
         
      
        
         
         TonyNo Moderator Group 
          
  
  Joined: December 05 2001 Location: United States
 Online Status: Offline Posts: 2889
          | 
        
         
          
           | Posted: December 20 2006 at 20:11 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
This is a macro to get local weather alerts. The only problem that I can see is that this uses polling, and sometimes warnings are issued only minutes before the event is to occur.
 
 Create a new Global Variable called "CURWWA", and update your zone info in the ph_geturl line. Zone info is available here by drilling-down to your location (click on the correct XML button).
 
 WWA2
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         demko Newbie 
          
 
  Joined: January 08 2009
 Online Status: Offline Posts: 15
          | 
        
         
          
           | Posted: January 14 2009 at 22:56 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Sorry if this is a stupid question, but I'm still new at this.  What's the difference between the "WWA 2" and the "WWA2" macros?  I can't seem to see a difference.  
 
 Also, I was wondering if you could help me out with figuring something out.  I setup a timed event to run this macro "WWA 2" every 5 minutes.  What I'd like to do is kick off a macro I created (flashes a light a few times) if a new warning is issued.  Any idea how I could do that?
 
 Thanks for any help!
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         BeachBum Super User 
          
  
  Joined: April 11 2007 Location: United States
 Online Status: Offline Posts: 1880
          | 
        
         
          
           | Posted: January 14 2009 at 23:17 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
I store the context of the alert I am using in a global and compare it to the new to see if there is a change. If so I then create a time event for a newer wwa2. If not then the next time event is created for much later.
  __________________ Pete - X10 Oldie
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         TonyNo Moderator Group 
          
  
  Joined: December 05 2001 Location: United States
 Online Status: Offline Posts: 2889
          | 
        
         
          
           | Posted: January 15 2009 at 08:01 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
If you put your macro call at the end, it should work. The 2nd to last line looks for a change.
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   |