Page 10 of 15

Re: XBMC

Posted: Sat Apr 25, 2009 12:23 am
by jonib
byronl wrote:I'm not sure how easily fixable this is so don't kill yourself. I'd be happy to test any modifications you have.
OK, I finally had a chance to look at the problem, and I could swear that the directional buttons in "Remote" folder was working exactly like on XBMC on the XBOX, but now they wont do the stepforward and stepbackward :oops: .

There is definitely something wrong with my plugin :( , I'll try to fix it tomorrow, as I'm sure it did work before :cry:

Edit: in "Gamepad" folder dpadleft/dpadright/dpadup/dpaddown seems to work, so those can be used instead of righ/left/up/down from the "Remote" folder, until I fix the "remote" ones.

jonib

Re: XBMC

Posted: Mon Apr 27, 2009 2:42 pm
by JustGav
I've just started playing with EventGhost, I was hoping to use a small dedicated system with eventghost as the controller. I've had some good success with the XBMC plugin on my HTPC and getting my IR remote (MCE) working.

I was looking through the xbmcclient.py code and noticed that it has 127.0.0.1 as the IP address, is it possible.

1. To change this to the control the XBMC clients I have dotted round the house
2. And this is an assumption, I would have to create mutiple copies of the plugin and name each one to the relevant system I'm connecting to.


Am I going about it the wrong way or at least on the right track? :)

Thanks

Gav

Re: XBMC

Posted: Mon Apr 27, 2009 2:53 pm
by jonib
JustGav wrote:1. To change this to the control the XBMC clients I have dotted round the house
I did a test to control XBMC on the XBOX with the plugin and it worked, so yes you can control other XBMCs.
2. And this is an assumption, I would have to create mutiple copies of the plugin and name each one to the relevant system I'm connecting to.
Yes you need different plugins for different IPs, Unless the plugin is modified to accept IP setting.

You just need to change in "__init__.py" file:

Code: Select all

self.xbmc.connect()
to

Code: Select all

self.xbmc.connect(ip="192.168.0.100")
of course use the correct IP number :D

I'll take a look and see if it would be complicated to add the possibility to control several XBMCs, no promises :) .

jonib

Re: XBMC

Posted: Mon Apr 27, 2009 2:57 pm
by JustGav
jonib wrote: I'll take a look and see if it would be complicated to add the possibility to control several XBMCs, no promises :) .
jonib
Thanks for the quick response, I'll get on with trying this out now :)

It does indeed work very well :) Thanks for that... Is there anyway of getting feedback from XBMC such as now playing media information. I know it is accesible via the http-api but just wondering whether this is wrapped up in this as well.

Re: XBMC

Posted: Tue Apr 28, 2009 11:07 pm
by mfsav2
I was able to configure my remote and to launch XBMC without any issue.

The question is: can I change the meaning of an action (for example X10.Ok) depending on the status of XBMC?

I mean on the main menu OK must select but if I'm playing a video OK should show the cross menu.

Thanks,
Mf

Re: XBMC

Posted: Wed Apr 29, 2009 12:19 pm
by kricker
mfsav2 wrote:I was able to configure my remote and to launch XBMC without any issue.

The question is: can I change the meaning of an action (for example X10.Ok) depending on the status of XBMC?

I mean on the main menu OK must select but if I'm playing a video OK should show the cross menu.

Thanks,
Mf
Review your keymap.xml in the XBMC userdata folder.

Re: XBMC

Posted: Wed Apr 29, 2009 2:46 pm
by Livin
mfsav2 wrote:I was able to configure my remote and to launch XBMC without any issue.

The question is: can I change the meaning of an action (for example X10.Ok) depending on the status of XBMC?

I mean on the main menu OK must select but if I'm playing a video OK should show the cross menu.

Thanks,
Mf
the plug-in by jonib has different sections based on the keymap.xml... see if you can find one that fits your need and map that plug-in command to your X10.OK.

see if that works for you.

Re: XBMC

Posted: Wed Apr 29, 2009 5:28 pm
by kricker
mfsav2 wrote:...
I mean on the main menu OK must select but if I'm playing a video OK should show the cross menu.
He wants one button to perform different actions based on what screen XBMC is in. To do that cleanly, it should be done in the keymap.xml. First choose a default action you want the "ok" button to send to XBMC . Copy the keymap.xml from the XBMC/system folder. Then in the keymap.xml look in the <global> and <FullscreenVideo> section and change the "ok" command you selected earlier to open the OSD.

example:
in EG:
remote button "ok" => keyboard command "enter"

in keymap.xml

Code: Select all

  <global>
