How kaif-67/nowcast works
Nowcast AI serves location-based thunderstorm and lightning nowcasts through a dashboard: users select a monitored region, the frontend requests a prediction, and the backend combines live weather context with learned risk signals, records prediction history, and returns map and risk details for monitoring. Radar acquisition and tensor preparation support the radar pathway; the dashboard also exposes alerts, data-source status, and settings. The README documents the broad pipeline, while excerpts show selected API, radar, and UI behavior; links without direct call evidence are omitted.
Main entry points: page.tsx Dashboard shell · main.py FastAPI prediction service · MapComponent.tsx Risk map · radar_pipeline.py Radar acquisition
Components 15
Monitoring interface
- Dashboard shell
frontend/src/app/page.tsx - Risk dashboard
frontend/src/components/DashboardView.tsx - Risk map
frontend/src/components/MapComponent.tsx - Alerts view
frontend/src/components/AlertsView.tsx - Data sources view
frontend/src/components/DataSourcesView.tsx - Settings view
frontend/src/components/SettingsView.tsx
Prediction service
- FastAPI prediction service
backend/main.py - Prediction history
backend/nowcast_history.db
Radar processing
- Radar acquisition
ml_models/radar_pipeline.py - Radar tensor preparation
ml_models/radar_tensor_prep.py
Forecast models
- ConvLSTM model
ml_models/convlstm_model.py
Other components
- Operator
- Open-Meteo
- RainViewer
- Map tile service
Connections 16
- Operator → Dashboard shell: opens
readme.md - Dashboard shell → FastAPI prediction service: requests forecasts
readme.md - FastAPI prediction service → Open-Meteo: fetches conditions
backend/main.py - FastAPI prediction service → Prediction history: reads and writes
backend/main.py - FastAPI prediction service → Dashboard shell: returns risk data
readme.md - Dashboard shell → Risk dashboard: renders
frontend/src/app/page.tsx - Dashboard shell → Risk map: renders
frontend/src/app/page.tsx - Dashboard shell → Alerts view: loads view
frontend/src/app/page.tsx - Dashboard shell → Data sources view: loads view
frontend/src/app/page.tsx - Dashboard shell → Settings view: loads view
frontend/src/app/page.tsx - Risk map → RainViewer: fetches radar metadata
frontend/src/components/MapComponent.tsx - Risk map → Map tile service: loads map tiles
frontend/src/components/MapComponent.tsx - Radar acquisition → RainViewer: downloads radar frames
ml_models/radar_pipeline.py - FastAPI prediction service → Radar acquisition: imports radar pipeline
backend/main.py - FastAPI prediction service → Radar tensor preparation: imports tensor preparation
backend/main.py - FastAPI prediction service → ConvLSTM model: uses sequence model
readme.md