INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: JONCAT on April 10, 2006, 07:36:59 pm

Title: MC as Alarm Clock (part. files)
Post by: JONCAT on April 10, 2006, 07:36:59 pm
Is there a way to set particular files or playlists for playback w/ Media Scheduler or are we limited to "play a media file". Does it play whatever is loaded into Playing Now by any chance?

thanks,
Dr. C
Title: Re: MC as Alarm Clock (part. files)
Post by: park on April 11, 2006, 08:16:01 am
Here are the settings I use in media scheduler to wake me up every day:

Start custom task, set the days and time you want, give it a name.
Fill in the program path (should be C:\WINDOWS\system32\MC11.exe on a normal setup)
In the command line field type: /PlayReplace TREEPATH=Playlists\Alarm Clock

("Alarm clock" being the name of a playlist. I put some files into it every night before bed. It is a playlist at the root playlists level. If you want to play a playlist that is deeper in the tree then just type the path from the "Playlists\" level)
Title: Re: MC as Alarm Clock (part. files)
Post by: milknkukis on April 13, 2006, 01:19:42 pm
That's great, i've been wanting to do this for a while!

Do you know if other command line options are documented somewhere? I would like to be able to change the zone and set the volume each morning too.
Title: Re: MC as Alarm Clock (part. files)
Post by: milknkukis on April 13, 2006, 06:17:18 pm
nevermind, i found it. for those interested it is here:

http://www.jrmediacenter.com/DevZone/CommandLine.html
Title: Re: MC as Alarm Clock (part. files)
Post by: milknkukis on May 06, 2006, 08:55:49 am
Hi all

I'm having difficulty getting the VolumeSet command to work, does anyone know why this isn't working?

My command line is as follows:

/PlayReplace TREEPATH=Playlists\stuff_i_like|zone=1 /Command VolumeSet 40
Title: Re: MC as Alarm Clock (part. files)
Post by: Mr ChriZ on May 06, 2006, 12:19:44 pm
Try moving the VolumeSet Command before the PlayReplace.
I've just tested it on it's own and it's working
mc11 /Command VolumeSet 60
Title: Re: MC as Alarm Clock (part. files)
Post by: milknkukis on May 08, 2006, 01:41:20 pm
thanks for the suggestion, but it looks like you can only do one at a time.

could do two different events but that doesn't work either because VolumeSet doesn't work with |zone=1

not a big issue, i just have to remeber to keep the volume ata reasonable level.

cheers for the help everybody
mark
Title: Re: MC as Alarm Clock (part. files)
Post by: glynor on May 08, 2006, 10:58:38 pm
Just put the two separate commands in a text file, one line at a time and save it with a .BAT extension and have the scheduler run that. 
EG:
Code: [Select]
C:\WINDOWS\system32\MC11.exe /Command VolumeSet 40
C:\WINDOWS\system32\MC11.exe /PlayReplace TREEPATH=Playlists\stuff_i_like|zone=1

I, personally, just use the Windows Task Scheduler to do my automation but you could certainly use MC's if it wets your whistle.
Title: Re: MC as Alarm Clock (part. files)
Post by: park on May 09, 2006, 07:10:57 am
Just save them as 2 seperate custom commands and have them start a minute apart from each other. That's what I do.
Title: Re: MC as Alarm Clock (part. files)
Post by: milknkukis on May 10, 2006, 01:00:00 pm
Thanks for the input guys, but i have several zones so i would have to do at least three different commands.
1. set required zone as current
2. set volume
3. play playlist

I have found since setting this up that i don't change the volume on that zone very often anyway so the whole thing has become a little redundant, but hopefully someone else will find it useful one day :)

cheers
mark