mirror of
https://github.com/zvx-echo6/central.git
synced 2026-06-10 11:54:37 +02:00
Central - data hub spine. Adapters -> NATS/JetStream -> archive.
- Python 89.1%
- HTML 9.3%
- CSS 1.3%
- PLpgSQL 0.3%
Mirror TomTomIncidentsAdapter.quota_estimate in client-side JS so the quota panel updates live as the operator edits a per-row cadence or the adapter cadence, and on Add/Delete bbox -- instead of only on Save. - tomtom_incidents.py: expose seconds_per_month + default_cadence_s in the quota dict (no JS magic numbers). - model_list.html: data-quota-* attrs + .quota-detail/.quota-msg spans; self-contained DOMContentLoaded-guarded IIFE applying the same max(adapter_cadence, bbox_cadence||default) floor and 80%/100% warn/block thresholds. No-op when no quota panel present. - tests: structural asserts for data-attrs + span hooks (JS exec needs a browser; live behaviour eyeballed manually). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| etc-templates | ||
| scripts | ||
| sql | ||
| src/central | ||
| systemd | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Central
Central is the data hub spine for the infrastructure. Adapters normalize upstream sources into a canonical event shape, publish CloudEvents to NATS/JetStream, and archive to TimescaleDB for historical query. Single-LXC deployment.
Status
Phase 0 — scaffold. Not yet operational.
Architecture
- Python 3.12 (uv-managed)
- NATS + JetStream for live event bus
- TimescaleDB + PostGIS for archive and geospatial query
- One supervisor process managing adapter lifecycle
- One archive consumer process persisting events to TimescaleDB
- Both processes systemd-managed
Testing
See docs/test-database.md for test database setup.
License
MIT. See LICENSE.