WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 58e4afa

Browse files
knethbencevans
authored andcommitted
docs: minor fixes to README.md (#443)
* Minor fixes to README.md * Remove debug printout
1 parent e9be3b8 commit 58e4afa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,20 @@ DeviceDiscovery((device) => {
6565

6666
// mute every device...
6767
device.setMuted(true)
68-
.then(`${device.host} now muted`)
68+
.then(d => console.log(`${d.host} now muted`))
6969
})
7070

7171
// find one device
7272
DeviceDiscovery().once('DeviceAvailable', (device) => {
7373
console.log('found device at ' + device.host)
7474

7575
// get all groups
76-
device.getAllGroups()
77-
.then(console.log)
76+
sonos = new Sonos(device.host)
77+
sonos.getAllGroups().then(groups => {
78+
groups.forEach(group => {
79+
console.log(group.Name);
80+
})
81+
})
7882
})
7983
```
8084

0 commit comments

Comments
 (0)