INTERACT FORUM

More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: Scolex on February 06, 2014, 05:37:24 am

Title: Zone Switch rule based on time of day?
Post by: Scolex on February 06, 2014, 05:37:24 am
I was wondering if there is an expression I could use in Zone Switch that would send files to a specific zone during certain hours.
For example if I play a file between 10:00PM and 6:00AM it plays in Night all other times the file would play in it's respective zone.
Title: Re: Zone Switch rule based on time of day?
Post by: gappie on February 06, 2014, 05:58:05 am
i guess so... my first thought would be making an library field with an expression like this

if(isrange(formatdate(now(),H),6-20),day,night)

and use this library field in the zoneswitch.

should need some testing.

 ;)
gab

btw the H gives 24 hour time, wich is handy here i think.
Title: Re: Zone Switch rule based on time of day?
Post by: gappie on February 06, 2014, 06:16:41 am
but you could, ofcourse also choose custom as a rule in the zoneswitch and add

Code: [Select]
[=isrange(formatdate(now(),H),6-20)]=0
 :)
gab
Title: Re: Zone Switch rule based on time of day?
Post by: Scolex on February 06, 2014, 07:13:28 am
I couldn't get the expression to work as custom in the Zone Switch settings but creating the library field works perfectly after setting the is/is not night rules in each of my zones.

Thank you!
Title: Re: Zone Switch rule based on time of day?
Post by: mojave on February 06, 2014, 09:38:29 am
Here is a formula MrC did for me a while back that plays back in a zone only after 8 pm. It works great in the zone rules.

[=Compare(FormatDate(Now(), H), >, 20)]=1