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.
Results 1 to 6 of 6
Thread: API to get current song
-
2007-09-06, 12:23 #1Junior Member
- Join Date
- Sep 2007
- Posts
- 4
API to get current song
-
2007-09-06, 13:21 #2
API to get current song
> 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
-
2007-09-06, 15:14 #3Junior Member
- Join Date
- Sep 2007
- Posts
- 4
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?
-
2007-09-06, 15:37 #4
API to get current song
> 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
-
2007-09-06, 16:04 #5Junior Member
- Join Date
- Sep 2007
- Posts
- 4
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?
-
2007-09-06, 21:26 #6
API to get current 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.
Michael

Reply With Quote
