1 (edited by rolan 2007-11-23 13:14:14)

Topic: Chumby Radio - PC control interface script

http://techfreakz.org/chumby/radioscreencap.gif

I hacked up a script which will allow you to launch and control internet radio on your Chumby
from your PC's web browser. You'll need ssh in, download and install it on the Chumby.

SSH into your chumby (see http://wiki.chumby.com/mediawiki/index. … mby_tricks if you don't know how)
cd /psp/cgi-bin
wget http://techfreakz.org/chumby/radio
chmod +x radio

On your pc's browser go to
http://<your chumby's ip>/cgi-bin/custom/radio
Bookmark that link for convenience.

Paste in your favorite radio stream then click "Play"
If you don't know of any streams, try one of my favorites, Groove Salad @ SomaFM

http://www.shoutcast.com/sbin/shoutcast … lename.pls

I'm not familiar with Flash actionscript, but if it's capable of making a http request, you could write a widget to call this script passing the appropriate parameters through the URL to start and stop the music directly on the Chumby.

Enjoy.

~Rolan

Re: Chumby Radio - PC control interface script

This works great! THANKS!

Re: Chumby Radio - PC control interface script

Updated the script

Version 1.1 -

Added some functionality that fetches and parses .pls files to extract the stream url
(ie. go to shoutcast.com, copy the links and paste them into the "stream" field in the Chumby Radio player)

~Rolan

Re: Chumby Radio - PC control interface script

sweet! next step would be to have the web interface save entered text into a file for easy recall later via a widget interface on the chumby.
also, excellent job including the volume control.  great work!

Re: Chumby Radio - PC control interface script

Great! It works .....does it play only mp3 urls? I tried an .asx ....didnt work

Re: Chumby Radio - PC control interface script

Here is an example of what to add before </body> in the script if you want direct links to playlists:

<a href="/cgi-bin/custom/radio?s=http://www.shoutcast.com/sbin/shoutcast-playlist.pls%3frn=8591%26file=filename.pls&f=Play">Click here to play Buzz radio.</a>

Note that you need to encode the shoutcast URL for this to work. ? is encoded as %3f and & is encoded as %26. Thanks again for the script!

7 (edited by edrabbit 2007-11-23 14:59:00)

Re: Chumby Radio - PC control interface script

Awesome!  Thanks!!

Re: Chumby Radio - PC control interface script

Awesome script thanks for writing this!