Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    4

    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.

    Thanks.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,932

    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

  3. #3
    Junior 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?

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,932

    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

  5. #5
    Junior 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?

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,932

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •