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.
KeithB
Posts: 4
Joined: Mon Aug 06, 2012 10:56 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by KeithB »

Windows Server 2008 R2 (64-bit)
Event Ghost 0.4.1.r1572
XBMC2 Plug-in
USB-UIRT Plug-in
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 »

KeithB wrote:Windows Server 2008 R2 (64-bit)
Event Ghost 0.4.1.r1572
XBMC2 Plug-in
USB-UIRT Plug-in
I meant your EventGhost config file (.xml). With all your EventGhost settings.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
KeithB
Posts: 4
Joined: Mon Aug 06, 2012 10:56 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by KeithB »

Oh, sorry about that. The file is attached...
Attachments
Theatre.xml
(82.01 KiB) Downloaded 173 times
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 »

KeithB wrote:Is it normal for EG to shutdown/close itself when the Power button on the MCE remote is pressed?
OK, in folder Context folder\Keyboard emulation there is a macro Power -> Alt+F4. You need to disable/change/delete it.

Edit: You should disable the Keyboard emulation folder when ever you are controlling XBMC or other programs you are going to use the same buttons on.

It's a good idea to disable any macros you don't use.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
KeithB
Posts: 4
Joined: Mon Aug 06, 2012 10:56 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by KeithB »

jonib wrote:
KeithB wrote:Is it normal for EG to shutdown/close itself when the Power button on the MCE remote is pressed?
OK, in folder Context folder\Keyboard emulation there is a macro Power -> Alt+F4. You need to disable/change/delete it.

Edit: You should disable the Keyboard emulation folder when ever you are controlling XBMC or other programs you are going to use the same buttons on.

It's a good idea to disable any macros you don't use.

jonib
Thank you VERY MUCH!! :D
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

I'm using version 0.6.3e, which as far as I can tell is the latest beta, and I just got the following error:

Error: JSON-RPC event (<type 'exceptions.KeyError'>, KeyError('item',), <traceback object at 0x04699058>)

Hope that helps. Restarting XBMC seems to fix it.

Cheers
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 »

blaher wrote:I'm using version 0.6.3e, which as far as I can tell is the latest beta, and I just got the following error:

Error: JSON-RPC event (<type 'exceptions.KeyError'>, KeyError('item',), <traceback object at 0x04699058>)

Hope that helps. Restarting XBMC seems to fix it.
Thanks for reporting. Unfortunately that error don't tell me anything. If you get this error again please activate "Log raw events from XBMC" in the XBMC2 plugin settings. Hopefully I will work on the plugin soon, then I will make the error a bit more useful.
What version of XBMC are you using and ware you doing anything specific when you got that error?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

jonib wrote:Thanks for reporting. Unfortunately that error don't tell me anything. If you get this error again please activate "Log raw events from XBMC" in the XBMC2 plugin settings. Hopefully I will work on the plugin soon, then I will make the error a bit more useful.
Cheers, I have done that now.
What version of XBMC are you using and ware you doing anything specific when you got that error?
I'm using Eden version 11.
XBMC 11.0 Git:20120321-14feb09 (Compiled: Mar 21 2012)

I was using my remote to navigate the menus after watching a video, judging by the logs. Next time I'll take a screenshot as well, if it happens.

Thanks a lot. :-)
spitz66
Posts: 6
Joined: Wed Oct 14, 2009 4:42 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by spitz66 »

jonib wrote:
spitz66 wrote:Thanks for a great plugin! I've used it for a couple of years now and it works really well.
Thanks, and damn soon it's three years when I started to work on the plugin. :D
A question regarding the PVR actions added, did you add an action for "pause"? I don't know what action XBMC use in the OSD for Live TV to pause.
Sorry didn't see any pause related new action. I'll check if I can find other missing actions and hopefully get the PVR functionality to work to test. But don't know when.
Another maybe silly question is if there's an easy way to update your plugin so that I don't have to copy all my events to a new tree?
I'm for the moment using v0.6.3...
Just overwrite the plugin in Plugins\XBMCRepeat dir, and you will probably need to change the GUID in your EventGhost config, look here.

