MLTimer Plugin

Repository of MainLobby Server plug-ins and updates not available in the current installation.
ricks
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1127
Joined: Wed Oct 27, 2004 7:01 pm
Location: Latham, Massachusetts
Contact:

Postby ricks » Sat Sep 24, 2005 11:12 am

Darn it! Thanks for the quick response.

n000n000
New Member
New Member
Posts: 34
Joined: Sat Oct 29, 2005 2:29 am
Location: Brussels - Belgium
Contact:

Postby n000n000 » Tue Nov 22, 2005 4:29 pm

Code: Select all

Okay, sleep timer up and running, thanks to this plugin.

Simple stuff:
A toggle button on the screen that toggles through "Off / 5 Minutes / 10 Minutes / 15 Minutes / 20 Minutes / 30 Minutes / 60 Minutes" and indicates which was chosen on that button.

Another button to display status of "minutes remaining"

Sets up the timer to decrement a variable every 60 seconds using MLMath in a command map.

Uses vbsEvaluate to determine if decrementing value has hit "0".

If so, runs another command map to shut things down.


Hi

I would like to implement the timer to shutdown lights and music after a certain amount of time.
I like the idea to choose between some predefinite choices. (5/10/15...)
But I need some guidance as I'm still new in the business..

I have te Sleep Timer.txt in front of me and MLTimer registred.

Do I have to create a button for each choice on my scene and paste each command ?
Or if it's a single button, how to add so many Macro on the same button ??

What to do with the Timer.SleepTimer.Decrement ?
And Timer.SleepTimer.Sleep ?

Also what means the Broken Down part ?

Thanks and sorry for my (maybe) stupid questions... :oops:

Maybe someone has a MLS file already working?

Arnaud

n000n000
New Member
New Member
Posts: 34
Joined: Sat Oct 29, 2005 2:29 am
Location: Brussels - Belgium
Contact:

Postby n000n000 » Wed Nov 23, 2005 5:12 pm

Hi,

I just found a solution to have what I expected, but without using MLTimer :

Each button with this code :

Code: Select all

MLServeCmd.Macro|MLHSPlugin|HS_ExecX10:C10~Bright~100!MLPause|1200!MLHSPlugin|HS_TriggerEvent:Auto_GoodNight

So : switching one light to 100% (to read)
A pause of 60 for 1 mn, 300 for 5 mn , 1200 for 20mn etc ...
and an event in Homeseer which switch off the music and dim the lights :p

Easy but working !!!

I'm still interested to use the MLTimer to do that so any help is welcome !

Thanks

Arnaud

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Fri Nov 25, 2005 9:02 pm


n000n000
New Member
New Member
Posts: 34
Joined: Sat Oct 29, 2005 2:29 am
Location: Brussels - Belgium
Contact:

Postby n000n000 » Sat Nov 26, 2005 4:13 am

FWIW, here's the notes on my Sleep Timer.


I already study your notes but I've got some questions about it :

Do I have to create a button for each choice on my scene and paste each command ?
Or if it's a single button, how to add so many Macro on the same button ??

What to do with the Timer.SleepTimer.Decrement ?
And Timer.SleepTimer.Sleep ?

Also what means the Broken Down part ?


Thanks

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sat Nov 26, 2005 4:08 pm

Sorry for any confusion. I guess I didn't realize your questions were aimed at me. I didn't recognize the quote above as a quote of me. :oops:

"Broken Down" is just referring to the macro commands listed line-by-line versus in the full "macro" mode; that is an example of the 5-minute version just below. Since the macros are pasted into the MLCycleStates actual command lines (versus using a command map for each - which I could have done instead), the full line of each is listed under the "Lined up for entry:" section. Those are the exact commands that are entered into the MLCycleStates plugins states.

The button I use calls the MLCycleStates command "MLServeCmd.MLCycleStates|Next~SleepTimerToggle" and the label is "Sleep: {{SleepTimerToggle_Label}}".

The final command of each MLCycleStates state is "Timer.SleepTimer.Decrement", which is the command map (described in the text) which causes the decrementation of the timer to begin.

Note that the final commands that are executed by the Timer.SleepTimer.Decrement command map are AV.MC.Stop and AV.XM.PowerOff. Since these are unique to my environment (and described in their own text docs) I didn't detail what they involve.

HTH!
:D

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sat Nov 26, 2005 8:28 pm

I'm posting this here because PMs keep the resolution of questions out of the forum; which keeps others from learning from them. More likely than not, there are others who are or will be learning from the same situations and may benefit from the process of working it out. :)

