How orangesplash69/wx works
wx is a single-file terminal weather dashboard. The user supplies a city and options; the app resolves the location, retrieves weather data, and presents a responsive report. Its documented report includes current conditions, metrics, daylight, hourly views, and a multi-day forecast, with additional alert, air-quality, nowcast, and astronomy capabilities indicated by the source excerpt. Most implementation is unsampled, so relationships among those additional features are not inferred.
Main entry points: main.py Report assembly
Components 16
Lookup and data
- CLI options
main.py - City geocoding
main.py - Open-Meteo geocoder
- latlng geocoder
- Weather retrieval
main.py - Open-Meteo weather API
Weather report
- Report assembly
main.py - Current conditions
main.py - Weather metrics
main.py - Daylight bar
main.py - Hourly views
main.py - Multi-day forecast
main.py - Alerts, air, astro
main.py
Runtime support
- Response cache
main.py
Other components
- Terminal user
- Terminal display
Connections 15
- Terminal user → CLI options: sets options
README.md - CLI options → City geocoding: requests lookup
README.md - City geocoding → Open-Meteo geocoder: queries first
README.md - City geocoding → latlng geocoder: falls back
README.md - CLI options → Weather retrieval: sets forecast
README.md - Weather retrieval → Open-Meteo weather API: fetches weather
README.md - Weather retrieval → Response cache: caches responses
main.py - Weather retrieval → Report assembly: supplies data
README.md - Report assembly → Current conditions: renders
README.md - Report assembly → Weather metrics: renders
README.md - Report assembly → Daylight bar: renders
README.md - Report assembly → Hourly views: renders
README.md - Report assembly → Multi-day forecast: renders
README.md - Report assembly → Alerts, air, astro: includes capabilities
main.py - Report assembly → Terminal display: displays report
README.md