Page 8 of 15

Re: XBMC

Posted: Sat Mar 28, 2009 12:57 am
by Livin
just curious... how is your plug-in different than using KB emulation in EG?

Re: XBMC

Posted: Sat Mar 28, 2009 8:32 am
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.

Re: XBMC

Posted: Sat Mar 28, 2009 2:21 pm
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.

Re: XBMC

Posted: Sat Mar 28, 2009 3:06 pm
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

Re: XBMC

Posted: Sat Mar 28, 2009 8:03 pm
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 ...

Re: XBMC

Posted: Sat Mar 28, 2009 8:44 pm
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

Re: XBMC

Posted: Sun Mar 29, 2009 11:10 pm
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.

Re: XBMC

Posted: Tue Mar 31, 2009 12:26 pm
by eriksmith200
Is it possible to have a macro for CleanLibrary?

Re: XBMC

Posted: Wed Apr 08, 2009 12:02 pm
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

Re: XBMC

Posted: Sun Apr 12, 2009 12:27 pm
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.

Re: XBMC

Posted: Sun Apr 12, 2009 2:48 pm
by Livin
sounds good.

Re: XBMC Repeat

Posted: Sun Apr 12, 2009 5:31 pm
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

Re: XBMC

Posted: Sun Apr 12, 2009 5:49 pm
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()

Re: XBMC

Posted: Sun Apr 12, 2009 6:28 pm
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

Re: XBMC

Posted: Sun Apr 12, 2009 6:45 pm
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.