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.
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 »

derelict wrote:There's something else... and i'm not quite sure if it has to do with the recent Change/fix:

When i stop (and maybe start) XBMC... i get tons auf Messages about XBMC2.player.stop or XBMC2.onquit (or similar). Causing a very high CPU load for quite a few seconds.
Hmm, I seem to remember something about an infinite loop problem, that might be related to why I disabled the events when there was a problem. So my fast fix might not be the solution. :lol:

I'll try to move to using Frodo as my main XBMC version, that might help me discover more problems.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
derelict
Posts: 38
Joined: Sun Mar 01, 2009 12:55 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by derelict »

:-) I'm in the same Boat: Migrating to Frodo while managing three XBMC Installations in the whole House with Eventghost :-)

Let me know... if i can help you out with tests and/or logs !

Dere
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 »

derelict wrote:Let me know... if i can help you out with tests and/or logs !
Just report any problems you see with relevant logs, like you have done is good enough.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
newtomotorola
Posts: 1
Joined: Wed Nov 21, 2012 4:08 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by newtomotorola »

Hi All,

With xbmc eden the eventghost event receiver plugin worked a treat, i have noticed with frodo that it does not any more, i have tried using the xbmc2 plugin to receive events from xbmc but in order for it to receive events from my xbmc machine eventghost needs to be loaded after my xbmc machine is awake.

I have eventghost running on a seperate pc that is on 24x7, this pc also controls my home lighting so i need eventghost to listen for xbmc's play and stop events in order to activate or deactivate the lights in the theater room.

It worked well with eden using the event receiver plugin, just want to know if anybody has a potential solution or possibly a way for the xbmc2 plugin to recognize when the xbmc pc is awake and make the connection.

Thanks
ecafracs
Posts: 2
Joined: Wed Nov 21, 2012 8:51 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by ecafracs »

Hi,

Thank you for your efforts on this. It's brilliant!

I've got everything working okay except the pause.

I'm running Frodo Beta 1. Pause doesn't seem to work for both Videos and Music.

Any ideas?
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 »

ecafracs wrote:Thank you for your efforts on this. It's brilliant!
Thanks.
I'm running Frodo Beta 1. Pause doesn't seem to work for both Videos and Music.
I did a quick test and pause seems to work correctly. Post your EventGhost config file, as I'm suspecting you have double assigned a play/pause action.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
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 »

newtomotorola wrote:It worked well with eden using the event receiver plugin, just want to know if anybody has a potential solution or possibly a way for the xbmc2 plugin to recognize when the xbmc pc is awake and make the connection.
At the moment I only know of one method and that is to basically try to connect to XBMC until it responds and then receive events.
I've been meaning to ask in the XBMC forums whats the proper way to detect when XBMC is running and then connect to receive events.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ecafracs
Posts: 2
Joined: Wed Nov 21, 2012 8:51 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by ecafracs »

I did a quick test and pause seems to work correctly. Post your EventGhost config file, as I'm suspecting you have double assigned a play/pause action.
You were right. I had Play set twice. It's all good now. Thank you.
derelict
Posts: 38
Joined: Sun Mar 01, 2009 12:55 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by derelict »

newtomotorola wrote:Hi All,
With xbmc eden the eventghost event receiver plugin worked a treat, i have noticed with frodo that it does not any more, i have tried using the xbmc2 plugin to receive events from xbmc but in order for it to receive events from my xbmc machine eventghost needs to be loaded after my xbmc machine is awake.

I have eventghost running on a seperate pc that is on 24x7, this pc also controls my home lighting so i need eventghost to listen for xbmc's play and stop events in order to activate or deactivate the lights in the theater room.
Thanks
Install the Event Broadcast plugin on that XBMC Machine, use the "Resume from Standby" (or similar :-) ) Action and use it to send an event to your 24/7 Machine. Then maybe wait a few seconds... and then tell the XBMC2 Plugin to start connecting to xbmc.

Cheers

Dere
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

hey guys,

first thank you very much for this plugin and the huge amount of work you put into it.
Please forgive me if this has been asked a 1000 times but I've been trying for an hour now searching here in the thread and checking out whatever I could find. Could you please help me with the basic setup?
I am quite new to xbmc and try to get it running with eg. I installed the nightly from yesterday XBMCSetup-20121127 and I try to get notifications into eg. Sending commands to xbmc worked from the start...
Right now I am using the test version of xbmc2 from this post: Link

So this is how I set it up:
screen_mmigstation_2012-11-28_ 001.png
Here I tried any combination of ticking/unticking the options at the bottom to no avail
(in one post I read that broadcast is outdated and json is the way to go now, is ticking "Enable Broadcast events." meaning broadcast in general or is it just referring to the outdated (?) method over 8278?)
screen_mmigstation_2012-11-28_ 002.png
I opened port 9090 tcp in and out.

This is what I will get after starting up eg and doing the connect:
screen_mmigstation_2012-11-28_ 003.png
screen_mmigstation_2012-11-28_ 003.png (93.7 KiB) Viewed 6999 times
Whatever I do in xbmc I will not get any events show in eg logs...
I would appreciate your help very much!
Luca
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

This is crazy :-) I've just spent quite some time to write all the stuff above just to figure out that I will get events on starting some media.... I was looking for window changes all the time. Is this not supported or do I have to setup something else for this?
I remember in older xbmc receiver plugin I had to call some url to set the level of events...

BTW:
I will get this when starting a video file:
screen_mmigstation_2012-11-29_ 002.png
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
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 »

Luca Brasi wrote:This is crazy :-) I've just spent quite some time to write all the stuff above just to figure out that I will get events on starting some media....
Glad you got it working. Hopefully I can finish the event stuff before the final version of Frodo.
I was looking for window changes all the time. Is this not supported or do I have to setup something else for this?
As far as I know there are no events for window changes and I have not seen any plans to add them.
I remember in older xbmc receiver plugin I had to call some url to set the level of events...
JSONRPC.SetConfiguration seems to be the closest for JSON but I believe all events are sent by default. This seems to be all currently supported events.
BTW:
I will get this when starting a video file:
Thanks, there are some new event types that I haven't properly looked into so it's unrecognized but seems to generate the correct event.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Luca Brasi »

Hi jonib,

thank you very much for replying so quickly!
As far as I know there are no events for window changes and I have not seen any plans to add them.
Oh no, this is not so good for me. I wanted to control my home server dependent on where I am in xbmc. I've set this up for mediaportal and it is working quite well.

Will xbmc report back the window when you call it via
http://wiki.xbmc.org/index.php?title=JS ... vateWindow
?
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
User1306
Experienced User
Posts: 53
Joined: Sat Oct 13, 2012 4:37 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by User1306 »

I was wondering if you can play XBMC "Smart Playlist" with one button/click? let say i have AmericanDad.xsp, how can i Play this playlist with a trigger from eventghost.
Apologies if this question is silly or have been answered before but i cant seem to figure it out.

thanks
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

Luca Brasi wrote: BTW:
I will get this when starting a video file:
I get a similar error with Frodo, along with a file not found error.
Attachments
Capture.PNG
Post Reply