2013.02.20

If you read about my Radio Milwaukee Radio and thought having just one station to listen to was rather silly, we can do something about that.

One station means no choices (and no controls) but with multiple stations we need a way to select which one you want to hear, and there are clients that can make that possible. Since the Raspberry Pi is on our home network via WiFi, that means any other device on the network can control it.

mpd

I first tried MPD-Web-Remote, which looks great on iOS devices, and fine in any WebKit-based browsers, but I’m a Firefox fan, and it looks like total crap in Firefox, so I kept looking…

mpd

I prefer MPD-Webinterface, which looks good in Firefox, and not as great on iOS devices. Of course, since these are just web applications running on the Raspberry Pi you can install as many of them as you like. (You’ll obviously need to have a web server running on your Pi. I dropped Apache on mine along with PHP using the standard apt-get method.)

And since these are PHP web apps, you’ve got the source, and can edit the CSS as you see fit, so customizing the look should be pretty simple.

Want more options? There’s a giant list of MPD clients on the Music Player Daemon Community Wiki.

And hey, if you’re wondering how I got 3 stations listed instead of just one, compare the original code to this code:

#!/bin/bash
 
mpc clear
mpc add http://radiomilwaukee.streamguys.net:80/
mpc add http://129.89.70.253:80/wuwm_1.mp3
mpc add http://75.102.5.99:80/wpr-ideas-mp3-64
mpc play
 

This creates a playlist with 3 items, and will start playing the first item in the list, so put whatever you want as the default first. This list will play the 88.9 Radio Milwaukee stream until you select another one.

mpd

You can even add new streams (temporarily) using the MPD-Webinterface. At the bottom of the interface is a text field, just paste in a stream URL and hit return to add it to the list. (I pasted in http://wmse.msoe.edu:9000 for WMSE 91.7) I said ‘temporarily’ because only the three that are hard-coded in our bash script above will survive a reboot/restart.

Oh, keep in mind you need the actual stream URL, not the playlist URL, which is one that usually ends with a .pls file extension. Normally you’ll need to view the source of a .pls file to see the stream(s) listed within it.

That’s it for now kids… have fun with your Raspberry Pi Radio!

Comments are closed.

« | »


buy the button:

Buy The Button