Skip to content

Commit

Permalink
docs: minor fixes to README.md (#443)
Browse files Browse the repository at this point in the history
* Minor fixes to README.md

* Remove debug printout
  • Loading branch information
kneth authored and bencevans committed Sep 20, 2019
1 parent e9be3b8 commit 58e4afa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,20 @@ DeviceDiscovery((device) => {

// mute every device...
device.setMuted(true)
.then(`${device.host} now muted`)
.then(d => console.log(`${d.host} now muted`))
})

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

// get all groups
device.getAllGroups()
.then(console.log)
sonos = new Sonos(device.host)
sonos.getAllGroups().then(groups => {
groups.forEach(group => {
console.log(group.Name);
})
})
})
```

Expand Down

0 comments on commit 58e4afa

Please sign in to comment.