Autoplay All Tracks

So I’m just putting this hack out there because I couldn’t find a documented way to do it. I wanted to have the pi boot up and randomly and continuously play all local music.

Upon reboot I have pi Musicbox set to scan for new music. Then I edited the startup.sh so rather than adding the single song to play I have something like this:

mpc ls "Local media/Tracks" |mpc add
mpc random on
mpc repeat on 
mpc play

Version 0.5.4 pi musicbox

Maybe there is a more elegant way to make that happen.

1 Like

I would also be interested in something like this.
Not restricted to startup, though.

What I have so far for this purpose is a playlist containing all tracks, but it has to be recreated once files are moved to the raspi.

1 Like