Kodi Community Forum
Crestron TCP or HTTP control KODI. - 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: Crestron TCP or HTTP control KODI. (/showthread.php?tid=204117)



Crestron TCP or HTTP control KODI. - belloto - 2014-09-11

Hello all, my name is Juanma. Good morning from Spain.

I had a Crestron module to control XBMC, but there isn't exactly that I wanted.

So, I have time now, and I've started to read JSON 2.0 API v6. And I have several examples like this:

{"jsonrpc":"2.0","method":"Input.Select","id":1}

I've readed all "method" API, but my question is: where can I find a manual to understand the structure of that expression?

I don't know, for example, how to use params in "Audiolibrary", or why I have to put "id":1....

Sorry for my english, but I think that you will can understand me.

Thanks.


RE: Crestron TCP or HTTP control KODI. - belloto - 2014-09-16

Please, help.

I have a loop to send this command:

{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums","params": { "limits": { "start" : 0, "end": 10 }},"properties": ["thumbnail"],"id":1}

I can to change the value of "start" and "end" to go for all positions, but if a send this, I can not recieve the cover address.

My crestron module say me the ALBUM_ID and the label of this one but, how can I play this ALBUM_IDHuh?

Thanks.


RE: Crestron TCP or HTTP control KODI. - ncarthy - 2014-10-07

There is a Crestron module available at https://code.google.com/p/kodi-crestron/

Take a look at the source code of XBMCMain.usp file to see examples of using Crestron to communicate with xbmc/Kodi


RE: Crestron TCP or HTTP control KODI. - belloto - 2014-10-07

Are they the same commands using KODI?