kpi configuration (still prototype some data still use manual need to update later)
This commit is contained in:
1 parent
e4dbfd0252
commit
ed84d989b7
12 files changed
+547
-89
No files matched your search
@@ -89,7 +89,7 @@ Open **http://localhost** in a browser.
|
||||
| `nginx.conf` | Nginx proxy config for frontend |
|
||||
| `entrypoint-api.sh` | API container startup |
|
||||
| `entrypoint-cron.sh` | Cron container startup |
|
||||
| `crontab` | Scheduled jobs (IoT 10 min, karung/KPI 17:00) |
|
||||
| `crontab` | Fallback schedule; runtime regenerated from `DASHBOARD_PUBLISH_*` |
|
||||
| `.env.example` | Compose env template → copy to project root `.env` |
|
||||
| `compose.override.local.example` | Optional local Postgres port override |
|
||||
|
||||
@@ -166,10 +166,10 @@ Adds `127.0.0.1:5432:5432` while keeping the server’s `15432` mapping.
|
||||
|
||||
The `cron` service runs:
|
||||
|
||||
- **Every 10 min** — `sync_iot_from_api` (IoT panel, real-time — not gated by 17:00)
|
||||
- **17:00 daily** — `sync_karung_from_web_admin` then `recompute_kpi_rollups` (feed use counts until 16:59, so karung sync runs at publish time)
|
||||
- **Every 10 min** — `sync_iot_from_api` (IoT panel, real-time — not gated by publish cutoff)
|
||||
- **At `DASHBOARD_PUBLISH_HOUR`:`DASHBOARD_PUBLISH_MINUTE` daily** — `sync_karung_from_web_admin` then `recompute_kpi_rollups` (entrypoint renders cron from these env vars; default 17:00)
|
||||
|
||||
Dashboard reads hide today's KPI/counting/weight/karung data until 17:00 WIB. **IoT panel is excluded** and updates live every 10 minutes.
|
||||
Dashboard reads hide today's KPI/counting/weight/karung data until the configured publish time WIB. **IoT panel is excluded** and updates live every 10 minutes.
|
||||
|
||||
Logs: `docker compose exec cron tail -f /var/log/cron.log`
|
||||
|
||||
|
||||
Reference in new issue
Block a user