Here in the forum often come questions about the Webserver
I prepared a simple program and HTML page as an example application.
It includes a "Virtual house
" program and the "Virtual house
1.) You will need a Webserver plugin
version 3.12.1 or later. Version 3.12.1 is available for download here
. File __init__.py
should be placed in a folder EventGhost\plugins\Webserver
2.) Extract the contents of the file WS_DEMO.zip
3.) Folder VirtualHouse
program. It can be placed (for example) in C:\Users\<USER>\AppData\Local
4.) Folder EventGhost
file and two subfolders. In the subfolder plugins
, VirtualHouse plugin
are located. Subfolder VirtualHouse
(including content) move to folder EventGhost\plugins
. Folder www-WSdemo
could be anywhere.
5.) Using the program EventGhost
open the file WebserverWebSocketDemo.xml
6.) In the setting VirtualHouse plugin
type the path to the file VirtualHouse.exe
7.) In the setting Webserver plugin
type the path to the folder www-WSdemo
(as HTML documents root). You can also change the port, if using 8080 already on your computer.
8.) Open your web browser and in the address line, enter localhost:8080
(or another port if you have changed it).
Now should appear Web forms for Virtual house
and Persistent variables demo
. If program VirtualHouse.exe
is not running, house icon should be gray. Click on it!
Now, if everything works, you can learn how it's done.