Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Thu Jan 26, 2012 8:49 am

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby azigorr » Wed Feb 01, 2012 7:56 pm

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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Wed Feb 01, 2012 9:41 pm

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby JLBA » Wed Feb 29, 2012 10:01 am

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 !!! :)
JLBA
 
Posts: 2
Joined: Wed Feb 29, 2012 9:54 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Thu Mar 01, 2012 5:07 am

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby JLBA » Thu Mar 01, 2012 12:20 pm

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
JLBA
 
Posts: 2
Joined: Wed Feb 29, 2012 9:54 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Thu Mar 01, 2012 4:58 pm

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Sat Mar 17, 2012 3:57 pm

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.
XBMC2 broadcast.PNG


jonib
Attachments
__init__.py
Test version with "Events" support
(77.67 KiB) Downloaded 80 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Tue Mar 20, 2012 12:27 am

I'm not getting anything in the drop-down list for categories...
Attachments
Capture.JPG
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Mar 20, 2012 7:34 am

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Tue Mar 20, 2012 2:21 pm

I tried the update button but it threw errors.

I don't see a "fix"?
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Mar 20, 2012 3:21 pm

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Tue Mar 20, 2012 3:32 pm

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.
Attachments
Capture.JPG
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby jonib » Tue Mar 20, 2012 3:42 pm

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
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 714
Joined: Thu Mar 26, 2009 9:33 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Postby Livin » Tue Mar 20, 2012 3:57 pm

I cannot change/edit the Command Syntax box.
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
User avatar
Livin
Experienced User
 
Posts: 749
Joined: Wed Oct 08, 2008 4:56 am

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron