Page 1 of 1

Pass payload to serial plugin?

Posted: Sun Feb 26, 2012 3:30 pm
by aalmans
Hi,

I am using VoxCommando to send events to EG and this works really well. This way i control my LG TV with specific serial commands such as:

ka 0 1\r (serial write command to turn on the TV from standby)

The question i have is how to pass variables from VoxCommando to EG. I would like to use this to set the volume to a specific level. I can generate an event in EG such as:

Broadcast.tv-setvol '10'

I just don't know how to pass the variable "10" to the serial command:

kf 0 {eg.event.payload}\r

What do i need to replace {eg.event.payload} with to have the variable "10" passed on to this serial command so it reads: kf 0 10\r ??

Thanks for your help!

Re: Pass payload to serial plugin?

Posted: Mon Feb 27, 2012 6:53 am
by Pako
SerialParseString.png
SerialParseString.png (4.78 KiB) Viewed 1548 times
You have this in mind ?

Pako