Page 15 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Mar 28, 2011 6:07 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Mar 30, 2011 12:29 pm
by jonib
Pako wrote:Is it enough?
I think so, thanks.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Apr 04, 2011 9:20 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Apr 05, 2011 9:15 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Apr 05, 2011 10:52 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Apr 08, 2011 12:29 am
by abauomy
Thank you for good work :)
I just need help to send notification to XBMC with last added Ep

THX :D

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Apr 08, 2011 1:15 am
by jannypan
if I associate it to two action EV will execute both of them independently of the state of the XBMC.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Apr 08, 2011 10:08 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Apr 08, 2011 10:11 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Apr 10, 2011 8:46 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Apr 10, 2011 9:13 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Apr 10, 2011 9:47 pm
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.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Apr 10, 2011 10:05 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Apr 10, 2011 10:08 pm
by Livin
updated previous post

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Apr 11, 2011 12:56 am
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