Change Image Based on Variable

Topics related to MLServer 4
sonypoolplr
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1490
Joined: Fri Mar 26, 2004 8:48 am
Location: New Jersey
Contact:

Change Image Based on Variable

Postby sonypoolplr » Thu Feb 11, 2016 7:55 am

I am working on scenes for my Tivo and I can change the current channel logo if I change the channel from the iPad, but I would like to change the logo if the channel is changed by the remote. Obviously I don't want to create automation rules for each channel, so I was wondering if there is a way to have the channel logo changed based on what channel the {{av_2_channel}} variable changes to.

Thanks for any help with this.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: Change Image Based on Variable

Postby CinemarDave » Thu Feb 11, 2016 9:28 pm

If you name your logos by channel number then you could use something like images/logos/{{av_2_channel}}.jpg as the image url. Otherwise you'd have a rather nasty automation rule

Whenever av_2_channel changes value
If {{av_2_channel}} = 23 then SetVariable|av_2_logo~images\cnn.jpg
If {{av_2_channel}} = 24 then SetVariable|av_2_logo~images\pbs.jpg
.etc...

sonypoolplr
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1490
Joined: Fri Mar 26, 2004 8:48 am
Location: New Jersey
Contact:

Re: Change Image Based on Variable

Postby sonypoolplr » Thu Feb 11, 2016 9:49 pm

Nice. Thank you


Return to “MLServer 4”

Who is online

Users browsing this forum: No registered users and 1 guest