Skip to content

Commit

Permalink
fix: Other source for doorbell sound
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan van Rooij committed Jan 31, 2018
1 parent ed53ad0 commit bbc07f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/playNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const Sonos = require('../').Sonos
const sonos = new Sonos(process.env.SONOS_HOST || '192.168.96.52')

sonos.playNotification({
uri: 'http://www.orangefreesounds.com/wp-content/uploads/2017/10/Doorbell-sound-ringing-fast.mp3',
onlyWhenPlaying: true, // It will query the state anyway, don't play the notification if the speaker is currently off.
uri: 'https://archive.org/download/Doorbell_1/doorbell.mp3',
onlyWhenPlaying: false, // It will query the state anyway, don't play the notification if the speaker is currently off.
volume: 4 // Change the volume for the notification, and revert back afterwards.
}).then(result => {
// It will wait until the notification is played until getting here.
Expand Down

0 comments on commit bbc07f1

Please sign in to comment.