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

piipes wrote:How i can get xbmc power saving/iddle command to eventghost? I want to run some commands before pc goes to sleep.
To get events from XBMC you need to use the last test version of the plugin here and instructions here.

As it is a test version there are bugs and I might change how stuff works in later versions, Unfortunately I haven't been able to work on the plugin after the new year so don't know when I might get to do a new test version.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
gquiring
Posts: 9
Joined: Wed Feb 01, 2012 7:45 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by gquiring »

I'm still in the process of reloading my system and XBMC Frodo release seems to have some built in IR now. With Event Ghost running I am getting double key presses for arrows and other functions. The EG logs shows one keypress but XBMC is skipping every other menu when I use the arrow keys. Should I disable them in my EG plugin or is there a simple way to tell XBMC to not use their internal IR?
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 »

gquiring wrote:I'm still in the process of reloading my system and XBMC Frodo release seems to have some built in IR now.
As far as I know, there is no direct IR support in XBMC.
With Event Ghost running I am getting double key presses for arrows and other functions. The EG logs shows one keypress but XBMC is skipping every other menu when I use the arrow keys. Should I disable them in my EG plugin or is there a simple way to tell XBMC to not use their internal IR?
Usually there is a double mapping of buttons in EventGhost or the MCE driver is generating extra keystrokes and that needs to be configured so EventGhost is the only one that gets the events.

I saw in your config you posted before that you don't use the XBMC2\Buttons\Remote buttons, I would recommend that you map the buttons in the Remote folder first and if there are any actions you use that is missing you map them from the XBMC2\Actions folder.
As the XBMC2\Buttons\Remote buttons are mapped in XBMC differently based on what you are doing in XBMC.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
gquiring
Posts: 9
Joined: Wed Feb 01, 2012 7:45 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by gquiring »

It's very weird, if I stop Event Ghost, XBMC is working with my remote on basic commands like arrows and play. I disabled the MCE remote in EG, got an error and re-enabled it and now I don't get the double key strokes. But Pause is broken for some reason. I will have to look into that one.
piipes
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by piipes »

I use that xbmc2 remote folder, becouse i want to use different action with different xbmc screen. So i have to modify that remote.xml too.
example i use left and rigt button to adjust volume, when screen is fullscreen video.
Why you cant do same with eventghost? Last time i try that, those commands are same for all screens.

Hope you understand, my english is really poor.
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 »

Hmm, weird I didn't get a notify for the previous message.
piipes wrote:I use that xbmc2 remote folder, becouse i want to use different action with different xbmc screen. So i have to modify that remote.xml too.
example i use left and rigt button to adjust volume, when screen is fullscreen video.
The remote.xml file in XBMC defines what the actions in XBMC2\Buttons\Remote does, and is designed to work when using a remote. For example the arrow buttons will do different things in different parts of XBMC. But if you want the buttons to work differently then you need to edit the remote.xml to your liking.
Why you cant do same with eventghost?
I'm not sure what you mean here?.
Last time i try that, those commands are same for all screens.
XBMC2\Actions are the same but XBMC2\Buttons\Remote should be different based on Remote.xml. Or did you mean something else here?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
piipes
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by piipes »

No. I just think that maybe you can add some easy way... So difficult to modify that remote.xml.

I like to see all xbmc screens in eventghost, and then i just can drag&drop commands. Maybe plugin could write that remote.xml?

btw, that new plugin and JSON-RPC does not work with my setup. I use latest xbmc nightlies.
Can't find that setbroadcast command, i try to clik update button.

viewtopic.php?f=9&t=1562&start=330#p21219
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 »

piipes wrote:No. I just think that maybe you can add some easy way... So difficult to modify that remote.xml.

I like to see all xbmc screens in eventghost, and then i just can drag&drop commands. Maybe plugin could write that remote.xml?
I have planned to make it possible to configure the remote.xml from the plugin, I haven't looked into how yet as I need to finish some other stuff first like the JSON events and other stuff.
btw, that new plugin and JSON-RPC does not work with my setup. I use latest xbmc nightlies.
I haven't tested any nightlys recently, what don't work?
Can't find that setbroadcast command, i try to clik update button.

viewtopic.php?f=9&t=1562&start=330#p21219
XBMC 12 don't support the HTTPAPI anymore so that can't be fixed in the plugin. As far as I know the broadcast events are still supported in XBMC 12 but apparently there is no way to activate them at the moment. But as long as you use the latest test version of the plugin JSON-RPC notifications (events) should work, unless there has been changes after RC3.

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
I just checked and looks like my JSON is working fine.

btw... Are you planning to create a Frodo only version? (ripping out HTTPAPI code)

Do you know if XBMC has enabled JSON to send different notifications for TV, Video Files, Movies?
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:btw... Are you planning to create a Frodo only version? (ripping out HTTPAPI code)
I'll try to support both XBMC 11 and 12, as there don't seem to be to many differences. And I'll keep HTTPAPI as it's more or less finished, I'll just indicate it's not supported on Frodo.
Do you know if XBMC has enabled JSON to send different notifications for TV, Video Files, Movies?
I haven't seen anything about them being added but I have not tested the final version of XBMC 12 and have not tested any nightly versions. So I can't be sure, The XBMC Wiki don't show any events like that.

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 »

Since the JSONAPI can be queried to grab more info, can you build into the plugin a method that automatically grabs relevant info about what is playing?

Things like...

File type (MKV, AVI, MP3, etc)
Name of Song / Movie / TV Show
What XBMC 'Library' the item is from

... these would help us trigger the proper Macros in EG.
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:Since the JSONAPI can be queried to grab more info, can you build into the plugin a method that automatically grabs relevant info about what is playing?
That's definitely the plan, I just haven't figured out how to best handle it.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tr0nllam
Posts: 3
Joined: Tue Feb 05, 2013 10:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tr0nllam »

I'm having a strange problem with the XBMC2 plugin. My Play macro will not work when XBMC is the focused window. When I am in another program, I can play/pause XBMC without a problem, but when I change the focus to XBMC, it does nothing. I have a few other macros setup and they all work fine with and without focus. Any ideas?
tr0nllam
Posts: 3
Joined: Tue Feb 05, 2013 10:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tr0nllam »

I'm having a strange problem with the XBMC2 plugin. When I try to play/pause a video while XBMC has focus, it does nothing, but if I'm in another program, with XBMC in the background, it works perfectly. I have a few other macros setup with XBMC2 and they work correctly whether or not XBMC has focus. I tried adding all versions of the macro (Play and Pause, Remote and MediaPlaying), but none of them work. Sometimes, I have noticed that it will register a double press, but most of the time it seemingly does nothing. Any ideas?
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 »

tr0nllam wrote:I'm having a strange problem with the XBMC2 plugin. My Play macro will not work when XBMC is the focused window. When I am in another program, I can play/pause XBMC without a problem, but when I change the focus to XBMC, it does nothing. I have a few other macros setup and they all work fine with and without focus. Any ideas?
Without seeing your EventGhost log and your EventGhost config file, I can't say what the problem is.

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