Skip to content
Back to projects
Data Engineering EMSI project · May 2026 · 2026

Morocco weather pipeline

Compare the weather of 4 Moroccan cities every day (Marrakech, Tangier, Dakhla, Essaouira) and name the one with the best conditions.

Private code / team project

Problem

Project for the “Data Architecture” course: build a complete pipeline around the weather of 4 Moroccan cities. Every day, measurements are fetched, cleaned, then summarised by a weather score out of 100 used to rank the cities.

Data

  • OpenWeather API (current weather) for Marrakech, Tangier, Dakhla and Essaouira
  • Raw JSON stored by city and date; 24 cleaned measurements in the Silver layer

Approach

  • Medallion architecture: Bronze (raw JSON), Silver (typed, cleaned data), Gold (score and ranking)
  • Weather score out of 100: temperature 40%, humidity 20%, wind 20%, sky conditions 20%
  • Daily Airflow DAG at 6 am: ingestion, Silver, Gold, then quality tests on all three layers
  • HTML dashboard (Chart.js) generated from the Gold layer

Results

  • Pipeline run end to end by Airflow, from the API call to the ranking
  • Ranking on 18/05/2026: Tangier 95.28 · Dakhla 89.56 · Essaouira 83.54 · Marrakech 82.72 (out of 100)

What I would improve

  • Rank the cities on a multi-day average rather than on the latest measurement
Enlarged image