Page 23 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Jan 26, 2012 8:49 am
by jonib
macchina wrote:is it correct that eg.global-vars are not possible in the jsonrpc parameters?
I think it should work with double braces {{python code}} I had to change it otherwise the JSON parameters wouldn't work.

{"playerid":{{eg.globals.xbmcplayerid}} }

Hopefully I can do the documentation for this stuff someday. :cry:

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Feb 01, 2012 7:56 pm
by azigorr
Hello!
If anybody know way to add
timeseekforward, timeseekbackward, bigtimeseekforward, bigtimeseekbackward inside list of command xbmc plugin?
Thank you.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Feb 01, 2012 9:41 pm
by jonib
azigorr wrote:timeseekforward, timeseekbackward, bigtimeseekforward, bigtimeseekbackward inside list of command xbmc plugin?
If you are using a remote and use the macros from XBMC2\Buttons\Remote folder, then Right,Left,Up and Down buttons should be those actions while watching a video.
If you want the direct actions they are in XBMC2\Actions\Fullscreen video folder StepForward, StepBack, BigStepForward and BigStepBack.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Feb 29, 2012 10:01 am
by JLBA
Hello,
A little message to thank you :) I started using EventGhost and your plugin yesterday and after struggling a bit with the configuration (not due to your plugin I must say but to me :oops: I was used to a remote software that send key presses to xbmc so I kept editing the keyboard.xml instead of the remote.xml :roll: ).
Anyway, now, all the buttons of my remote wonder do exactly what I want in every XBMC contexts, so thank you very much !!! :)

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Mar 01, 2012 5:07 am
by jonib
JLBA wrote:A little message to thank you :)
Thanks. :D
I started using EventGhost and your plugin yesterday and after struggling a bit with the configuration (not due to your plugin I must say but to me :oops: I was used to a remote software that send key presses to xbmc so I kept editing the keyboard.xml instead of the remote.xml :roll: ).
Why did you need to edit the remote.xml?
Anyway, now, all the buttons of my remote wonder do exactly what I want in every XBMC contexts, so thank you very much !!! :)
Yes, that's the idea 8)

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Mar 01, 2012 12:20 pm
by JLBA
jonib wrote:Why did you need to edit the remote.xml?
I don't use the default mapping for all contexts in XBMC (for example, I have a key set in <FullscreenVideo> to call xbmc.ActivateWindow(osdaudiosettings) and one to call xbmc.ActivateWindow(osdvideosettings). I think I could have used one of the function provided by XBMC2 to the same result, but editing the remote.xml allows me to use the remote keys for other functions when I am not in the context <FullscreenVideo>. And of course as my previous remote software (intelliremote) sent key presses, I kept messing around with the keyboard.xml file instead of editing the remote.xml one to match my "custom" keyboard.xml :oops:
But now, everything works well :D Again, a big thank you ! :D

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Mar 01, 2012 4:58 pm
by jonib
JLBA wrote:I don't use the default mapping for all contexts in XBMC (for example, I have a key set in <FullscreenVideo> to call xbmc.ActivateWindow(osdaudiosettings) and one to call xbmc.ActivateWindow(osdvideosettings).
Cool, I have added xbmc.ActivateWindow(osdvideosettings) to a OSD menu in EventGhost for quick access too. But it's not as flexible.
I think I could have used one of the function provided by XBMC2 to the same result, but editing the remote.xml allows me to use the remote keys for other functions when I am not in the context <FullscreenVideo>.
You get more fine-grained control in the .XML file, as it's harder to know where in XBMC you are in EventGhost. I have thought of adding some kind of way to create a custom .xml file to use in XBMC from my plugin but it's probably more work than I would like as I have other stuff I would like to add too. :|
But now, everything works well :D Again, a big thank you ! :D
And that's the important part, it works :D and if you have any ideas/feature requests don't hesitate to post.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Mar 17, 2012 3:57 pm
by jonib
Thanks to this post I finally got motivated to work on events support.

Attached is a test version of my XBMC2 plugin that adds event broadcast support.

The event support is not finished and I expect there are bugs, so please if you want to test it use a backup copy of your EventGhost config as I expect I will change stuff before the feature is complete.

The events feature will need to be activated in the XBMC2 plugin options.

Unfortunately there seems to be a problem with repeated events in at least the two versions of XBMC I have tested, but XBMC from 2009 on my XBOX don't have the problem. If you always get 3 events when there should be one try the option "Event workaround" in the plugin options.

I would appropriate any feedback especially if you get error messages.

Edit: You need to activate events support in XBMC using the HTTPAPI: SetBroadcast action in the Experimental folder, a 1 or 2 in the parameter edit field will activate it.


jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 12:27 am
by Livin
I'm not getting anything in the drop-down list for categories...

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 7:34 am
by jonib
Livin wrote:I'm not getting anything in the drop-down list for categories...
Did you try the Update button? as it needs to download the command info from XBMC website. I know it's not super obvious. :twisted: I'll try to change that when I'm done with events.

Edit4: I forgot you can just type in the SetBroadcast command in the Command editbox and it should work.
Edit5: With a quick fix from Ned Scott the Update button works again.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 2:21 pm
by Livin
I tried the update button but it threw errors.

I don't see a "fix"?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 3:21 pm
by jonib
Livin wrote:I tried the update button but it threw errors.
Sorry I knew I removed to much of my edits. :cry: There was a error on the XBMC Wiki that is used to get the command info.
I don't see a "fix"?
The fix was on the Wiki so the Update button should work now without you having to do anything, like magic. :lol:

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 3:32 pm
by Livin
It still does not work... When I choose Broadcast in the Category list - the drop-down does not have the proper option (even after I used UPDATE button a few times) -- also, it does not allow me to type anything into the command text box.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 3:42 pm
by jonib
Livin wrote:It still does not work... When I choose Broadcast in the Category list - the drop-down does not have the proper option (even after I used UPDATE button a few times) --
Damn, back to the codemine, something else must have changed on the Wiki page.
also, it does not allow me to type anything into the command text box.
You can't edit the first Command combobox? not the Command syntax one.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 20, 2012 3:57 pm
by Livin
I cannot change/edit the Command Syntax box.