Add open IP camera discovery scraper (OSINT map)
Some checks failed
build-and-deploy / build (push) Failing after 5s
Some checks failed
build-and-deploy / build (push) Failing after 5s
- camera_scraper: public-directory-only discovery (Insecam-style HTML + plain-text lists), hard private-range guard (fail closed), per-host rate limiting, Nominatim geocoding at <=1 req/s, TTL'd local snapshot cache, sha256 url_hash dedupe with Postgres upsert - cameras table (migration 002) + /api/cameras?bbox= + snapshot endpoint with cache passthrough in main.py - run_camera_service: long-running cycle worker following NATS->ingester pattern; publishes events.camera for shared ingester - docker-compose camera-service profile, .env.example knobs Verified E2E against TimescaleDB+PostGIS: private-range entries dropped, dedupe across cycles holds, bbox query returns expected rows.
This commit is contained in:
parent
bce2d5c3bd
commit
69a30115cc
8 changed files with 730 additions and 0 deletions
10
.env.example
10
.env.example
|
|
@ -17,3 +17,13 @@ MINIO_ACCESS_KEY=
|
|||
MINIO_SECRET_KEY=
|
||||
# "true" for TLS endpoints (e.g. S3-compatible prod); "false" for local HTTP.
|
||||
MINIO_SECURE=false
|
||||
|
||||
# ── Camera discovery scraper ───────────────────────────────────────────────
|
||||
# Comma-separated public directory/list URLs (Insecam-style pages or
|
||||
# plain-text lists: url[|lat,lon|vendor|location]).
|
||||
CAMERA_SOURCE_URLS=
|
||||
CAMERA_SCRAPE_INTERVAL=3600
|
||||
CAMERA_REQUEST_DELAY=2.0
|
||||
NOMINATIM_URL=https://nominatim.openstreetmap.org
|
||||
NOMINATIM_MIN_INTERVAL=1.1
|
||||
SNAPSHOT_TTL_SECONDS=300
|
||||
|
|
|
|||
Loading…
Reference in a new issue