Implement default precision=0 for upstream weatherapi endpoints

This commit is contained in:
2026-07-02 11:39:17 -05:00
parent 27506168f8
commit 7f989839cd
6 changed files with 15 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ config test suite.
- `base_url`: absolute base URL for the Weather API. Required for generation and collection workflows.
- `timeout`: HTTP timeout duration. Default: `10s`.
- `precision`: numeric precision query value. Default: `1`.
- `precision`: numeric precision query value. Default: `0`, which requests integer values where supported.
- `units`: Weather API units query value. Default: `us`.
- `timezone`: report timezone and Weather API timezone query value where supported. Default: `America/Chicago`.
- `format`: Weather API response format. Must be `json`. Default: `json`.

View File

@@ -69,7 +69,8 @@ The adapter sends these query parameters:
- `format`: from `weather_api.format`; configuration validation requires `json`
- `units`: from `weather_api.units`
- `precision`: from `weather_api.precision` on observations, current
conditions, hourly forecast, and narrative forecast requests
conditions, hourly forecast, and narrative forecast requests; the built-in
default is `0`
- `tz`: from `weather_api.timezone` on hourly forecast, narrative forecast,
discussion, and SPC convective outlook requests