weatherman-core
Framework-free weather logic shared by the weatherman
Iced GUI and the weatherman-tui Ratatui TUI —
and usable on its own as a drop-in weather API provider library.
No GUI or TUI dependencies. Data comes from Open-Meteo (no API key required) with geocoding via Nominatim/OpenStreetMap.
Features
- Domain models:
WeatherCondition,Location,CurrentWeather,HourlyForecast,DailyForecast,Forecast WeatherProvidertrait so you can swap the backend (paid API, cache, test double…)WeatherForecaster— Open-Meteo implementation ofWeatherProviderLocationService— IP-based and name-based geocoding- UI-agnostic formatting helpers (units, wind direction, condition tones, local time)
Example
use ;
async
License
MIT