Skip to content

wx‑cli v1.0.0 · First Public Release 🎉

Latest
Compare
Choose a tag to compare
@hazeliscoding hazeliscoding released this 12 May 15:15

wx‑cli v1.0.0 · First Public Release 🎉

2025‑05‑12


✨ Highlights

Category Notes
CLI command wx-cli forecast
Platforms Windows, Linux, macOS (Go 1.21 +)
Data sources [WeatherAPI.com](https://www.weatherapi.com) for forecasts, [ipinfo.io](https://ipinfo.io) for geolocation
License MIT

🚀 New Features

  • One‑step forecast

    wx-cli forecast

    Auto‑detects your city/region and prints a 7‑day outlook with Unicode tables and icons.

  • Location auto‑detection
    Uses ipinfo.io to fetch City · Region · Country — no manual input needed.

  • Readable terminal UI

    • Current conditions block (temp, feels‑like, humidity).
    • Six‑day table: avg ° F, precipitation %, condition, sunrise & sunset.
  • Cross‑platform config loader
    Reads ~/.config/wx-cli/.env (Linux/macOS) or %USERPROFILE%\.config\wx-cli\.env (Windows) for WEATHERAPI_API_KEY.

  • Zero external runtime deps
    Written in pure Go; statically compiled binaries run anywhere Go runs.


🛠 Under the Hood

  • Package layout

    • api/ – typed WeatherAPI client
    • config/ – dotenv loader + IP lookup
    • display/ – formatted terminal output
  • Dependency management – Go modules (go 1.21).


📥 Installation Recap

go install github.com/hazeliscoding/wx-cli@v1.0.0

or download the pre‑built binaries attached to this release.


⚠️ Known Issues

ID Description Work‑around
#1 Fallback to avgtemp_f for “Current” line may mismatch hourly spikes None – fix planned for v1.1
#2 Total precip shown as percentage, not inches/mm Convert value in v1.1

Enjoy 🌦 — and feel free to open issues or PRs!