[DEPRECATED Thread: visit community.webcore.co for assistance] webCoRE - Piston Design Help (ask your fellow members for assistance)

I am trying to pull the URI of the currently playing track on a sonos speaker and then use that elsewhere. I am able to pull all of the track data and store that in a variable, but it is more text than just the URI itself. Is there a way to get a substring of the variable text I stored?

It ends up setting currentTrack to “{“station”:“RINCON_5CAAFDA596E801400”,“name”:null,“artist”:null,“album”:null,“trackNumber”:“1”,“status”:“playing”,“level”:”",“uri”:“x-sonos-htastream:RINCON_5CAAFDA596E801400:spdif”,“trackUri”:“x-sonos-htastream:RINCON_5CAAFDA596E801400:spdif”,“transportUri”:“x-sonos-htastream:RINCON_5CAAFDA596E801400:spdif”,“enqueuedUri”:"",“metaData”:“RINCON_5CAAFDA596E801400<\u002fdc:title>object.item.audioItem<\u002fupnp:class>x-sonos-htastream:RINCON_5CAAFDA596E801400:spdif<\u002fres><\u002fitem><\u002fDIDL-Lite>”,“trackMetaData”:“x-sonos-htastream:RINCON_5CAAFDA596E801400:spdif<\u002fres><\u002fr:audioInputIcon>21<\u002fr:streamInfo> <\u002fdc:title>object.item<\u002fupnp:class><\u002fitem><\u002fDIDL-Lite>”}"

1 Like