First version for SVG / HOWTO
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
48
webfrontend/pgm2/HOWTO.html
Normal file
48
webfrontend/pgm2/HOWTO.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>FHEMWEB Howto</title>
|
||||
</head>
|
||||
<body style="background-color: white;">
|
||||
<h2>FHEMWEB Howto</h2>
|
||||
|
||||
<a href="#starting">Starting</a><br/>
|
||||
|
||||
<a name="starting"></a>
|
||||
<h3>Starting</h3>
|
||||
|
||||
For a start create a minimal fhem config file fhem.cfg, like the
|
||||
following:<br/>
|
||||
|
||||
<pre>
|
||||
attr global logfile /tmp/fhem.log
|
||||
attr global modpath /usr/local/lib
|
||||
attr global port 7072 global
|
||||
attr global statefile /tmp/fhem.state
|
||||
|
||||
define WEB FHEMWEB 8083 global</pre>
|
||||
|
||||
It is important that the modpath contains a directory called FHEM, where
|
||||
all the necessary modules and other files are present, these modules should
|
||||
<b>not</b> be found directly in modepath. Usually these are all the files
|
||||
from the fhem package FHEM directory and webfrontend/pgm2 directory, and
|
||||
some files from the contrib directory.<br/>
|
||||
|
||||
|
||||
The logfile and the statefile should be changed from /tmp to a more stable directory, e.g. /var/log/FHEM or alike.<br/>
|
||||
|
||||
Now you can start fhem via:<pre>
|
||||
perl fhem.pl fhem.cfg</pre>
|
||||
The logfile should look like:
|
||||
<pre>
|
||||
2008.06.15 16:17:03 2: FHEMWEB port 8083 opened
|
||||
2008.06.15 16:17:03 0: Server started (version ...)
|
||||
</pre>
|
||||
You can connect to the server either via telnet (type a return after you get
|
||||
the connection):<br/><br/>
|
||||
|
||||
telnet localhost 7072<br/><br/>
|
||||
or a little bit nicer via an internet browser:<br/><br/>
|
||||
<a href="http://localhost:8083/fhem>http://localhost:8083/fhem</a><br/>
|
||||
|
||||
<body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user