Skip to content

404x-in/Flight-Radar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✈️ FlightAI Tracker

Real-time flight tracking with AI-powered weather analysis and landing condition predictions.


Overview

FlightAI Tracker is a full-stack flight tracking application that combines live ADS-B flight data with real-time weather analysis to give passengers and aviation enthusiasts an intelligent view of flight conditions anywhere in the world.

Select any of the 10,000+ flights currently in the air and instantly get the weather at that exact position, a comfort rating, landing condition forecast, and a plain-English breakdown of any risks — all powered by a custom AI scoring engine.


Features

  • 🌍 Live Flight Map — Real-time positions of all active flights worldwide via OpenSky Network
  • 🌤️ Position Weather — Fetches live weather at the exact lat/lon of any selected flight via Open-Meteo
  • 🤖 AI Analysis Engine — Scores flight comfort and landing conditions using wind, CAPE, precipitation, visibility, and more
  • 🟢🟡🔴 Comfort Rating — Smooth / Moderate / Rough with a roughness score out of 16
  • ⚠️ Risk Detection — Identifies wind shear, turbulence, low visibility, thunderstorms, and icing risks
  • 📋 Plain-English Summary — Passenger-friendly breakdown of current flight conditions

Tech Stack

Phase 1 — Python Prototype

Layer Tool
Frontend Streamlit
Map PyDeck
Flight Data OpenSky Network API (free)
Weather Data Open-Meteo API (free, no key)
AI Engine Custom heuristic scoring agent

Phase 2 — Production Frontend

Layer Tool
Framework Next.js 14 (App Router)
Map React-Leaflet
Styling Tailwind CSS
Language TypeScript
Data OpenSky + Open-Meteo via API routes

Getting Started

Python (Streamlit)

# Clone the repo
git clone https://github.com/your-username/flightai-tracker.git
cd flightai-tracker/flightai

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install streamlit pandas requests pydeck python-dotenv

# Run
streamlit run app.py

Next.js Frontend

cd flightai-web
npm install
npm run dev

Open http://localhost:3000


How It Works

  1. Flight data is fetched from the OpenSky Network every 30 seconds — no API key required
  2. When a flight is selected, weather is fetched from Open-Meteo at its exact coordinates
  3. The AI scoring engine evaluates wind speed, gusts, precipitation, convective energy (CAPE), visibility, and weather conditions
  4. A roughness score (0–16) determines the comfort rating and landing conditions
  5. Specific risk factors are identified and surfaced as warnings

Scoring Logic

Factor Max Points
Wind speed 3
Wind gusts 3
Precipitation 2
Convective energy (CAPE) 3
Visibility 2
Severe conditions 4
Total 17
  • 0–2 → Smooth 🟢 / Landing: Good
  • 3–5 → Moderate 🟡 / Landing: Fair
  • 6–9 → Rough 🔴 / Landing: Poor
  • 10+ → Rough 🔴 / Landing: Dangerous

Data Sources


License

MIT License

About

Real-time flight tracking with AI-powered weather analysis and landing condition predictions.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages