- Remove references to deprecated bot commands (/pajares, /sanisidro, /fuentes, /all)
- Document new /suscribir and /desuscribir subscription commands
- Add push notification system description and usage
- Document admin accuracy reports with environment variable setup
- Add sky_condition and snow_type fields to API spec and database schema
- Update scheduled task description (training day changed from Monday to Sunday)
- Add notification_subscribers table to schema
- Update DEPLOYMENT.md with ADMIN_TELEGRAM_IDS environment variable
- Mark completed milestones in TODO.md
Add WMO weather_code from Open-Meteo to derive sky conditions
(sunny/cloudy/foggy/storm) and infer snow type (powder/hard/wet/spring)
from temperature and snowfall data. Both fields flow through the full
pipeline: weather API, hybrid predictor, SQLite storage, REST API
schemas, Telegram bot messages, and scheduler tasks.
Add /suscribir and /desuscribir commands to the Telegram bot so users
can opt in to receive the next-day prediction automatically at 20:00
when the extended task fires. Subscribers are persisted in a new
notification_subscribers SQLite table with soft-delete semantics.
- Remove internal YOLO counts (cars/people/buses/total_vehicles) from crowd_analysis table
- Keep only crowd_density and confidence_scores for persistence (no ML training impact)
- Upgrade from YOLOv8n to YOLOv11m for better person detection (fewer false positives)
- Add regional holidays: Día de Castilla y León (4/23), Santiago Apóstol (7/25, shared with Galicia)
- Add Easter Monday (moveable, 2018-2035) for Castilla y León and Galicia
- Update all tests to match simplified crowd_analysis schema
Tests: all 38 SQLite/crowd_analyzer tests + 13 feature tests passing.
- Refactor backend into a single process (FastAPI + APScheduler + Telegram Bot)
- Implement 'current_forecasts' and 'past_forecasts' architecture in storage
- Optimize historical webcam collector with date range discovery for Pajares, San Isidro, and Fuentes
- Clean up legacy scripts and tables (prediction_runs, prediction_stations)
- Update tests and operations documentation
- Updated API_SPEC.md with JWT auth and storage schema.
- Updated DEPLOYMENT.md for the new uvicorn-based setup.
- Added LESSONS.md pattern for worktree management.
- Included new README, TODO, and OPERATIONS files.
- Removed data leakage features (lifts_open, snow_depth) from ML training.
- Added station_id as an encoded categorical feature to enable station-awareness.
- Removed Rule 3 (warm rain reduction) from the rules engine to avoid double-penalization.
- Retrained all models with the corrected feature set.
REST API serving forecast data with HS256 JWT auth (14-day tokens).
Public: /health, /auth/register, /auth/login.
Protected: /stations, /forecast, /forecast/history, /forecast/{id}, /status.
Includes APScheduler for periodic forecasts and Telegram bot subprocess.
Prioritize recent historical data to account for potential changes in
data collection methodology at Infonieve over the years.
Implemented linear weight decay from 1.0 (newest) to 0.2 (oldest).
Hybrid ML + rules prediction system for 3 Asturian ski stations
(Pajares, San Isidro, Fuentes de Invierno).
- Weather data from Open-Meteo (historical + forecast)
- Station scraping from infonieve.es (live + 16 seasons historical TSV)
- Feature engineering: rolling snow, calendar, temperature/pressure trends
- ML models: RandomForest (open/close), GradientBoosting (km), LightGBM (crowd)
- Rules engine: wind closure, snow depth, rain+heat, heavy snow
- YOLOv8 webcam crowd detection (cars, people in parking/lifts)
- Telegram bot with /pajares, /sanisidro, /fuentes commands
- Daily cron pipeline for automated data collection and predictions
- Deployment guide with systemd service and cron setup