tuiweather 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/dist/index.js +21670 -21443
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Keyboard-driven terminal weather app: Dark Sky-style rain nowcasting, hourly and
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Rain nowcast** — minute-level "umbrella in N min" warnings derived from 15-minute precipitation buckets
|
|
7
|
+
- **Rain nowcast** — minute-level "umbrella in N min" warnings derived from 15-minute precipitation buckets (Open-Meteo only; NWS has no minute-level precipitation feed — the nowcast panel hides and the watch bell stays inactive under `provider = "nws"`, nothing renders a false "Dry")
|
|
8
8
|
- **Hourly + daily forecast** — sparkline temperature strip, emoji condition icons, precipitation probabilities, and (md+ widths) a UV/humidity/visibility summary row
|
|
9
9
|
- **Location search** — type `/`, search the Open-Meteo geocoder, enter to add; locations persist to config
|
|
10
10
|
- **Guided first run** — choose units and find a location without editing a config file
|
|
@@ -52,6 +52,7 @@ Use `tuiweather --help` for command-line options and `tuiweather --version` to p
|
|
|
52
52
|
| --- | --- |
|
|
53
53
|
| `r` | Refresh current location (bypasses cache) |
|
|
54
54
|
| `[` / `]` | Previous / next location |
|
|
55
|
+
| `l` | Open the locations overlay: switch, set default, delete, reorder |
|
|
55
56
|
| `1`–`9` | Jump to location N by sidebar order (1-based; no-op out of range) |
|
|
56
57
|
| `u` | Toggle metric / imperial units |
|
|
57
58
|
| `/` | Search locations |
|
|
@@ -67,6 +68,8 @@ Use `tuiweather --help` for command-line options and `tuiweather --version` to p
|
|
|
67
68
|
|
|
68
69
|
While the search overlay is open it owns the keyboard: type to search, up/down to move the cursor, enter to add the highlighted result, esc to cancel. Number, focus, and reorder keys are ignored while the search input is focused (same as `d`/`r`).
|
|
69
70
|
|
|
71
|
+
The locations overlay (`l`) also owns the keyboard while open: up/down (or `j`/`k`) to move the cursor, enter or `1`–`9` to switch, `s` to set the cursor row as default, `d` twice to delete it, `J`/`K` to reorder it, `/` to jump into search, esc to close.
|
|
72
|
+
|
|
70
73
|
### One-line mode
|
|
71
74
|
|
|
72
75
|
`tuiweather --one-line` prints a single line and exits — designed for tmux status bars and shell prompts:
|
|
@@ -113,7 +116,9 @@ tuiweather watch --location seattle
|
|
|
113
116
|
|
|
114
117
|
Each poll prints the one-line status (prefixed with the location label). The bell rings only on a
|
|
115
118
|
dry → wet transition, not on every poll. Rain already in progress when the watch starts does not
|
|
116
|
-
bell.
|
|
119
|
+
bell. The bell depends on the minute-level nowcast, which is Open-Meteo only: under
|
|
120
|
+
`provider = "nws"` the nowcast panel hides and the bell stays inactive — nothing renders a false
|
|
121
|
+
"Dry". Desktop notifications are a planned follow-up.
|
|
117
122
|
|
|
118
123
|
## Configuration
|
|
119
124
|
|
|
@@ -154,7 +159,7 @@ longitude = -122.6765
|
|
|
154
159
|
| `time_format` | `12h` / `24h` / `auto` | `"auto"` | `auto` picks 12h when temperature units are imperial, else 24h |
|
|
155
160
|
| `refresh_minutes` | integer | `10` | Minimum `1` |
|
|
156
161
|
| `theme` | `day` / `night` / `auto` | `"auto"` | Accent palette; `auto` follows the location's sunrise/sunset. Text ink always adapts to your terminal's background |
|
|
157
|
-
| `provider` | `openmeteo` / `nws` | `"openmeteo"` | Weather data source; NWS
|
|
162
|
+
| `provider` | `openmeteo` / `nws` | `"openmeteo"` | Weather data source. Open-Meteo is the default full-feature experience; NWS is the official US source fallback — works: conditions, temperatures, precipitation probabilities; goes quiet: minute-level nowcast (panel hides, watch bell inactive), hourly/daily precip amounts (blank bars/chips), air quality |
|
|
158
163
|
| `daily_days` | integer | `7` | `1`–`16` forecast days |
|
|
159
164
|
| `hourly_hours` | integer | `24` | `12`–`48` forecast hours |
|
|
160
165
|
| `default_location` | string | none | Must match a `[[locations]]` slug |
|