How veer090408/udarain-dashboard works
UdaRain is a Streamlit dashboard for hourly air-quality and rain forecasts, with outdoor-activity recommendations personalized for runners, motorcyclists, and pedestrians. The user selects a location and persona; the app gathers current conditions and forecasts, scores upcoming hours, and presents status, metrics, trends, and a recommended best hour. Internally, weather data is transformed into model features and Random Forest predictions; historical data is cached locally. The excerpts show the app’s data-loading calls, but omit some UI-to-scoring and model-wrapper details, so those links are marked unverified.
Main entry points: main.py Streamlit dashboard · models.py Forecast models · data_loader.py Weather data loader · bmkg_loader.py BMKG forecast loader
Components 14
Dashboard
- Streamlit dashboard
app/main.py - Score and schedule views
app/main.py
Weather Inputs
- Open-Meteo services
- Weather data loader
src/data_loader.py - BMKG forecast loader
src/bmkg_loader.py - BMKG forecast API
- SQLite weather cache
data/udarain_cache.db
Forecasting
- Feature engineering
src/processing.py - Forecast models
src/models.py - PM2.5 model artifact
models/air_quality_model.joblib - Rain model artifact
models/rain_model.joblib - Model metrics
models/model_metrics.json
Recommendations
- Persona activity scoring
src/scoring.py
Other components
- Dashboard user
Connections 15
- Dashboard user → Streamlit dashboard: selects location
app/main.py - Streamlit dashboard → Weather data loader: requests conditions
app/main.py - Weather data loader → Open-Meteo services: fetches weather
src/data_loader.py - Streamlit dashboard → BMKG forecast loader: requests forecast
app/main.py - BMKG forecast loader → BMKG forecast API: fetches forecast
src/bmkg_loader.py - Streamlit dashboard → Forecast models: requests predictions
app/main.py - Forecast models → Weather data loader: fetches current data
src/models.py - Weather data loader → SQLite weather cache: reads and writes
src/data_loader.py - Forecast models → Feature engineering: builds features
src/models.py - Forecast models → PM2.5 model artifact: loads and saves
src/models.py - Forecast models → Rain model artifact: loads and saves
src/models.py - Forecast models → Model metrics: loads and saves
src/models.py - Streamlit dashboard → Persona activity scoring: scores forecasts
app/main.py - Persona activity scoring → Score and schedule views: returns scores
app/main.py - Streamlit dashboard → Score and schedule views: renders results
app/main.py