Right place to ask this ?

Tips and Techniques for using MLServer's Automation Rules
jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Right place to ask this ?

Postby jackpod » Thu Oct 26, 2006 11:44 am

what I want to do is whenever the variable mlweather_currenttemp changes I want it to update a variable in Homeseer. Currently I have it working by using MLScheduler on an hourly trigger as follows
MLServeCMD.MLHSPLugin|HS_SetDevicestring:h2~{{mlweather_currenttemp}}

but this is only accurate on the top of the hour.

I want to be able to add this to some of my HS TTS scripts

Would this be done by using a rule?

User avatar
gstone
Expert
Expert
Posts: 582
Joined: Fri Apr 23, 2004 9:42 am
Contact:

Postby gstone » Thu Oct 26, 2006 3:47 pm

That's the way I do it.

When the variable changes I have a rule that changes a value on my HS server.
Always ask! You can't stay dumb forever!

jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Postby jackpod » Thu Oct 26, 2006 4:39 pm

gstone,

aren't you gonna give me hint by posting one of your rules? at this rate I WILL stay dumb forever!

Jack

jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Postby jackpod » Fri Oct 27, 2006 1:01 pm

Ok, i got that one to work. Geez my first rule :)

Now I have another, can't quite sem to get it working. I have on my main scene, MUL now playing info for 3 zones. Title, Artist and Album info. I would like them to go blank when they are done playing. How could this be done?

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Fri Oct 27, 2006 1:47 pm

How about on the MusicLobbyServer On Change, you send a SetVariable whatever the variable name is and set it to blank? Not sure how that will work between songs.

jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Postby jackpod » Fri Oct 27, 2006 2:42 pm

Smooth, The variables I am using on my scene are mlmediacenter_melody_zone1_curartist / curalbum / curtitle

What i was trying to do was

whenever mlmediacenter_melody_zone 1_playbackstatus equals 0 (this changes to a 2 while playing)
Then MLServecmd.SetVariable|mlmediacenter_melody_zone1_curalbum~mlmediacenter_melody_zone1_nextalbum (which would be blank if the current song was the last in the playlist)

Doesn't want to work, seems like it shows in the event window but doesn't update in the variables window or on my scene

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Fri Oct 27, 2006 2:47 pm

wonder if musiclobby server is overwriting it with j. river info. maybe clear J. river playlist? stab in the dark.

jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Postby jackpod » Fri Oct 27, 2006 2:59 pm

Ok, I'll give that a shot, so my syntax in the rule is correct?

User avatar
Krumpy
Developer
Developer
Posts: 1228
Joined: Thu Sep 04, 2003 10:17 pm
Location: Minneapolis, Mn
Contact:

Postby Krumpy » Fri Oct 27, 2006 5:35 pm

I have a trigger in MUL Server that speaks the artist information. Works well.

MLServeCMD.MLHSPlugin|HS_Speak:Now Playing <<CURARTIST>> . . <<CURTITLE>>

jackpod
Intermediate
Intermediate
Posts: 442
Joined: Sat Oct 22, 2005 8:26 pm
Contact:

Postby jackpod » Fri Oct 27, 2006 7:32 pm

Hi Krumpy,

Thats a good idea, here is what is happening for me. I have at the bottom of my scenes artist, title and album for 3 zones, works great. But until I either play something else or restart MLServer, the info remains. What I am trying to do is after the last song is played for those variables to go blank. I do like your idea, I would know in advance if the wife is in the library listening to her head banging rock and roll and not to go in there :shock:


Return to “Automation Rules”

Who is online

Users browsing this forum: No registered users and 1 guest