# SkiPredictor TODO & Roadmap This file tracks the current state of the project and planned enhancements. ## 🟢 In Progress / High Priority - [ ] **Capacitor Mobile App**: Build a hybrid mobile application (iOS/Android) using the FastAPI backend. - [ ] **FastAPI Backend Expansion**: Add more robust user management and potentially a web dashboard. - [ ] **Advanced Crowd Analysis**: Refine the YOLO-based detection and integrate it more deeply into the hybrid predictor. ## 🟡 Planned Features - [ ] **Mobile Push via Firebase**: Extend push notification system to mobile app (currently Telegram-only). - [ ] **User Preferences**: Allow users to "favorite" stations and set custom notification thresholds (e.g., "Alert me if km > 15"). - [ ] **Historical Analytics Dashboard**: A web interface to visualize 15+ years of station performance and weather trends. - [ ] **Expanded Station Support**: Add more stations in Northern Spain (e.g., Leitariegos, Alto Campoo). - [ ] **Granular Notification Settings**: Allow subscribers to choose notification frequency and station subset. ## 🔵 Ongoing Maintenance - [ ] **Model Retraining**: Monitor weekly retraining performance and tune hyperparameters. - [ ] **Data Quality**: Continuously verify scraping reliability from Infonieve and Open-Meteo. - [ ] **Documentation**: Keep the API spec and operations guide updated as features are added. ## ⚪ Completed Milestones - [x] **SQLite Migration**: Moved from CSV/JSON file-based storage to a unified SQLite database. - [x] **JWT Authentication**: Implemented secure API access with registration and login. - [x] **Hybrid Predictor**: Combined rule-based logic with ML models for high accuracy. - [x] **Weighted Training**: Prioritized recent historical data to account for methodological changes. - [x] **Telegram Bot Subprocess**: Integrated the bot directly into the FastAPI lifespan. - [x] **Bot Command Consolidation**: Removed individual station commands (`/pajares`, `/sanisidro`, `/fuentes`, `/all`) in favor of horizon-based commands (`/hoy`, `/manana`, `/tresdias`, `/semana`). - [x] **Telegram Push Notifications**: Users can subscribe to daily forecast push-ups via `/suscribir` and `/desuscribir` commands. - [x] **Admin Accuracy Reports**: Automated daily divergence analysis sent to admin Telegram accounts, comparing predictions vs. actual data with 30-day accumulated metrics. - [x] **Sky Conditions & Snow Type**: Added WMO-based sky condition predictions (sunny/cloudy/foggy/snowy/thunderstorm) and snow type inference (powder/wet/hard/spring) to all forecast outputs.