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.
Results 1 to 5 of 5
Hybrid View
-
2009-09-17, 02:44 #1Junior Member
- Join Date
- Sep 2009
- Posts
- 4
New PHP API for command line interface
-
2009-09-17, 02:46 #2Junior Member
- Join Date
- Sep 2009
- Posts
- 4
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.
-
2009-09-17, 04:17 #3Senior Member
- Join Date
- Mar 2008
- Location
- Paris
- Posts
- 150
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.
RegardsSTREAM => SqueezeBoxServer 7.6 Beta / ReadyNas Pro (x86) | SB3 - Duet - Boom - Ipeng (Iphone) - Touch
AUDIO => Rega DAC | NAD C162 pre-amp | NAD C272 power-amp | Triangle Celius 202 speakers
-
2009-09-17, 05:10 #4Junior 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/
-
2009-09-17, 05:30 #5Junior 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/

Reply With Quote

