INTERACT FORUM

Please login or register.

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

Author Topic: Question: How to Set Sleep/Wake-Up Times with MC15 ?  (Read 3529 times)

globetrotters1

  • Citizen of the Universe
  • *****
  • Posts: 566
Question: How to Set Sleep/Wake-Up Times with MC15 ?
« on: January 18, 2011, 06:42:11 am »

Since a long time my wife wants to go to sleep with music and wake up with music... but I don't know how to do it in Theater View

I would like to
- set a time frame (10, 20, 30 minutes in Theater View... for example) the music should continue to play until the music server should switch into "sleep" state
- set a wake-up time in hour/minutes the computer should start, start Media Center and continue to play where it left off in the evening

Who can help me solve this problem?

thanks
Logged

globetrotters1

  • Citizen of the Universe
  • *****
  • Posts: 566
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #1 on: January 19, 2011, 03:55:42 pm »

I wonder if no one using MC 15 has a whole-house music system and wants this kind of feature...

It might be a solution out of the Media Center program, something which Win7 offers, I just have no idea how this kind of funcionality could be implemented
(but my guess would be: if available in Theater View the people would love to use it)

Any ideas?
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #2 on: January 19, 2011, 07:37:30 pm »

You can add commands to Theatre View for time delayed exit from the program—see screen shot. The batch file is simply...

Code: [Select]
timeout /T %1
MC15.exe /MCC 20007, 1

I don't know of any way to set a time from MC for restarting the computer. But you could easily schedule an event in Windows to start MC playing a particular playlist (e.g., a random "morning music" smartlist) at the same time every day.
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #3 on: January 19, 2011, 07:52:57 pm »

You can do it in tree>Services & Plug-ins>Scheduler also.

Logged
Sean

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #4 on: January 19, 2011, 08:01:40 pm »

Scolex,

I assume the computer must be on for the 2nd task to work correct?

Thanks,
Patrick
Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #5 on: January 19, 2011, 08:03:38 pm »

Rick,

Can you set it to Exit Theater view and shut-down the computer like in a manual exit from Theater?

Thanks!
Patrick
Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #6 on: January 19, 2011, 08:43:48 pm »

You can do it in tree>Services & Plug-ins>Scheduler also.

The idea is to set a delay for stopping for the evening, rather than doing so at a fixed time. But this gives me another idea. If the timed event I suggested was a Stop rather than Exit, then Playing Now would remain active—including the currently playing track at the time of the stop. The scheduler could then be used to do a Play—which would continue playing the same list, starting where it stopped the night before. I assume the program will allow the computer to sleep according to it's normal settings if it's not playing anything.

I assume the computer must be on for the 2nd task to work correct?

I'm not sure. Maybe not, if the MC service is running. I suppose it could replay PN using the Recent PN's playlist group, but it would start over.

Quote
Can you set it to Exit Theater view and shut-down the computer like in a manual exit from Theater?

That occurred to me too, but I don't see a MCC for that. If it were me, I'd be happy just to let it sleep. :-\
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #7 on: January 20, 2011, 12:30:45 am »

It should be able to bring the computer out of sleep as I think that is the purpose of having the MC exe in the win/sys32 folder.
It won't be able to do play from a shutdown state.
Logged
Sean

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #8 on: January 20, 2011, 01:18:28 am »

Sleep is fine.... drives are spun down and its basically off right?
Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #9 on: January 20, 2011, 02:38:06 am »

Sleep is fine.... drives are spun down and its basically off right?
If you have made that distinction in the Control Panel Power Options yes.
Go in and click where it says  "Change plan settings" next to whichever profile you are using.
Logged
Sean

globetrotters1

  • Citizen of the Universe
  • *****
  • Posts: 566
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #10 on: January 20, 2011, 08:55:08 am »

WOW, guys, you made my day  ;D  ;D  ;D

good hints, if I run into problems I'll ask again

THANKS
Logged

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #11 on: January 20, 2011, 11:07:39 pm »

I tried many different things but I cannot get MC to pull the PC out of sleep.
I of course tried the scheduler without sleeping the PC  and it worked fine.

I tried "Stand By" and "Hibernate".  Neither worked.

Any thoughts?

