How mercykal/kenya-weather-aware-dashboard works
This repository is an ETL project for a Kenya weather-aware e-commerce and agri-logistics dashboard. Its primary workflow collects forecast, product, and customer data, transforms it into four analytical tables, and loads those tables into PostgreSQL for Power BI reporting. The README also describes delivery-risk monitoring, weather forecasting, and planting advisories. The README documents the Mage ETL stages, but the dashboard and its analytical calculations have no implementation files in the supplied tree; those capabilities are represented as documented product components. A separate Python ETL script is also present. നേ
Main entry points: data_extraction.py API data loader · __init__.py Mage ETL pipeline · scripts/data_processing.py Standalone ETL script · transformers/data_processing.py Data transformer
Components 14
ETL orchestration
- Mage ETL pipeline
Kenya-Weather-Aware-Dashboard/pipelines/kenya_weather_aware_dashboard_etl_pipeline/__init__.py - Standalone ETL script
scripts/data_processing.py
Data ingestion
- API data loader
Kenya-Weather-Aware-Dashboard/data_loaders/data_extraction.py - Python API extraction
scripts/data_extraction.py
Data modeling
- Data transformer
Kenya-Weather-Aware-Dashboard/transformers/data_processing.py - PostgreSQL exporter
Kenya-Weather-Aware-Dashboard/data_exporters/export_to_pgsql.py - PostgreSQL tables
Analytics and reporting
- Power BI dashboard
- Delivery risk views
- Planting advisories
Other components
- Pipeline operator
- OpenWeather API
- Fake Store API
- FakerAPI
Connections 13
- Pipeline operator → Mage ETL pipeline: runs
- Mage ETL pipeline → API data loader: runs extraction
- API data loader → OpenWeather API: fetches forecasts
Kenya-Weather-Aware-Dashboard/data_loaders/data_extraction.py - API data loader → Fake Store API: fetches products
Kenya-Weather-Aware-Dashboard/data_loaders/data_extraction.py - API data loader → FakerAPI: fetches customers
Kenya-Weather-Aware-Dashboard/data_loaders/data_extraction.py - Mage ETL pipeline → Data transformer: runs transformation
- Data transformer → PostgreSQL exporter: passes tables
- PostgreSQL exporter → PostgreSQL tables: writes tables
Kenya-Weather-Aware-Dashboard/data_exporters/export_to_pgsql.py - Standalone ETL script → Python API extraction: calls extraction
scripts/data_processing.py - Standalone ETL script → PostgreSQL tables: writes tables
scripts/data_processing.py - PostgreSQL tables → Power BI dashboard: provides analysis data
- Power BI dashboard → Delivery risk views: shows risk flags
- Power BI dashboard → Planting advisories: shows advisories