-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from svrooij/topology
New way to Fetch the groups
- Loading branch information
Showing
20 changed files
with
1,919 additions
and
2,006 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const Sonos = require('../').Sonos | ||
const sonos = new Sonos(process.env.SONOS_HOST || '192.168.2.11') | ||
|
||
sonos.getMusicLibrary('playlists', {start: 0, total: 25}).then(playlists => { | ||
sonos.getMusicLibrary('playlists', { start: 0, total: 25 }).then(playlists => { | ||
console.log('Got current playlists %j', playlists) | ||
}).catch(err => { console.log('Error occurred %j', err) }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const Sonos = require('../').Sonos | ||
const sonos = new Sonos(process.env.SONOS_HOST || '192.168.2.11') | ||
|
||
sonos.getMusicLibrary('sonos_playlists', {start: 0, total: 25}).then(playlists => { | ||
sonos.getMusicLibrary('sonos_playlists', { start: 0, total: 25 }).then(playlists => { | ||
console.log('Got current playlists %j', playlists) | ||
}).catch(err => { console.log('Error occurred %j', err) }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const Sonos = require('../').Sonos | ||
const sonos = new Sonos(process.env.SONOS_HOST || '192.168.96.57') | ||
|
||
sonos.getAllGroups().then(groups => { | ||
console.log('All groups %s', JSON.stringify(groups, null, 2)) | ||
}).catch(err => { | ||
console.warn('Error loading topology %s', err) | ||
}) | ||
|
||
sonos.zoneGroupTopologyService().GetZoneGroupAttributes().then(attributes => { | ||
console.log('All Zone attributes %s', JSON.stringify(attributes, null, 2)) | ||
}).catch(console.warn) | ||
|
||
// sonos.joinGroup('Slaapkamer').then(console.log).catch(console.warn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.