How hs3636/gridwatch-360 works
GridWatch 360 is a building-energy analytics platform: raw meter, weather, and building data is ingested into Bronze, cleansed and enriched in Silver, then modeled as Gold star-schema dimensions and fact tables for dashboards. Airflow triggers the three Databricks workflow jobs in sequence. The graph preserves quality-check branches and documented export/visualization capabilities. Some notebook-to-notebook job wiring and the export implementation are not shown; those relationships are included only where documented by the README.
Main entry points: 03_gold_dimensions.py Star dimensions · 02_silver_enriched.py Reading enrichment · 03_gold_fact_daily_summary.py Daily summary fact · dag_01_bronze_ingestion.py Bronze DAG
Components 19
Orchestration
- Bronze DAG
airflow/dags/dag_01_bronze_ingestion.py - Silver DAG
airflow/dags/dag_02_silver_transform.py - Gold DAG
airflow/dags/dag_03_gold_load.py
Bronze ingestion
- Raw ingestion
bronze - Building SCD2
bronze/01_bronze_building_metadata.py - Bronze checks
bronze/01_bronze_quality_check.py
Silver transforms
- Reading cleanse
silver/02_silver_readings.py - Weather cleanse
silver/02_silver_weather.py - Reading enrichment
silver/02_silver_enriched.py - Silver checks
silver/02_silver_quality_check.py
Gold analytics
- Star dimensions
gold/03_gold_dimensions.py - Meter fact
gold/03_gold_fact_meter_readings.py - Daily summary fact
gold/03_gold_fact_daily_summary.py - Gold checks
gold/03_gold_quality_check.py - Gold S3 export
gold
Storage and BI
- Delta tables
Other components
- Airflow scheduler
- Databricks jobs
- Databricks dashboards
Connections 27
- Airflow scheduler → Bronze DAG: schedules
airflow/dags/dag_01_bronze_ingestion.py - Bronze DAG → Databricks jobs: triggers job
airflow/dags/dag_01_bronze_ingestion.py - Bronze DAG → Silver DAG: triggers DAG
airflow/dags/dag_01_bronze_ingestion.py - Silver DAG → Databricks jobs: triggers job
airflow/dags/dag_02_silver_transform.py - Silver DAG → Gold DAG: triggers DAG
airflow/dags/dag_02_silver_transform.py - Gold DAG → Databricks jobs: triggers job
README.md - Databricks jobs → Raw ingestion: runs stage
README.md - Databricks jobs → Reading cleanse: runs stage
README.md - Databricks jobs → Star dimensions: runs stage
README.md - Raw ingestion → Delta tables: writes raw tables
README.md - Building SCD2 → Delta tables: merges history
bronze/01_bronze_building_metadata.py - Bronze checks → Delta tables: logs checks
bronze/01_bronze_quality_check.py - Reading cleanse → Delta tables: reads and writes
silver/02_silver_readings.py - Weather cleanse → Delta tables: reads and writes
silver/02_silver_weather.py - Reading enrichment → Reading cleanse: reads readings
silver/02_silver_enriched.py - Reading enrichment → Weather cleanse: joins weather
silver/02_silver_enriched.py - Reading enrichment → Delta tables: reads and writes
silver/02_silver_enriched.py - Silver checks → Delta tables: checks tables
README.md - Star dimensions → Delta tables: reads and writes
gold/03_gold_dimensions.py - Meter fact → Star dimensions: uses dimensions
README.md - Meter fact → Delta tables: writes fact
README.md - Daily summary fact → Meter fact: aggregates fact
gold/03_gold_fact_daily_summary.py - Daily summary fact → Star dimensions: joins building
gold/03_gold_fact_daily_summary.py - Daily summary fact → Delta tables: writes summary
gold/03_gold_fact_daily_summary.py - Gold checks → Delta tables: checks and logs
gold/03_gold_quality_check.py - Gold S3 export → Delta tables: exports tables
README.md - Databricks dashboards → Delta tables: reads Gold
README.md