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.

Could you tell me how to get to a broadcast event name?

Questions and comments specific to a particular plugin should go here.
Post Reply
nuzihan
Posts: 5
Joined: Sun Jun 09, 2013 3:32 pm

Could you tell me how to get to a broadcast event name?

Post by nuzihan »

1, I added a "Broadcast" plugin (listening address is 192.168.1.2, the port is 1234)

2, I use "UDP Sender" sends a UDP packet (UDP packet text if it is "hello") to 192.168.1.2:1024

3, EventGhost will receive a "broadcast event"

I would like to ask how to use "Show OSD" action displays the text "hello"

Thank you for your reply!
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Could you tell me how to get to a broadcast event name?

Post by jonib »

nuzihan wrote:I would like to ask how to use "Show OSD" action displays the text "hello"
I have not used the "Broadcast" plugin but I assume the data is in the payload variable.

Code: Select all

{eg.event.payload}
Put this in "Show OSD" and it should display the event data.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
nuzihan
Posts: 5
Joined: Sun Jun 09, 2013 3:32 pm

Re: Could you tell me how to get to a broadcast event name?

Post by nuzihan »

thank you very much!
Can display the name of "event"?

For example, a "Task.Deactivated.Desktop" event occurred

Then the "Show OSD" will display "Task.Deactivated.Desktop"

Similarly

For example, a "Task.Activated.EventGhost" event occurred

Then the "Show OSD" will display "Task.Activated.EventGhost"
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Could you tell me how to get to a broadcast event name?

Post by krambriw »

Is it a question or statement???

If you are interested in showing other parts of the event, use the following as example

Code: Select all

{eg.event.string}
{eg.event.prefix}
{eg.event.suffix}
The eg event is well-documented in the documentation section
nuzihan
Posts: 5
Joined: Sun Jun 09, 2013 3:32 pm

Re: Could you tell me how to get to a broadcast event name?

Post by nuzihan »

I solve all the problems!

Thank you for help!
Post Reply