VoxCommando

Help and Support (Using VoxCommando) => EventGhost => Topic started by: DHHJ on September 02, 2012, 06:54:24 PM

Title: EG Quotes
Post by: DHHJ on September 02, 2012, 06:54:24 PM
When I build a command using EventGhost.Send along with a Payload Range, the packet received by EG has a single quote around the chosen payload.

For example if the command is EventGhost.Send and the chosen value from a payload range containing Orange,Red,Blue is Red, then the event in EG appears as Broadcast.'Red'.

I have a number of EG macros built with the event already defined without quotes (coming from an iRule panel I'm already using).

Any way to overcome this or is the best way to add a second event in each EG macro? Thanks.
Title: Re: EG Quotes
Post by: jitterjames on September 02, 2012, 07:02:32 PM
Please send me examples of at least one VC command and one EG macro so i can play with it a bit.  thanks.
Title: Re: EG Quotes
Post by: jitterjames on September 02, 2012, 07:07:04 PM
I think you might be confusing suffix with payload.  It's understandable since eventghost and VoxCommando both use the term payload.

If you want to use the VC payload as a suffix when sending to eventghost you can do it like this in vc when editing your action to send to eventghost:

eventname.{1}

It will also send any payloads as eg payloads, but your macro can simply ignore them.

Hope this helps.  If not send me some stuff to play with. :)
Title: Re: EG Quotes
Post by: DHHJ on September 02, 2012, 11:03:17 PM
Sorry for the confusion. I have tried both a payload {1} and without a payload. Both are sending the chosen variabel with single quotes. Attached is a short example. thanks.

[attachment=1]
Title: Re: EG Quotes
Post by: jitterjames on September 03, 2012, 12:48:31 PM
you did not send an eventghost macro which is more what I am interested in seeing.  AFAIK VC does not send the quotes, it is how the broadcaster plugin represents payloads.

What does your history window look like after sending the command from iRule?
Title: Re: EG Quotes
Post by: Kalle on September 03, 2012, 12:57:52 PM
Hi James, I think it was in the first post  ;)

Quote
For example if the command is EventGhost.Send and the chosen value from a payload range containing Orange,Red,Blue is Red, then the event in EG appears as Broadcast.'Red'.
Title: Re: EG Quotes
Post by: jitterjames on September 03, 2012, 01:11:53 PM
he sent me XML for a VC group, I need xml for an EG macro
Title: Re: EG Quotes
Post by: Kalle on September 03, 2012, 01:57:38 PM
he sent me XML for a VC group, I need xml for an EG macro
Ups  :bonk
Title: Re: EG Quotes
Post by: DHHJ on September 03, 2012, 04:12:25 PM
Sorry for making it so confusing!

I'm using the Broadcaster plug-in in EG and when I send EventGhost.Send {1} from VC (and per the example above I say Red as the choice), Broadcaster displays:
Broadcaster.Red 'Red'

If I send  EventGhost.Send from VC (and per the example above I again say Red as the choice), Broadcaster displays:
Broadcaster.'Red'

iRule sends a udp packet to EG and Broadcaster displays Broadcast.Red

So I'm simply trying to get VC to send a payload/suffix that doesn't include the single quotes.

Maybe the easiest way around this to include 2 events in the EG macro- one for VC and one for iRule.
Title: Re: EG Quotes
Post by: jitterjames on September 03, 2012, 05:08:37 PM
You still did not send me the xml for the eventGhost macro so I can't really troubleshoot the problem properly, but I don't see why you can't just use this:

Quote
Broadcaster.Red 'Red'

The fact that there is also a payload should not affect your macro and it should work exactly the same as if you received the event

Quote
Broadcaster.Red

The part appearing in single quotes is the payload, and unless your macro is trying to read a payload it won't matter what it is.  Since you say that iRule is generating only

Quote
Broadcaster.Red

then I can only assume that your macro ignores the payload.
Title: Re: EG Quotes
Post by: DHHJ on September 03, 2012, 05:58:45 PM
Got it. Thanks. You were right- the payload is ignored.
Title: Re: EG Quotes
Post by: jitterjames on September 03, 2012, 06:45:15 PM
Glad to hear it  :D