weewx puts the index.html and related
include files (*.inc) and pictures into the directory which is
defined in weewx.conf by HTML_ROOT=
in the [StdReport] section
If weewx is installed on the same
server as apache2, the default directory would be
/var/www/html/weewx where the apache web server
would pick up the index.html when requested by a http(s) call -
e.g.
http://URL/weewx or
http://IP-address/weewx
(depending on your weewx installation
method the paths maybe be different from the above example - see
weewx installation guide)
If your web site is different from the
weewx server, some web server (e.g. apache2) will have to run on
this web site and it will also have a HTML root directory, often
/www/... or /public_html/...
If you create a directory under your
web server root directory (not the server root but the web server
root !) e.g. ./weewx, you have to copy the files generated by
weewx into the local HTML_ROOT/weewx directory into the remote web
site server's directory e.g. /public_html/weewx
Usually this is done via FTP. You can
use the [[FTP]] section in [StdReport] of weewx.conf to
post/copy/upload (all synonyms here) to your web site
see below
at each archiving cycle (default 300
seconds = 5 min) the files for e.g. the Seasons skin will then be
sent to your web site
(provided you use the Seasons skin)
the [[FTP]] either uses as source the
default HTML_ROOT directly under [StdReport]] or an extra
HTML_ROOT which you define in the [[FTP]] stanza.
#************************ excerpt from
weewx.conf start **************
[StdReport]
# Where the skins reside, relative
to WEEWX_ROOT
SKIN_ROOT = /etc/weewx/skins
# Where the generated reports should go, relative to
WEEWX_ROOT
HTML_ROOT = your-default-html-root-on-your-weewx-server
# The database binding indicates which data should be used in
reports.
data_binding = wx_binding
# Whether to log a successful operation
log_success = True
# Whether to log an unsuccessful operation
log_failure = True
# Each of the following subsections defines a report that will
be run.
# See the customizing guide to change the units, plot types
and line
# colors, modify the fonts, display additional sensor data,
and other
# customizations. Many of those changes can be made here by
overriding
# parameters, or by modifying templates within the skin
itself.
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which
contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
# .................
# .................
[[FTP]]
# FTP'ing the results to a webserver is treated as just
another report,
# albeit one with an unusual report generator!
skin = Ftp
# If you wish to use FTP, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing
errors.
enable = true
user = your-(ftp)user-name at your web site
password = your-password-at-your-web-site
server = # fhe ftp server name, e.g,
www.myserver.org
path = # The destination directory, e.g., /weather , or
/weewx or /www/weewx depending on your hosting site
# Set to True for an FTP over TLS (FTPS) connection. Not
all servers
# support this.
secure_ftp = False
# To upload files from something other than what HTML_ROOT
is set directly under [StdReport]
# to above, specify a different HTML_ROOT here.
HTML_ROOT =
your-html-root-on-your-weewx-server-from-where-you-want-to-upload-our
files-to-your-web-site
# e.g. /var/www/html/weewx
# where the cheetah generator puts all the html, *.png
etc. files
#************************ excerpt from
weewx.conf end **************