Working JSON RPC API Examples

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
axa88 Offline
Senior Member
Posts: 138
Joined: Mar 2015
Reputation: 5
Location: NY USA
Post: #46
(2015-07-15 14:15)CrsdrNoRemorse Wrote:  Hello,

Can anyone help me with the GUI.GetProperties method? Say I want to recover the "Input" property from the home screen, what would the JSON message be like? I've tried for the last hour, bit I still can't get it to work.

Thanks in advance!

What exactly do you mean by "recover the input property"? What is the "input property"/
If you check the API for that method, it only lets you make requests info for:
"currentwindow",
"currentcontrol",
"skin",
"fullscreen",
"stereoscopicmode"

im certain the last 3 wont do you any good, doubtful the first 2 would either, but then again i do not understand what your trying to do.


Recover input?.... maybe you want a tap
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"tap"},"id":1}
(This post was last modified: 2015-07-16 03:20 by axa88.)
find quote
lammyoflyd Offline
Junior Member
Posts: 27
Joined: Aug 2013
Reputation: 0
Post: #47
im attempting to open a music playlist using the http

http://192.168.0.107/jsonrpc?request={%2...2all%22}}}

however this does not work, can anybody help me figure out the problem?
find quote
axa88 Offline
Senior Member
Posts: 138
Joined: Mar 2015
Reputation: 5
Location: NY USA
Post: #48
no offense but your post is kind of tough to read
for anyone to begin to help you, they must copy the link location of your url post, then throw it through a url decoder.
Then supposing these 2 things come out successful, they can try to surmise what you were trying to do...

Why not just post exactly what you want help with... plain text with json, http, or both...

That said, i did all of that and first found your url doesn't decode properly... correcting that I found you don't appear to have valid json
Post the plain text and you'll have an answer in no time..
(This post was last modified: 2015-07-27 03:21 by axa88.)
find quote
lammyoflyd Offline
Junior Member
Posts: 27
Joined: Aug 2013
Reputation: 0
Post: #49
I completely disagree

anyone who's spent any time attempting to do something remotely similar could decider what the URL is trying to do, not to mention I specificly said what I was trying to do ( launch a music playlist).

You also don't need to "throw it into a decoder" as you can simply click the link, which removes the %22 characters and makes it pretty legible.
find quote
lammyoflyd Offline
Junior Member
Posts: 27
Joined: Aug 2013
Reputation: 0
Post: #50
For anyone who wants to do something like this, the correct code is:
Code:
http://192.168.1.107/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"special://profile/playlists/music/Morning.xsp"}}}

Obviously you will need to change the playlist name and ip address to suit your needs
find quote
axa88 Offline
Senior Member
Posts: 138
Joined: Mar 2015
Reputation: 5
Location: NY USA
Post: #51
(2015-07-27 06:02)lammyoflyd Wrote:  I completely disagree

anyone who's spent any time attempting to do something remotely similar could decider what the URL is trying to do, not to mention I specificly said what I was trying to do ( launch a music playlist).

You also don't need to "throw it into a decoder" as you can simply click the link, which removes the %22 characters and makes it pretty legible.

well, at least with my browser, clicking a link to an invalid ipaddress will not display anything.
Rather the url is decoded behind the scenes and the address bar is updated only AFTER a valid response is made....
No surprise to me, you and i do not have kodi running on the same exact ipaddress 192.168.1.107... so no com was made, and nothing was made legible.

Regardless your url as posted had error, why add any layer of confusion to a question...
i still think it makes more sense to just post plain text and encourage others to do so... especially when asking for help

p.s. correct spelling doesn't hurt either
(This post was last modified: 2015-07-30 17:55 by axa88.)
find quote
mohamedinfo Offline
Junior Member
Posts: 7
Joined: Sep 2015
Reputation: 0
Post: #52
Hello everyone
I want to create a simple remote android for KODI can you help me?
Thank you in advance.
find quote
axa88 Offline
Senior Member
Posts: 138
Joined: Mar 2015
Reputation: 5
Location: NY USA
Post: #53
(2015-09-05 15:31)mohamedinfo Wrote:  Hello everyone
I want to create a simple remote android for KODI can you help me?
Thank you in advance.

Ok, here, ill help you...

https://play.google.com/store/apps/detai...free&hl=en

Your welcome.
find quote
mohamedinfo Offline
Junior Member
Posts: 7
Joined: Sep 2015
Reputation: 0
Post: #54
Hello
I want to create my own remote android for KODI can you help me?
find quote
mohamedinfo Offline
Junior Member
Posts: 7
Joined: Sep 2015
Reputation: 0
Post: #55
hello
how to send json rpc with android ?
thank you in advance ?
find quote
LeeJS Offline
Junior Member
Posts: 6
Joined: Mar 2011
Reputation: 0
Post: #56
Can anybody help me get back a list of titles from a named video playlist? All I can seem to find is the current playing playlist :/
find quote
Richard6360 Offline
Junior Member
Posts: 5
Joined: Oct 2015
Reputation: 0
Post: #57
(2015-09-07 07:41)axa88 Wrote:  
(2015-09-05 15:31)mohamedinfo Wrote:  Hello everyone
I want to create a simple remote android for KODI can you help me?
Thank you in advance.

Ok, here, ill help you...

https://play.google.com/store/apps/detai...free&hl=en

Your welcome.

That's NO help at all. (read the question)
find quote
Richard6360 Offline
Junior Member
Posts: 5
Joined: Oct 2015
Reputation: 0
Post: #58
I use mit appinventor 2 for programming android.
i have posted examples on google+ groups for appinventor
find quote
axa88 Offline
Senior Member
Posts: 138
Joined: Mar 2015
Reputation: 5
Location: NY USA
Post: #59
(2015-10-15 16:32)Richard6360 Wrote:  
(2015-09-07 07:41)axa88 Wrote:  
(2015-09-05 15:31)mohamedinfo Wrote:  Hello everyone
I want to create a simple remote android for KODI can you help me?
Thank you in advance.

Ok, here, ill help you...

https://play.google.com/store/apps/detai...free&hl=en

Your welcome.

That's NO help at all. (read the question)


Your asking for someone to "create my own remote android for KODI"
i did read your question, you ask for it to be your own, i see that you think someone is going to just do the work for you.
As I realized long ago, and you just now seem to realize, no one is interested in your question.
So as you obviously do not have any technical skill, i kindly gave you a link to a program that does what you ask and more.

This forum is for developers to get help with their efforts, not for beggars to demand others do things for them.
Good luck. you'll need it.
(This post was last modified: 2015-10-16 20:56 by axa88.)
find quote
wollk Offline
Junior Member
Posts: 1
Joined: Oct 2015
Reputation: 0
Post: #60
Hi All,

could anybody pls help. Desperatly trying to play an mp3 file. Code like this
http://kodi:[email protected]/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"file://var/media/sda1-usb-Generic_Flash_Di/Jail Podskaski/001.mp3"}}}

file is not running - maybe mistake in the syntax?Huh

Log like this:
Thread LanguageInvoker start, auto delete:false

Thanks in advance!
Wollk
find quote
Post Reply