Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
If-This-Then-Node plugin to send voice notifications to Sonos through Sonos-HTTP-API
var request = require('request');
module.exports = {
run: function (params, log, callback) {
request('http://localhost:5005/sayall/'+params.message+'/en-gb', function (error, response, body) {
console.log("Sent message \""+params.message+"\" to device "+params.device);
})
callback({
'success': true,
'output': 'all good!'
});
},
info: function () {
return 'Voice messages to Sonos HTTP API Plugin';
}
};
// This private
var anyHelperFunction = function () {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.