Open holli73 opened 8 years ago
how should i interprete 'avTransportUri' or on the mediaitem the 'id' -> 'StationButtons/44'?
Well, these are the URI's which are given by the Raumfeld System. The Media item was created to give more info about that URI's (eg, Artist, album aso...). But currently not all types of media items are supported. In the case of "RADIO_RADIOTIME" the kernel holds more infos on the media object itself but the raumserver doenst have it implemented right now. (In fact there are currently only implementations of "MediaItem_Container, MediaItem_Artist, MediaItem_Album, MediaItem_Track". You can see this in the "mediaItemJsonCreator.h" source file. I have to add further MediaItem Types here. e.g RADIO_RADIOTIME
i'm missing some rooms as well - and one is returned as "friendlyName": "Inactive",
Hmm. It seems that the new state of the RF devices (which can be set inactive) seems to break my code. I have to look it up. Missing renderers are bad. In fact the same discovery is used as in the old Raumkernel but what device is the "LaubeAussen"?
EDIT: In fact Raumfeld renames the Zone renderers to "Inactive" if they are in eco mode. I have to check if i shoud get the names from the linked rooms instead
EDIT 2: I have updated the kernel and the server to return the internal built name too in additon to the friendly name of the renderer. This now looks like this:
"udn": "uuid:40d093a5-a2f7-4d5d-82da-65380f2b975c",
"friendlyName": "Inactive",
"name": "Bad",
"isZoneRenderer": true,
I have updated the server so he wil now return the values for the RadioTime media Item. So if you pull the repo and build the server you will now get the info showed below (take a look at the media item section)
But of course there are other media items i have to add. If you need json output for other types please tell me. I will do the one after the other when needed because my priority lies in having imlemented the crash dump system
[
{
"udn":"uuid:40d093a5-a2f7-4d5d-82da-65380f2b975c",
"friendlyName":"Bad",
"isZoneRenderer":true,
"avTransportUri":"http://opml.radiotime.com/Tune.ashx?id=s177755&formats=wma,mp3,ogg&partnerId=7aJ9pvV5&serial=00:0d:b9:19:b5:a4",
"bitrate":128,
"volume":37,
"numberOfTracks":1,
"currentTrack":1,
"currentTrackDuration":0,
"muteState":"NONE",
"playMode":"NORMAL",
"transportState":"STOPPED",
"mediaItem":{
"id":"0/RadioTime/LocalRadio/l-r101408/s-s177755",
"parentId":"0/RadioTime/LocalRadio/l-r101408",
"type":"RADIO_RADIOTIME",
"title":"Chicago - If You Leave Me Now ",
"description":"",
"albumArtUri":"http://cdn-radiotime-logos.tunein.com/s177755q.png",
"region":"Lounge-Musik",
"signalStrength":89,
"durability":102,
"bitrate":0,
},
"roomStates":[
{
"roomUdn":"uuid:a08c8e2a-fe85-40e6-8576-c4c44dc5e7a3",
"isMute":false,
"isOnline":true,
"volume":37,
"transportState":"STOPPED"
}
]
},
hello,
if i use the listall=true i get following output:
on the first entry - how should i interprete 'avTransportUri' or on the mediaitem the 'id' -> 'StationButtons/44'?
i'm missing some rooms as well - and one is returned as
"friendlyName": "Inactive",
this schould be 'sauna'? and what is 'StationButtons/404' there? what is the difference on udn and roomUdn?
any insight would be great
thanks holli
ps: sample output for my state collector:
and this from the old