Author Topic: EG Events  (Read 3653 times)

0 Members and 1 Guest are viewing this topic.

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
EG Events
« on: March 15, 2011, 03:45:29 PM »
Is there any way to get EG to trigger an event in VC? I'd like to use an IR remote to run an EG script and in doing so, an event is triggered in VC and a script is run.

Do I need to "turn something on" in EG or can a "simple"  ;) mod be made to a VC file?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Events
« Reply #1 on: March 15, 2011, 05:50:48 PM »
yes.  you need to enable the broadcast plugin in eventghost.

then you can copy and paste this macro into your Eventghost configuration tree
Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1486">
    <Macro Name="Broadcaster: Broadcast: event" Expanded="True">
        <Action>
            BroadcastListener.Broadcast(u'event', u'eventName&amp;&amp;payload1&amp;&amp;payload2', 33000)
        </Action>
    </Macro>
</EventGhost>

then modify the eventName and payload as you wish, and trigger it as you see fit in eventghost (either with a button press or whatever).

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
Re: EG Events
« Reply #2 on: March 15, 2011, 10:00:21 PM »
Thx- works perfect!
 :D

stepppedup

  • $upporter
  • Jr. Member
  • *****
  • Posts: 48
  • Karma: 0
    • View Profile
Re: EG Events
« Reply #3 on: April 14, 2011, 10:16:25 PM »
I went around and around with this a bit, so going to add a couple of other pictures for other newbies.

This is an event in VoxCommando called "Both".  When triggered, by the event from Eventghost, it will launch both Actions shown.



This is the event in Eventghost - note where I've changed it:



So, Eventghost will send the event "Both" to VoxCommando - and Vox will respond as you've determined.