Kodi Community Forum
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - 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: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263)



RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2016-02-22

I mean reproduce user configuration and default keymaps.

From Json since keymap often change at each version you'd need to have special handling for each Kodi version to have the same as the default for left / right. (and some other keys)

And then you have the users that change their keymap because they for example (frequent) do not understand the new adaptive seek thing and want to force a specific jump.

Users expect remotes to behave like they configured Kodi Sad And currently we cannot access keymaps. And asking them to reconfigure a remote to behave the same is not very user friendly on small screen. Not talking about double work for them.

Due to lot of demands I even switched Previous / Next / FF / RW to Event Server as it seems lot's of advanced users change them.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - joethefox - 2016-02-22

Yep, understood what you mean. I've simplified with just the big-small/forward-backward for videos and music rating with up/down for music when needed.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2016-02-22

Thanks guys, I have a idea of how I will handle this now. It will take a while until I start to create the remote control for my new IOS app, but I was curious about how to plan it.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - juju37 - 2016-03-17

Hi

Here is my purpose:
I would like to know it when kodi runs automatically my screensaver (configured as: "black" after 5 minutes).
This information is necessary to me in order send (or not) any wake-up request (example: a simple "ok" input) before sending a notification to Kodi from my home automation system.

So, here is an example of request I use to get the ID of the current screen in Kodi: (as defined here: http://kodi.wiki/view/Window_IDs )

Code:
http://192.168.1.xx/jsonrpc?request={%22jsonrpc%22:%20%222.0%22,%20%22method%22:%20%22GUI.GetProperties%22,%20%22params%22:%20{%22properties%22:%20[%22currentwindow%22]},%20%22id%22:%201}

and... the server says as expected:
Code:
{"id":1,"jsonrpc":"2.0","result":{"currentwindow":{"id":10501,"label":"Musique / Fichiers"}}}

Well, that's ok.

Unfortunately when the screensaver is running, I still get the ID of the previous screen (here id = 10501) and not the id 12900 (screensaver) as expected.

Is that a bug in Kodi ?

Or is there any other way to get informed when this f*cking screensaver is automatically run ? Smile

Thks for answers

NB: however it works well as expected when I jump to the screensaver screen directly by myself. Server says then: id = 12900 !
Code:
http://192.168.1.xx/jsonrpc?request={%22jsonrpc%22:%20%222.0%22,%20%22method%22:%20%22GUI.ActivateWindow%22,%20%22params%22:%20{%22window%22:%22screensaver%22},%20%22id%22:%201}



RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Roman_V_M - 2016-03-18

Can I get TheMovieDB ID for a movie somehow? It seems that only IMDB ID can be returned for a movie via "imdbnumber" property.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2016-03-18

"imdbnumber" is a misleading name. It contains the id of whatever scraper was used. There's also "uniqueid" (or something like that) which is less misleading.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Roman_V_M - 2016-03-18

(2016-03-18, 14:55)Montellese Wrote: "imdbnumber" is a misleading name. It contains the id of whatever scraper was used. There's also "uniqueid" (or something like that) which is less misleading.

The thing is that TheMovieDB scraper still stores IMDB ID in this field, not its own ID. And what is "uniqueid"? Kodi 16.0 consistently returns errors when I insert this field in the "properties" array. Without it everything works fine.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2016-03-18

uniqueid is only for episodes unfortunately Sad

There's was discussion about adding a new field with a link between ids and scrapers but can't find it right now and was not implemented for the moment.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Regss - 2016-03-26

Hi.
'userrating' can be added to filter fields list?


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - blenni - 2016-05-29

Is there a possibility to change the "use fullscreen window" setting?

Image


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - mikebzh44 - 2016-06-23

Hi.

I'm running IMDB Update script on Krypton (latest release from today) and when this script try to update IMDB rate and votes via JSON, rows are deleted in Kodi database :

http://forum.kodi.tv/showthread.php?tid=167754&pid=2363324#pid2363324

Is it a Krypton issue ?


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2016-06-23

Open another thread with full logs, if phate89 does not check it I'll ping him. May be related to all recent changes he made.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - phate89 - 2016-06-23

Yes it's a bug.. The pr we discussed yesterday (Accidentally) fix it..Tomorrow's build should fix the bug


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - mikebzh44 - 2016-06-23

Great news.

I will try again on monday morning.


RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - mikebzh44 - 2016-06-24

Latest build of Krypton (KodiSetup-20160623-2731311-master) fix this issue :

Image