INTERACT FORUM

Please login or register.

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

Author Topic: Zone Switch based on time of day  (Read 626 times)

audunth

  • Citizen of the Universe
  • *****
  • Posts: 634
Zone Switch based on time of day
« on: November 12, 2019, 07:52:32 am »

Hi,

Is it possible to switch zones based on time of day? I'd like to use one zone for daytime viewing, and at nighttime use another one (basically the same settings except for adaptive volume settings for nighttime viewing at low volume).

So for example if I play a video file at daytime, adaptive volume is turned off. If I play a video file after 10PM, adaptive volume is turned on.
Logged
Cheers,
Audun

My system:
ASUS  P8Z68 V-PRO/GEN3, 8GB RAM, Core i5-2500K
EVGA Nvidia GTX 970 SSC, 4GB RAM
Antec P180 case w/Seasonic X460 fanless PSU, water cooled by Zalman Reserator 1+ w/extra DDC pump
Windows 7 Ultimate 64 bit
Sony VPL-HW30ES 3D projector
Yamaha RX-V3900 receiver and custom built 2Ch power amp for front/stereo speakers
Klipsch Reference/SVS 7.1 speaker system
Always running the latest available version of MC

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Zone Switch based on time of day
« Reply #1 on: November 12, 2019, 04:12:07 pm »

If you aren't using Zoneswitch now for other reasons, you could try the MC "Scheduler" function (left Navigation Bar > Services & Plug-ins > Scheduler) and the MCC Command /MCC 10011 to switch Zone at 10pm, and then switch it back for the following day.

I suspect MC will have to be running for the Task to execute. Maybe it would work with just Media Server running. Test. MC will wake a PC to run its tasks I think. Test.

Note that this may change the Zone even while you are watching something, which could have undesirable results. If a video is playing when the task runs, I'm pretty sure it won't change playback for the current video.

It would be better if there was an MCC Command to turn on and off Adaptive Volume, but there doesn't seem to be one. There may be an MCWS command. Check... Ah yes, there is. i.e.
http://localhost:52199/MCWS/v1/DSP/SetAdaptiveVolume?Strength=2
But that seems to be an old version of Adaptive Volume, using a strength setting. However, that did set Night Mode on my PC.
http://localhost:52199/MCWS/v1/DSP/SetAdaptiveVolume?Strength=0
Turned Adaptive Volume off.

You can run MCWS command from the MC Scheduler I believe. Investigate.

An alternative would be just to apply a DSP Preset that included Adaptive Volume. I can't see a command to do that. Investigate.
Wait...MCWS
http://localhost:52199/MCWS/v1/Playback/LoadDSPPreset?Zone=-1&ZoneType=ID
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

audunth

  • Citizen of the Universe
  • *****
  • Posts: 634
Re: Zone Switch based on time of day
« Reply #2 on: November 13, 2019, 04:43:45 am »

No, the scheduler wouldn't work for me, but thanks for the suggestion. I use ZoneSwitch for different file types (Audio/Video) and rooms, too.

I did some more searching and found some instructions here https://yabb.jriver.com/interact/index.php?topic=76605.0 , all the way back in the MC 18 forum. I'll try it out and see if it still works on MC 25.
Logged
Cheers,
Audun

My system:
ASUS  P8Z68 V-PRO/GEN3, 8GB RAM, Core i5-2500K
EVGA Nvidia GTX 970 SSC, 4GB RAM
Antec P180 case w/Seasonic X460 fanless PSU, water cooled by Zalman Reserator 1+ w/extra DDC pump
Windows 7 Ultimate 64 bit
Sony VPL-HW30ES 3D projector
Yamaha RX-V3900 receiver and custom built 2Ch power amp for front/stereo speakers
Klipsch Reference/SVS 7.1 speaker system
Always running the latest available version of MC
Pages: [1]   Go Up