Logo Lanfrica

somranimehdi/AeroShield

Domain:

climateenvironment and energy

Record type:

softwareproject
Creator:
som
Host:
Event-driven climate hazard monitoring pipeline for Tunisia's 24 governorates. AWS medallion architecture (Bronze/Silver/Gold) emulated locally with LocalStack. Detects heatwaves, dust storms, heavy rain and wind hazards from 5 years of Open-Meteo data. Built with Python, PostgreSQL, Streamlit. # πŸ›‘οΈ Aero-Shield Tunisia ### Climate Hazard Monitoring & Early Warning System > An event-driven data pipeline that monitors multi-dimensional climate hazards across all 24 Tunisian governorates β€” built on a real AWS medallion architecture, emulated locally for $0. --- ## 🌍 What Is This? Tunisia faces real climate threats β€” extreme heat, Saharan dust storms, flash floods, dangerous winds. This project builds a complete data engineering system that: - **Ingests** daily weather + air quality data for all 24 governorates from Open-Meteo - **Transforms** raw data through a Bronze β†’ Silver β†’ Gold medallion pipeline - **Detects** climate hazards using season-aware thresholds (35Β°C in Kebili in July β‰  35Β°C in Bizerte in January) - **Alerts** authorities 24 hours in advance when forecasts exceed danger thresholds - **Visualizes** everything on an interactive Tunisia choropleth heatmap --- ## πŸ—οΈ Architecture ``` Open-Meteo API (Historical + Forecast) β”‚ β–Ό ingestion/daily_ingest.py β”‚ uploads raw JSON β–Ό πŸ₯‰ S3 tunisia-bronze ──── S3 event ────► ⚑ Lambda (handler.py) /YYYY/MM/DD/weather.json β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β–Ό β–Ό β–Ό transform.py threshold_ notification (validate + detector.py .py clean) (hazards) (alerts) β”‚ β”‚ β–Ό β–Ό πŸ₯ˆ S3 tunisia-silver πŸ₯‡ PostgreSQL (Gold Layer) /governorate=X/ β”œβ”€β”€ weather_observations year=YYYY/month=MM/ β”œβ”€β”€ weather_forecasts day=DD/data.parquet β”œβ”€β”€ hazard_alerts β”œβ”€β”€ alert_thresholds └── pipeline_runs β”‚ β–Ό Streamlit Dashboard β”œβ”€β”€ Tunisia choropleth map β”œβ”€β”€ Metric selector (temp/rain/wind/dust) β”œβ”€β”€ Historical (5 years) + Forecast (7 days) └── Real-time warnings table ``` ### Why LocalStack? LocalStack emulates AWS S3 and Lambda on your laptop β€” the code is **identical** to a real AWS deployment. Remove two lines (the LocalStack endpoint config) and this runs in production AW …