EventGhostPlus (2 Viewers)

Dragy

Portal Pro
April 27, 2009
778
333
32
Home Country
Netherlands Netherlands
Last edited:

DaBIGOne

Portal Pro
January 16, 2012
59
162
127.0.0.1
Home Country
Netherlands Netherlands
I've tried to get strings by use of WM_COPYDATA message, but it's not forwarded by MediaPortal to the plugin.
I wanted to display a popup from EventGhost using the Windows Messages... too bad, I have to find another way.
 

tbrg78

Portal Member
October 9, 2012
26
0
44
Home Country
Germany Germany
Ok, thanks guys!.. o)

So that message plugin is not something entirely related to eventghost, why did you put it into your EG+ ?! I mean, one could find reasons to keep it a seperate plugin. I assume you have some big goals improving on the already existing features, or what else is it, that motivated you to create EG+ with a "duplicate" message- and eventtrigger plugin ?! I've read your plugin description again, but that did not give me a clue what you're aiming for exactly.. o)
 

DaBIGOne

Portal Pro
January 16, 2012
59
162
127.0.0.1
Home Country
Netherlands Netherlands
Well, first thing: I love EventGhost and domotica.
The dev of Eventtrigger stopped developing, so someone had to pick it up or else it would die, can't let that happen so I stepped up to the plate.
I thought to improve a lot on Eventtrigger as there were some features that were missing/wanted.
Also there is a MediaPortal plugin in EventGhost, so I thought to incorporate that into it, and that needed Message Plugin for compatibility.
I want to create a EG<->MP link both ways.
I was planning to extend incomming messages and outgoing message from MP.

I've already improved on the way events are triggered to EG.
before there was an option to not send events when the video was shorter than X.
in EventGhostPlus you get a different event if the video is short, so you can trigger on that too, but you can ignore them too to get the same result.
Vuego wanted an option to identify if a certain file was playing, so I sent the name of the playing file in the payload.
It would also be handy to do some other domotica with certain genres of movies, comic half dimmed light, horror, the red light on the corner on the rest off and the lights off or most important: porn close the curtains and all lights off :)

Now that I have database searches sorted I could send way more info about the playing movie, if desired.
What I wanted to add to Messageplugin was a string message from EG to MP to popup.
Together with Eventghost for Android (for instance) you can now send an event to the EG server when your phone rings, it will show the caller ID in a popup in MP, if you decide to answer the phone that info can be sent to your EG server who sends pause to MP and turn on the lights, when you hang up lights will go dim and the movie resumes playing.

That's just a scenario I would like to be able to handle.
You can make it as crazy as you wish when you have a good EG <-> MP link.
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,641
    764
    Göteborg
    Home Country
    Sweden Sweden
    Hi BIGOne

    EventGhostPlus suffers from the same issue that eventTrigger did if you select mode Issue the event locally. It starts several instances of Eventghost.exe. One new is launched every time you open MediaPortal Configuration - Plugins (without even opening the EventGhostPlus configuration) even if EventGhost is already running. Some more eventghost.exe processes are also launched when using MediaPortal to play and stop videos and soon there's 10 EventGhost.exe's running :confused: I think this is a UAC issue and morayav had some look at it but could never solve it.

    I can however work around this problem by instead using the mode Send event through TCP/IP :cool:
     

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    I normally have UAC disabled, normally it's about the first thing I do when I get the windows GUI after install.
    I have just enabled it to test your issue, and I found that it will indeed create multiple processes when you go to the plugin section of the configuration.
    However, I don't get more processes when I'm in MP playing/pausing/stopping audio and video files. If you get that too, you'll soon get hundreds of EventGhost processes with the next release, I'm currently busy on sending events when entering windows and that will generate some.

    You could also work around it by disabling that awfully irritating UAC :)

    I have changed the way the plugin.start and plugin.stop events are triggered it will now send no events when the plugin is started by MP Config, but will when MP GUI is started/stopped.
    If you have the same experience as me that issue would be fixed in the next release.
     

    tbrg78

    Portal Member
    October 9, 2012
    26
    0
    44
    Home Country
    Germany Germany
    Hi Dabig1, got your point on why you started with EG+.. o)
    I just disabled message and eventtrigger plugin and EG+ seems to do it's job.. thank you.. o)
    I have a question though, the old message plugin showed a branch "X10Receiver", which is not shown in EG+'s message section, can you imagine where that came from or do you know, why it is not there in EG+ ?! My X10Remote seems to work as usual, even without that X10Receiver stuff.. confused.. o)
     

    Attachments

    • Clipboard Image (2).png
      Clipboard Image (2).png
      14.1 KB

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    I don't know what XML you were using before.
    EventGhostPlus (just like MessagePlugin) just forwards the codes generated by EventGhost so if you use the macros created when you install the MediaPortal plugin in EventGhost you can just connect any event to the action including keypresses on any remote as long as EventGhost receives the event.

    Another thing, you asked about a "non idle" action to prevent your HTPC to go to sleep.
    In the next release every menu change is triggered to EventGhost like shown below, would that solve your problem ?
    Capture.PNG
     

    Users who are viewing this thread

    Top Bottom