Chumby to MPD interface widget Version 1.0

A basic widget and some PHP code to 'interface' a chumby with a Linux MPD player.

Obviously, you will need a Chumby.  Technically you could run it from a virtual chumby, but that sort of defeats the purpose, and there are better interfaces if you have a full size computer handy.

You will also need a web server set up which will run PHP (4 is fine, should work with 5 too).  The web server will also need to be able to establish a TCP connection to the MPD player deamon.  I run then both on the same system but that isn't a requirement.

Installation:

1) There are three files in the "ChumbyWidets" directory that need to be uploaded to the Chumby site.
	a) Chumby2MPD.swf is the 'Widget'.
	b) Chumby2MPD_COnfig.swf is the 'Customize widget'
	c) uphand.jpg is the 'Thumbnail'.
2) Upload the 'chumbympd' directory under 'WebServerPHP' to your web server.
3) You will probably need to customize 'config.inc.php'.  Make sure you set
   $cfg["mpdhost"] to the IP URL where MPD is running.  You can keep 'localhost'
   if the web server is running on the same machine as the MPD server.
4) Test it by going to http://"youserver"/chumbympd/chumby2mpd.php in a browser.
   It should return some GET formatted text.
5) Add the widget to a channel on your Chumby
6) Click the link to Customize the widget.
7) Enter the URL to your web server where you loaded chumbympd.
   http://192.168.0.20/musicmgr/chumbympd
   NOTE: do NOT include the chumby2mpd.php as part of the URL
         do NOT include a trailing slash.
8) Hit the OK button to save the configuration on the Chumby server.
9) Refresh the channel on the Chumby to pick up the new widget.
10) It should show your MPD player status, along with the currently playing song,
    the previous 2 songs, and the next 3 songs.


Copyright 2008, Nicholas Vrtis
Distributed under GPL 2
