# Problems to get station name out of sonos Universal Node (v 3.1.5)

**URL:** <https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882>\
**Category:** General\
**Created:** [6 June 2020 08:03 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882 "2020-06-06T08:03:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [6 June 2020 08:03 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/1 "2020-06-06T08:03:40Z")

</div>

Hi there, this ist my first question in this forum. Hoping that the community can help to solve my problem.

The new Version 3.1.5 has lots of new features, but I cannot get the name of the radionstatio that is playing. The radio can be found under:

`payload.media.Data.CurrentURIMetaData: "<DIDL-Lite xmlns:dc="........."><dc:title>WDR 2 Rheinland</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON65031_</desc></item></DIDL-Lite>"`

I need the string between dc:titel and \</dc:title\>.

Contruction: Sonos Universal Node =\> change Node =\> textnode  
The rule in the change Node changes the input (containing the station-name) to msg. payload.

I hope someone can help me to get the station name.

Eberhard

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 June 2020 08:08 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/2 "2020-06-06T08:08:38Z")

</div>

Hi it looks strange. Sort of a cross between JSON and XML.

Can you show a screenshot of the debug output with all properties expanded and highlight the value of interest?

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [6 June 2020 08:14 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/3 "2020-06-06T08:14:47Z")

</div>

![output Universal Node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f5c528e8e7c52e1625a5fa391289cd7688dab82.png)

This is the output from the Universal Node. The value of interest is "WDR 2 Rheinland"

Eberhard

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 June 2020 08:19 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/4 "2020-06-06T08:19:27Z")

</div>

Ok, so when you hover over the property of interest in the debug, click the copy path button.

Then after that node, add a change node to set msg.payload to the path you copied (i.e. copy that property into msg.payload)

Next put an XML node after the change node to convert the XML to js object then attach a debug node. You should be able to access the XML property of interest.

In simple terms...  
Sonos Universal Node \> change node (set msg.payload to the XML string) \> XML node \> debug

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [6 June 2020 08:35 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/5 "2020-06-06T08:35:14Z")

</div>

Thanks a lot! It works!!

Regards  
Eberhard

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 June 2020 08:35 UTC](https://discourse.nodered.org/t/problems-to-get-station-name-out-of-sonos-universal-node-v-3-1-5/27882/6 "2020-06-20T08:35:21Z")

</div>

Closed on 20 June 2020 08:35 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
