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.

Webserver-PlugIn - HTTP events can't be seen

If you have a question or need help, this is the place to be.
Post Reply
MOSGG
Posts: 5
Joined: Mon Jul 27, 2009 7:32 pm

Webserver-PlugIn - HTTP events can't be seen

Post by MOSGG »

Hello,

Since a few days I am playing around with the EG and I must say that this tool is really great! However, there is one feature which isn't working well:

1. Intention
To control a VISTA-Workstation setup with various multimedia applications through HTTP commands. In the final setup the commands will will be sent out by a facility management system. Currently I am using firefox with simple HTML-example <html>
<head> <head>
<title>EventGhost Webserver example</title> <title> Event Ghost Webserver example </ title>
</head> </ head>
<body> <body>
<table border="0"> <table border="0">
<tr> <tr>
<td width="120">Example Device</td> <td width="120"> Example Device </ td>
<td width="30"><a href="eventghost.html?Example-Device_ON"><img border="0" src="lamp-on.png"></a></td> <td width="30"> <a href="eventghost.html?Example-Device_ON"> <img border="0" src="lamp-on.png"> </ a> </ td>
<td width="30"><a href="eventghost.html?Example-Device_OFF"><img border="0" src="lamp-off.png"></a></td> <td width="30"> <a href="eventghost.html?Example-Device_OFF"> <img border="0" src="lamp-off.png"> </ a> </ td>
</tr> </ tr>
</table> </ table>
</body> </ body>
</html> </ html>

Target Device is DVBVIEWER. ON-command will start and OFF will close the applicarion.

2. Problem
Both - the PlugIns and the application - are running without any problems. I am able to start and close DVBViewer only once. A 2nd sequence is not working at all. The way out would be (i) restart or (2) assigning a new port number. I also send the command "http://192.168.0.102:91/eventghost.html ... Device_OFF" from a different PC. On top of that I turned the firewall of. No difference at all.

Unfortunately I couldn't find any hint in this and a few other forums. It would be great if someone could help. Many thanks in advance!!

BR
Olaf
Last edited by MOSGG on Wed Jul 29, 2009 5:11 am, edited 1 time in total.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Webserver-PlugIn is running BUT HTTP events can be seen onc

Post by Livin »

does the log show anything - either with the working web commands, or the non-working ones?
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
MOSGG
Posts: 5
Joined: Mon Jul 27, 2009 7:32 pm

Re: Webserver-PlugIn is running BUT HTTP events can be seen onc

Post by MOSGG »

Hi,

The log shows
- "Task.xxxx" activities i.e. if I change applications,
- no errors after the start of plugins (installed are DVBViewer, Webserver and Task Create / Switch Events) and
- twice the HTTP.xxx (one for each button) and the respective application reations.
Additional HTTP.xxx activities do not appear - just the normal Task.xxxx activities which include actions like changing channels, increasing volume etc..

I hope this information helps.

BR
Olaf
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Webserver-PlugIn - HTTP events can't be seen

Post by jinxdone »

Does it work if you go to an url like: "http://192.168.0.102:91/eventghost.html ... ]&asdf1234[/b]" ? (put something random (and different from earlier) as a second parameter)

If it does then I'd say your browser or something else in between is caching the webpage.

-jinxdone
MOSGG
Posts: 5
Joined: Mon Jul 27, 2009 7:32 pm

Re: Webserver-PlugIn - HTTP events can't be seen

Post by MOSGG »

Hello again,

Yes, it is a caching problem! Thanks for this import hint!!! I deleted the "private data" in firefox and it worked for one more time. This link (http://support.mozilla.com/tiki-view_fo ... &forumId=1) tells u how to disable the caching. However it doesn't work. At the end the HTTP command will be send by a linux based home server but for testing purpose it would be great to use the browser as well.

BR,
Olaf
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Webserver-PlugIn - HTTP events can't be seen

Post by jinxdone »

Try adding this to the header of your .html page:

Code: Select all

<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Cache-Control" Content="no-cache, must-revalidate">
-jinxdone
MOSGG
Posts: 5
Joined: Mon Jul 27, 2009 7:32 pm

Re: Webserver-PlugIn - HTTP events can't be seen

Post by MOSGG »

THANK YOU VERY MUCH!!!

Problem solved!

Another quick question to a professional plugin developer: Would it be possible to develop EG-plugins for Linux apps?

BR
Olaf
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Webserver-PlugIn - HTTP events can't be seen

Post by jinxdone »

I don't see why you couldn't use EG to send and receive messages to Linux apps, but they must have some kind of support at the linux end to interface with EG. (so that you would control something running on a linux from your windows box running EG)

I'm not sure if anybody is doing anything like that at the moment though. So nothing ready-made, it needs to be coded first..

One of the things that would make this possible is a lirc server plugin for EG, which I've been meaning to do for quite a while now but havn't gotten around to it yet..

-jinxdone
Post Reply