Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Pass payload to serial plugin?

Questions and comments specific to a particular plugin should go here.
Post Reply
aalmans
Posts: 1
Joined: Sun Feb 26, 2012 3:28 pm

Pass payload to serial plugin?

Post 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!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Pass payload to serial plugin?

Post by Pako »

SerialParseString.png
SerialParseString.png (4.78 KiB) Viewed 1545 times
You have this in mind ?

Pako
Post Reply