Giter Club home page Giter Club logo

sonos's Introduction

sonos-PHP-class

A PHP class to control Sonos products

Forked from https://github.com/DjMomo/sonos Fork / updates found at https://github.com/phil-lavin/sonos

New features of this fork

Code Refactors

  • Replace all private with protected so the class can be reasonably extended
  • Fix the redundant $next param in AddToQueue
  • Tidy up inconsistent whitespace

Methods

  • static get_room_coordinator(string room_name) : Returns an instance of SonosPHPController representing the 'coordinator' of the specified room
  • static detect(string ip,string port) : IP and port are optional. Returns an array of instances of SonosPHPController, one for each Sonos device found on the network
  • get_coordinator() : Returns an instance of SonosPHPController representing the 'coordinator' of the room this device is in
  • device_info() : Gets some info about this device as an array
  • AddSpotifyToQueue(string spotify_id,bool next) : Adds the provided spotify ID to the queue either next or at the end

Original Changelog

2013-06-08 - V1.0 - Initial version on Github 2013-06-16 - Bugs fixes and new features : - Say name song - TTS messages can be greater than 100 car.

==========

Configuration :

-- None --

==========

How to use :

See sonos.php or sonos.tts.php And http://www.planete-domotique.com/blog/2013/06/10/une-classe-php-pour-piloter-ses-sonos-avec-leedomus/

sonos's People

Contributors

djmomo avatar

Stargazers

 avatar  avatar

Watchers

Phil Lavin avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.