Kodi Community Forum
Command strings - 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: Command strings (/showthread.php?tid=351486)



Command strings - ArieS - 2020-02-05

I was going crazy after upgrading to Leia and wondering why iRule wasn't controlling Kodi anymore then I found a post about iRule not working with Leia.

I've created a new Device in the builder but I'm struggling creating new Network Commands.

Everything with Input is fine as I used an example I found to create commands like this:

jsonrpc?request={"jsonrpc":"2.0","method":"Input.Up", "id":1}

But anything with Input.ExecuteAction 
Like Next Subtitle
jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Input.ExecuteAction%22%2C%22params%22%3A%7B%22action%22%3A%22nextsubtitle%22%7D%2C%22id%22%3A1%7D

Or Small Forward (30 sec)
jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22Player.Seek%22%2C%22params%22%3A%7B%22playerid%22%3A1%2C%22value%22%3A%22smallforward%22%7D%2C%22id%22%3A1%7D

Etc...

I have no idea what the commands should be or even where to look to find examples...
Can you share some of the commands so I can use them as base to create the ones I need?
Or is there a tool online where I would enter the iRule commands and it would format them like:
jsonrpc?request={"jsonrpc":"2.0","method":"Input.Up", "id":1}

Thanks in advance!