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
This commit is contained in:
dasemu committed 2026-03-13 11:56:59 +01:00
1 parent a70eff3e45
commit f6a65f41d9
14 files changed
+563 -660

No files matched your search

-4
View File
@@ -1,7 +1,6 @@
"""SQLite-backed storage helpers for the ski predictor."""
from storage.sqlite_store import (
AD_HOC_RUN_KIND,
CROWD_ANALYSIS_TABLE,
CURRENT_FORECASTS_TABLE,
DEFAULT_DB_PATH,
@@ -15,14 +14,12 @@ from storage.sqlite_store import (
LATEST_STATION_STATUS_TABLE,
LATEST_WEATHER_TABLE,
PAST_FORECASTS_TABLE,
PUBLISHED_RUN_KIND,
RUNTIME_DATASET_TABLE,
RUNTIME_FEATURED_TABLE,
SQLiteStore,
)
__all__ = [
"AD_HOC_RUN_KIND",
"CROWD_ANALYSIS_TABLE",
"CURRENT_FORECASTS_TABLE",
"DEFAULT_DB_PATH",
@@ -36,7 +33,6 @@ __all__ = [
"LATEST_STATION_STATUS_TABLE",
"LATEST_WEATHER_TABLE",
"PAST_FORECASTS_TABLE",
"PUBLISHED_RUN_KIND",
"RUNTIME_DATASET_TABLE",
"RUNTIME_FEATURED_TABLE",
"SQLiteStore",