Forums : HowTo Sonos Radio Metadata
This page last changed on Apr 27, 2015 by glennl.
For the benefit of @jules_bike and possibility other members, here is a rough a dirty way to get Radio metedata to show using JSON Path.
This assumes you are using jishi -node-sonos-http-api to get the information in the first place, the problem with radio stations is the metadata is stored in different fields.
This becomes problematic when switching from local tracks to radio tracks for example radio is under streamInfo, while we usually look for title, album and artist.
The solution is to simply replace those fields when we notice that type = radio.
My code has no validation but should give you a very good idea on how to start, in my local version i have added additional fields for retrieving album art if not visible.
To use the script you do the following
http://web address of php script/?ip=(ip of node-sonos)&room=(room name)
Example would be http://192.168.1.15/?ip=192.168.1.15&room=Glenn
Let me know if you need any help, by adding PHP to OpenRemote you can do much more as it's very flexible and customizable, I run this all on a Raspberry Pi 2 and have no issues
|Document generated by Confluence on Jun 05, 2016 09:30|