/wx

✈️ Getting Aviation Weather Reports from NOAA in C

Primary LanguageC

Unix Utility to Fetch Aviation Weather Reports from NOAA

As a nerdy pilot, I wish to check my weather reports while I'm at office, without getting my iPad EFB out and using Foreflight.
The usage is wx <station_names> (optional) -r <report_types>
Station names are four capital letters according to ICAO, e.g. KJFK for JFK, EGLL for Heathrow. Report types can be entered either in all cap or lower case, and are currently limited to METAR or TAF report types.

If you're not a pilot, here are the Wikipedia pages on METAR and TAF:
https://en.wikipedia.org/wiki/METAR
https://en.wikipedia.org/wiki/Terminal_aerodrome_forecast

The data is fetched using API from https://aviationweather.gov

The executable wx is compiled for MacOS aarch64 using GCC 12. The shell script wx.sh is also provided.