Fetch airport weather (METAR, TAF, PIREPs) for flight planning and briefings. Use for "weather at KJFK", "TAF for EGLL", or pre-flight weather checks.
Fetch real-time aviation weather from the FAA's aviationweather.gov API.
# METAR for specific airports
python3 ./wx.py KSMO KLAX KVNY
# METAR + TAF
python3 ./wx.py KSMO KLAX --metar --taf
# Just TAF
python3 ./wx.py KSMO --taf
# PIREPs near a location (lat/lon)
python3 ./wx.py --pirep --lat 34.0 --lon -118.4 --radius 100
# Raw output with JSON
python3 ./wx.py KSMO --json
# Verbose (show raw METAR text)
python3 ./wx.py KSMO -v
When no stations specified, defaults to Santa Monica area: KSMO, KLAX, KVNY
| Code | Name |
|---|---|
| KSMO | Santa Monica |
| KLAX | Los Angeles Intl |
| KVNY | Van Nuys |
| KBUR | Burbank |
| KTOA | Torrance |
| KSNA | John Wayne |
| KFUL | Fullerton |
| KCMA | Camarillo |
| KOXR | Oxnard |
| KPSP | Palm Springs |
--metar, -m: Fetch METAR (default)--taf, -t: Fetch TAF forecast--pirep, -p: Fetch pilot reports--hours N: Hours of METAR history (default: 2)--lat, --lon: Location for PIREP search--radius N: PIREP search radius in nm (default: 100)--verbose, -v: Show raw observation text--json: Output raw JSON data