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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

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: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

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

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

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

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

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
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: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
Post Reply