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.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Pako »

jonib wrote:Is there somewhere I can read about what is needed for the translation to work?
Unfortunately, I think not.
But do not worry, help is easy.
Simply add also -debug switch to command line (so the whole command is eventghost.exe -translate -debug), and if the Translator does not open, we get an error message. Most interesting is its end. For example, for unfixed version of XBMC2 plugin it looks like this:

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 31, in <module>
  File "D:\Programs\E\EventGhost\eg\__init__.py", line 102, in Main
    eg.LanguageEditor()
  File "D:\Programs\E\EventGhost\eg\Classes\LanguageEditor.py", line 163, in __init__
    self.LoadLanguage(Config.language)
  File "D:\Programs\E\EventGhost\eg\Classes\LanguageEditor.py", line 294, in LoadLanguage
    self.FillTree(newId, value, evalPath)
  File "D:\Programs\E\EventGhost\eg\Classes\LanguageEditor.py", line 484, in FillTree
    self.FillTree(newId, value, newEvalPath)
  File "D:\Programs\E\EventGhost\eg\Classes\LanguageEditor.py", line 502, in FillTree
    transValue = eval(newEvalPath, self.translationDict)
  File "<string>", line 1
    Plugin.XBMC.File Manager.name
                           ^
SyntaxError: invalid syntax
07:49:12: 0 MainThread: OSDFrame.__init__(parent=None)
Is it enough?

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

Pako wrote:Is it enough?
I think so, thanks.

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 »

Finally I have released an updated version of this plugin. In the first post of this thread there is ver 0.6.0 released. This will also be included in the next EventGhost release.

The changes:
These Remote buttons had to be changed to support EventGhosts translate feature:
  • Skip +
    Skip -
    Vol +
    Vol -
    Recorded TV
    Live TV
    *
So they need to be remapped.

If EventGhost was installed in the Program files in Windows 7/Vista there was a problem to save the command information for JSONRPC and HTTPAPI actions, this is now fixed by storing them under Application data\EventGhost directory.

Also fixed the retrieval of HTTPAPI command information.

Added some missing button actions guide, enter, xbox, teletext, red, green, yellow, blue, subtitle and language.

Hopefully I didn't introduce any new bugs, please report any problems.

@Pako: Where did the guid = "{2DD98E35-F060-4444-9F11-168CD8131A6B}", come from in your fixed version?

Edit: To anyone with power could you move this thread to the plugins section? Thanks in advance.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Pako »

Thank you for the fix and improvements to the XBMC2 plugin.
jonib wrote:@Pako: Where did the guid = "{2DD98E35-F060-4444-9F11-168CD8131A6B}", come from in your fixed version?
Take a look at topic Notes for plugin developers, particularly the post of Thu Dec 17, 2009 3:19 pm.
I think that there is no reason to did not follow this recommendation, even if Bitmonster left the development. Do you agree?
jonib wrote:Edit: To anyone with power could you move this thread to the plugins section?
Done and shadow copy left in original place.

Pako
You know flattr ? You can 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 »

Pako wrote:Take a look at topic Notes for plugin developers, particularly the post of Thu Dec 17, 2009 3:19 pm.
I think that there is no reason to did not follow this recommendation, even if Bitmonster left the development. Do you agree?
Sounds good. I remember I was going to look into this but I guess I forgot. :oops:
Done and shadow copy left in original place.
Thanks.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
abauomy
Posts: 1
Joined: Fri Apr 08, 2011 12:26 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by abauomy »

Thank you for good work :)
I just need help to send notification to XBMC with last added Ep

THX :D
jannypan
Posts: 3
Joined: Thu Apr 07, 2011 7:06 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jannypan »

if I associate it to two action EV will execute both of them independently of the state of the XBMC.
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 »

abauomy wrote:Thank you for good work :)
:D
I just need help to send notification to XBMC with last added Ep
Do you mean update the XBMC library with new episodes/content?

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 »

jannypan wrote:if I associate it to two action EV will execute both of them independently of the state of the XBMC.
I need more information about what your trying to do.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

jonib,
One suggestion... when you change/update the plugin please make it XML compatible with the previous version. I just updated from EG r1262 to r1494 and you changed from XBMCrepeat to XBMC2 and it was not XML compatible. I had to go through and change the commands in the XML from "XBMC." to "XBMC2." - not sure why you changed this?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
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 »

Livin wrote:One suggestion... when you change/update the plugin please make it XML compatible with the previous version. I just updated from EG r1262 to r1494 and you changed from XBMCrepeat to XBMC2 and it was not XML compatible.
What do you mean XML compatible? the name change didn't seem to effect the EventGhost configuration, only a visual change. Unless you had the plugin in some other directory than XBMCRepeat.
I had to go through and change the commands in the XML from "XBMC." to "XBMC2." - not sure why you changed this?
I changed it because the EventGhost translation tool uses that name to identify the plugin. And again it did not seem to effect the plugins config.

I try not to change the syntax unless necessary, unfortunately I have missed some stuff like the translation support. :oops:

The name change wasn't necessary but keeping the plugin in the XBMCRepeat directory made it work with previous settings.

Hopefully this is the last change that breaks any configs.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

The XBMCrepeat folder is the same - I did not change that.

your current plugin XML looks like this... XBMC2.RemoteLeft()
your old plugin XML... EventGhost.PythonCommand('XBMC.RemoteLeft()')

you also changed these...

Can't find action: XBMC2.RemoteSkip +()
Can't find action: XBMC2.RemoteSkip -()
Can't find action: XBMC2.RemoteVol +()
Can't find action: XBMC2.RemoteVol -()
Can't find action: XBMC2.RemoteRecorded TV()
Can't find action: XBMC2.RemoteLive TV()
Can't find action: XBMC2.Remote*()

I have it working now but it took a while to figure it out.
Last edited by Livin on Sun Apr 10, 2011 10:08 pm, edited 1 time in total.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
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 »

Livin wrote:when you look at your XML does it look like this...
Like this:

Code: Select all

                        <Event Name="Left" />
                        <Action>
                            XBMC.RemoteLeft()
                        </Action>
Livin wrote:you also changed these...

Can't find action: XBMC2.RemoteSkip +()
Can't find action: XBMC2.RemoteSkip -()
Can't find action: XBMC2.RemoteVol +()
Can't find action: XBMC2.RemoteVol -()
Can't find action: XBMC2.RemoteRecorded TV()
Can't find action: XBMC2.RemoteLive TV()
Can't find action: XBMC2.Remote*()
Yes as I posted a few posts ago, they weren't compatible with EventGhosts translation editor.

jonib
Last edited by jonib on Mon Apr 11, 2011 12:39 am, edited 3 times in total.
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

updated previous post
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
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 »

Livin wrote:The XBMCrepeat folder is the same - I did not change that.
That's weird as that's the only time I got a similar problem as you.
your current plugin XML looks like this... XBMC2.RemoteLeft()
your old plugin XML... EventGhost.PythonCommand('XBMC.RemoteLeft()')
Only time I got this EventGhost.PythonCommand change was when I renamed the plugin directory and EventGhost didn't find my plugin.
I have it working now but it took a while to figure it out.
I'm glad you could figure it out.

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