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.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
kenrad
Posts: 5
Joined: Sun Oct 06, 2013 2:52 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by kenrad »

jonib wrote:
kenrad wrote:I tried this and its not triggering the macro, I have the log box unchecked so it should be showing all events if I am correct?
I just tried and I get an "Main.play2fast2" event, so don't know why you wouldn't get that, sorry.

I ran this from the commandline:

Code: Select all

EventGhost.exe -e play2fast2
Edit: You are running EventGhost with the same user/permissions? When you want to create the event and when you have started EvenGhost normally.

jonib
Ok I started to get eventghost to see something when I send the commandline but its not triggering the macro it shows Task.Activated.EventGhost and I should be seein Main.play2fast2 correct?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

kenrad wrote:Ok I started to get eventghost to see something when I send the commandline but its not triggering the macro it shows Task.Activated.EventGhost and I should be seein Main.play2fast2 correct?
Yes you should be seeing "Main.play2fast2" in the log."Task.Activated.EventGhost" is an unrelated event from "Task Create/Switch events" plugin and is shown when the EventGhost window gets in focus.

Edit: Maybe you should post this in the General support forum, as this is not XBMC specific and others can help that are not interested in the XBMC2 plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by WoLpH »

jonib wrote:@blaher
Could you test the attached test version, it should at least detect when you start XBMC. Report any other problems you still have (or don't have) please.

jonib
Hi Jonib,

Any reason why you haven't released this as the next version yet? It's performing great for me and it has event listening which the old version doesn't support.
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

WoLpH wrote:Any reason why you haven't released this as the next version yet? It's performing great for me and it has event listening which the old version doesn't support.
I guess its the perfectionist in me, that prevents me from making the test version a proper release until I feel it's "finished". Unfortunately I haven't gotten anything done for a while and now a new XBMC is about to be released again. :oops:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by WoLpH »

jonib wrote:
WoLpH wrote:Any reason why you haven't released this as the next version yet? It's performing great for me and it has event listening which the old version doesn't support.
I guess its the perfectionist in me, that prevents me from making the test version a proper release until I feel it's "finished". Unfortunately I haven't gotten anything done for a while and now a new XBMC is about to be released again. :oops:

jonib
Haha, I know that problem.

It would help a lot if there would be an up to date "at your own risk" version linked in the start post though. It took me quite some time to find the latest release.

Perhaps Github would be an option?
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

WoLpH wrote:It would help a lot if there would be an up to date "at your own risk" version linked in the start post though. It took me quite some time to find the latest release.
Oops, there was a link for the test version but I had forgotten to update to the latest one. Now it should point to the latest test version. Thanks for bringing it to my attention.
Perhaps Github would be an option?
I don't think it would change anything, I usually post a new test version whenever I make a usable change in the plugin anyway.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by WoLpH »

jonib wrote:
WoLpH wrote:Perhaps Github would be an option?
I don't think it would change anything, I usually post a new test version whenever I make a usable change in the plugin anyway.
True, but it would allow others to help with development.

For example, at line 1169 to 1186 there are some tabs mixed with spaces. That's technically not allowed in Python. In this case it's not problematic luckily but not having to do all development alone can be nice :)
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

WoLpH wrote:True, but it would allow others to help with development.
Well the source is available, just post any improvements here and I can include it in the "official" plugin. And if there is more the the occasional code contribution I might consider using Github or something.
For example, at line 1169 to 1186 there are some tabs mixed with spaces. That's technically not allowed in Python.
That's a remnant of when I started to learn Python and wasn't used to indentation dependent languages. I have been meaning to fix it but as nobody complained before it was low priority. :wink:
In this case it's not problematic luckily but not having to do all development alone can be nice :)
Sure, but there have been no offers to help.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by WoLpH »

jonib wrote:
WoLpH wrote:True, but it would allow others to help with development.
Well the source is available, just post any improvements here and I can include it in the "official" plugin. And if there is more the the occasional code contribution I might consider using Github or something.
That's a bit of a chicken/egg problem I think. I've noticed that people (myself included) are much more eager to fix issues if they can fork it easily.

Beyond that there are a few other nice advantages like automatic docs through readthedocs.org, automatic testing with travis, automatic code coverage statistics with coveralls. For me personally it really improved my workflow quite a bit :)
In this case it's not problematic luckily but not having to do all development alone can be nice :)
Sure, but there have been no offers to help.
Well, I'd be happy to help but I do like to have pep8 and pyflakes requirements on all of my code to keep everything nice and readable :)
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Livin »

jonib,
As a long time, and very appreciative, user of your code - it would be great to see what WoLpH has in mind for new features. What can it hurt by posting to Git, or allowing WoLpH to?
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
gechu
Experienced User
Posts: 58
Joined: Sat Jan 07, 2012 10:35 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by gechu »

How do I send a playlist (music) to XBMC using JSON?

Tried the "player" and "open" command but it didn┬┤t work.

Any suggestions?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

gechu wrote:How do I send a playlist (music) to XBMC using JSON?

Tried the "player" and "open" command but it didn┬┤t work.
Both should be able to open a playlist if using correct syntax. This post has an example.
Any suggestions?
Check this thread in the XBMC forum if it's related to your problem.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
gechu
Experienced User
Posts: 58
Joined: Sat Jan 07, 2012 10:35 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by gechu »

Splendid Jonib!

The file type association was set to "picture". Removed it using advancedsettings.xml and it worked.

So, add namespace "player", and method "open". Syntax for qualifying the file looks like this:

Code: Select all

[{"file":"c:\\Users\\user\\Desktop\\myPlayList.m3u"}]
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

gechu wrote:The file type association was set to "picture". Removed it using advancedsettings.xml and it worked.
Great. Hopefully there will be a fix in XBMC in the future for the "Defaults to picture mode" for some playlist types, as its kinda inconvenient.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jippo
Posts: 4
Joined: Mon Dec 23, 2013 9:23 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jippo »

Hi there

Firstly I want to thank Jonib for his fantastic work on this plugin. I've been using XBMC2 for that last year and it has really made things much easier for me.
I have a rather unique problem, and I have searched this thread but haven't really found much help on this issue.
I am running two instances of XBMC on my local machine. One XBMC instance runs on my pc via dvi, and another runs on our tv via hdmi. My goal is two be able to use each XBMC separately on both screens at the same time.
I have setup two XBMC2 profiles in Eventghost, and each XBMC installation is running on a separate port.

Both XBMC instances will happily run at the same time on each respective screen, but I am having trouble controlling them. If I open up each instance of XBMC, both the remotes will only work on the first run instance of XBMC.
For example if I open XBMC on my pc and afterwards open XBMC on the tv, both the remotes will only work on the pc XBMC. If I close the pc XBMC, then both remotes start working on the tv XBMC.
Is there a way to specify which XBMC2 profile controls which instance of XBMC? I thought having each XBMC running on different port would do this, so is there a way to get around this issue?

Thanks
Post Reply