View Full Version : API to get current song
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.
> 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.
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?
> I was thinking of some socket or http API directly to the IP of the
Squeezebox won't play anything without a SlimServer or it being connected to the squeezenetwork.com. You can't use it standalone.
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?
> 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.
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.