Repository navigation
Releases
Releases · aeroperf/wx
wx 1.4.0
Added
--afdflag surfaces the NWS Area Forecast Discussion alongside the
normal forecast for US locations. Off by default because AFDs can be
long; silent no-op for non-NWS providers. Fetched from
/products/types/AFD/locations/{cwa}using the office id returned by
/points. Included verbatim in rich/table/plain output and exposed as
theafdkey in JSON output.
wx Denver --afd
wx 1.3.0
Pre-publish compliance polish — no breaking changes.
Added
- Top-level
LICENSEfile (MIT).pyproject.tomlnow references the file directly so PyPI / GitHub / downstream packagers detect the license correctly. - Open-Meteo geocoding credited in the README attribution list (CC BY 4.0 per their terms).
- Aviation output (
-m,-t) prints a "not for operational use" disclaimer footer. README aviation section carries the same notice. - Loud stderr warning when
api.user_agentstill contains theexample.complaceholder — NWS and met.no throttle or 403 stub User-Agents.
Full changelog: https://github.com/aeroperf/wx/blob/main/CHANGELOG.md
wx 1.2.1
Added
- Madeira and Azores (Portuguese Atlantic territories) now route to DWD/Bright Sky alongside the Canary Islands, since DWD MOSMIX covers those stations (e.g. LPMA, LPPD, LPLA).
Full changelog: https://github.com/aeroperf/wx/blob/main/CHANGELOG.md
wx 1.2.0
Quality pass on the 1.1.0 aviation feature: bug fixes, hardening, and a real test suite. No public CLI surface changed beyond the broadened station-ID validator.
Added
- Pytest suite under
tests/(29 tests) covering parser, renderers, and CLI integration for METAR/TAF, with mocked HTTP fixtures. AGENT.md— architecture invariants and conventions for AI coding agents.- TAF rendering now handles combined change codes like
PROB30 TEMPO. - TAF wind-shear groups are now rendered when present.
Changed
- Station-ID validator accepts alphanumeric identifiers (e.g.
K1G3,0R0) instead of alpha-only, matching FAA conventions. - Multi-record responses now prefer
mostRecent=1, falling back to the newest observation/issue time, instead of positional[0]. - HTTP requests use
params={...}dicts instead of f-string URL building — defense in depth against injection. - Wind-direction
0°and wind-speed0 ktare no longer treated as missing (explicitis not Nonechecks instead of falsyorchains). wx.unitsis the single source for the inHg conversion factor; the hardcoded0.02953constant was removed from the aviation renderer.- Location-alias lookups in
[locations]are now case-insensitive. --days 0and--hours 0are respected instead of falling through to config defaults.- JSON output:
rawno longer duplicated inside thedecodedblock.
Fixed
PROBchange groups withNoneprobability no longer render asPROB0.- Visibility renderer: removed dead code that stripped and re-appended
+. - Wind shear with
Nonedirection no longer prints a misleading000°. - Extra positional arguments after the ICAO code now produce a warning instead of being silently ignored.
Internal
- Dropped
typing.Optionalin favor ofX | None. - Added
WindDir = int | Literal["VRB"] | Nonetype alias. - Inlined the trivial
_roundhelper in the NWS provider. - Documented aviationweather.gov field semantics in the provider docstring.
Full changelog: https://github.com/aeroperf/wx/blob/main/CHANGELOG.md
Initial release
- Provides current and forecasted weather using
wxcommand - Supports NWS for US locations, DWD (via brightsky) for European locations and MET Norway for the rest of the world