Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Pako » Mon Mar 28, 2011 6:07 am

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Wed Mar 30, 2011 12:29 pm

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: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Apr 04, 2011 9:20 pm

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Pako » Tue Apr 05, 2011 9:15 am

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Apr 05, 2011 10:52 am

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby abauomy » Fri Apr 08, 2011 12:29 am

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

THX :D
abauomy
 
Posts: 1
Joined: Fri Apr 08, 2011 12:26 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jannypan » Fri Apr 08, 2011 1:15 am

if I associate it to two action EV will execute both of them independently of the state of the XBMC.
jannypan
 
Posts: 3
Joined: Thu Apr 07, 2011 7:06 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Fri Apr 08, 2011 10:08 am

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: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Fri Apr 08, 2011 10:11 am

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Sun Apr 10, 2011 8:46 pm

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
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Sun Apr 10, 2011 9:13 pm

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Sun Apr 10, 2011 9:47 pm

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
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Sun Apr 10, 2011 10:05 pm

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Sun Apr 10, 2011 10:08 pm

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
User avatar
Livin
Experienced User
 
Posts: 790
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Apr 11, 2011 12:56 am

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
jonib
Plugin Developer
 
Posts: 1237
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest