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.

EventGhost and thinkflood RedEye

If you have a question or need help, this is the place to be.
Post Reply
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

EventGhost and thinkflood RedEye

Post by malkamus »

Is there a way for Redeye to connect to EventGhost? I am trying to set up xbmc. Xbmc has stopped supporting http control and json does not seem to function. I would like to use the xbmc setup in EventGhost and have RedEye run the commands.
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: EventGhost and thinkflood RedEye

Post by blaher »

malkamus wrote:Xbmc has stopped supporting http control and json does not seem to function
viewtopic.php?f=9&t=1562 has a test version that works well with json.
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

Re: EventGhost and thinkflood RedEye

Post by malkamus »

Yes that is what I am using with EventGhost. But I need a way for redeye to communicate with EventGhost. I need a way to send a http or similar command to EvenyGhost to execute those xbmc commands in that plugin.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: EventGhost and thinkflood RedEye

Post by kkl »

I don't know anything about RedEye, but if it is capable of sending an http command, then it should be able to send events to EG by use of the webserver plug-in.
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

Re: EventGhost and thinkflood RedEye

Post by malkamus »

I thought that as well but I set up a web page with a command on it like the instructions said and I can type the address along with the command and it works. but no matter how I word it in a script in redeye it won't do anything. is there a specific way to write a script for eventghost to read it?
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: EventGhost and thinkflood RedEye

Post by kkl »

Not that I know of. As an example, my page containing commands is a file called commands.html. One of the commands/links is:

<a href="commands.html?Test1">This is Test1</a>

So, if I use the URL http://127.0.0.1/commands.html?Test1

then this event will appear in EG's log (left pane):

HTTP.Test1 []
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

Re: EventGhost and thinkflood RedEye

Post by malkamus »

Correct and that works for me as well in redeye I create a script to run commands not associated to an ir port.
I set the ip address and port when I create the unit I want to control I then create a script like this.
require "systemScript"
Scripting.SendHttpMessage("/EventGhost.html/EventGhost.htlm?pause")
-- TODO: Insert any pre-processing code here

Scripting.SendHttpMessage("path?querystring=value")

-- TODO: Insert any post-processing code here
Like this it does not function but typed into a browser like you have yours it works
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: EventGhost and thinkflood RedEye

Post by kkl »

As an example, I can send this Python command from EG on a different PC than the one hosting the Webserver plugin, urllib.urlopen("http://10.10.1.26/commands.html?Test1"), and it works, so I would really suspect that it's your RedEye syntax or networking and not EG. In your command, Scripting.SendHttpMessage("/EventGhost.html/EventGhost.htlm?pause"), there is no target server. Why? If there's a RedEye forum, you'll probably have a better chance of getting help there.
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

Re: EventGhost and thinkflood RedEye

Post by malkamus »

Because the server info is set up when I create the port for the equipment in redeye. I tell it at the beginning what ip address and port to look for so it does not have to be added to every command. The Redeye forum is useless it's like a convention of deaf mutes over there.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: EventGhost and thinkflood RedEye

Post by kkl »

malkamus wrote:The Redeye forum is useless it's like a convention of deaf mutes over there.
LOL

I don't know if you copied this or mis-typed it here, but html is misspelled in "/EventGhost.html/EventGhost.htlm?pause"
malkamus
Posts: 6
Joined: Fri Jul 12, 2013 4:43 pm

Re: EventGhost and thinkflood RedEye

Post by malkamus »

yeah sorry was a mistype
Post Reply