Commit Graph
14 Commits
Author SHA1 Message Date
dasemu 2e40eee95a Merge branch 'feature/weather-sky-snow-type' 2026-03-17 17:57:28 +01:00
dasemu 413489b590 Merge branch 'feature/push-notifications' 2026-03-17 17:55:54 +01:00
dasemu 70e3a1cf92 feat(weather): add sky conditions and snow type to predictions
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.
2026-03-17 17:54:43 +01:00
dasemu 32d8b07786 refactor(bot): remove /all and station-specific commands 2026-03-17 17:46:42 +01:00
dasemu 61b4d8334d feat(bot): add daily push notification subscription system
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.
2026-03-17 17:46:02 +01:00
dasemu f6a65f41d9 feat: unified architecture and webcam archive optimization
- 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
2026-03-13 11:56:59 +01:00
dasemu e6add1b727 fix(core): clean predictor debt 2026-03-13 10:51:29 +01:00
dasemu 2a34054399 feat(bot): add horizon commands 2026-03-13 08:40:55 +01:00
dasemu c486c585d0 merge: sqlite migration
# Conflicts:
#	bot/telegram_bot.py
2026-03-13 06:52:40 +01:00
dasemu 9c8ba03574 feat(storage): migrate project to sqlite 2026-03-13 06:50:18 +01:00
dasemu b690e82f98 feat(bot): translate all telegram bot messages to spanish 2026-03-13 06:27:17 +01:00
dasemu 4933c61c69 fix(bot): read current prediction schema 2026-03-12 16:31:01 +01:00
dasemu dabadb105b fix(bot): migrate message formatting from MarkdownV2 to HTML 2026-03-12 16:17:11 +01:00
dasemu 1afe2b73e0 feat: initial ski predictor system
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
2026-03-12 14:51:32 +01:00