Page 1 of 1

Chumby Widget for Subsonic

PostPosted: Sun Aug 24, 2008 11:40 am
by eivindcom
Hi

I just ordered a Chumby, and would love to have a widget interfacing with Subsonic. http://www.chumby.com

Since this "box" has a toutch screen, wifi, audio out it would be a perfect cheap multi room solution.

It is built to be modified, and can propably be wall mounted, portable ++
Its easy to change teh software to some unix variant, or build a widget.

I will look into this myself, but im an no programmer. Electronics is my thing so i can modify the HW.

Sindre, what do you think? A joint effort to make this this the best multi room solution ever.

Eivind

PostPosted: Mon Aug 25, 2008 7:05 pm
by sindre_mehus
Thanks for the info about Chumby, that was very interesting.

Actually, the mobile phone interface added in Subsonic 3.5 could be used for this. That interface is very simple and based on xml. It think it should be rich enough to create a simple Chumby widget for browsing and streaming.

Unfortunately I'm not a Flash developer, so I can't make the widget myself - but if anyone else want to have a go, I'll be glad to give the details about the xml interface.

Sindre

PostPosted: Wed Aug 27, 2008 6:17 am
by eivindcom
I'll have a go..... It can't be that hard.

Can i have the details please?

Eivind

PostPosted: Wed Aug 27, 2008 7:22 am
by sindre_mehus
Sure!

Start by looking at the XML served by Subsonic if you go to this address:
Code: Select all
http://localhost/subsonic/mobile/getIndexes.view?u=sindre&p=secret


(Rememeber to change username and password)

To drill down on artist/album/song level, use this URL:

Code: Select all
http://localhost/subsonic/mobile/getMusicDirectory.view?u=sindre&p=secret&pathUtf8Hex=653a5c6d757369635c41626261


The 'pathUtf8Hex' argument refers to a music directory path returned by getIndexes.view or a previous getMusicDirectory.view invocation.

The returned XML should be pretty self-explanatory.

Good luck, and don't hesitate to ask questions.

Sindre

Calls

PostPosted: Wed Sep 10, 2008 5:25 pm
by braddyo
When submitting a get request, do you have to include the credentials for every request? Or does Subsonic store a cookie that authenticates the user? If it stores a cookie, then you should only have to authenticate once until the session expires or the user logs out. Is this true for Subsonic?

Also, when I plug in the album url (I'm assuming that will try to stream the entire album) I get a subsonic error. Are there calls that will, for example, download a stream or download a file? Or even uploading? How about moving files around? I know yous aid it's not a very powerful API yet, but having that sort of API would make it possible for me to create a completely stand-alone Silverlight App, or someone else to make a standalone Flash App. :) This is exciting.

Bradford

Re: Calls

PostPosted: Thu Sep 11, 2008 1:36 pm
by sindre_mehus
braddyo wrote:When submitting a get request, do you have to include the credentials for every request?
Yes, for the XML API you currently have to add it to every request.

braddyo wrote:Also, when I plug in the album url (I'm assuming that will try to stream the entire album) I get a subsonic error. Are there calls that will, for example, download a stream or download a file? Or even uploading? How about moving files around?
The XML API only deals with stream URLs for single songs, and I think that's sufficient. The playlist should be handled on the client side. To download a file, you can use the same URL. Moving files around is unlikely to ever be supported. Uploading: Yeah, perhaps, but let's do the basics first :-)

If there's sufficient interest in this, I'd like to formalize the API (e.g., publishing a XSD schema), but I'll leave it like it is until we have a prototype Silverlight and/or Flash client. The API is sufficient to do the basic stuff: browse the music collection, play music, view cover art.

Anyway, good luck braddyo, hope this is going somewhere!

Sindre

PostPosted: Sat Sep 13, 2008 7:22 pm
by braddyo
I'm installing Visual Studio 2008 right now on my home PC. We'll see where this takes me :D. Keep you posted.