How mohamedaminejemni28/open_meteo_project_pipeline works
This repository implements a scheduled weather-data pipeline: Airflow runs ingestion, which fetches current observations from Open-Meteo and writes them to Snowflake, then launches dbt transformations. A separate seed script can populate recent hourly history. The dbt project is represented by its staging, intermediate, and mart SQL models from the file tree; their SQL contents were not sampled, so model-to-model and warehouse relationships are shown only as unverified dashed links.
Main entry points: stg_weather_data.sql Weather staging · dbt_core_dag.py Ingest task · insert_records.py Current weather loader · api_request.py API request client
Components 13
Orchestration
- Airflow schedule
dbt_core_dag.py - Ingest task
dbt_core_dag.py - dbt build task
dbt_core_dag.py
Weather ingestion
- Current weather loader
script/insert_records.py - API request client
script/api_request.py - History seeder
script/seed_weather.py
Warehouse transforms
- dbt project
snowflake_data_project/dbt_project.yml - Weather staging
snowflake_data_project/models/staging/stg_weather_data.sql - Daily intermediate
snowflake_data_project/models/Intermediate/int_weather_day.sql - Daily average mart
snowflake_data_project/models/marts/daily_average.sql - Weather report mart
snowflake_data_project/models/marts/weather_report.sql
Other components
- Open-Meteo
- Snowflake
Connections 17
- Airflow schedule → Ingest task: defines task
dbt_core_dag.py - Airflow schedule → dbt build task: defines task
dbt_core_dag.py - Ingest task → Current weather loader: calls main
dbt_core_dag.py - Ingest task → dbt build task: precedes
dbt_core_dag.py - dbt build task → dbt project: runs build
dbt_core_dag.py - Current weather loader → API request client: fetches via
script/insert_records.py - API request client → Open-Meteo: requests data
script/api_request.py - Current weather loader → Snowflake: creates and inserts
script/insert_records.py - History seeder → API request client: fetches via
script/seed_weather.py - History seeder → Snowflake: seeds observations
script/seed_weather.py - dbt project → Weather staging: includes model
- Weather staging → Daily intermediate: feeds
- Daily intermediate → Daily average mart: feeds
- Weather staging → Weather report mart: feeds
- Snowflake → Weather staging: model source
- Daily average mart → Snowflake: materializes in
- Weather report mart → Snowflake: materializes in