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 instructions please.

If you have a question or need help, this is the place to be.
Post Reply
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Webserver instructions please.

Post by specter333 »

I had this working once before, several months ago, but I can't seem to get it going again. I'm using a new EG file so this is the only plugin added. I'm not using the tellstick plugin.

EG is not seeing any webserver events.

My system info
EventGhost Version: 0.3.6.1434
SVN Revision: 441
Build Time: Mon, 23 Jun 2008 20:08:51
Python Version: 2.5.2 final 0
wxPython Version: 2.8.7.1
PIL Version: 1.1.6
Platform: Windows-XP-5.1.2600-SP1

I went to the German wiki page and Google translated it into English.

http://64.233.179.104/translate_c?hl=en ... _webserver

I downloaded the example at the bottom of the page my webserver windows look exactly like the pictures except my root folder is "Program File" instead of just "Program" and my directory is the same but still no events are being logged.

TCP/IP port: 80
HTML documents root: C:\Program Files\EventGhost\www
Event prefix: HTTP

I've clicked on both links in the example webpage.

When I try to open the web page with the code it says "http://localhost/eventghost.html" I get a 404 error message,

"Error response

Error code 404.

Message: File not found.

Error code explanation: 404 = Nothing matches the given URI."

Here's the web page's code.

Code: Select all

<html>
  <head>
    <title>EventGhost Webserver example</title>
  </head>
  <body>
    <table border="0">
      <tr>
        <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_OFF"><img border="0" src="lamp-off.png"></a></td>
      </tr>
    </table>
  </body>
</html>
I know it's some simple, stupid thing I'm over looking. What am I doing wrong here?

Thanks, again, for you help.
Rich
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Webserver instructions please.

Post by Bartman »

What files are in the C:\Program Files\EventGhost\www folder?
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

Contents of C:\Program Files\EventGhost\www

eventghost.html
lamp-off.png
lamp-on.png
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Webserver instructions please.

Post by Bartman »

Do you see these files, when you enter http://localhost/ in your browser?
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

I don't get it. It's working now. All I did was try another folder then came back to the one inside the EG folder.

That's the second time this week I couldn't get something to work right away then it starts working on it's own later. I think maybe my computers are resistant to change.

Thanks for the help.
Rich
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

Ok, one thing after another with me. I got the webserver working from one computer to another but the point of this little project is to use it from a pocket PC, which isn't working either. Maybe I need to wait a few hours and see if it fixes itself.

From this computer I can type the address for my other computer "http://music/eventghost.html" and get the webpage. EG on that computer sends a network event sender to this computer which gives me an osd to let me know it's working.

Now when I put that same address into IE on the pocket pc I get the error message "The page your looking for cannot be found." I know it's on the network because I can surf the net and browse files on both of these computers but I can't get IE to open the eventghost.html page on another computer.

Anyone know what's different about using the pocket pc?

Rich
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Webserver instructions please.

Post by Bartman »

Propably issues resolving the computer name.
Try using the IP instead.
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

That's a good thought, unfortunately that computer has a dynamic ip so it wouldn't work that way anyway. It works fine with this computer, which has a static ip, and a large part of the commands need to come to this one anyway so I'm just doing a network event sender for the other one. It would be nice to get this going so I could send the commands to which ever computer needs them and cut out the extra stuff. The other difference between these two is this one is xp home and that one xp pro, that may have something to do with it.

One interesting thing I did figure out with this is I can load the images into the pocket pc and not have to redownload them every time I push a button. The html command that finally worked with this is

Code: Select all

img src="file://\Storage Card\images/home.gif
. I don't know why all the slashes had to be going in different directions but that's what it took to make it work. The images reload much faster now.

Thanks again for your help and if anyone has any ideas about conntecting to the other computer please let me know. Rich
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Webserver instructions please.

Post by Bartman »

specter333 wrote:That's a good thought, unfortunately that computer has a dynamic ip so it wouldn't work that way anyway.
Why don't you assign a static IP to the computer?
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

Bartman wrote:Why don't you assign a static IP to the computer?
That computer uses internet connection sharing through this one. This one has a static IP and that one get assigned an IP from this one on startup. That's how I understand it works anyway, there again there may be more to it that's above my head.

I'm sure there's one little setting or checkbox or something I'm missing. I don't think the webpage remote thing is going to workout for me anyway, I'm trying a new route.

What my final goal is I use my PPC as a remote and it drives me nuts having to get it pointed directly at the usbuirt for it to work. I'm trying to get away from having to send everything IR and start using RF so I don't have to point it at all.

I started using the PPC because it got to the point that I couldn't remember what I had assigned to all the remote keys. With the PPC I can build my own pages and name the keys what they actually are. I can make the buttons big enough to push easily even in a dark room. I control just about every thing I do with EventGhost now so the remote pages are starting to add up.

One little note that may interest some of you, the remote that's become my staple has been the EG On Screen Remote. I control it with a Gyration Media center remote, the older small model with only a few buttons on it. It seems to be a pretty rare model as I hardly ever see any of this type around. It works as an air mouse and has all the basic transport keys for media plus a few others that can be mapped to extra's. There are three buttons directly above the mouse buttons I've assigned as scroll up, down and center mouse click. I've got layers and layers of on screen remote pages that control everything I do from navigating through my files to controlling all the adjustments on my projector. While I've been busy trying to get other things to work this mouse has became the most versatile, easy to use remote control I've ever used without my even realizing it.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Webserver instructions please.

Post by Bitmonster »

You have to open the webserver port in your firewall. But if this machine directly connects to the internet, it is not recommended to do so, as the webserver plugin has no security functions to restrict access from the internet.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

Bitmonster wrote:You have to open the webserver port in your firewall. But if this machine directly connects to the internet, it is not recommended to do so, as the webserver plugin has no security functions to restrict access from the internet.
This is the computer it does work on and this is the computer that connects directly to the internet, the other one connects through this one. So that means this computer has a big security hole in it because of the port for the webserver? It connects through port 80, isn't that the normal port for internet connection anyway?

I keep this computer tightly firewalled, I don't even let most microsoft apps connect to the net but I gave Event Ghost full clearance to do whatever it does.
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Webserver instructions please.

Post by specter333 »

My final question on the subject, short and to the point.

Does anyone know of a way to send some kind of message from a pocket pc wifi that EG could receive on a PC?
Post Reply