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

    Lightbulb New PHP API for command line interface

    Hi (my first post),

    I have created a PHP API for the command line interface of the SqueezeCenter.

    So if there are any budding PHP coders out there wanting to get their hands dirty and play around with their SqueezeCenter and Players, go check it out. It also would be really cool to get some feedback.

    I hope you like it.

    Oh link coming in second post.. it seems I am not allowed. makes sense.

    Dave.

  2. #2
    Junior Member
    Join Date
    Sep 2009
    Posts
    4

    Lightbulb SqueezePHPAPI

    Hi, (my second post),

    You can get the PHP API from here: http://org.0r9.org/labs/SqueezePHPAPI/

    I hope you have fun with it.

    Dave.

  3. #3
    Senior Member
    Join Date
    Mar 2008
    Location
    Paris
    Posts
    153
    Quote Originally Posted by davebr View Post
    Hi, (my second post),

    You can get the PHP API from here: http://org.0r9.org/labs/SqueezePHPAPI/

    I hope you have fun with it.

    Dave.
    Greetings,
    Seems really usefull and well documented !

    Any advice if possible to use CLI via PHP API to build a link between Foobar, http://www.foobar2000.org/, as a music library management tool, and Squeezebox players ?

    OrangeCD, http://www.firetongue.com/, another music collection software, use this CLI mecanism to provide the following functions:

    - Choose Squeezebox "Player"
    - Play song in "Player"
    - Queue song in "Player"
    - Pause / Resume "Player"

    My idea is not to replace Squeezecenter but to be able, in some circumstances, to use Foobar to select my songs and send it to Squeezebox players.

    Regards
    STREAM => SqueezeBoxServer 7.7.3 / ReadyNas Pro (x86) | SB3 - Duet - Boom - Ipeng (Iphone) - Touch
    AUDIO => Rega DAC | Rega Brio amp | Triangle Celius 202 speakers

  4. #4
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Hi,

    I am not familiar with those tools, however I am guessing the PHP API is not going to work directly for you unless you create some sort of external interface to it. The PHP API is just working at the lowest level to the CLI. I can see it working as a proxy between the Squeezecenter/connected players and say a website. If you wanted to handle POST/GET requests say from a web browser you would need to code that. How you do that in PHP would be up to you. The SqueezePHPAPI just makes it easier for the PHP coder to not have to worry about dealing with CLI side of things.

    Dave.
    -------
    SqueezePHPAPI: http://org.0r9.org/labs/SqueezePHPAPI/

  5. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    4

    ..security related

    oh..
    and just while i think about it,
    (this may be obvious for some)

    On a security level, it should be generally noted that connecting to the CLI is generally NOT secure, unless it is in a separated trusted network, OR you use a secure tunnel to it somehow, say with SSH. So I would suggest if you wanted to work with remote (over the internet) SqueezeCenter servers via CLI and the PHP API, make sure you lock the connections down another way, do not rely on the SqueezeCenter authentication method. I sniffed my network and I saw my authentication password in the tubes!

    just my 2c

    Dave.
    -------
    SqueezePHPAPI: http://org.0r9.org/labs/SqueezePHPAPI/

Tags for this Thread

Posting Permissions

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