n000n000 wrote:Hi,

Thank you for your explanations but I still not succeed to understand how to implement your Timer. :oops:

I think I understand now that I have to create a button for each state with this Label :

Code: Select all

Sleep: {{SleepTimerToggle_Label}}

and this MLServeCmd

Code: Select all

MLServeCmd.Macro|SetVariable|SleepTimerLimit~Off!SetVariable|SleepTimerRemaining~0!SetVariable|SleepTimerTrigger~False!MLTimer|DeleteTimer~SleepTimer


But what to do with the Timer.SleepTimer.Decrement & Timer.SleepTimer.Sleep ?
Do I have to create a button and affect the differents commands ?
And hide this button ??

Also you refer to MLCycleStates.
What is it ?
A plugin I need to install ?
The name of a module ?

I'm very confused..

Sorry for these questions but I'm still in a learning stage... but I will not give up :)

Thank you a lot for your time !

Arnaud :roll:


I think the lack of the MLCycleStates plugin is part of what's confusing you (though I could be wrong - I confuse easily). Get that plugin from the MLServer page and read the help to get an idea what it does.

My sleep timer implementation uses a few plugins:
MLCycleStates
MLTimer
RunCmdMap
wscVBSEvaluate
I have modified the notes to reflect the need for these plugins.

Timer.SleepTimer.Decrement & Timer.SleepTimer.Sleep are command maps. If you're not familiar with command maps, look under "utilities, map commands" in MLServer and search the board for "command maps" for some more data (I don't think they're really in any "documentation" anywhere).

I hope that helps a bit.
:D

worf83
Senior Member
Senior Member
Posts: 131
Joined: Mon Feb 14, 2005 11:40 am
Contact:

Postby worf83 » Sat Feb 11, 2006 10:43 pm

Hey all,

Is there a way to execute a command upon completion of a timer?

For instance, when a timer loops for 5 sec, set variable.

TIA,
AL

jjsmd
Senior Member
Senior Member
Posts: 138
Joined: Wed May 04, 2005 5:58 am
Contact:

Postby jjsmd » Mon May 08, 2006 10:35 pm

I was wondering the same thing?

In other words, can someone give me the syntax to do the following:

send a command to turn an x10 device on ( say A10) wait for a variable amount of time ( x minutes) and the send a command to turn A10 off?

is here a simple command using MLtimer that would do this?

Thanks

Near76
Intermediate
Intermediate
Posts: 436
Joined: Sun Jul 18, 2004 7:45 am
Contact:

Postby Near76 » Mon Sep 01, 2008 2:11 pm

Is it possible for this plugin to save the currently running timers when MLS shutsdown and re-enable them when is starts. I am using timers for occupancy detection, among other things, and also have my ML server reboot once every 2 week for general maintenance reasons...however, when it reboots whatever timers were running stop. Can this data be saved so they can be started back up again? This was a nice feature that Homeseer had...that also helped during power outages, etc.
-Matt

kgudge
Intermediate
Intermediate
Posts: 353
Joined: Wed Mar 19, 2008 10:28 am
Contact:

Postby kgudge » Mon Sep 01, 2008 2:25 pm

Hey all,

Is there a way to execute a command upon completion of a timer?

For instance, when a timer loops for 5 sec, set variable.

TIA,
AL


I use a macro, I call the macro in this case "DVD.Timer_off1", which is executed when the timer completes. It now does a lot more that set a variable but once upon a time it used to just set a variable.

MLServeCmd.MLTimer|SetTimer~{{dvdchanger}}~NoRepeat~{{Total}}~minutes~DVD.Timer_off1~on!

HTH

Kevin
DVDLobby, MuL, JRMC, TV Lobby, DVD Profiler.

erikhimber
Expert
Expert
Posts: 872
Joined: Wed Jun 11, 2003 8:54 pm
Location: West Palm Beach, FL
Contact:

Postby erikhimber » Thu Sep 04, 2008 7:50 pm

REALLY REALLY Need a MLTimer|Pause command

Is this possible now, and I've just missed the command ? ? ?
Erik

Near76
Intermediate
Intermediate
Posts: 436
Joined: Sun Jul 18, 2004 7:45 am
Contact:

Postby Near76 » Fri Jan 02, 2009 12:54 pm

Am I the only one who has noticed that the Alias sames are not working properly in the latest release? When I upgraded the timer alias's disappeared and when I enter one in they all use that same name.
-Matt


Return to “MLServer Plug-Ins”

Who is online

Users browsing this forum: No registered users and 1 guest