PDA

View Full Version : Advice required in writing a SqueezeBox controller



mugent
2007-03-28, 03:42
Hi,

I am looking at writing a Mac OS X app that can control my SqueezeBox, at the moment I have written a little test app that can turn it on and off, change volume etc...

It currently works by effectively pretending to be a web browser and sending HTTP URL requests to the web server, this works fine for simple things, but I'm not sure how to get, for example, a list of tracks without parsing the HTML returned.

My question is, is this the best way to achieve my goal, or should I be using the UDP based protocol?

Note: This isn't a Softsqueeze style app, i.e. it does not play music, it's just a replacement for the existing web site method of controlling the SqueezeBox.

Thanks a lot

Moray

mherger
2007-03-28, 03:47
> My question is, is this the best way to achieve my goal, or should I be
> using the UDP based protocol?

No, you better use the CLI (see the documentation in the server's help
section). This allows you to do almost anything within a lean and simple
protocol.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

ceejay
2007-03-28, 05:32
You should also have a look at Moose before you start, which seems to do the same thing but on Windows...

Ceejay