Chumby as an iPod server

=Summary= When an iPod is plugged into a Chumby's USB port, the device launches an HTTP daemon on port 8080 (called "chumbipodd") that will serve data about the iPod in XML. The Chumby's Control Panel utilizes this server to provide a simple interface to the iPod's playlists; however, the daemon provides quite a bit more information. The daemon supports a universal crossdomain.xml file, so the services are available to the Chumby widgets.

= Protocol=

info
Returns basic information about the iPod - number of playlists, tracks, photos, photo albums, and storage statistics

Format: http://ip.of.the.chumby:8080/info

Response:   <![CDATA[My iPod]]> 

artists
NOTE: requires Ironforge firmware 1.7 or later

Returns a list of the artists for the tracks on the device

Format http://ip.of.the.chumby:8080/artists

Response:   <![CDATA[10cc ]]>  <![CDATA[Diana Krall]]>  <![CDATA[Ella Fitzgerald]]>

artist
NOTE: requires Ironforge firmware 1.7 or later

Return information about albums and tracks for a particular artist

Format: http://ip.of.the.chumby:8080/artist/1000

Response:   <![CDATA[Diana Krall]]>  <![CDATA[Live In Paris]]> 4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420  <![CDATA[When I Look In Your Eyes]]> 4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433

albums
NOTE: requires Ironforge firmware 1.7 or later

Returns a list of albums

Format: http://ip.of.the.chumby:8080/albums

Response:  <album id='1000' trackCount='12' > <![CDATA[Live In Paris]]> <artist id='1000' albumCount='2' > <![CDATA[Diana Krall]]> <album id='1001' trackCount='13' > <![CDATA[When I Look In Your Eyes]]> <artist id='1000' albumCount='2' > <![CDATA[Diana Krall]]> <album id='1002' trackCount='1' > <![CDATA[All The Best (Disc 1)]]> <artist id='1001' albumCount='2' > <![CDATA[Frank Sinatra]]>

album
NOTE: requires Ironforge firmware 1.7 or later

Returns information about an album

Format: http://ip.of.the.chumby:8080:/album/1000

Response: <?xml version="1.0" encoding="UTF-8"?> <album id='1000' trackCount='12' > <![CDATA[Live In Paris]]> <artist id='1000' albumCount='2' > <![CDATA[Diana Krall]]> 4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420</trackIDs>

playlists
Returns a list of the playlists on the device. The "fullTrackCount" attribute includes tracks that cannot be played on the chumby (such as tracks purchased from the iTMS), while the "trackCount" attributes is filtered to include only those tracks that are playable (MP3 and M4A). The standard chumby Control Panel will typically not show playlists with a trackCount of 0.

Format: http://ip.of.the.chumby:8080/playlists

Response: <?xml version="1.0" encoding="UTF-8"?> <playlist id='0' trackCount='1145' fullTrackCount='1170' > <![CDATA[My iPod]]> <playlist id='1' trackCount='6' fullTrackCount='6' > <![CDATA[Nighttime Mix]]> ...  <playlist id='22' trackCount='35' fullTrackCount='50' > <![CDATA[Wedding]]>

playlistIDs
Returns a list of track IDs of the tracks in a playlist - this is a quicker fetch than the more detailed "playlist" fetch and is useful if you don't need all of the track details in one shot.

Format: http://ip.of.the.chumby:8080/playlistIDs/(id_of_playlist)

Response: <?xml version="1.0" encoding="UTF-8"?> <playlistIDs index='1'> <![CDATA[Nighttime Mix]]> 1390,1388,1389,1391,1387,1386</trackIDs> </playlistIDs>

playlist
Returns detailed track information about the tracks in a playlist

Format: http://ip.of.the.chumby:8080/playlist/(id_of_playlist)

Response:

<?xml version="1.0" encoding="UTF-8"?> <playlist index='1'> <![CDATA[Nighttime Mix]]> <track id='1390' duration='5:21' path='/mnt/ipod/iPod_Control/Music/F14/THUT.m4a' > <![CDATA[Peace Division]]> <![CDATA[Fabric 28]]> <![CDATA[01 Club Therapy]]> <track id='1388' duration='5:21' path='/mnt/ipod/iPod_Control/Music/F21/BELB.m4a' > <![CDATA[Peace Division]]> <![CDATA[Fabric 28]]> <![CDATA[02 Club Therapy]]> ...    <track id='1386' duration='5:21' path='/mnt/ipod/iPod_Control/Music/F43/FYWV.m4a' > <![CDATA[Peace Division]]> <![CDATA[Fabric 28]]> <![CDATA[06 Club Therapy]]>

track
Returns detailed information about a track

Format: http://ip.of.the.chumby:8080/track/(id_of_track)

Response: <?xml version="1.0" encoding="UTF-8"?> <track id='1390' > <![CDATA[01 Club Therapy]]> <![CDATA[Peace Division]]> <![CDATA[Fabric 28]]> 2006   <![CDATA[Electronica/Dance]]> 4   18    /mnt/ipod/iPod_Control/Music/F14/THUT.m4a 5:21   128    44100    5216001    0    0    0

trackfile
Returns the audio file for a track

Format: http://ip.of.the.chumby:8080/trackfile/(id_of_track)

photoalbums
Returns a list of photo albums.

Format: http://ip.of.the.chumby:8080/photoalbums

Return: <?xml version="1.0" encoding="UTF-8"?> <photoalbum id='0' photoCount='2165' > <![CDATA[Library]]> <photoalbum id='1' photoCount='37' > <![CDATA[Last Roll]]> ...  <photoalbum id='28' photoCount='15' > <![CDATA[Slumber party]]>

photoalbum
Returns the list of photos in a photo album

Format: http://ip.of.the.chumby:8080/photoalbum/(id_of_photo_album)

Response: <?xml version="1.0" encoding="UTF-8"?> <photoalbum index='28'> <![CDATA[Wedding photos]]> <photo id='2084' > <![CDATA[Cutting the cake]]> <photo id='2114' > <![CDATA[First dance]]> ...    <photo id='2514' > <![CDATA[Throwing the bouquet]]>

photo
Return the information about a particular photo. Photos are typically available in several resolutions, which vary across iPod models.

Format: http://ip.of.the.chumby:8080/photo/(id_of_photo)

Response: <?xml version="1.0" encoding="UTF-8"?> <photo id='2085' > <![CDATA[Cutting the cake]> <image id='33360' width='720' height='480' /> <image id='33361' width='130' height='88' /> <image id='33362' width='320' height='240' /> <image id='33363' width='50' height='41' />

These are some of the known image sizes that are available for various models of the iPod - note that the pixels in the NTSC images are not square.

image
Returns the JPEG file for a particular image.

Format: http://ip.of.the.chumby:8080/image/(id_of_image)