node-red-contrib-sonos-notify 0.2.1
The most simple node for Sonos ever.
node-red-contrib-sonos-notify
The most simple node for Sonos ever.
This node receives music track updates from Sonos devices and notifies track infomation to the next node. Sonos devices must be on the same local network.
Settings
To use this node, no configurations required. This node will search Sonos devices on the local network and notify music update of all Sonos devices found.
If you configure parameters below, you can also specify a Sonos device which you want to get notify from.
- Address
- A local IP address of the target Sonos device.
- Port
- A port number of the target Sonos devices.
And from 0.1.7, this node supports more events like
Volume
andPlayState
. It can be enabled from properties of the node.
Usage
If the target Sonos device starts playing new track, the infomation will be notified to the next node. Enjoy!
Following is a sample output.
{
"name": "Living Room", // a name of Sonos player.
"event": "CurrentTrack", // event kind. if `More Events` is checked, this may vary.
"address": "192.168.1.35", // an ip address of Sonos player.
"payload": { // current track info is included in `payload`.
"id": null,
"parentID": null,
"title": "Scream & Shout",
"artist": "will.i.am",
"album": "#willpower",
"albumArtURI": "https://i.scdn.co/image/ab67616d0000b2738165b764264fb3705d7367d6",
"uri": "x-sonos-spotify:spotify:track:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"duration": 282,
"queuePosition": 1
},
"_msgid": "xxxxxxxx.xxxxxx"
}