Release - JSON-RPC Browser

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Brick  JSON-RPC Browser
Post: #1
JSON-RPC Browser v0.9

This utility is a Javascript based JSON-RPC client application. It uses the introspect method to get the methods back then allows a user to call the methods passing values through auto-generated forms.

If this is useful for you, let me know.

Project Page: https://github.com/robnewton/JSON-RPC-Browser

Direct Download Link: https://github.com/robnewton/JSON-RPC-Br...master.zip

Installation: Download the zip from github. Unzip contents to the webinterface plugin directory. Point your browser to your XBMC web interface slash "JSON-RPC-Browser-master".

On my windows machine using v12.2, my web interface path is: "C:\Program Files (x86)\XBMC\addons\webinterface.default"

Running the App: Once it is installed, point your browser to your XBMC web interface endpoint plus the path to the folder you just added to the webinterface.default directory. In my case this was http://localhost:8080/JSON-RPC-Browser-m...ndexd.html

Here are some screenshots:


Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
(This post was last modified: 2013-09-06 04:36 by angrycamel.)
find quote
MokuJinJin Offline
Junior Member
Posts: 21
Joined: Aug 2013
Reputation: 0
Question  RE: JSON-RPC Browser
Post: #2
I'll love to see it working.

Unfortunatly i've not suceeded.
i've made a new connection, submit, ad nothing Huh
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #3
It's gonna use the websockets as a priority. Do you have that setup in the connection? Start with that to check first. Also u can show the js console to see any error and post it here and ill take a look.

Thanks for giving it a try.

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #4
@Maku - Make sure that you are pointing your browser to the html file hosted through the web server in XBMC (localhost if its on the same machine). Double clicking the index.html file and running it from the file system will not work if that's maybe what you were doing.

Running the App: Once it is installed, point your browser to your XBMC web interface endpoint plus the path to the folder you just added to the webinterface.default directory. In my case this was http://localhost:8080/JSON-RPC-Browser-m...ndexd.html

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
find quote
MokuJinJin Offline
Junior Member
Posts: 21
Joined: Aug 2013
Reputation: 0
Post: #5
Of course it's working ... i need sleep.

Sorry for the inconvenience Blush

OH MY GOD !!!

it's wonderfull !

no further need to do many useless test or understand the json schema description.
Perfect !

Edit : found why it was not working. Since i'm not on the XBMC computer, i must use the IP adress and not localhost. I really need sleep Angel
(This post was last modified: 2013-09-07 00:06 by MokuJinJin.)
find quote
MokuJinJin Offline
Junior Member
Posts: 21
Joined: Aug 2013
Reputation: 0
Post: #6
First bug.

Selecting Addons.GetAddons.

optional -> type (enabled) -> xbmc.metadata.scraper.tvshows

Call method.

Working good Blush , 1 response.

optional -> properties (enabled) -> click on the combobox, select name.
By the way, the page go to the top, at this point, it's a little annoying. Tongue
Click on the button Add.

Call method.
Working good, but all addons are in the response.
the combobox for the type parameter is disabled but the checkbox is checked.
If i uncheck it, the combobox is enabled.

And again it's a wonder to work with this !
(This post was last modified: 2013-09-07 00:28 by MokuJinJin.)
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #7
Excellent. Glad it's working for you.

Ill take a look at the bugs you mentioned tonight and post any solution.

Let me know if you run into any other problems. There are some data types that may not work right and others that were recursive and could not be built automatically. I'm open to any ideas you may have to improve it.

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
find quote
MokuJinJin Offline
Junior Member
Posts: 21
Joined: Aug 2013
Reputation: 0
Post: #8
Would you like to post bug to github instead of here ?

Or both ?

I'll be glad to return any problem to you.
find quote
angrycamel Offline
Senior Member
Posts: 234
Joined: Dec 2008
Reputation: 8
Post: #9
GitHub please if you can. I don't mind posts here its just possible a bug may get lost in the shuffle.

I looked at the jumping to the top of the page when adding properties but didn't see anything too obviously. You're right though, that is annoying Smile I'll keep looking.

Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

[Image: hUryuD3.png]
find quote
houser Offline
Junior Member
Posts: 46
Joined: Jun 2012
Reputation: 0
Post: #10
Is this script still maintained and works with current Kodi 14.2?

If anyone knows where to put this script to get it working in Openelec I would be very grateful.
I have tried in various places with no luck so far.
If it works it is just what I was looking for. JSON is a bit hard to figure out at times...
Thanx!
find quote
Quihico Online
Junior Member
Posts: 8
Joined: Feb 2014
Reputation: 1
Post: #11
(2015-05-01 12:45)houser Wrote:  Is this script still maintained and works with current Kodi 14.2?
Don't think it is still maintained cos last changes were 2 years ago, it still works beautifullly though so big, big BIG thanks for this, it is really awesome and makes json a whole lot easier to figure out.

(2015-05-01 12:45)houser Wrote:  If anyone knows where to put this script to get it working in Openelec I would be very grateful.
Works on OpenELEC too but since the default webinterface is included in the read-only SYSTEM-file, it does require a different approach. Basicly there's 2 options:
either copy the default webinterface from /usr/share/kodi/addons to /storage/.kodi/addons, reboot and place the files in there so you have a /storage/.kodi/addons/webinterface.default/JSON-RPC-Browser-master.
Or install a different web interface and place files in there, like for instance /storage/.kodi/addons/webinterface.chorus/JSON-RPC-Browser-master
then after browsing to http://i.p.n.r:webserverport/JSON-RPC-Browser-master/index.html you should see the JSON-browser and it is glorious Smile
find quote