INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Zone Switch rule based on time of day?  (Read 1542 times)

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Zone Switch rule based on time of day?
« 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.
Logged
Sean

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Zone Switch rule based on time of day?
« Reply #1 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.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Zone Switch rule based on time of day?
« Reply #2 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
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Zone Switch rule based on time of day?
« Reply #3 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!
Logged
Sean

mojave

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3732
  • Requires "iTunes or better" so I installed JRiver
Re: Zone Switch rule based on time of day?
« Reply #4 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

Logged
Pages: [1]   Go Up