jonib
Any news regarding pause Live TV?
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 »

spitz66 wrote:Any news regarding pause Live TV?
I wasn't able to get XBMCPVR working with my MythTV back-end when I tested a while ago, so wasn't able to test what was needed.

But now I did some searching and think I found what command is needed.
Try this action: XBMC2\Experimental\HTTPAPI configure it to use Category: Miscellaneous commands and Command: ExecBuiltin and this: PlayerControl(Play)
XBMCPVRPlay.png
Or try pasting the below code in EventGhost:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1572">
    <Action>
        XBMC2.HTTPAPI(u'ExecBuiltIn', u'PlayerControl(Play)', 4, True)
    </Action>
</EventGhost>
If this action works I can put it in the plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
spitz66
Posts: 6
Joined: Wed Oct 14, 2009 4:42 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by spitz66 »

jonib wrote:
spitz66 wrote:Any news regarding pause Live TV?
I wasn't able to get XBMCPVR working with my MythTV back-end when I tested a while ago, so wasn't able to test what was needed.

But now I did some searching and think I found what command is needed.
Try this action: XBMC2\Experimental\HTTPAPI configure it to use Category: Miscellaneous commands and Command: ExecBuiltin and this: PlayerControl(Play)
XBMCPVRPlay.png
Or try pasting the below code in EventGhost:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1572">
    <Action>
        XBMC2.HTTPAPI(u'ExecBuiltIn', u'PlayerControl(Play)', 4, True)
    </Action>
</EventGhost>
If this action works I can put it in the plugin.

jonib
Thanks for your effort, however I don't succeed in creating those actions.

The first method results in:
Image

The second method results in:
Image

I don't know if I do it the wrong way or if I need your "test version" or something else...
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

spitz66 wrote: I don't know if I do it the wrong way or if I need your "test version" or something else...
If you do, the latest version I can see in this thread is here: viewtopic.php?f=9&t=1562&start=405#p21771 with some instructions here: viewtopic.php?f=9&t=1562&start=390#p21652
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 »

spitz66 wrote:The second method results in:
Image

I don't know if I do it the wrong way or if I need your "test version" or something else...
Hmm, that shouldn't say Python script. Would you mind attaching your EventGhost config with both commands? and what version of the plugin are you using?

I don't remember changing anything related in the new test versions but you could try this test version. Just keep a backup of your current plugin and EventGhost config just in case.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
spitz66
Posts: 6
Joined: Wed Oct 14, 2009 4:42 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by spitz66 »

jonib wrote:
spitz66 wrote:The second method results in:
Image

I don't know if I do it the wrong way or if I need your "test version" or something else...
Hmm, that shouldn't say Python script. Would you mind attaching your EventGhost config with both commands? and what version of the plugin are you using?

I don't remember changing anything related in the new test versions but you could try this test version. Just keep a backup of your current plugin and EventGhost config just in case.

jonib
Sorry, my bad!
Made a misstake with second method (didn't add as action in config XML).

Still doesn't work though.
Both methods result in the same error now.

Seems like it try to establish connection on port 80 and my XBMC listens on port 9514 for HTTP.
Tried to edit the "__init__.py" file and change to port 9514 but with no luck.

I'm using the test build you linked to now.
Attaching my config file as well.
Attachments
HTPC #2.xml
(81.35 KiB) Downloaded 151 times
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 »

spitz66 wrote:Seems like it try to establish connection on port 80 and my XBMC listens on port 9514 for HTTP.
Tried to edit the "__init__.py" file and change to port 9514 but with no luck.
Your config worked for me so you added the actions correctly. I had to change the port by doubleclicking on the XBMC2 entry in the Autostart folder and changed from 80 to my port. Hopefully thats your problem.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply