Page 58 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Oct 07, 2013 9:50 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Oct 07, 2013 10:24 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Nov 26, 2013 11:42 pm
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.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 12:35 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 1:13 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 1:38 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 1:46 pm
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 :)

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 2:06 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 2:39 pm
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 :)

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 27, 2013 4:10 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 14, 2013 2:31 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 14, 2013 2:57 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 14, 2013 4:53 pm
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"}]

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 14, 2013 7:18 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Dec 23, 2013 9:46 am
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