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 Livin » Sun Mar 25, 2012 3:20 pm

I get it... I know a bit about coding, networking ,etc. I don't know anything about the XBMC notifications... I'm assuming they require a connection and cannot be set to network broadcast or directed but connection-less?
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Sun Mar 25, 2012 6:41 pm

jonib,
I forgot... do you have the auto-connect version?

I use both XBMC and WMC7 - closing each when not in use to avoid conflicts and lag. EG is always open, since it controls everything. This means when XBMC re-opens your EG plugin will need to detect XBMC started and auto-connect... which is is not doing now and thus not recording any JSON notifications.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Sun Mar 25, 2012 6:55 pm

Livin wrote:I forgot... do you have the auto-connect version?
Not finished yet.

I use both XBMC and WMC7 - closing each when not in use to avoid conflicts and lag. EG is always open, since it controls everything. This means when XBMC re-opens your EG plugin will need to detect XBMC started and auto-connect... which is is not doing now and thus not recording any JSON notifications.
The last version I posted don't have any JSON-RPC notifications, it only has the older Broadcast events, and those should work whenever XBMC is running.

If they stop working there is probably a bug that disables the events, I've seen it happen but haven't been able to find out why.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Sun Mar 25, 2012 11:49 pm

Looks like the JSON notifications will be required for me for the events to be usable.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Mar 26, 2012 8:10 am

Livin wrote:Looks like the JSON notifications will be required for me for the events to be usable.
I'll see if I can get out a test version with JSON support this week.

Ware you able to test if you got the XBMC.StartUp event when starting XBMC? as that's something needed even if using the JSON notifications.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Mon Mar 26, 2012 3:15 pm

my EG shows it is connecting to XBMC with both HTTP & JSON.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Mar 26, 2012 3:27 pm

Livin wrote:my EG shows it is connecting to XBMC with both HTTP & JSON.
Unfortunately the plugin is lying :shock: it will say that even when XBMC is not running. I will change that to something more correct.

I would still like to know if you are getting the XBMC.StartUp event when XBMC is starting.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Mon Mar 26, 2012 4:33 pm

It seems that the plugin is not retaining the settings.. The JSONAPI section is blank. XBMC is not running but I would expect it to still retain (cache) the settings, it does not. When I select 'update' it throws the error as expected (since XBMC is not running).
Attachments
Capture.JPG
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Mar 26, 2012 7:37 pm

Livin wrote:It seems that the plugin is not retaining the settings.. The JSONAPI section is blank. XBMC is not running but I would expect it to still retain (cache) the settings, it does not. When I select 'update' it throws the error as expected (since XBMC is not running).
Have you pressed the update button while XBMC is running? Then it should be cached and available when XBMC is not running.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Mon Mar 26, 2012 10:57 pm

jonib wrote:
Livin wrote:It seems that the plugin is not retaining the settings.. The JSONAPI section is blank. XBMC is not running but I would expect it to still retain (cache) the settings, it does not. When I select 'update' it throws the error as expected (since XBMC is not running).
Have you pressed the update button while XBMC is running? Then it should be cached and available when XBMC is not running.

jonib


Yes, this is why I mentioned it. It worked the first time I tried it - thus XBMC was running. Today, thinking it would be cached - it was not.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Mon Mar 26, 2012 11:15 pm

Livin wrote:Yes, this is why I mentioned it. It worked the first time I tried it - thus XBMC was running. Today, thinking it would be cached - it was not.
Check if you have a jsonrpc.dat in directory %appdata%\EventGhost\plugins\XBMC2, If not press the Update button while XBMC is running, now check the directory again is the file there now? and check it again after you restart EventGhost.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Mon Mar 26, 2012 11:33 pm

the file is there after I clicked Update - and it caches now.

I don't see the log showing JSON connected... I tried setting it to Introspect and SetConfiguration.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Mar 27, 2012 8:59 am

Livin wrote:the file is there after I clicked Update - and it caches now.
Good.

I don't see the log showing JSON connected... I tried setting it to Introspect and SetConfiguration.
JSON connected? Only connected message you should get is when you start the plugin.
Is the commands not working? For example JSONRPC.Ping should give Result Pong, if show in log is checked.

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Tue Mar 27, 2012 3:37 pm

Yes, it always shows JSON-connected ... but you said this is not accurate.

When I open the JSONAPI section and click the 'test' button it spews a ton of code into the log. If I select Ping, it does respond with "pong" in the log.
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: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Mar 27, 2012 4:06 pm

Livin wrote:Yes, it always shows JSON-connected ... but you said this is not accurate.
Correct.

What did you mean by this:
I don't see the log showing JSON connected... I tried setting it to Introspect and SetConfiguration.


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

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 2 guests