Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: INCREMENT? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 04 2008 at 08:10 | IP Logged Quote BeachBum

How do I use Timed Event Formulas? An example is the 4th of July which is datetime(date(year(today()) + [INCREMENT],7,4),00:00:00). I haven’t figured out how INCREMENT works yet.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
nadler
Super User
Super User


Joined: February 25 2006
Location: United States
Online Status: Offline
Posts: 354
Posted: July 04 2008 at 13:13 | IP Logged Quote nadler

It looks like you replace [INCREMENT] with a value. In the above formula if you replaced [INCREMENT] with a 1 the formula with verify to July 4, 2009. If you replaced it with a 2 then it would get you July 4, 2010. I assume the other timed event formulas work the same way altho I haven't tried them.
Back to Top View nadler's Profile Search for other posts by nadler
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 04 2008 at 17:23 | IP Logged Quote BeachBum

That’s real interesting. I wonder what the intent was or better yet how does this work. Halloween also has a [REFTIME] and that’s a puzzle.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: July 04 2008 at 22:42 | IP Logged Quote jbbtex

The Timed Event Formula are used in the Frequency field of a timed event.

You can use them to run macros or whatever on that particular day.

I believe INCREMENT does just that. It increments the year in the July 4 formula so that you can create a timed event that fires each July 4.

You can create Timed Event Formula for birthdays too.



__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 05 2008 at 10:32 | IP Logged Quote BeachBum

So, if I got this right, when I set the Frequency field to July 4th and give it a Raw Formula the formula will execute the next July 4th. I gather INCREMENT is an internal thing.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: July 05 2008 at 12:37 | IP Logged Quote jbbtex

That's correct. But be sure to adjust the reference time. The default is 00:00:00.

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 05 2008 at 12:54 | IP Logged Quote BeachBum

Thanks for the help Brandy… I won’t need to build one for my birthday as yesterday was it and the rest of the nation.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: July 05 2008 at 14:48 | IP Logged Quote jbbtex

Happy Birthday!

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: July 05 2008 at 14:52 | IP Logged Quote BeachBum

Must have gotten into the sauce yesterday and was thinking Brandy Brady. One year older and still can’t type. Thks again…

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 

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