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.
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
EventGhost and thinkflood RedEye
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.
Re: EventGhost and thinkflood RedEye
viewtopic.php?f=9&t=1562 has a test version that works well with json.malkamus wrote:Xbmc has stopped supporting http control and json does not seem to function
Re: EventGhost and thinkflood RedEye
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.
Re: EventGhost and thinkflood RedEye
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.
Re: EventGhost and thinkflood RedEye
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?
Re: EventGhost and thinkflood RedEye
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 []
<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 []
Re: EventGhost and thinkflood RedEye
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
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
Re: EventGhost and thinkflood RedEye
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.
Re: EventGhost and thinkflood RedEye
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.
Re: EventGhost and thinkflood RedEye
LOLmalkamus wrote:The Redeye forum is useless it's like a convention of deaf mutes over there.
I don't know if you copied this or mis-typed it here, but html is misspelled in "/EventGhost.html/EventGhost.htlm?pause"
Re: EventGhost and thinkflood RedEye
yeah sorry was a mistype