{"repo":"bencevans/node-sonos","free":true,"listed":false,"github":"https://github.com/bencevans/node-sonos","clone":"git clone https://github.com/bencevans/node-sonos.git","description":"🔈 Sonos Media Player Interface/Client","language":"JavaScript","stars":722,"topics":["javascript","music","sonos","nodejs","home-automation"],"license":"MIT","category":"media-processing","readme_excerpt":"node-sonos Control your Sonos devices with JavaScript (node.js) node-sonos gives you the power to control all your Sonos devices from your own apps in JavaScript. Automatically discover your devices on the network and control the playback and queue with instant events announcing change. Features Device Discovery Queue Control Volume Control Spotify Support Radio Change Events Install Published versions (recommended) $ npm install sonos From the repo, living on the edge $ npm install git://github.com/bencevans/node-sonos.git Quick Start Discovering Devices Discovering devices async Controlling Known Devices API DeviceDiscovery([options], [deviceAvailableListener]) Class: DeviceDiscovery([options]) Event: 'DeviceAvailable' destroy() Class: 'AsyncDeviceDiscovery' discover([options]) discoverMultiple([options]) Class: Sonos(host, [port]) currentTrack() deviceDescription() flush() getCurrentState() getLEDState() getMusicLibrary(search, options) getMuted() getTopology() Doesn't work if you upgraded to Sonos v9.1. Check-out getAllGroups() for some replacement. getVolume() getZoneAttrs() getZoneInfo() getQueue() next() parseDIDL(didl) pause() play(uri) togglePlayback() previous() queue(uri, positionInQueue) queueNext(uri) request(endpoint, action, body, responseTag) seek(seconds) setLEDState(desiredState) setMuted(muted) setName(name) getPlayMode() setPlayMode(mode) setVolume(volume) stop() setSpotifyRegion(region) alarmClockService() ListAlarms() PatchAlarm(id,options) SetAlarm(id,e","default_branch":null,"files":null,"tree":[],"storefront":"/r/bencevans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bencevans/node-sonos/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}