Input Command Request
#1
Can we get a page-up and page-down Input commands? Would help in navigating large libraries.

Input.PageUp
Input.PageDown

Also, a toggle for watched would be nice.

Input.Watched
Reply
#2
Input.ExecuteAction with "action" set to "pageup" or "pagedown".
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
(2012-11-04, 20:46)Montellese Wrote: Input.ExecuteAction with "action" set to "pageup" or "pagedown".

Ah, I see. I keep looking in the documentation for this stuff but it's just not there. I tried the following, which didn't work...I'm guessing the syntax is off.

http://192.168.1.70:8082/jsonrpc?request={"jsonrpc":"2.0","method":"Input.ExecuteAction","PageUp","id":1}
Reply
#4
I think you should first read up on how JSON-RPC works before throwing commands at XBMC and wondering why it doesn't work. You can find the JSON-RPC specification here: http://www.jsonrpc.org/specification

As you can see from the examples you can't throw the "PageUp" into the request object, you need to wrap it in the "params" property i.e.
Code:
{ "jsonrpc": "2.0", "method", "Input.ExecuteAction", "params": { "action": "PageUp" }, "id": 1 }
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
(2012-11-04, 21:13)Montellese Wrote: I think you should first read up on how JSON-RPC works before throwing commands at XBMC and wondering why it doesn't work. You can find the JSON-RPC specification here: http://www.jsonrpc.org/specification

I've spent literally hours pouring over that stuff. This is my fifth time trying to get this to work. Can't tell you how frustrating it is that I had finally gotten it working and now it's broken again!

I suspect the real problem is I'm not comp sci major so I find the specifications confusing and lacking in useful examples. If I were a dev, I'm sure it would be easy...
Reply
#6
(2012-11-04, 21:13)Montellese Wrote:
Code:
{ "jsonrpc": "2.0", "method", "Input.ExecuteAction", "params": { "action": "PageUp" }, "id": 1 }

This code gave me the following error:

{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}

using the specs as an example:
{"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"},

I tried
Code:
{ "jsonrpc": "2.0", "method": "Input.ExecuteAction", "params": { "action": "PageUp" }, "id": 1 }

{"error":{"code":-32602,"data":{"method":"Input.ExecuteAction","stack":{"message":"Received value does not match any of the defined enum values","name":"action","type":"string"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
Reply
#7
Yup there's a type on my example, the "," after "methods" should be a ":". And the action has to be "pageup" and not "PageUp" (my bad as well).
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#8
(2012-11-04, 22:07)Montellese Wrote: Yup there's a type on my example, the "," after "methods" should be a ":". And the action has to be "pageup" and not "PageUp" (my bad as well).

Case sensitive!!! No!!!!

Code:
http://192.168.1.70:8082/jsonrpc?request={ "jsonrpc": "2.0", "method": "Input.ExecuteAction", "params": { "action": "pageup" }, "id": 1 }

{"id":1,"jsonrpc":"2.0","result":"OK"}

woot!

Code:
http://192.168.1.70:8082/jsonrpc?request={ "jsonrpc": "2.0", "method": "Input.ExecuteAction", "params": { "action": "pagedown" }, "id": 1 }

{"id":1,"jsonrpc":"2.0","result":"OK"}

woot!

Code:
http://192.168.1.70:8082/jsonrpc?request={ "jsonrpc": "2.0", "method": "Input.ExecuteAction", "params": { "action": "togglewatched" }, "id": 1 }

{"id":1,"jsonrpc":"2.0","result":"OK"}

woot!

Now if I can just resolve my iRule issues, I can build one hell of a good remote...

Thanks for your help/patience!
Reply
#9
Any idea how to enter these commands in Yatse custom command?  What is put in Method field and what in params field?
Reply

Logout Mark Read Team Forum Stats Members Help
Input Command Request0