Problem
Public ADS-B data makes it possible to follow aircraft live. The project builds a real-time data platform that spots holding patterns, go-arounds and congestion at Moroccan airports, and cross-references them with weather.
Data
- OpenSky Network: aircraft positions every 45 s
- Open-Meteo: airport weather every hour
- Known limit: near airports, only Tangier approaches are visible at low altitude
Approach
- My part (week 1): Python producer that polls OpenSky and publishes positions to the Kafka topic flights.raw
- Weather producer to weather.raw; Docker Compose with Kafka and Kafka UI
- Spark Structured Streaming job in Scala: Bronze archive in Parquet, 5-minute traffic per airport, HOLDING and GO_AROUND alerts
- GitHub Actions CI: ruff, pytest, sbt test
Results
- Weeks 1 and 2 completed and tested with real data
- 55 Python tests (pytest) and 39 Scala tests (ScalaTest)
What I would improve
- Planned: Silver and Gold layers on Databricks (Delta Lake), Airflow orchestration, Snowflake + dbt, Streamlit dashboard
- Find a low-altitude position source for Casablanca, Rabat and Fez