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.

XBMC

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

Post by Livin »

just curious... how is your plug-in different than using KB emulation 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
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: XBMC

Post by miljbee »

KB Emu send keyboard keys, This plugin send remote keys. Have a look at the keymap.xml, or search for it in the XBMC wiki, you will understand.
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: XBMC

Post by miljbee »

jonib wrote:
miljbee wrote:Except that I might have found a few more remote buttons on the wiki than you (I'm not sure, because i'm at work and don't have the code with me)
So where are the extra remote buttons you found? :twisted:
It Seems I was wrong ! :oops:
jonib wrote: Unfortunately you chose not to include any actions like ShutdownMenu and AudioDelayMinus that I need so I'll have to keep my version, maybe release it as another XBMC plugin also he he.
Fortunately, I have choosen to include only remote buttons in this new plugin. You can use this new plugin and the old one all together. Putting in the same plugin, every input command that XBMC is able to process would be impossible to use.
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMC

Post by jonib »

miljbee wrote:Putting in the same plugin, every input command that XBMC is able to process would be impossible to use.
I'm planning to do this, why do you think it would be impossible to use?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: XBMC

Post by miljbee »

jonib wrote:
miljbee wrote:Putting in the same plugin, every input command that XBMC is able to process would be impossible to use.
I'm planning to do this, why do you think it would be impossible to use?

jonib
because, there is hundreds of different input commands. Actions, remote keys, Keyboard keys, joysticks, ...

If all the input commands are displayed at the same level in EventGhost, it will be difficult to use. I Don't know eg in details. perhaps there is a way to indent the plugin actions to sort them and lighten the interface. But if there is no way to do this, then I think you should go with several plugins.

I will wait your plugin before asking bitmonster to include mine in the official distrib. Who knows, if yours is better ...
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMC

Post by jonib »

miljbee wrote:If all the input commands are displayed at the same level in EventGhost, it will be difficult to use. I Don't know eg in details. perhaps there is a way to indent the plugin actions to sort them and lighten the interface.
Aha, OK sorry I thought you looked at my code, I separated remote buttons and actions in separate folders, check my code specifically the constant holding the button info and the one holding the actions info.
Edit: I added below the code from my plugin that makes a folder "Remote" for the remote buttons, there is a similar line for actions folder.

Code: Select all

REMOTE_BUTTONS = (
(eg.ActionGroup, "Remote", "Remote", None, (
I will wait your plugin before asking bitmonster to include mine in the official distrib. Who knows, if yours is better ...
At the moment my plugin only has some actions that you don't have and I have separated them in folders and that is the version I attached before in this thread.

Right now I'm trying to improve repeating buttons but I'm not sure if its the plugin supplying my remote buttons (HauppaugeIR) or EventGhost or the XBMC plugin that is giving me problems.

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

Post by Livin »

jonib wrote:
miljbee wrote:Except that I might have found a few more remote buttons on the wiki than you (I'm not sure, because i'm at work and don't have the code with me)
So where are the extra remote buttons you found? :twisted:

Unfortunately you chose not to include any actions like ShutdownMenu and AudioDelayMinus that I need so I'll have to keep my version, maybe release it as another XBMC plugin also he he.

jonib
I use many 'direct access' actions also. Lets all combine our XMLs to make a unified config. I'm using USB-UIRT so my code will be different than regular MCE receivers (even though I use a Harmony with MCE codes).

I've not been able to get the latest version of EG to work. I just spent 30mins, again, trying to get it to work and remapping all my button presses - using miljbee's plug-in. No go. But the older version works fine for me.

Maybe Bitmonster will chime in on this and try to help us get some more integration with XBMC... but he seems like more of a stranger to the forums than any of us.
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
eriksmith200
Posts: 3
Joined: Tue Mar 31, 2009 12:16 pm

Re: XBMC

Post by eriksmith200 »

Is it possible to have a macro for CleanLibrary?
macchina
Posts: 3
Joined: Wed Apr 08, 2009 11:53 am

Re: XBMC

Post by macchina »

Hi!

I'm using EG with the igorplug to control XBMC. First at all: Great Job!! Many Thanks!
I've found out, that the following XBMC-command are currently not supported in the eg-xbmc-plugin:

ActivateWindow(PlayerControls)

I tried to modify the __init__.py, but unfortunatly with no success....
("PlayerControls","Show player controls","Show the player controls.","ActivateWindow(PlayerControls)"),

How can I add this function?

Best Regards
Ernst
kirs
Plugin Developer
Posts: 23
Joined: Tue Sep 30, 2008 4:15 pm

Re: XBMC

Post by kirs »

Livin wrote: I use many 'direct access' actions also. Lets all combine our XMLs to make a unified config. I'm using USB-UIRT so my code will be different than regular MCE receivers (even though I use a Harmony with MCE codes).

I've not been able to get the latest version of EG to work. I just spent 30mins, again, trying to get it to work and remapping all my button presses - using miljbee's plug-in. No go. But the older version works fine for me.

Maybe Bitmonster will chime in on this and try to help us get some more integration with XBMC... but he seems like more of a stranger to the forums than any of us.
I think the proper way to go about the desperate config options (actions vs remote buttons) is probably to have a config dialog for the plugin where you can select action type.

We really don't need to introduce a new plugin for each input type, it would really get ridiculous as someone would come along one day and ask for a joystick plugin, for instance.

If people think this is a good approach, I would be happy to modify the existing plugin to support all input types. Also, I notice there's been a lot of requests for missing actions. I'll try and cull the thread an add the missing mappings to the existing plugin.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMC

Post by Livin »

sounds good.
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: XBMC Repeat

Post by jonib »

I have attached probably the most complete XBMC plugin :D based on code from the original XBMC plugin.
This plugin needs EventGhost 0.3.7 or later.
If you use a different XBMC plugin it is best to put this in another directory as it has a different name and commands.

I have added all Remote and gamepad buttons, most actions and windows, organized in subfolders based on these categories from XBMCs site.
Image

The plugin uses a unmodified xbmcclient.py the same as the original XBMC plugin.

jonib

Edit: Attachments removed
Last edited by jonib on Thu Apr 30, 2009 1:10 pm, edited 2 times in total.
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: XBMC

Post by Livin »

jonib,
I suggest a readme to note a few things...

a) only works with the latest EG posted. 0.3.7
b) If already using a different XBMC plugins, must install in different folder - do not overwrite existing plugins. (this causes the folders not to be installed)

One issue so far...

Code: Select all

Can't find action: XBMC.PageUp()
Can't find action: XBMC.PageDown()
Can't find action: XBMC.FastForward()
Can't find action: XBMC.Rewind()
Can't find action: XBMC.SkipNext()
Can't find action: XBMC.SkipPrevious()
Can't find action: XBMC.VolumeUp()
Can't find action: XBMC.VolumeDown()
Can't find action: XBMC.Zero()
Can't find action: XBMC.One()
Can't find action: XBMC.Two()
Can't find action: XBMC.Three()
Can't find action: XBMC.Four()
Can't find action: XBMC.Five()
Can't find action: XBMC.Six()
Can't find action: XBMC.Seven()
Can't find action: XBMC.Eight()
Can't find action: XBMC.Nine()
Can't find action: XBMC.Star()
Can't find action: XBMC.Hash()
Can't find action: XBMC.PreviousMenu()
Can't find action: XBMC.ContextMenu()
Can't find action: XBMC.ParentDir()
Can't find action: XBMC.Repeat()
Can't find action: XBMC.BigSkipBackward()
Can't find action: XBMC.BigSkipForward()
Can't find action: XBMC.SmallSkipBackward()
Can't find action: XBMC.SmallSkipForward()
Can't find action: XBMC.PartyMode()
Can't find action: XBMC.Queue()
Can't find action: XBMC.Random()
Can't find action: XBMC.Repeat()
Can't find action: XBMC.LastFMLove()
Can't find action: XBMC.LastFMBan()
Can't find action: XBMC.PlayDVD()
Can't find action: XBMC.UpdateVideoLibrary()
Can't find action: XBMC.UpdateMusicLibrary()
Can't find action: XBMC.Home()
Can't find action: XBMC.MyVideos()
Can't find action: XBMC.MyMusic()
Can't find action: XBMC.MyPictures()
Can't find action: XBMC.Weather()
Can't find action: XBMC.Settings()
Can't find action: XBMC.Favorites()
Can't find action: XBMC.SystemInfo()
Can't find action: XBMC.Quit()
Can't find action: XBMC.Shutdown()
Can't find action: XBMC.Powerdown()
Can't find action: XBMC.Suspend()
Can't find action: XBMC.Hibernate()
Can't find action: XBMC.Reset()
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: XBMC

Post by jonib »

Livin wrote:a) only works with the latest EG posted. 0.3.7
Your right.
b) If already using a different XBMC plugins, must install in different folder - do not overwrite existing plugins. (this causes the folders not to be installed)
Whether you overwrite an existing XBMC plugin or put it in a separate directory the plugin needs to be added to get the default folders/commands. I'll add more details to my post, thanks.
One issue so far...

Code: Select all

Can't find action: XBMC.PageUp()
..
Can't find action: XBMC.Reset()
My plugin uses different commands to any other XBMC plugin so old commands won't work sorry.

Did the plugin work for you otherwise?

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

Post by Livin »

Figured out the errors were coming from the old actions that I had not disabled.

Not had a chance to try it yet... will try it later today.
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
Post Reply