Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

So finally had a chance to look into this.

Are you using the latest version of the XBMC2 plugin (0.6.14 included in last EventGhost)?
simonturk wrote:When using XBMC2 commands i.e. Open Window: Movies no control is passed to XBMC.
What command is this? I can't find it anywhere in the plugin. Are you even talking about a JSON-RPC command here or is it a command from the "Actions" folder?
I found that if i manually send the command using your experimental action "Send Any JSON" I can get it to work.
So JSON-RPC commands work.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Aback
Posts: 4
Joined: Sat Sep 06, 2014 7:49 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Aback »

Why can't I execute JSON and HTTPAPI commands in eventghost. I always get this error for JSON
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
self.Configure(*args, **kwargs) ...

and this for HTTPAPI:
Error in Action: "XBMC2: HTTPAPI: GetCurrentPlaylist"
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

What XBMC are you using?
Aback wrote:Why can't I execute JSON and HTTPAPI commands in eventghost. I always get this error for JSON
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
self.Configure(*args, **kwargs) ...
Is this the complete error message, as it seems to be missing information. So I have no idea what might cause it.
and this for HTTPAPI:
Error in Action: "XBMC2: HTTPAPI: GetCurrentPlaylist"
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
HTTPAPI is not supported in the last few versions of XBMC. And this error message seems incomplete too.

When posting errors from EventGhosts log it might be better to take a screenshot of the error (having resized the window so the full error is visible).

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Aback
Posts: 4
Joined: Sat Sep 06, 2014 7:49 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Aback »

jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Aback wrote:Here is the screenshot of errors.
Much better, now I see where the problem is, but not what.

I need to know what the parameter is in the JSON-RPC action thats cousing the problem.

You can attach screenshots directly in the posts here.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Aback
Posts: 4
Joined: Sat Sep 06, 2014 7:49 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Aback »

jonib wrote:
Aback wrote:Here is the screenshot of errors.
Much better, now I see where the problem is, but not what.

I need to know what the parameter is in the JSON-RPC action thats cousing the problem.

You can attach screenshots directly in the posts here.

jonib
I did following: Namespace: Favourites Method: GetFavourites. When I hit Test i get errors from above. No matter what I select as napespace and method I always get the same errors.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Aback wrote:I did following: Namespace: Favourites Method: GetFavourites. When I hit Test i get errors from above. No matter what I select as napespace and method I always get the same errors.
Put

Code: Select all

[]
or

Code: Select all

{}
In the parameter field. Looks like I forgot about this problem.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Aback
Posts: 4
Joined: Sat Sep 06, 2014 7:49 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Aback »

jonib wrote:
Aback wrote:I did following: Namespace: Favourites Method: GetFavourites. When I hit Test i get errors from above. No matter what I select as napespace and method I always get the same errors.
Put

Code: Select all

[]
or

Code: Select all

{}
In the parameter field. Looks like I forgot about this problem.

jonib
It works now, with [] in parameter field. Thanks :).
BinaryTB
Posts: 4
Joined: Tue Oct 05, 2010 10:23 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by BinaryTB »

Hello,

I searched, but didn't find it in the thread. Would it be possible to add the new Gotham Action IDs into the latest version of this plugin? Specifically "ChapterOrBigStepForward" and "ChapterOrBigStepBack" as listed here:

http://wiki.xbmc.org/index.php?title=Action_IDs

I think Frodo operated differently with Chapters and Big Steps and this new Gotham action replicates that behavior so I'm just trying to get it back to the way I was used to. Thanks for the great plugin by the way.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

BinaryTB wrote:I searched, but didn't find it in the thread. Would it be possible to add the new Gotham Action IDs into the latest version of this plugin? Specifically "ChapterOrBigStepForward" and "ChapterOrBigStepBack"
There are many actions missing as I haven't updated the action list in a while. And just to be a jerk :twisted: I won't add these.

But I am adding a button so any missing actions can be added from XBMCs(Kodis) website. And later when I feel like it I'll add any of the actions to proper categories.
I think Frodo operated differently with Chapters and Big Steps and this new Gotham action replicates that behavior so I'm just trying to get it back to the way I was used to. Thanks for the great plugin by the way.
Are you using a remote to control XBMC? if so are you using the actions under XBMC2\Buttons\Remote? In that case you can edit the XBMC keymap to get it they way you like.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

I'm posting a new test version 0.6.16.

I have added a "Update actions" button in the XBMC2 settings, it will (as long as the XBMC site is not changed) check if there are any new actions in XBMCs code and adds them in a new category "Manually updated".

With this you wont need to edit the plugin manually with new actions or wait for me to do it.

At some point I might move some actions to better category's, but my development speed has been so slow so I don't have any idea when I might feel motivated enough.

Thanks to BinaryTB I just got a injection of motivation so I made this update.

Hopefully someday I will do a proper update and just not these "test" updates, if you live long enough you might experience it. :shock:

jonib
Attachments
__init__.py
XBMC2 test version 0.6.16 with Update actions button.
(110.04 KiB) Downloaded 423 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
BinaryTB
Posts: 4
Joined: Tue Oct 05, 2010 10:23 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by BinaryTB »

jonib wrote:Thanks to BinaryTB I just got a injection of motivation so I made this update.
You are the best my friend.
[email protected]
Posts: 5
Joined: Tue Dec 03, 2013 12:16 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by [email protected] »

Running
XBMC2 0.6.16
XBMC 13.2

I added a JSONRPC command, namespace addons method executeaddon and enter
['script.audio.pandora']

and click test
all I get is this
http://imgur.com/2zNKKn7
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

[email protected] wrote:I added a JSONRPC command, namespace addons method executeaddon and enter
['script.audio.pandora']
Try this (With double quotes)

Code: Select all

["script.audio.pandora"]
JSON only supports double quotes for strings. I'll make the plugin handle these kind of errors at some point.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Derbyboy
Posts: 6
Joined: Mon Aug 01, 2011 11:01 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Derbyboy »

Hi,

Why do I not have any options here:
Attachments
a.jpg
Post Reply