thx,
Patrick
Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #12 on: January 21, 2011, 12:59:02 am »

I am not sure how to do it but I know it can be done. If you search the web
you will find everyone says it can NOT be done but they are all full of spit.
I am going to do some research for future reference just in case my next
motherboard doesn't have a built in wake program which I am currently using.
Proof
Logged
Sean

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #13 on: January 21, 2011, 01:06:19 am »

Thanks Scolex.  Id love this function.

Does it matter that I am on XP?

Thanks again for the help.
Patrick
Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #14 on: January 21, 2011, 01:36:56 am »

not sure
I am getting ready to test now, pretty sure it will work.
I am on win7 but I do have an xp machine I can test on also.
Logged
Sean

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #15 on: January 21, 2011, 06:16:06 pm »

Well I am able to bring the computer out of standby/sleep or hibernation.
MC doesn't have to be running when the computer goes to sleep but it
can be makes no difference.
I scheduled a task in task scheduler and 2 batch files that run when the
computer resumes. The first opens Media Center and then launches
the second batch file and closes. I had to do it this way because if the
MC15.exe file that is in sys32 is run by TS it opens instead of just sending
the commands. With both MC15.exe and Media Center 15.exe running it
causes a conflict and both processes must be killed.

Once the second batch opens it sends a VolumeSet command to get to a
known volume level (50%) and then issues a VolumeDown 40 so it doesn't
come on at a high volume and scare you awake. Play starts and then
volume comes up at a configurable amount and speed. I decided to have
all of the commands come from the batch instead of the built in scheduler
for more flexibility.

I have not tested on XP yet. I have to dig the old laptop out and dust it off first.
However you should be able to schedule the task with no trouble.
You will see this string timeout /t 5 /nobreak > NUL in the batch several times
this is to delay executions to alter the delay length change the 5 as desired (seconds)
Next is to incorporate pseudo snooze function assuming I can figure it out.
Any questions don't hesitate.

XP Task Scheduler page (simple)
http://support.microsoft.com/kb/308569

Additional commands for MCplay.bat
http://wiki.jriver.com/index.php/The_Command_Line
http://wiki.jriver.com/index.php/Media_Center_Core_Commands

Batch files

edit: forgot that you can enter an integer after the VolumeSet instead of using the
default and remove the VolumeDown. I was running on empty when I finished it.
Logged
Sean

pcstockton

  • Citizen of the Universe
  • *****
  • Posts: 1261
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #16 on: January 21, 2011, 06:34:26 pm »

Scolex,

Awesome work.  You lost me though.

I get the Schedule Task in MC.
But Im not sure what the batch files you refer to.

This stuff might just be a little above my head.

-patrick

Logged
HTPC (ASRock Mini PC 252B: i5 2520M Sandy Bridge/HD3000 - 2.5 GHz - 8GB RAM - 256GB Intel SSD - Win7 Home) > MF V-Link 192 > Wireworld Ultraviolet > Naim DAC > Naim NAC 102/NAPSC/HiCap (PSU) > Naim NAP 180 Amp > Naim NACA-5 Speaker Cables > Naim Ariva

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #17 on: January 21, 2011, 06:50:22 pm »

There is a link at the bottom of my post to a zip with both .bat files
They are just text files with a .bat extention instead of .txt
below is what they look like when you open them in a text editor
I can explain what they mean/do if you wish

MCwake.bat

@echo on
Start C:\PROGRA~2\JRiver~1\MEDIAC~2\MEDIAC~1.EXE
start D:\Desktop\MCplay.bat
exit

MCplay.bat

@echo on
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeSet 10
MC15.exe /MCC 10001
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeUp 10
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeUp 10
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeUp 10
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeUp 10
timeout /t 5 /nobreak > NUL
MC15.exe /Command VolumeUp 10
exit

You could also just copy paste each section from echo to exit in separate
notepad files and give them their respective .bat names.
Logged
Sean

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Question: How to Set Sleep/Wake-Up Times with MC15 ?
« Reply #18 on: January 21, 2011, 06:59:07 pm »

Forgot if you are on an 32bit OS you would need to change from PROGRA~2 to PROGRA~1
Logged
Sean
Pages: [1]   Go Up