Files
skipredictor/config/stations.yaml
T
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

78 lines
3.0 KiB
YAML

stations:
pajares:
name: "Valgrande-Pajares"
latitude: 43.0500
longitude: -5.7700
altitude: 1500
wind_closure_threshold: 80 # km/h
minimum_snow_depth: 30 # cm
max_km_skiable: 22.0
url: "https://www.valgrande-pajares.com"
telegram_command: "/pajares"
webcams:
# infonieve.es embeds a timestamp in the filename for Pajares.
# The collector resolves the current URL by scraping the page at runtime.
# primary_webcam_page is fetched to extract the live snapshot URL.
primary_webcam_page: "https://www.infonieve.es/estacion-esqui/valgrande-pajares/webcams/"
# Fallback static snapshots served by webcamsdeasturias.com via infonieve.
# These URLs include a timestamp suffix; the page-scrape strategy is preferred.
snapshots:
- label: "Cuitu Negru - Telecabina"
url_pattern: "https://www.infonieve.es/webcams/pajares-cuitu_{timestamp}.jpg"
static: false
- label: "Panoramica"
url_pattern: "https://www.infonieve.es/webcams/pajares-panoramica_{timestamp}.jpg"
static: false
sanisidro:
name: "San Isidro"
latitude: 43.0700
longitude: -5.3700
altitude: 1500
wind_closure_threshold: 80
minimum_snow_depth: 30
max_km_skiable: 31.0
url: "https://www.san-isidro.net"
telegram_command: "/sanisidro"
webcams:
# Static snapshot URLs served by nieveleonsanisidro.com.
# These are overwritten in-place on each camera refresh cycle (no timestamp).
primary_webcam_page: "https://www.infonieve.es/estacion-esqui/san-isidro/webcams/"
snapshots:
- label: "Cebolledo I"
url: "https://www.nieveleonsanisidro.com/img/sanisidro/webcam/CebolledoI.jpg"
static: true
- label: "Salencias"
url: "https://www.nieveleonsanisidro.com/img/sanisidro/webcam/Salencias.jpg"
static: true
- label: "Riopinos"
url: "https://www.nieveleonsanisidro.com/img/sanisidro/webcam/Riopinos.jpg"
static: true
- label: "Cebolledo II"
url: "https://www.nieveleonsanisidro.com/img/sanisidro/webcam/CebolledoII.jpg"
static: true
fuentes:
name: "Fuentes de Invierno"
latitude: 43.0833
longitude: -5.9333
altitude: 1500
wind_closure_threshold: 80
minimum_snow_depth: 30
max_km_skiable: 8.6
url: "https://www.fuentesdeinvierno.com"
telegram_command: "/fuentes"
webcams:
# fuentesdeinvierno.com serves snapshots under /tmp/ with a self-signed TLS
# certificate. ssl_verify is set to false for these entries.
primary_webcam_page: "https://www.infonieve.es/estacion-esqui/fuentes-de-invierno/webcams/"
snapshots:
- label: "Camara 1"
url: "https://fuentesdeinvierno.com/tmp/camara1.jpg"
static: true
ssl_verify: false
- label: "Camara 2"
url: "https://fuentesdeinvierno.com/tmp/camara2.jpg"
static: true
ssl_verify: false