Skip to content

Commit

Permalink
Document weectl station upgrade-skins
Browse files Browse the repository at this point in the history
  • Loading branch information
tkeffer committed Feb 20, 2023
1 parent bde1db7 commit ecc1e3d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## Utilities

Lot of inconsistencies in how the path to the config file is handled. Some utilities accept a
command line option, others require `--config=`.

Remove wunderfixer and its documentation.

Expand Down
2 changes: 1 addition & 1 deletion docs/utilities/utilities.htm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<div class="header">
<div class="logoref">
<a href='https://weewx.com'> <img src='images/logo-weewx.png' class='logo' style="float:right"
<a href='https://weewx.com'> <img src='../images/logo-weewx.png' class='logo' style="float:right"
alt="weewx logo"/> </a><br/> <span class='version'>
Version: 5.0
</span>
Expand Down
38 changes: 36 additions & 2 deletions docs/weectl/station.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ Which action to take:
upgrade-skins Upgrade the skins.
```
In the documentation that follows, the exact output will depend on
your operating system and username. What is shown below is for macOS and user `tkeffer`.
## `weectl station create`
This action will create a new area for user data. When done, the area will include
Expand All @@ -75,8 +78,7 @@ By contrast, package installers create the necessary user data as part of their
Nevertheless, you may want to create a second user data area, perhaps to support a second
instrument &mdash; in that case, this action may be useful.
Running `weectl station create --help` will show its options. The exact output will depend on
your operating system and username. What is shown below is for macOS and user `tkeffer`.
Running `weectl station create --help` will show its options.
```shell
% weectl station create --help
Expand Down Expand Up @@ -296,3 +298,35 @@ optional arguments:
$WEEWX_ROOT. Default is "examples".
--dry-run Print what would happen, but do not actually do it.
```
## `weectl station upgrade-skins`
This action will upgrade your skins. Your old skins will be saved as a timestamped backup.
Your configuration file will not be touched.
Running `weectl station upgrade-skins --help` will show you its options.
``` shell
% weectl station upgrade-skins --help
usage: weectl station upgrade-skins [--config=CONFIG-PATH] \
[--skin-root=SKIN_ROOT] \
[--no-prompt] \
[--dry-run]
Upgrade skins to the latest version. A backup will be made first. In what
follows, WEEWX_ROOT is the directory that contains the configuration
file. For example, if "--config=/Users/tkeffer/weewx-data/weewx.conf", then
WEEWX_ROOT will be "/Users/tkeffer/weewx-data".
optional arguments:
-h, --help show this help message and exit
--config CONFIG-PATH Path to configuration file. Default is
"/Users/tkeffer/weewx-data/weewx.conf"
--skin-root SKIN_ROOT
Where to put the skins, relatve to WEEWX_ROOT. Default
is "skins".
--no-prompt If set, do not prompt. Use default values.
--dry-run Print what would happen, but do not actually do it.
```

0 comments on commit ecc1e3d

Please sign in to comment.