Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
MX-980 If Statements based on Time
This thread has 9 replies. Displaying all posts.
Post 1 made on Thursday March 13, 2008 at 10:16
ktixx
Lurking Member
Joined:
Posts:
March 2008
5
Can anyone tell me if there is a way to program a macro with an IF statment based on the time of day? Specifically, when the Cable or DVD macro's start I would like it to check if it is after a certain time (ie: 5:00 PM) and if it is to set the lights (lutron system) to the favorite setting.
Any Help Is Appreciated.
Thank you,
Ken
Post 2 made on Thursday March 13, 2008 at 13:03
Ericjb
Active Member
Joined:
Posts:
February 2004
655
You can't base a macro directly off time of day, but for what you are describing there is only one way I can see for you to do it.

The MX980 does have record timers, this is the key. I would make a hidden device and on a page create 2 buttons. Call them "Before 5" and "After 5". Create a new variable called "After 5". Make your "Before 5" button set the "After 5" variable to FALSE. Make the "After 5" button set the "After 5" Variable to TRUE.

Under tools select Record Timers. Create a timer that will execute at 5:00 PM and alias your "After 5" Button. Create a timer for sometime in the AM that will alias "Before 5"

Now your "After 5" variable will be TRUE after 5PM and FALSE whenever you set the other timer in the AM.

Now add and IF THEN based on this variable that can adjust lights accordingly.

EDIT: You may pick more neutral names for your buttons and variables so you can adjust your Record Timers as sunrise and sunset change and not confuse the situation by using specific times on button names or variables. Maybe Call the variable NIGHT and the buttons NIGHT ON and NIGHT OFF
There are 10 types of people in this world,
There are those who understand binary,
and those who don't!
Post 3 made on Thursday March 13, 2008 at 13:05
Ericjb
Active Member
Joined:
Posts:
February 2004
655
.
There are 10 types of people in this world,
There are those who understand binary,
and those who don't!
Post 4 made on Thursday March 13, 2008 at 13:55
Surf Remote
Loyal Member
Joined:
Posts:
July 2001
5,958
That's pretty cool. Haven't needed to do something like that yet, but thanks for the tip Eric. :-)

Mike
www.SurfRemoteControl.com

THX-certified video calibrator and contributing writer, ProjectorReviews.com
OP | Post 5 made on Thursday March 13, 2008 at 14:45
ktixx
Lurking Member
Joined:
Posts:
March 2008
5
Thank you so much for the Tip Eric. I will try it and get back on how it works out.
Thank you,
Ken
Post 6 made on Thursday March 13, 2008 at 17:16
Ericjb
Active Member
Joined:
Posts:
February 2004
655
I've never actually thought about this until I read ktixx's post. It will work as described, but I can't say I've actually done it.

The thing that makes it work is the fact that it isn't really time specific, just a general "If it's after this time". One could divide the day up in a few parts, but you wouldn't want to do something very specific like "If it's in the first quarter hour after 1:00, the 2nd quarter hour after 1:00, etc" There would be many timer events and it would be quite cumbersome.

Please let us know how it works for you, I can't imagine any problems with it as described, but we'd love to hear how it works.
There are 10 types of people in this world,
There are those who understand binary,
and those who don't!
OP | Post 7 made on Friday March 14, 2008 at 09:39
ktixx
Lurking Member
Joined:
Posts:
March 2008
5
I tried your suggestion and as far as I can tell it worked perfectly! I tested it last night (after 5:00 PM) and it turned the lights to my favorite level.

The only problem I had was for some reason, the lights would only turn on if my variable "After 5" was false. I must have done something wrong in setting up the variable or something, but regardless it works. I may go back and try to set it up again so that if "after 5" is true then the lights will turn on.

Again, Thank you so much!
Ken
Post 8 made on Friday March 14, 2008 at 10:52
ds53652
Long Time Member
Joined:
Posts:
December 2007
207
Very cool guys...thnx for sharing this!!!
Post 9 made on Saturday March 15, 2008 at 01:25
Ericjb
Active Member
Joined:
Posts:
February 2004
655
On March 14, 2008 at 09:39, ktixx said...
I tried your suggestion and as far as I can tell it worked
perfectly! I tested it last night (after 5:00 PM) and
it turned the lights to my favorite level.

The only problem I had was for some reason, the lights
would only turn on if my variable "After 5" was false.
I must have done something wrong in setting up the variable
or something, but regardless it works. I may go back
and try to set it up again so that if "after 5" is true
then the lights will turn on.

Again, Thank you so much!
Ken

email your file to the address in my profile and I'll point you to what needs to be changed.
There are 10 types of people in this world,
There are those who understand binary,
and those who don't!
OP | Post 10 made on Sunday March 16, 2008 at 15:56
ktixx
Lurking Member
Joined:
Posts:
March 2008
5
Thanks Eric,
I was able to re-do the file and it worked perfectly! Thank you very much for you help.
Ken

Last edited by ktixx on March 19, 2008 20:42.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse