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
this could than be read by a browser with http://your-web-site-URL/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 **************

On 07.09.2021 15:36, Eric Gammeter wrote:
WEEWX INDEX html page.

On Tuesday, September 7, 2021 at 9:35:54 AM UTC-4 Eric Gammeter wrote:

    OK-  I would like to see my WEEWX HTML web page on my LAN-  not
    have to go to the internet.  Thanks for your input Tom and Vince!
    /Eric G.

    On Thursday, September 2, 2021 at 7:51:39 AM UTC-4 [email protected] wrote:

        In addition to using a web server on the same "machine"
        (whether actual or virtual), one can also use secure FTP or
        rsync via weewx.conf to have weewx stick the HTML in a
        specific directory on an existing web server. I use this
        technique ot use one web server and virtual hosts to serve
        weewx HTML for five stations.

        So, a couple of ways to do what it sounds like what you're
        looking for, but as Vice says, it would be good to know more
        about what you're looking to do.

        On Wednesday, September 1, 2021 at 1:31:02 PM UTC-4 vince wrote:

            Not understanding what you're asking, but does the wiki
            (link)
            
<https://github.com/weewx/weewx/wiki/Configure-a-web-server-(Apache,-NGINX-or-lighttpd)>
            help any ?

            On Wednesday, September 1, 2021 at 4:20:58 AM UTC-7
            [email protected] wrote:

                Wondering if / how I can interface my WEEWX
                application with a WEB SERVER (apache) and port that
                to my web site.??  Basically I am looking for other
                reporting options.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/aa78ce16-4649-40e3-b070-b212d639cfe4n%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/aa78ce16-4649-40e3-b070-b212d639cfe4n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f22e67f7-4912-01eb-3f54-adb5c3442116%40gmail.com.

Reply via email to