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.

Help with Broadcaster Plugin

Questions and comments specific to a particular plugin should go here.
Post Reply
DJVege
Posts: 6
Joined: Thu Nov 17, 2011 4:08 am

Help with Broadcaster Plugin

Post by DJVege »

Hi guys,

I'm setting up iRule to send UDP packets to my HTPC, and getting eventghost to pick up the packets as an event, then do some action.

So far, the packets are going from the iPad (irule) the HTPC, and eventghost is picking them up, but I can't add a particular broadcast code to a macro (so that on receiving a particular UDP packet, I can do some action).

The Broadcaster plugin is setup with default settings: Port 33333
Payload delimiter is &&
Prefix is either Broadcaster or UDP (both don't change the outcome)

In the log, a particular code shows up as

Broadcaster. 'avVOLUP'

However, if I drag and drop this onto a macro, only

Broadcaster.

is copied across. I don't know why. Leaving it like this obviously causes the macro to fire an action anytime it receives ANY broadcaster code.

If I manually change the eventname for the broadcaster event to

Broadcaster. 'avVolUP' -- including quotes,

the action isn't fired.

No matter what combination i try, the action won't fire unless I leave Broadcaster open.

The code I'm sending from iRule is: &&avVOLUP

EventGhost logs this as: Broadcaster. 'avVOLUP'

Any ideas as to why dragging the logged event across only copies Broadcaster. across? And any suggestions on what I should name the event if I have to manually set it myself?

Thanks, and sorry for the long winded post. :)

...DJVege...
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Help with Broadcaster Plugin

Post by krambriw »

It will not work in this case just to drag the event to the macro since the actual information you are looking for is in the payload ('avVOLUP').

Either you create a python script in the macro that detects the payload content and if it is ok, continues the macro execution or you make a little personal fix of the Broadcaster plugin so that the payload content comes in the event string instead.

Best regards, Walter
DJVege
Posts: 6
Joined: Thu Nov 17, 2011 4:08 am

Re: Help with Broadcaster Plugin

Post by DJVege »

Ah ok. Thanks.

I'm guessing MAYBE the guys at iRule might have already done this.

http://www.iruleathome.com/tutorials/ev ... ntrol.html

I didn't download the plugin version listed on this page because I thought EG already had the plugin included. I wasn't aware they could be different version.

I'll also get their EG project to see if they added scripts to each macro, or have a modified broadcaster plugin.

Failing this, will get my hands dirty with some coding. :)

Thanks for the prompt reply, mate. Much appreciated.

...DJVege...
DJVege
Posts: 6
Joined: Thu Nov 17, 2011 4:08 am

Re: Help with Broadcaster Plugin

Post by DJVege »

Hi guys,

Turns out this is definitely possible, but I was just going about this the wrong way by trying to over complicate things!!

If you have a device that can run iRule, wireless internet and a HTPC/PC running eventghost, it is definitely possible to remote control the PC and any devices connected to the PC (even IR devices like your TV, amp etc...).

When you see the delimiter in the EG broadcaster plugin configuration panel set to "&&", that doesn't mean you have to send every data code from iRule beginning with "&&". iRule will already do this for you!

Simply do the following:

Load the Broadcaster plugin, leave default settings as is (as long as you have nothing else running on port 33333).

In the iRule builder, create your device. Under Network Codes, add device codes and make the data whatever you want it to be.

eg. For XBMC, I want a button to lauch XBMC... so I set my data code to "launchXBMC". (without quotes).

Assign your device codes to buttons in the iRule builder and sync your panels to your tablet/remote device running the irule application. Create a network gateway using the instructions in the link in the first post of this thread.

Test your buttons on your tablet. You should see EG log the events. Drag those events to macros in EG and set actions for them.

:)

Everyone probably already knows this, but just in case someone is confused like me, hopefully this might help them.

...DJVege...
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: Help with Broadcaster Plugin

Post by WinoOutWest »

DJVege wrote:Hi guys,

Everyone probably already knows this, but just in case someone is confused like me, hopefully this might help them.

...DJVege...
Just wanted to let you know that this has helped at least someone so thanks!.
I am just getting started with iRule and this really helped get me started.
Cheers!
Wino
Post Reply