Thanks for the heads up on how to do this.
I’m sure my stumbling approach has some holes in it, but here’s what I did to get it to work:
First, I used MPDroid to make a playlist.
I found that playlist in the location identified above:
/var/lib/mpd/playlists/one.m3u (not .pls in this case)
I updated the library (by UI or command line, I’d think). This seemed to be what was necessary to make the playlist just “play” without having to indicate where to find it.
sudo mpc update
I tested the rc.local by running it from the command line while watching the web “Playback” screen. Which shows if there’s any errors from the command line and shows me if it’s working while watching the UI.
/etc/rc.local
It got some errors and didn’t always seem to take, though it all worked if I did it line-by-line from the command line. So, on a hunch, I added some delays and it works now. I copied it to the “shadow” location so it is permanently loaded (after making a backup of the shadow rc.local).
sudo cp /var/www/_OS_SETTINGS/etc/rc.local /var/www/_OS_SETTINGS/etc/rc.local.OLD
sudo cp /etc/rc.local /var/www/_OS_SETTINGS/etc
Here’s the rc.local that’s working:
sudo mpc clear &
sudo sleep 2
sudo mpc volume 93 &
sudo mpc random off &
sudo mpc consume off &
sudo sleep 2
sudo mpc load "one" &
sudo sleep 5
mpc play &
I restarted the system (sudo reboot) and watched the UI lose connection, then eventually find it again, have no playlist, load one and then play.
BTW, this .m3u playlist is VERY simple, unlike the .pls sample above. I tried copying it to every SMB-shared location to see if it would work. I /really/ expected it to work in the WebRadio folder, but it didn’t. To hand-edit it, I just copied it to the USB location, edited it and copied it back to the normal location.
USB/Hell Freezes Over (1994)/01 - Get Over It.mp3
USB/Hell Freezes Over (1994)/02 - Love Will Keep Us Alive.mp3
USB/Hell Freezes Over (1994)/03 - The Girl From Yesterday.mp3
USB/Hell Freezes Over (1994)/04 - Learn To Be Still.mp3
USB/Hell Freezes Over (1994)/05 - Tequila Sunrise.mp3
USB/Hell Freezes Over (1994)/06 - Hotel California.mp3
USB/Hell Freezes Over (1994)/07 - Wasted Time.mp3
USB/Hell Freezes Over (1994)/08 - Pretty Maids All In A Row.mp3
USB/Hell Freezes Over (1994)/09 - I Can't Tell You Why.mp3
USB/Hell Freezes Over (1994)/10 - New York Minute.mp3
USB/Hell Freezes Over (1994)/11 - The Last Resort.mp3
USB/Hell Freezes Over (1994)/12 - Take It Easy.mp3
USB/Hell Freezes Over (1994)/13 - In The City.mp3
USB/Hell Freezes Over (1994)/14 - Life In The Fast Lane.mp3
USB/Hell Freezes Over (1994)/15 - Desperado.mp3
It’s that simple.
Let me know if I missed any steps or typo’d anything.