Kodi Community Forum

Full Version: JSONRPC keymap not working[Remote app]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my /home/osmc/.kodi/userdata/remote.xml
Code:
<keymap>
      <global>
             <remote>
                  <blue>RunScript(/home/osmc/Hyperion/toggleHyperion.py)</blue>
             </remote>
      </global>
</keymap>

I'm using the ** IOS Remote app** not a dedicated remote.
custom button is in settings->...more->...->execute a specific action->blue

I also tried the following in remote.xml
Code:
<blue>Down</blue>

From the tcpdump, I figured that the app is just sending JSONRPC Calls
so I currently have <blue>Down</blue>

Code:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"method":"Input.Down","id":416382513,"jsonrpc":"2.0","params":{}}' http://127.0.0.1:80/jsonrpc
This is moving the selection down but

Code:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"method":"Input.ExecuteAction","id":-450699119,"jsonrpc":"2.0","params":{"action":"blue"}}' http://127.0.0.1:80/jsonrpc
this is not triggering the keymap action for Blue, which is also down in this case.

EDIT: Opened a ticket. I honestly think this is a bug. http://trac.kodi.tv/ticket/16696
Thread moved to OS independent, as it has nothing at all to do with the forum or website.