Files
weewx/docs_src/usersguide/where.md
Tom Keffer 2fe42433fe Rename docs subdirectories.
docs -> docs_src
html_docs -> docs

This puts the names closer to the end product.
2023-04-04 07:27:42 -07:00

3.7 KiB

Where to find things

Locations

Here is a summary of the layout for the different install methods, along with the symbolic names used for each role. These names are used throughout the documentation.

!!! Note The install locations below are relative to WEEWX_ROOT. See Python's documentation on os.path.join() for the results of joining two absolute paths (summary: the 2nd path wins).

=== "Debian"

| Role                    | Symbolic name     | Nominal value                  |
|-------------------------|-------------------|--------------------------------|
| WeeWX root directory    | _`WEEWX_ROOT`_   | `/`                             |
| Executables             | _`BIN_ROOT`_     | `/usr/share/weewx/`             |
| Configuration directory | _`CONFIG_ROOT`_  | `/etc/weewx/`                   |
| Skins and templates     | _`SKIN_ROOT`_    | `/etc/weewx/skins/`             |
| SQLite databases        | _`SQLITE_ROOT`_  | `/var/lib/weewx/`               |
| Web pages and images    | _`HTML_ROOT`_    | `/var/www/html/weewx/`          |
| Documentation           | _`DOC_ROOT`_     | `/usr/share/doc/weewx/`         |
| Examples                | _`EXAMPLE_ROOT`_ | `/usr/share/doc/weewx/examples/`|
| User directory          | _`USER_ROOT`_    | `/usr/share/weewx/user`         |

=== "RedHat/openSUSE"

| Role                    | Symbolic name    | Nominal value                          |
|-------------------------|------------------|----------------------------------------|
| WeeWX root directory    | _`WEEWX_ROOT`_   | `/`                                    |
| Executables             | _`BIN_ROOT`_     | `/usr/share/weewx/`                    |
| Configuration directory | _`CONFIG_ROOT`_  | `/etc/weewx/`                          |
| Skins and templates     | _`SKIN_ROOT`_    | `/etc/weewx/skins/`                    |
| SQLite databases        | _`SQLITE_ROOT`_  | `/var/lib/weewx/`                      |
| Web pages and images    | _`HTML_ROOT`_    | `/var/www/html/weewx/`                 |
| Documentation           | _`DOC_ROOT`_     | `/usr/share/doc/weewx-x.y.z/`          |
| Examples                | _`EXAMPLE_ROOT`_ | `/usr/share/doc/weewx-x.y.z/examples/` |
| User directory          | _`USER_ROOT`_    | `/usr/share/weewx/user`                |

=== "Pip (including macOS)"

| Role                    | Symbolic name    | Nominal value        |
|-------------------------|------------------|----------------------|
| WeeWX root directory    | _`WEEWX_ROOT`_   | `~/weewx-data`       |
| Executables             | _`BIN_ROOT`_     | `~/.local/bin`       |
| Configuration directory | _`CONFIG_ROOT`_  | `./`                 |
| Skins and templates     | _`SKIN_ROOT`_    | `./skins/`           |
| SQLite databases        | _`SQLITE_ROOT`_  | `./archive/`         |
| Web pages and images    | _`HTML_ROOT`_    | `./public_html/`     |
| Documentation           | _`DOC_ROOT`_     | `./docs`             |
| Examples                | _`EXAMPLE_ROOT`_ | `./examples/`        |
| User directory          | _`USER_ROOT`_    | `./bin/user`         |

Log files

Where to find your log file. You may require root permissions to read them.

=== "Debian"

`/var/log/syslog`

=== "RedHat/openSUSE"

`/var/log/messages`

=== "macOS"

The macOS log file is nominally found at `/var/log/syslog`. However, it is likely to contain
only severe log messages. You may want to consider logging to a rotating file. See the
wiki article [*Logging to rotating files*](https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#logging-to-rotating-files).