REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" (/showthread.php?tid=356015) |
REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - Mannshoch - 2020-07-24 I try to set some smart home rules which are only available if no movie or PVR runs in Kodi. Normally the whole day online radio (.m3u) is running. If I ask kodi what is running (node-red) kodi tells me that it is a movie (payload.data.data.item.type). Is there another way to get the kind of media that is running? RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - DarrenHill - 2020-07-24 This would be better asked in the JSON-RPC section so the people in the know have more chance to see it. I'll move it there. RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - PatK - 2020-07-24 This section of the forum is a general everything concerning Kodi and not specifically a support thread. I think your query might be the music add-on section. Here's a link that might help. Darrin suggested JSON-RPC which might be appropriate. RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - Mannshoch - 2020-07-26 Hi PatK I don't need help for a radio addon. Becaus the stream works fine. I only need a way to check what type of media is currently playing. I need this Information to be able to tell my robot vacuum cleaner that he should not clean while a movie runs. RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - DaVu - 2020-07-27 Could you please share the m3u file you are using for radio playback, I can run some tests and probably find something. RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - Mannshoch - 2020-07-27
I use Kodi as Radio which runs most of the day. Because the TV power off if the screen shows the same Image a long time, I have visualization active. RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - ronie - 2020-07-27 i'm not familiar with node-red and how it interfaces with kodi, but if it is using json-rpc you can query the Player.HasAudio boolean using the XBMC.GetInfoBooleans json-rpc method.https://kodi.wiki/view/JSON-RPC_API/v12#XBMC.GetInfoBooleans https://kodi.wiki/view/List_of_boolean_conditions#Player RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - Mannshoch - 2020-07-31 I thought I could modifie this request I already use:
Into:
But that seems not working. Do you know how I have to form the Request? RE: REST answer for a runing online radio "data.data.item.type" is "movie" instead "song" - ronie - 2020-07-31 sure, you're close..you just need to change the name of the param to booleans
|