MusicBox Playlist Schedule

I’m using MusicBox as a player for a large venue. I’m hoping to create a schedule to change playlists regularly throughout the week. We have different people that use our building on Wednesday and Sunday nights and they need to change the music. Right now we have them signing into MusicBox and changing playlists.

Is there a way via crontab or MusicBox itself that would allow me to set a schedule to change playlists automatically?

You can do a script like this which was made by somebody else:

and put it in a cron job.

1 Like

How can I specify which playlist to start/stop? I’m embarrassingly and admittedly not great in bash.

Well I read your thread wrong. That script will generate your play list.
But if you are trying to load a playlist you can use the MPD back end to load playlists via cron.
There is quite a few examples on google on how to script it and crontab it…

Good luck!

You could try crontab and mpc

use crontab -e

m h dom mon dow command
05 10 * * 0 mpc stop;mpc clear;mpc load “The Dark Side Of The Moon”; mpc play
This would (hopefully) stop and clear existing playlist, at 5 past 10 on Sunday then load The Dark side of the Moon and start it playing until the end

So if you want to start another one on at 25 past 3 pm on Tuesday you would use

25 15 * * 2 mpc stop;mpc clear;mpc load “Put your playlist here”; mpc play

Have a look here for more on the crontab syntax.
Try here for more commands from mpc

I have found that a - in the playlist name sometimes isn’t recognised so practice first with simple playlist names.

I guess a bash script will be neater but the above may get you underway.


Thanks for the reply. I actually started down this path a little bit ago and was about to post the solution. I ended up going with crontab and a simple script. All it needs is

mpc clear; mpc load 'playlist name'; mpc play

1 Like