docs: update documentation for new features and recent changes

- 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
This commit is contained in:
dasemu committed 2026-03-17 18:26:06 +01:00
1 parent 2e40eee95a
commit b4453917dc
5 files changed
+137 -4

No files matched your search

+8 -1
View File
@@ -16,6 +16,7 @@ cd skipredictor
- **Environment Variables**:
- `TELEGRAM_BOT_TOKEN`: Required for the Telegram bot.
- `JWT_SECRET_KEY`: Required for the FastAPI backend authentication.
- `ADMIN_TELEGRAM_IDS` (optional): Comma-separated Telegram user IDs for daily accuracy reports (e.g., `123456789,987654321`).
## ML Training
@@ -43,13 +44,18 @@ Output:
## FastAPI Backend & Scheduler
The backend uses FastAPI and includes an internal APScheduler to run forecast cycles at 00, 05, 10, 15, and 20:00 (Europe/Madrid), and a weekly retrain on Mondays at 03:00. It also manages the Telegram bot as a subprocess.
The backend uses FastAPI and includes an internal APScheduler to:
- Run forecast cycles at 05:00, 10:00, 15:00, and 20:00 (Europe/Madrid)
- At 20:00 specifically: send push notifications to subscribed users and accuracy reports to admins
- Retrain ML models weekly on Sundays at 21:00
- Manage the Telegram bot as in-process polling
### Running the Backend
```bash
export TELEGRAM_BOT_TOKEN='...'
export JWT_SECRET_KEY='...'
export ADMIN_TELEGRAM_IDS='123456789,987654321' # Optional
.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
```
@@ -68,6 +74,7 @@ User=dasemu
WorkingDirectory=/path/to/skipredictor
Environment=TELEGRAM_BOT_TOKEN=your_token
Environment=JWT_SECRET_KEY=your_secret
Environment=ADMIN_TELEGRAM_IDS=123456789,987654321
ExecStart=/path/to/skipredictor/.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
Restart=on-failure