EventGhostPlus (1 Viewer)

HomeY

Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Could you please update dependencies of the plugin so it doesn't nag while installing on 1.3 Final?? :D
     

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    New version 1.1.2.0 available.
    - No nags anymore with 1.3 Final.
    - New events when a message popup is displayed and closed (only messages from EventGhostPlus) with the Message header as payload.
    Capture.PNG

    - Minor bugs fixed.
     
    Last edited:

    achel

    Portal Member
    December 21, 2007
    7
    0
    Home Country
    United Kingdom United Kingdom
    Hi Luca,

    You can convert the event in EG itself by creating a macro with a Python command and entering this line: "eg.TriggerEvent(eg.event.payload[0], prefix = eg.event.suffix)" and then you add the TCP.MediaPortal.Windows.Activate (or Main if you use local) to the macro.
    You will get a new event created: MediaPortal.Window.Activate.35 (for Basic home) you can use that event to trigger what you want in EventGhost for only Basic Home.

    Good luck !

    hello DaBIGOne

    I have had a go at trying this but my knowledge with eventghost is very limited, and I have no understanding of python.

    Would you mind having a look at my screenshots and telling me where I have gone wrong?

    what I am trying to do is when I am going to my home my terRemote get a message sent to it to change the page through network sender but all I get when I drag and drop the event trigged by mediaportal to eventghost is TCP.MediaPortal.Window.Activate I tried to include the whole line TCP.MediaPortal.Window.Activate ['192.168.0.2', u'504', u'"mymusicgenres"'] but eventghost don't trigger the action.

    I believe to fix this I need to do as you said am I correct in thinking this?

    thanks again for you time
    pic 3.jpg

    pic2.jpg
    pic1.jpg
     

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    Hi Achel,

    Yes, that's the wrong way to do that.
    In EventGhost there are macros, actions and events (triggers).
    The little gear icon is a macro, this holds the actions and events.
    You have created only an action to substract a payload from an event and create a new event, but you dit not add the event (trigger) to the macro.

    So your action should be: eg.TriggerEvent(eg.event.payload[0] = eg.event.suffix), this will trigger an event with the payload in it so you can identify it. (so remove the TCP.MediaPortal.Windows.Activate)
    Now you drag the event (TCP.MediaPortal.Window.Activate ['192.168.0.2', u'504', u'"mymusicgenres"']) into the macro (from the left screen to the right screen in Eventghost main screen)
    Now you see the event with an lightning bolt icon and it shows "TPC.MediaPortal.Window.Activate" the action you have created will extract the payoad wich are marked between [ and ] and will create a new event with that.

    You can then create a new macro with an action and combine that with he new event created to get an action ONLY when the mymusicgenres page is displayed.

    This is basic EventGhost, doesn't have much to do with EventGhostPlus, you can read more about EventGhost in the EventGhost website, this is a nice short document describing the basic workings of EventGhost: http://www.eventghost.org/docs/short_manual/index.html

    Happy Ghosting !
     
    Last edited:

    achel

    Portal Member
    December 21, 2007
    7
    0
    Home Country
    United Kingdom United Kingdom
    Hi Achel,

    Yes, that's the wrong way to do that.
    In EventGhost there are macros, actions and events (triggers).
    The little gear icon is a macro, this holds the actions and events.
    You have created only an action to substract a payload from an event and create a new event, but you dit not add the event (trigger) to the macro.

    So your action should be: eg.TriggerEvent(eg.event.payload[0] = eg.event.suffix, this will trigger an event with the payload in it so you can identify it. (so remove the TCP.MediaPortal.Windows.Activate)
    Now you drag the event (TCP.MediaPortal.Window.Activate ['192.168.0.2', u'504', u'"mymusicgenres"']) into the macro (from the left screen to the right screen in Eventghost main screen)
    Now you see the event with an lightning bolt icon and it shows "TPC.MediaPortal.Window.Activate" the action you have created will extract the payoad wich are marked between [ and ] and will create a new event with that.

    Thank you for your swift reply.

    I have attached some more screenshots, because now it is triggering a new event but with just the IP address, not differentiating between the windows. I read through your link; thank you for that. I am using Windows 8- I do not know if this will make any difference.

    pic 1.jpg


    The following image is what I have put into EventGhost- I believe I followed your instructions correctly.
    pic 2.jpg



    I changed the page so it is just Basic Home from just the Music Genre page. I don't think this has any effect on the method you gave me.

    Thank you so much for your time and patience.

    EDIT: I changed the EventGhostPlus to submit events locally. And now it gives each window a unique number. Thanks for your time.
     
    Last edited:

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    This is starting to look promissing :)

    Try changing the number in eg.event.payload[0] to 1 or 2 you'll see that you'll will get an event with different suffix.
    Like MediaPortal.Window.Activate.35 or MediaPortal.Window.Activate.BasicHome

    This way you can convert the events with a payload to another event you can identify directly, also you could do something for every window change, but I doubt that you'll need that.
     

    achel

    Portal Member
    December 21, 2007
    7
    0
    Home Country
    United Kingdom United Kingdom
    This is starting to look promissing :)

    Try changing the number in eg.event.payload[0] to 1 or 2 you'll see that you'll will get an event with different suffix.
    Like MediaPortal.Window.Activate.35 or MediaPortal.Window.Activate.BasicHome

    This way you can convert the events with a payload to another event you can identify directly, also you could do something for every window change, but I doubt that you'll need that.

    Woot, yes I have changed it to "1" and now it works lovely. Thank you very much DaBIGOne.
     

    DaBIGOne

    Portal Pro
    January 16, 2012
    59
    162
    127.0.0.1
    Home Country
    Netherlands Netherlands
    You are welcome, if you have any more questions you can also come to #EventGhostPlus on Freenode (IRC).
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Is the source code of your plugin available anywhere? I recently discovered EventGhost and would like to find out if it could be the way to go for MediaPortal 2.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom