second version
This commit is contained in:
@@ -25,11 +25,12 @@
|
||||
│ FastAPI (Python) │
|
||||
│ – Scheduled tasks (APScheduler) │
|
||||
│ – telemetry_collector (každých 60s) │
|
||||
│ – price_importer (denně 14:00) │
|
||||
│ – forecast_service (denně 14:30) │
|
||||
│ – price_importer (13:30, 14:00, 00:05)│
|
||||
│ – forecast_service (každé 2h, minute 05)│
|
||||
│ – planning_engine (denně 15:00) │
|
||||
│ – control_exporter (každých 15min) │
|
||||
│ – audit_filler (každých 15min) │
|
||||
│ – verify_modbus (každé 2 min) │
|
||||
└──────┬──────────────────────────┬────────────┘
|
||||
│ Modbus TCP │ HTTP
|
||||
┌──────▼──────┐ ┌───────▼────────────┐
|
||||
@@ -158,6 +159,14 @@ Zařízení → Waveshare → Modbus TCP → telemetry_collector → PostgreSQL
|
||||
PostgreSQL (ceny + forecast) → fn_create_planning_run() → planning_interval
|
||||
```
|
||||
|
||||
### Operátorské manuální akce (UI)
|
||||
```
|
||||
Browser → FastAPI:
|
||||
POST /api/v1/sites/{site_id}/prices/import?date=YYYY-MM-DD
|
||||
POST /api/v1/sites/{site_id}/forecast/run
|
||||
POST /api/v1/sites/{site_id}/plan/run?type=daily|rolling
|
||||
```
|
||||
|
||||
### Export setpointů (každých 15min)
|
||||
```
|
||||
PostgreSQL (planning_interval + overrides) → control_exporter
|
||||
|
||||
Reference in New Issue
Block a user