...
    <keyboard>
      <p>Play</p>
      <q>Queue</q>
      <f>FastForward</f>
      <r>Rewind</r>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <pageup>PageUp</pageup>
      <pagedown>PageDown</pagedown>
      <return>Select</return>
      <enter>Select</enter>
      <backspace>ParentDir</backspace>
      <m>ActivateWindow(PlayerControls)</m>
      <s>ActivateWindow(shutdownmenu)</s>
      <escape>PreviousMenu</escape>
      <i>Info</i>
      <menu>ContextMenu</menu>
      <c>ContextMenu</c>
      <space>Pause</space>
      <x>Stop</x>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <tab>FullScreen</tab>
      <printscreen>Screenshot</printscreen>
      <minus>VolumeDown</minus>
      <plus>VolumeUp</plus>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <backslash>ToggleFullScreen</backslash>
      <browser_home>XBMC.ActivateWindow(Home)</browser_home>
      <browser_favorites>ActivateWindow(Favourites)</browser_favorites>
      <browser_refresh></browser_refresh>
      <browser_search></browser_search>
      <launch_app1_pc_icon>ActivateWindow(MyPrograms)</launch_app1_pc_icon>
      <launch_media_select>XBMC.ActivateWindow(MyMusic)</launch_media_select>
      <play_pause>Pause</play_pause>
      <stop>Stop</stop>
      <volume_up>VolumeUp</volume_up>
      <volume_mute>Mute</volume_mute>
      <volume_down>VolumeDown</volume_down>
      <next_track>SkipNext</next_track>
      <prev_track>SkipPrevious</prev_track>
      <launch_mail></launch_mail>
      <key id="61620"></key> <!-- same as above, launch_mail, but using button code (based on vkey id) -->
      <home>FirstPage</home>
      <end>LastPage</end>
      <key id="65446">ParentDir</key>
      <key id="65459">Play</key>
    </keyboard>
  </global>
...
  <FullscreenVideo>
...
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <comma>StepBack</comma>
      <backspace>Fullscreen</backspace>
      <quote>SmallStepBack</quote>
      <opensquarebracket>BigStepForward</opensquarebracket>
      <closesquarebracket>BigStepBack</closesquarebracket>
      <return>OSD</return>
      <enter>OSD</enter>
      <m>OSD</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <l>NextSubtitle</l>      
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <escape>Fullscreen</escape>
    </keyboard>
  </FullscreenVideo>
...
Here are the defaults and you can see "enter" is already set to "select" in the <global> section and "OSD" in the <fullscreenvideo> section.

Re: XBMC

Posted: Wed Apr 29, 2009 9:23 pm
by mfsav2
[quote="kricker]
example:
in EG:
remote button "ok" => keyboard command "enter"
[/quote]

kricker
it is not clear for me what it means keybord command enter.

If I use the plugin I have the XBMC: actions not keyboards.

in the picture you can see the config.

Or I'm using it in the wrong way?

thanks for your help.

Re: XBMC

Posted: Wed Apr 29, 2009 11:14 pm
by kricker
You don't have to use the XBMC event action, you can send a system keyboard "enter" instead. Or use jonib's plugin which has keyboard actions as well. If you use the XBMC event action you can not make it do different actions (cleanly) based on what screen you are on. The event actions are direct commands to the XBMC event server. You could give a remote button 2 XBMC event actions, but it will always send both actions to whatever screen you are on. You might want to read up on what the event actions are. ;)

Re: XBMC

Posted: Thu Apr 30, 2009 10:46 am
by fluidman
where can i download jonib's plugin? on page 8 it says teh attached files arent online anymore??

Re: XBMC

Posted: Thu Apr 30, 2009 10:54 am
by mfsav2
thanks for the explanation... now is clear :)
I just have some issues to understand well all the options in the xml file.


regarding the plugin is not part of the EV setup?

M

Re: XBMC

Posted: Thu Apr 30, 2009 1:29 pm
by jonib
fluidman wrote:where can i download jonib's plugin? on page 8 it says teh attached files arent online anymore??
I don't know why the attachment is not available anymore but I have made a new thread for discussion of my XBMCRepeat plugin, with the same attachment until I update it.

To anybody interested in my XBMCRepeat plugin that is not the included XBMC plugin in EventGhost should continue any discussion HERE

jonib

Re: XBMC

Posted: Sun May 03, 2009 9:18 pm
by byronl
jonib wrote:
byronl wrote:I'm not sure how easily fixable this is so don't kill yourself. I'd be happy to test any modifications you have.
OK, I finally had a chance to look at the problem, and I could swear that the directional buttons in "Remote" folder was working exactly like on XBMC on the XBOX, but now they wont do the stepforward and stepbackward :oops: .

There is definitely something wrong with my plugin :( , I'll try to fix it tomorrow, as I'm sure it did work before :cry:

Edit: in "Gamepad" folder dpadleft/dpadright/dpadup/dpaddown seems to work, so those can be used instead of righ/left/up/down from the "Remote" folder, until I fix the "remote" ones.

jonib
Thanks for this. At least I'm not going mad, and there's a workaround! Perfect!

Byron

Re: XBMC

Posted: Thu May 07, 2009 11:55 pm
by Livin
remote directional pad is working fine for me... ?