2017 © Pedro Peláez
 

library soundtouchapi

SoundTouchApi is a library that allows you to control SoundTouch enabled Bose speakers.

image

tomcan/soundtouchapi

SoundTouchApi is a library that allows you to control SoundTouch enabled Bose speakers.

  • Wednesday, January 20, 2016
  • by TomCan
  • Repository
  • 2 Watchers
  • 15 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SoundTouchPhp

~ Bringing the Bose SoundTouch API to PHP, (*1)

SoundTouchPhp is a PHP Library that allows you to interact with Bose SoundTouch speakers. It allows you to integrate control into your own PHP applications., (*2)

  • Build your own control panel
  • Script / Automate tasks using PHP CLI
  • ...

Installation

You can install the package through composer:, (*3)

# php composer.phar require tomcan/soundtouchapi
# php composer.phar install

Then just include the composer autoloader to load it into your project:, (*4)

require __DIR__ . '/vendor/autoload.php';

Usage

You can use all the commands in the same way. You create the command, send it to the client and receive a response back., (*5)

// initialize the client
$client = new SoundTouchClient(array('ip' => 'ip-address-of-system'));

// set the volume to 42
$command = new SoundTouchVolumeSetCommand();
$command->setVolume(42);
$response = $client->send($command);

// read the volume from the unit
$command = new SoundTouchVolumeGetCommand();
$response = $client->send($command);

echo "The volume is set to " . $response->getActual();

Status and TODO

All the commands documented in the Bose Webservices API documentation have been implemented. (note: unlike documented in the API, /POST baseCapabilities does not exist), (*6)

In the more distant future - Implement Discovery services to locate units - Implement Websockets notifications, (*7)

Yeah, like that's ever going to happen... ;) If you really like this library and have some money or gear to spare, I can always use an additional and/or bigger SoundTouch speaker. Just drop me an e-mail at mot@tom.be., (*8)

Disclaimer

This software is not written by, nor affiliated to or endorsed by Bose. It simply uses the Bose SoundTouch WebServices API. More info regarding the API can be obtained at SoundTouchAPI@bose.com., (*9)

The Versions

20/01 2016

dev-master

9999999-dev

SoundTouchApi is a library that allows you to control SoundTouch enabled Bose speakers.

  Sources   Download

MIT

The Requires

 

bose soundtouch

19/01 2016

1.0.1

1.0.1.0

SoundTouchApi is a library that allows you to control SoundTouch enabled Bose speakers.

  Sources   Download

MIT

The Requires

 

bose soundtouch

19/01 2016

1.0.0

1.0.0.0

SoundTouchApi is a library that allows you to control SoundTouch enabled Bose speakers.

  Sources   Download

The Requires

 

bose soundtouch