| 12 | |
| 13 | '''2. Add plugin, choose "Webserver" which is found under "Other".''' |
| 14 | |
| 15 | '''3. Choose which port to use. Usually port 80 is used. Choose which folder the html-file is to be located, for example "C:\Program\EventGhost\www".''' |
| 16 | |
| 17 | [[Image(Webserver2.png)]] |
| 18 | |
| 19 | '''4. Add plugin, choose "TellStick" which is found under "External Hardware Control".''' |
| 20 | |
| 21 | [[Image(Webserver3.png)]] |
| 22 | |
| 23 | '''5. Preferably create a new folder, named for example "www" or "http".''' |
| 24 | |
| 25 | '''6. Add a new macro, choose event TellStick - turn on.''' |
| 26 | |
| 27 | [[Image(Webserver4.png)]] |
| 28 | |
| 29 | '''7. Choose unit to switch on.''' |
| 30 | |
| 31 | [[Image(Webserver5.png)]] |
| 32 | |
| 33 | '''8. Create a new file in the new folder (i.e. for example "C:\Program\EventGhost\www" or "C:\Program\EventGhost\http"). In this example the name of the file is eventghost.html. Enter the following content into the file:''' |
| 34 | |
| 35 | {{{ |
| 36 | |
| 37 | <html> |
| 38 | <head> |
| 39 | <title>EventGhost Webserver example</title> |
| 40 | </head> |
| 41 | <body> |
| 42 | <table border="0"> |
| 43 | <tr> |
| 44 | <td width="120">Example Device</td> |
| 45 | <td width="30"><a href="eventghost.html?Example-Device_ON"><img border="0" src="lamp-on.png"></a></td> |
| 46 | <td width="30"><a href="eventghost.html?Example-Device_OFF"><img border="0" src="lamp-off.png"></a></td> |
| 47 | </tr> |
| 48 | </table> |
| 49 | </body> |
| 50 | </html> |
| 51 | |
| 52 | }}} |
| 53 | |
| 54 | OBS: If the file name is changed the link (i.e. "...eventghost.html...") also has to be changed. |
| 55 | |
| 56 | '''9. Uncheck "Log only assigned and activated events."''' |
| 57 | |
| 58 | [[Image(Webserver7.png)]] |
| 59 | |
| 60 | '''10. Open the file in your web browser by browsing the address http://localhost/eventghost.html''' |
| 61 | |
| 62 | [[Image(Webserver6.png)]] |
| 63 | |
| 64 | '''11. Click the lamp for on.''' |
| 65 | |
| 66 | [[Image(Webserver8.png)]] |
| 67 | |
| 68 | '''12. Pull the button combination from the log window to the left to the macro.''' |
| 69 | |
| 70 | [[Image(Webserver9.png)]] |
| 71 | |
| 72 | '''13. Follow the guide from 4 to 6 and from 9 to 11 to create the corresponding off command.''' |
| 73 | |
| 74 | [[Image(Webserver10.png)]] |
| 75 | |
| 76 | '''14. Test the macro by clicking the icons for on and off in the web browser.''' |
| 77 | |
| 78 | == Download == |
| 79 | |
| 80 | Here the html example and the xml file are available to download: eventghost_webserver.zip. |
| 81 | |
| 82 | The xml file should be placed in My Documents\EventGhost. |
| 83 | |
| 84 | If you follow this guide the html and png files should be placed in C:\Program\EventGhost\www. |