Feature Request Call Addon using JSON

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Montellese Online
Team-XBMC Developer
Posts: 2,790
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #21
(2012-09-16 15:45)rogerthis Wrote:  Now that 901 is all finished, is there any schedule for 821?
I've withdrawn PR821 for now because I don't like the implementation of ExecuteAddon().

(2012-09-16 15:50)Fahr Wrote:  I noticed too that it was finished. Does this mean that now is a good time to start messing with addons registering their own custom RPC functions? Big Grin
There's still an additional step needed (i.e. being able to execute python scripts synchronously and not asynchronously) and I've already talked with jcarroll about it and he had/has plans to allow this as well.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
skialot Offline
Junior Member
Posts: 6
Joined: Sep 2012
Reputation: 0
Post: #22
This would be one of the most amazing features of XBMC. It essentially gives the XBMC client some server-like functionality. If we can control the XBMC from a remote touch-panel (Android, iPad, etc) and receive feedback to the touch-panel (even if it is simply text feedback via JSON) the possibilities for true control of XBMC become outstanding. This, along with the XBMC running on the RaspberryPi, allow a user to build a complete media center system that can push music/video to an unlimited number of zones from an unlimited number of sources through a home - or even a commercial setting if one wanted. We replace a $7,000 media center application with an XBMC solution that would cost roughly $500.

I'm extremely excited to see this functionality implemented. I'm not that sophisticated as a programmer, but I can test and track down issues, etc. How can I help?
find quote
rogerthis Offline
Member+
Posts: 279
Joined: Apr 2011
Reputation: 0
Location: Connacht
Post: #23
Great to see that https://github.com/xbmc/xbmc/pull/821 is alive again, and set to merge in October. I thought when it got quashed that we wouldn't see it in Frodo.
find quote
Mizaki Offline
Fan
Posts: 664
Joined: Apr 2011
Reputation: 12
Post: #24
It's only one way, fire and forget. You could not for example; use the global search addon and get a list of results. Something is still better than nothing though Smile

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
Martijn Online
Team-XBMC
Posts: 7,715
Joined: Jul 2011
Reputation: 115
Location: Dawn of time
Post: #25
(2012-10-10 18:59)Mizaki Wrote:  It's only one way, fire and forget. You could not for example; use the global search addon and get a list of results. Something is still better than nothing though Smile

actually you can

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Mizaki Offline
Fan
Posts: 664
Joined: Apr 2011
Reputation: 12
Post: #26
Code:
{"jsonrpc": "2.0", "method": "Addons.ExecuteAddon", "params": { "wait": true, "addonid": "script.artwork.downloader", "params": [ "mediatype=tvshow", "medianame=Last Resort" ] },  "id": 2}
How do I get the info back of how many downloaded? Smile

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
Montellese Online
Team-XBMC Developer
Posts: 2,790
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #27
You don't, there's no backchannel from the addons because apart from scripts and plugins addons aren't really meant to give something back to the caller.
Btw you can pass your addon arguments differently i.e.
Code:
"params": { "mediatype": "tvshow", "medianame": "Last Resort" }
which IMO is a bit easier to read.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
(This post was last modified: 2012-10-13 19:43 by Montellese.)
find quote
Mizaki Offline
Fan
Posts: 664
Joined: Apr 2011
Reputation: 12
Post: #28
That's what I thought Smile Yeah, I saw that with the params. Easier to read but harder to spot they are params for the addon so I'm in two minds about which way to go.

[Image: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
rogerthis Offline
Member+
Posts: 279
Joined: Apr 2011
Reputation: 0
Location: Connacht
Post: #29
Did PR 821 make it into Frodo before the Feature Freeze?
find quote
Montellese Online
Team-XBMC Developer
Posts: 2,790
Joined: Jan 2009
Reputation: 20
Location: Switzerland
Post: #30
Yes it has been merged a while ago.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

[Image: badge.gif]
find quote
Post Reply