PDA

View Full Version : API to get current song



RUok0101
2007-09-06, 12:23
I am a developer at a wi-fi hotspot company. We are wanting to add the squeezebox to our offering and are going to nicely tie it into our wi-fi platform. One thing we want to do is sites that are "squeeze enabled", is to show the current playing song (ideally the last 10 songs) on our hotspot login page.

We will have no PC at the venue, but we do have a linux based router/access point. I am wondering if there is an API that we can query directly to the squeezebox and get this information?

There is a potential for us to order quite a few of these boxes if we are able to do this type of integration.

Thanks.

mherger
2007-09-06, 13:21
> We will have no PC at the venue, but we do have a linux based
> router/access point. I am wondering if there is an API that we can
> query directly to the squeezebox and get this information?

Have a look at the CLI documentation, which you can find in the help section of slimserver's web interface. SlimServer 7 will introduce a JSON/RPC interface to the CLI which enables web services to easily access almost any aspect of SlimServer over http.

Michael

RUok0101
2007-09-06, 15:14
It seems like SlimServer would run on a PC on the same LAN as the Squeezebox. In our model there will be no slimserver running, as our linux based router doesn't have enough processor and flash to run perl.

I was thinking of some socket or http API directly to the IP of the squeezebox.

When you say CLI, is this a direct CLI to the sqeezebox or a CLI to slimserver, which then talks to sqeezebox?

mherger
2007-09-06, 15:37
> I was thinking of some socket or http API directly to the IP of the
> squeezebox.

Squeezebox won't play anything without a SlimServer or it being connected to the squeezenetwork.com. You can't use it standalone.

Michael

RUok0101
2007-09-06, 16:04
Right on the homepage:

"Test drive a new music collection today. Access ALL of the Rhapsody® library direct from your Squeezebox or Transporter—with no computer running."

I planned on only having the devices connect to pandora or rhapsody.

So assuming I do it this way (squeezenetwork), is there some socket or http API that I can find out the name,artist, etc... of the currently playing song?

mherger
2007-09-06, 21:26
> So assuming I do it this way (squeezenetwork), is there some socket or
> http API that I can find out the name,artist, etc... of the currently
> playing song?

I know that Andy has started working on it, but I don't know the latest state of it. You'd probably better ask this in the developers forum.

Michael