mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 15:26:15 +00:00
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
This commit is contained in:
commit
1afe2b73e0
34 files changed
+7201
No files matched your search
@@ -0,0 +1,34 @@
|
||||
weather_variables:
|
||||
- temperature_2m_max
|
||||
- temperature_2m_min
|
||||
- temperature_2m_mean
|
||||
- precipitation_sum
|
||||
- snowfall_sum
|
||||
- wind_speed_10m_max
|
||||
- wind_gusts_10m_max
|
||||
- wind_direction_10m_dominant
|
||||
- relative_humidity_2m_mean
|
||||
- surface_pressure_mean
|
||||
|
||||
engineered_features:
|
||||
- snow_last_3_days
|
||||
- snow_last_7_days
|
||||
- avg_temperature_3_days
|
||||
- max_wind_gust
|
||||
- is_weekend
|
||||
- is_holiday
|
||||
- month_of_year
|
||||
- day_of_week
|
||||
- days_since_last_snowfall
|
||||
- temperature_trend_3_days
|
||||
- pressure_trend_3_days
|
||||
|
||||
target_variables:
|
||||
- station_open
|
||||
- km_open
|
||||
- crowd_level
|
||||
|
||||
crowd_levels:
|
||||
- low
|
||||
- medium
|
||||
- high
|
||||
@@ -0,0 +1,77 @@
|
||||
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
|
||||
Reference in new issue
Block a user