duncan3dc / Sonos
Licence: apache-2.0
A PHP library for interacting with Sonos speakers
Stars: ✭ 91
Labels
Projects that are alternatives of or similar to Sonos
automate-home
Yet another python home automation (iot) project. Because a smart light is more than just on or off.
Stars: ✭ 59 (-35.16%)
Mutual labels: sonos
Sonos RFID Controller
RFID controller for the Sonos music player
Stars: ✭ 17 (-81.32%)
Mutual labels: sonos
music-screen-api
Display the playing Sonos track in real time on an e-ink display - also includes functionality for last.fm
Stars: ✭ 88 (-3.3%)
Mutual labels: sonos
MMM-Sonos
A module for the MagicMirror to display informations about the currently playing songs on your Sonos system.
Stars: ✭ 35 (-61.54%)
Mutual labels: sonos
sonos2mqtt
🔈 Sonos mqtt controller. Control your speakers from your mqtt server. mqtt-smarthome insprired.
Stars: ✭ 50 (-45.05%)
Mutual labels: sonos
SonosNPROneServer
NPR One Service for Sonos using the Sonos Music API (SMAPI)
Stars: ✭ 29 (-68.13%)
Mutual labels: sonos
Mini Media Player
Minimalistic media card for Home Assistant Lovelace UI
Stars: ✭ 827 (+808.79%)
Mutual labels: sonos
Magic Cards
🎩 Queue music, play movies, or trigger events with RFID cards.
Stars: ✭ 372 (+308.79%)
Mutual labels: sonos
sonos
A PHP library for interacting with Sonos speakers.
Full documentation is available at http://duncan3dc.github.io/sonos/
PHPDoc API documentation is also available at http://duncan3dc.github.io/sonos/api/
Quick Examples
Start all groups playing music
$sonos = new \duncan3dc\Sonos\Network;
$controllers = $sonos->getControllers();
foreach ($controllers as $controller) {
echo $controller->name . " (" . $controller->room . ")\n";
echo "\tState: " . $controller->getState() . "\n";
$controller->play();
}
Add all the tracks from one playlist to another
$sonos = new \duncan3dc\Sonos\Network;
$protest = $sonos->getPlaylistByName("protest the hero");
$progmetal = $sonos->getPlaylistByName("progmetal");
foreach ($protest->getTracks() as $track) {
$progmetal->addTracks($track["uri"]);
}
Read more at http://duncan3dc.github.io/sonos/
Changelog
A Changelog has been available since version 0.8.8
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].