News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

EG Quotes

Started by DHHJ, September 02, 2012, 06:54:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DHHJ

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.

jitterjames

Please send me examples of at least one VC command and one EG macro so i can play with it a bit.  thanks.

jitterjames

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. :)

DHHJ

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]

jitterjames

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?

Kalle

Hi James, I think it was in the first post  ;)

QuoteFor 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'.
***********  get excited and make things  **********

jitterjames

he sent me XML for a VC group, I need xml for an EG macro

Kalle

Quote from: jitterjames on September 03, 2012, 01:11:53 PM
he sent me XML for a VC group, I need xml for an EG macro
Ups  :bonk
***********  get excited and make things  **********

DHHJ

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.

jitterjames

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:

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

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

QuoteBroadcaster.Red

then I can only assume that your macro ignores the payload.

DHHJ

Got it. Thanks. You were right- the payload is ignored.

jitterjames