Page 1 of 1

Help with Broadcaster Plugin

Posted: Tue Jan 17, 2012 11:43 am
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...

Re: Help with Broadcaster Plugin

Posted: Tue Jan 17, 2012 3:12 pm
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

Re: Help with Broadcaster Plugin

Posted: Tue Jan 17, 2012 10:27 pm
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...

Re: Help with Broadcaster Plugin

Posted: Wed Jan 18, 2012 9:31 am
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...

Re: Help with Broadcaster Plugin

Posted: Thu May 10, 2012 3:07 pm
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