Author Topic: EG Quotes  (Read 5198 times)

0 Members and 2 Guests are viewing this topic.

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
EG Quotes
« 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #1 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #2 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. :)

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
Re: EG Quotes
« Reply #3 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]

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #4 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?

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: EG Quotes
« Reply #5 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'.
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #6 on: September 03, 2012, 01:11:53 PM »
he sent me XML for a VC group, I need xml for an EG macro

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: EG Quotes
« Reply #7 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
***********  get excited and make things  **********

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
Re: EG Quotes
« Reply #8 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #9 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.

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
Re: EG Quotes
« Reply #10 on: September 03, 2012, 05:58:45 PM »
Got it. Thanks. You were right- the payload is ignored.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: EG Quotes
« Reply #11 on: September 03, 2012, 06:45:15 PM »
Glad to hear it  :D