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.
Controling over network
-
MrSunshine
- Posts: 3
- Joined: Wed May 26, 2010 7:01 am
Controling over network
Hello, trying to control EventGhost over network from another computer, not using EventGhost on that one, is this posible? Is there specefications on how to use the network protocols etc somewhere? 
Re: Controling over network
Sorry, the documentation is pretty scarce in that respect.
I think this will be the easiest way is to use the webserver plugin. It generates events, so you can just use normal http requests to "send events".
If you are coding something and don't want to use the http protocol, then you could take a look at the network sender plugin's source for a reference how to duplicate it. Also the broadcast receiver, lirc-client and some other plugins work over the network, so you could use those..
I think this will be the easiest way is to use the webserver plugin. It generates events, so you can just use normal http requests to "send events".
If you are coding something and don't want to use the http protocol, then you could take a look at the network sender plugin's source for a reference how to duplicate it. Also the broadcast receiver, lirc-client and some other plugins work over the network, so you could use those..
-
MrSunshine
- Posts: 3
- Joined: Wed May 26, 2010 7:01 am
Re: Controling over network
Using the web interface stuff isnt a problem, as long as there is a way to send "events" to evenghost using a remote host =)
Is there any documentation on this somewhere then ?
Finding documentation hard to find overall :/
Is there any documentation on this somewhere then ?
Re: Controling over network
Using the webserver should be pretty simple. Just load the Webserver plugin, set your http root to some directory (optional). You can also use basic http authentication.
To use it for example the following request (assuming localhost is the machine with EG on port 80):
http://localhost/?foo&bar&baz
generates an event like:
HTTP.foo with eg.event.payload set to ['bar', 'baz']
-jinxdone
To use it for example the following request (assuming localhost is the machine with EG on port 80):
http://localhost/?foo&bar&baz
generates an event like:
HTTP.foo with eg.event.payload set to ['bar', 'baz']
-jinxdone
-
MrSunshine
- Posts: 3
- Joined: Wed May 26, 2010 7:01 am
Re: Controling over network
Ahh sounds simple enough, thanks alot !=)
Re: Controling over network
I didn't find much in the way of documentation for the webserver either, so I put up a wiki entry for it today at http://www.eventghost.org/wiki/webserver