Kodi Community Forum
Working JSON RPC API Examples - 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: Working JSON RPC API Examples (/showthread.php?tid=157996)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: Working JSON RPC API Examples - axa88 - 2015-07-16

(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}


RE: Working JSON RPC API Examples - lammyoflyd - 2015-07-24

im attempting to open a music playlist using the http

http://192.168.0.107/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22id%22:1,%22method%22:%22Player.Open%22,%22params%22:{%22item%22:{%22special://profile/playlists/music/Morning.xsp},%22options%22:{%22repeat%22:%22all%22}}}

however this does not work, can anybody help me figure out the problem?


RE: Working JSON RPC API Examples - axa88 - 2015-07-27

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..


RE: Working JSON RPC API Examples - lammyoflyd - 2015-07-27

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.


RE: Working JSON RPC API Examples - lammyoflyd - 2015-07-27

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


RE: Working JSON RPC API Examples - axa88 - 2015-07-27

(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


RE: Working JSON RPC API Examples - mohamedinfo - 2015-09-05

Hello everyone
I want to create a simple remote android for KODI can you help me?
Thank you in advance.


RE: Working JSON RPC API Examples - axa88 - 2015-09-07

(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/details?id=org.leetzone.android.yatsewidgetfree&hl=en

Your welcome.


RE: Working JSON RPC API Examples - mohamedinfo - 2015-09-07

Hello
I want to create my own remote android for KODI can you help me?


RE: Working JSON RPC API Examples - mohamedinfo - 2015-09-08

hello
how to send json rpc with android ?
thank you in advance ?


RE: Working JSON RPC API Examples - LeeJS - 2015-10-09

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 :/


RE: Working JSON RPC API Examples - Richard6360 - 2015-10-15

(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/details?id=org.leetzone.android.yatsewidgetfree&hl=en

Your welcome.

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


RE: Working JSON RPC API Examples - Richard6360 - 2015-10-15

I use mit appinventor 2 for programming android.
i have posted examples on google+ groups for appinventor


RE: Working JSON RPC API Examples - axa88 - 2015-10-16

(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/details?id=org.leetzone.android.yatsewidgetfree&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.


RE: Working JSON RPC API Examples - wollk - 2015-10-23

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