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.

Irule, feedbacks?

If you have a question or need help, this is the place to be.
Post Reply
hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Irule, feedbacks?

Post by hanspettersson »

I have the app Irule and wondering how to get the feedback funcktion work whit EventGhost?
How do I send text from EG to Irule?
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Irule, feedbacks?

Post by Livin »

you need to find out how it communicates and then match that with a plugin from EG.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: Irule, feedbacks?

Post by hanspettersson »

Livin wrote:you need to find out how it communicates and then match that with a plugin from EG.
Yes i know, but wondering if someone got it working.
The plugin is broadcast.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Irule, feedbacks?

Post by Livin »

hanspettersson wrote:
Livin wrote:you need to find out how it communicates and then match that with a plugin from EG.
Yes i know, but wondering if someone got it working.
The plugin is broadcast.
ah... that is a different question.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
hanspettersson
Posts: 42
Joined: Sat Feb 20, 2010 2:42 pm

Re: Irule, feedbacks?

Post by hanspettersson »

UP UP
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: Irule, feedbacks?

Post by mickelin »

I have implemented feedback using the EG webserver. I put my feedback on a webpage and show it in a url object in iRule. Works perfectly! And works with iRule standard, no need to pay the extra 50USD for a pro licence.
bongolf
Experienced User
Posts: 58
Joined: Tue Jan 19, 2010 12:37 pm

Re: Irule, feedbacks?

Post by bongolf »

mickelin wrote:I have implemented feedback using the EG webserver. I put my feedback on a webpage and show it in a url object in iRule. Works perfectly! And works with iRule standard, no need to pay the extra 50USD for a pro licence.
That sounds really interesting!
Can you please explain how you did it?
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: Irule, feedbacks?

Post by mickelin »

Quite simple, just add the Webserver plugin and create a simple html-page that contains one or more egGlobals variables that contain your feedbacks. A refresh function in the html is necessary, see below.
In iRule, add an url-object and tie it to the EG url.
In your EG macros, just assign the feedback message to the variable and it gets displayed in iRule! I also added a timer in EG that clears the variable after 15s.

Sample html-file, adjust color, font etc to blend in to your iRule interface

<html><head><title>Eventghost irule feedback</title>
<meta http-equiv="refresh" content="3">
<body bgcolor=rgb(111,100,89)>
<p style="font-family:arial;font-size:100%;color:red">
{{eg.globals.feedback}} <br />
</p>
</body>
</html>


In the EG macro, just add a Python command: eg.globals.feedback ="your text goes here" and that gets displayed in iRule. Obviously, it doesn't have to be static text, you could format the string to contain other variable values etc.

That should be enough to get you started, post if you need more details.
bongolf
Experienced User
Posts: 58
Joined: Tue Jan 19, 2010 12:37 pm

Re: Irule, feedbacks?

Post by bongolf »

Thanks, it works perfekt!
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: Irule, feedbacks?

Post by mickelin »

Great!
regissg
Posts: 1
Joined: Sat Feb 07, 2015 12:27 pm

Re: Irule, feedbacks?

Post by regissg »

Hello Michael, I have followed your youtube video to display EventGhost feedback in Irule and it works great. Thank you for that.

I would like however to know how to assign this EventGhost feedback to an iRule variable so that I could manage more precisely the EventGhost information at the iRule level

I have the irule pro option.
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: Irule, feedbacks?

Post by mickelin »

Glad you enjoyed the video. I came up with the solution way back, before iRule had feedback and variables. It was a good workaround at the time. I don't think it will work for you now, since iRule is not aware of the content in the url widget. You would have to implement 'real' feedback using iRule's feedback functions for this to work. I haven't tried it myself but it should straight forward. I have seen some posts on the iRule forum on using EG with feedback, so suggest you look there. I am planning a major overhaul of my system, including a redesign of my iRule setup, so I'll be looking into this issue shortly.
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: Irule, feedbacks?

Post by mickelin »

I just upgraded to iRule Pro and it was really simple to add EG feedback and set variables. Assuming you already have iRule to EG set-up, all you have to do, is add a feedback to a page (I used the default iRule EG-mini feedback), connect it to the device that hosts your EG, and set a variable in the feedback properties. Over in EG, use the Broadcaster plugin to create an action that sends a message ti iRule) The payload will be used in iRule as the variable value. Make sure you set the right port in Broadcaster, same in config of plugin and in each action. That's it, piece of cake.
WinoOutWest
Posts: 24
Joined: Wed Dec 09, 2009 10:49 pm

Re: Irule, feedbacks?

Post by WinoOutWest »

mickelin wrote:I just upgraded to iRule Pro and it was really simple to add EG feedback and set variables. Assuming you already have iRule to EG set-up, all you have to do, is add a feedback to a page (I used the default iRule EG-mini feedback), connect it to the device that hosts your EG, and set a variable in the feedback properties. Over in EG, use the Broadcaster plugin to create an action that sends a message ti iRule) The payload will be used in iRule as the variable value. Make sure you set the right port in Broadcaster, same in config of plugin and in each action. That's it, piece of cake.
I am trying to do this as well so wondering what the steps are.

I have a variable eg.globals.CurrentTrack I want to be a feedback in iRule.
I've got the EG-mini installed and my broadcaster is working and I am able to get this working as a webpage but not I want to add this to a button/Label instead.

So do I just create a new feedback in EG-mini called eg.globals.CurrentTrack?
Post Reply