Hello, i'm pretty New to Node-red functions, but couldn't find a soulution for that.
But i'm pretty shure it's pretty basic stuff:
From the SONOS Node i get the object:
msg : Objectobject_msgid: "abea4022.ca2cf"
topic: ""
payload: "01 De Zaubertrak"
track: objecttitle: "01 De Zaubertrak"
artist: "Globi"
album: "Globi bei den Kelten"
albumArtURI: null
position: 190
duration: 200
albumArtURL: null
uri: "x-file-cifs://melon.local/iTunes/iTunes/iTunes%20Media/Music/Globi/Globi%20bei%20den%20Kelten/01%2001%20De%20Zaubertrak.mp3"
queuePosition: 18
volume: 23
normalized_volume: 0.23
state: "playing"
muted: false
I want to extract values like Title, Artist, albumArtURL (bad example here) and Volume to Display it on the Dashboard.
I start simple with the Volume value, like this, but with no success:
var msg = msg.volume;
return msg;I get the Debug Error:
function : (error)"Function tried to send a message of type number"
Can you help me how to get from the above Object a function node with 4 msg outputs to display the values.