FHEMWEB Howto
Starting
Starting
For a start create a minimal fhem config file fhem.cfg, like the
following:
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
It is important that the modpath contains a directory called FHEM, where
all the necessary modules and other files are present, these modules should
not 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.
The logfile and the statefile should be changed from /tmp to a more stable directory, e.g. /var/log/FHEM or alike.
Now you can start fhem via:
perl fhem.pl fhem.cfg
The logfile should look like:
2008.06.15 16:17:03 2: FHEMWEB port 8083 opened
2008.06.15 16:17:03 0: Server started (version ...)
You can connect to the server either via telnet (type a return after you get
the connection):
telnet localhost 7072
or a little bit nicer via an internet browser: