Command reference¶
This page summarises each rain subcommand. Exact flags match what Cyclopts generates (kebab-case on the CLI).
rain add¶
Add a rain total in millimetres for the appropriate daily bucket.
| Parameter | Flag | Description |
|---|---|---|
| Reading | --reading |
Rain amount (mm); typically positional. |
| Date | --date |
Optional; defaults to “now” (then normalised to the 09:00 bucket). |
| Back fill | --back-fill / --no-back-fill |
When enabled, inserts 0.0 mm for consecutive prior days until an existing record is found. |
| DB directory | --db-dir |
Directory containing MyWeather.sqlite (default: .). |
rain change¶
Update an existing row for the same bucket as add.
| Parameter | Flag | Description |
|---|---|---|
| Reading | --reading |
New amount (mm). |
| Date | --date |
Optional; same default semantics as add. |
| DB directory | --db-dir |
Same as add. |
rain graph¶
Plot rainfall totals (mm) as a terminal bar chart.
| Parameter | Flag | Description |
|---|---|---|
| Size | --size |
Number of buckets to show (default: 30). |
| Group | --group |
daily, weekly, monthly, yearly, or annually (default: daily). |
| DB directory | --db-dir |
Same as above. |
rain rainy-days¶
Plot counts of rainy days (days where stored total > 0) aggregated by --group. The Y axis is a count, not millimetres.
| Parameter | Flag | Description |
|---|---|---|
| Size | --size |
Number of aggregated buckets (default: 30). |
| Group | --group |
Same choices as graph. |
| DB directory | --db-dir |
Same as above. |
rain weewx-import¶
Import from a WeeWX SQLite database (archive_day_rain). Values are converted from inches to millimetres (× 25.4).
| Parameter | Flag | Description |
|---|---|---|
| WeeWX DB | --weewx-db |
Path to weewx.sdb (default: weewx.sdb in the working directory). |
| DB directory | --db-dir |
Target MyWeather.sqlite directory (default: .). |
Note
weewx-import uses INSERT for imported rows. If you need idempotent merges or conflict handling, adjust the workflow (for example import into a fresh DB or extend the code).