fix(cameras): stop publishing discovery rows as events

Camera scrapes still upsert the cameras table. They no longer
JetStream-publish events.camera messages, which the ingester was
inserting as HUD event spam.
This commit is contained in:
Sirius DevOps 2026-11-14 00:30:13 -05:00
commit 9809fdf05b
4 changed files with 82 additions and 59 deletions

View file

@ -11,8 +11,8 @@ Pipeline per cycle:
2. Parse cameras (Insecam-style HTML with embedded lat/lon, or plain-text
`url[|lat,lon|vendor|location]` lines).
3. Geocode missing coords via Nominatim at <=1 req/s.
4. Publish each camera to NATS (`events.camera`) for the shared ingester,
and upsert into the `cameras` table keyed by sha256(url_hash).
4. Upsert into the `cameras` table keyed by sha256(url_hash).
Discovery is not published as an event.
Snapshots are cached locally with a TTL; nothing is fetched more often than
the cache allows.