✓ Verified 💻 Development ✓ Enhanced Data

Aviation Agent

Aviation weather briefing and FAA reference assistant for pilots.

Rating
3.8 (169 reviews)
Downloads
42,182 downloads
Version
1.0.0

Overview

Aviation weather briefing and FAA reference assistant for pilots.

Complete Documentation

View Source →

Aviation Agent

Aviation weather briefing and FAA reference assistant. Fetches live weather data from aviationweather.gov and provides FAR/AIM quick reference for flight planning and go/no-go decisions.

Quick Start

bash
# Get current METAR for Los Angeles International
python3 scripts/metar.py --metar KLAX

# Full briefing: METAR + TAF forecast for two airports
python3 scripts/metar.py --metar KLAX KSFO --taf KLAX KSFO

# Check PIREPs (pilot reports) near Chicago O'Hare, last 4 hours
python3 scripts/metar.py --pirep KORD --hours 4

scripts/metar.py — Weather Data Fetcher

Queries the aviationweather.gov public API (no API key needed). Returns formatted, decoded weather reports with flight category classification.

Arguments

FlagDescriptionExample
--metar ICAO [ICAO ...]Fetch current METAR for one or more airports--metar KLAX KJFK
--taf ICAO [ICAO ...]Fetch TAF forecast for one or more airports--taf KORD
--pirep ICAOFetch PIREPs within 200 nm of airport--pirep KSFO
--hours NHours of data to retrieve (1-24, default: 2)--hours 6
Flags can be combined in a single call:
bash
python3 scripts/metar.py --metar KLAX --taf KLAX --pirep KLAX --hours 3

Output Includes

  • Raw report text and decoded fields
  • Wind direction/speed/gusts, visibility, cloud layers
  • Weather phenomena decoded to plain English (e.g., +TSRA -> Heavy Thunderstorm Rain)
  • Automatic flight category classification (VFR/MVFR/IFR/LIFR)
  • Temperature, dewpoint, altimeter setting

ICAO Code Format

Codes must be exactly 4 uppercase letters. Common US airports use K prefix (e.g., KLAX, KJFK, KORD). International examples: EGLL (London Heathrow), RJTT (Tokyo Haneda).

When to Read Which Reference

User QuestionRead This File
"What does BKN025 mean?" / "Decode this METAR"references/metar-codes.md
"What does TEMPO mean in this TAF?" / "Explain TAF format"references/taf-codes.md
"How many landings do I need to be current?" / "What are VFR minimums in Class D?"references/far-quickref.md
"Can I fly today?" / "Is this weather safe for a student pilot?"references/decision-guide.md
Go/no-go decision with specific weather dataRun scripts/metar.py first, then read references/decision-guide.md
For a full weather briefing workflow:
  • Run scripts/metar.py with --metar and --taf for the departure and destination airports
  • Run scripts/metar.py with --pirep to check for turbulence/icing reports
  • Read references/decision-guide.md to evaluate the weather against personal minimums
  • Read references/far-quickref.md if the user needs regulatory specifics

Flight Category Legend

CategoryCeilingVisibilityMarkerMeaning
VFR> 3,000 ft AGL> 5 SMGreenVisual flight rules — clear conditions
MVFR1,000 – 3,000 ft3 – 5 SMBlueMarginal VFR — proceed with caution
IFR500 – 999 ft1 – < 3 SMRedInstrument flight rules required
LIFR< 500 ft< 1 SMMagentaLow IFR — extremely restricted visibility
The more restrictive of ceiling or visibility determines the category. For example, 10 SM visibility but a 900 ft ceiling is IFR (ceiling is the limiting factor).

Ceiling is defined as the lowest cloud layer reported as BKN (Broken) or OVC (Overcast). FEW and SCT layers are not ceilings.

Installation

Terminal bash

openclaw install aviation-agent
    
Copied!

💻Code Examples

python3 scripts/metar.py --pirep KORD --hours 4

python3-scriptsmetarpy---pirep-kord---hours-4.txt
## scripts/metar.py — Weather Data Fetcher

Queries the aviationweather.gov public API (no API key needed). Returns formatted, decoded weather reports with flight category classification.

### Arguments

| Flag | Description | Example |
|------|-------------|---------|
| `--metar ICAO [ICAO ...]` | Fetch current METAR for one or more airports | `--metar KLAX KJFK` |
| `--taf ICAO [ICAO ...]` | Fetch TAF forecast for one or more airports | `--taf KORD` |
| `--pirep ICAO` | Fetch PIREPs within 200 nm of airport | `--pirep KSFO` |
| `--hours N` | Hours of data to retrieve (1-24, default: 2) | `--hours 6` |

Flags can be combined in a single call:
example.sh
# Get current METAR for Los Angeles International
python3 scripts/metar.py --metar KLAX

# Full briefing: METAR + TAF forecast for two airports
python3 scripts/metar.py --metar KLAX KSFO --taf KLAX KSFO

# Check PIREPs (pilot reports) near Chicago O'Hare, last 4 hours
python3 scripts/metar.py --pirep KORD --hours 4

Tags

#coding_agents-and-ides

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author zeron-g
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install aviation-agent