Posts: 53
Joined: Nov 2009
Reputation:
0
Hi there
I'm about to start work on a python library for the JSON api , just wanted to check nobody had one already working before I start this. I've read through the thread and nobody seems to be working in python besides topfs2
Posts: 53
Joined: Nov 2009
Reputation:
0
2010-08-12, 13:43
(This post was last modified: 2010-08-12, 14:38 by Mnuu.)
Could you point me in the direction of the particular library you are referencing, there seems to a large number of jsonrpc librarys for python, all of varying quality. An example of using said library to deal with announcements would be super nice also.
Posts: 1
Joined: Aug 2010
Reputation:
0
Any chance we could get an on screen notification function like the HTTP API ?
Didn't see one looking through function list on built in development page index.
-Jonan
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
an executebuiltin is definitely on the todo.
Posts: 131
Joined: May 2010
Reputation:
0
I have been through all 29 pages of this thread (kudos to all who have contributed) and believe I have gained the knowledge to convert what I have written for the HTTP API to the JSON API.
My Application runs on a Pronto PRO remote control taking to XBMC (Asrock ION 330PR0) running XBMCLiveCD (9.11). My only aim is to control the presentation of the info on the main screen out of XBMC so it is basically control only (screen navigation, transport commands etc.).
Before I knock my brains out trying to figure out why it is or is not working, does what I am running now (LiveCD 9.11) contain the JSON API code or just the HTTP API?
If the anwer to the above is no (does not contain the JSON API code), what should I download and install to checkout the conversion of my application from the HTTP API to the JSON API?
Thanks.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
9.11 contains only the HTTP API. You'll need a Dharma nightly (you can try the ISO from xbmcfreak.nl which is pretty much identical to what is in SVN) to use the JSON-RPC interface.
Posts: 492
Joined: Dec 2006
Reputation:
5
I just noticed this but I saw pieces of it in the code.
I'm working on refactoring the Addon system so that different language choices can be plugged in.
This means I'm separating the 4 builtin python modules into an "Addon API" and a set of Python bindings.
I hope to have an alternate repository up this weekend (per spiff's request) to get feedback on the direction I'm taking.
In any case, does it make sense that a json-rpc implementation would be simply another binding?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
definitely makes sense. i'm not sure just how much overlap there will be though.
Posts: 492
Joined: Dec 2006
Reputation:
5
Yeah - looking through the functionality there might not be a lot of overlap. But I tend to think there's no reason there shouldn't be. If I can call it using json-rpc why not from an addon?
Anyway - it's way ahead of where I am now and maybe if what I'm doing works out they can be collapsed together later.
Posts: 131
Joined: May 2010
Reputation:
0
2010-08-23, 00:19
(This post was last modified: 2010-08-25, 16:15 by barrygordon.)
If the only thing you are running on the box is XBMC then you could send it a "Magic Packet" to perform Wake on LAN. That is how I use my ION 330. It is powered off normally and when it receives WOL it boots right to XBMC running from a HDD (9.11 Live CD). If you are running other things then it depends a lot on which OS is running.
For example, building a little windows app that would be always be running in the background (or as a service) which monitors a particular Port on the win machine could then wait for a specific message at that port and launch the XBMC application.
Posts: 34
Joined: Jul 2008
Reputation:
0
2010-08-26, 17:05
(This post was last modified: 2010-08-26, 21:16 by marksoccer.)
Is there a way to swap and/or remove audio/video playlist items? I see the commands for virtual playlists, but I don't know how I can do it for AudioPlaylist and VideoPlaylist.
Also, does the UnShuffle method work, because I can't get it to do anything. In addition, I cannot get the Shuffle method to shuffle more than once, is this by design?