Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Macros, Scripts, and Formulas Repository
 PowerHome Messageboard : PowerHome Macros, Scripts, and Formulas Repository
Subject Topic: Weather Warnings Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2876
Posted: December 20 2006 at 20:11 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
demko
Newbie
Newbie


Joined: January 08 2009
Online Status: Offline
Posts: 15
Posted: January 14 2009 at 22:56 | IP Logged Quote demko

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 View demko's Profile Search for other posts by demko
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1877
Posted: January 14 2009 at 23:17 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2876
Posted: January 15 2009 at 08:01 | IP Logged Quote TonyNo

If you put your macro call at the end, it should work. The 2nd to last line looks for a change.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum