How lovish-creator/sih-heat-risk works
Taapamigo turns weather telemetry into ward-level heat-health prioritization and persona-specific public-health guidance. The principal path is weather acquisition, thermal-stress calculation, demographic vulnerability attribution, risk scoring, then presentation through the interactive dashboard and advisory/alert features. The README documents these product capabilities; sampled code confirms key GIS-to-vulnerability/risk calls and the browser’s API-fetch workflow. Endpoint wiring and some integrations are not shown in the excerpts, so those relationships are represented only where documented, and unsampled internals are grouped by supported directories.
Main entry points: endpoints.py API endpoints · app.js Dashboard controller · engine.py Ward risk attribution · thermal Thermal indices
Components 18
Data Inputs
- Weather adapters
backend/app/data_sources
Risk Analysis
- Thermal indices
backend/app/thermal - Demographic vulnerability
backend/app/vulnerability - Ward risk attribution
backend/app/gis/engine.py - Heat risk scoring
backend/app/risk/engine.py - Health advisories
backend/app/advisory/engine.py - Alert dispatch
backend/app/alerts/engine.py
API Services
- API endpoints
backend/app/api/endpoints.py - FastAPI application
backend/app/main.py
Decision Support
- Dashboard controller
public/js/app.js - API client
public/js/api.js - Ward map
public/js/map.js - Forecast charts
public/js/charts.js
Other components
- Municipal users
- Weather APIs
- NASA POWER
- Ward boundaries
- Census PCA
Connections 19
- Municipal users → Dashboard controller: selects location
- Weather APIs → Weather adapters: provides forecasts
- NASA POWER → Weather adapters: provides irradiance
- Ward boundaries → Ward risk attribution: provides polygons
- Census PCA → Demographic vulnerability: provides demographics
- Weather adapters → Thermal indices: supplies conditions
- Thermal indices → Ward risk attribution: supplies hazard
- Ward risk attribution → Demographic vulnerability: processes ward data
- Ward risk attribution → Heat risk scoring: calculates ward risk
- Thermal indices → Heat risk scoring: supplies hazard
- API endpoints → Ward risk attribution: serves ward risk
- API endpoints → Health advisories: serves guidance
- API endpoints → Alert dispatch: serves alerts
- FastAPI application → API endpoints: mounts router
- Dashboard controller → API client: requests data
- API client → API endpoints: calls endpoints
- API endpoints → Dashboard controller: returns results
- Dashboard controller → Ward map: renders map
- Dashboard controller → Forecast charts: renders forecasts