Commit graph

149 commits

Author SHA1 Message Date
dcb90b3a8b Merge pull request 'fix(ci): recreate named compose containers without collisions' (#10) from fix/ci-compose-reup into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m35s
Reviewed-on: #10
2026-08-28 20:34:59 -04:00
Sirius DevOps
b057ff48f9 fix(ci): recreate named compose containers without collisions
CI ran `compose up --force-recreate` without the ingest profile, so
compose tried to *create* osint-dashboard while the old name-pinned
container was still running. down + rm -f the known names, then up
--profile ingest. Volumes stay.
2026-08-28 20:36:03 -04:00
eb883f0801 Merge pull request 'fix: hydrate camera popup from GET /api/cameras/{id}' (#9) from fix/camera-popup-hydrate into master
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 3m14s
Reviewed-on: #9
2026-08-28 20:09:30 -04:00
Sirius DevOps
700f56ef51 fix: hydrate camera popup from GET /api/cameras/{id}
List payload is slim (no URLs). YouTube thumbs need source_url from the
detail endpoint, so the popup fetches the full row before rendering.
2026-08-28 20:04:53 -04:00
Sirius DevOps
1b1f2d3b3a fix: merge alembic heads so the dashboard stops crash-looping
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 2m59s
005_phase2 and 005_news_items both revised 004_camera_enum. Entrypoint
`alembic upgrade head` then failed and the app never bound :8000 (502
over Tailscale). Merge revision + `upgrade heads`.
2026-08-28 18:29:06 -04:00
f1d70d3f4c Merge pull request 'feat: Nous Portal news summarizer, ticker flags, map pins' (#8) from feat/nous-news-summarizer into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m27s
Reviewed-on: #8
2026-08-28 17:43:40 -04:00
Sirius DevOps
d2bf55183c fix: let Settings model reach summarizer; cap map pins at 20 2026-08-28 17:06:55 -04:00
Sirius DevOps
450de45bfc docs: nous portal news summarizer 2026-08-28 17:06:55 -04:00
Sirius DevOps
496d13b8b0 feat: critical news pins on the osint map 2026-08-28 17:06:55 -04:00
Sirius DevOps
3b4dd49253 feat: news ticker shows flagged hourly items 2026-08-28 17:06:55 -04:00
Sirius DevOps
610666ef6a feat: settings model selector for news summarizer 2026-08-28 17:06:55 -04:00
Sirius DevOps
d93ad88956 chore: point news-summarizer compose at Nous portal 2026-08-28 17:06:55 -04:00
Sirius DevOps
8f3699f133 feat: summarize hourly news via Nous portal into brief/ticker/map 2026-08-28 17:06:55 -04:00
Sirius DevOps
1616413e65 feat: persist summarizer model in app_settings 2026-08-28 17:06:55 -04:00
Sirius DevOps
f50268ef81 feat: register NOUS_API_KEY in dashboard keystore 2026-08-28 17:06:55 -04:00
Sirius DevOps
5b23578302 feat: news ticker and map API contracts 2026-08-28 17:06:55 -04:00
Sirius DevOps
cbc573b830 feat: add news_items table and summary model column 2026-08-28 17:06:55 -04:00
Sirius DevOps
4b00eed566 feat: nous portal chat client for news summarizer 2026-08-28 17:06:55 -04:00
Sirius DevOps
96590bc16d test: add news summarizer intel parser tests + impl 2026-08-28 17:06:55 -04:00
104fb2072a Merge pull request 'feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation' (#7) from feat/osint-lean-pi-geofence-dvr into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m34s
Reviewed-on: #7
2026-08-28 09:40:33 -04:00
Sirius DevOps
5ea9a4e879 feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation
Phase 1: in-memory ConnectionManager viewport fan-out, 500ms map debounce,
cachetools TTLCache, background masscan/ffmpeg, compose memory caps.

Phase 2: PostGIS geofences + ST_Intersects alerts, Timescale 1-min CAGGs
and timestamp playback, FIRMS/WFIGS x firefighting ADS-B within 20 miles.

No Redis/Kafka/Celery.
2026-08-28 09:35:18 -04:00
8978324d33 ci: push images to Forgejo over loopback, not Cloudflare
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 4m42s
GITHUB_TOKEN cannot write packages (401). PAT works, but layers
over https://forgejo.siriusdevops.com 413 at Cloudflare's ~100MB
POST cap. Push 127.0.0.1:3000; pull names stay public.
2026-08-28 00:17:52 -04:00
6e4209e745 ci: login to Forgejo registry with PAT, not GITHUB_TOKEN
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 9s
Actions GITHUB_TOKEN reports Login Succeeded then 401s on
POST /v2/.../blobs/uploads/. User PAT can write packages.
2026-08-28 00:15:19 -04:00
1e49062b78 Merge pull request 'ci: publish all OSINT images to Forgejo registry' (#6) from feat/forgejo-registry-images into master
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 8s
Reviewed-on: #6
2026-08-28 00:08:04 -04:00
Sirius Devops
9a9c740b9a ci: publish all OSINT images to Forgejo registry
Push api/pg/news-scraper/news-summarizer to
forgejo.siriusdevops.com/sirius/* on every master build, then deploy
on the Pi runner. No GHCR. Helper script retags pulls to localhost/*
for compose.
2026-08-28 03:55:00 +00:00
Sirius DevOps
32320635dc feat: AIS stream follows the map viewport
All checks were successful
build-and-deploy / build (push) Successful in 2m32s
The Vessels layer now retunes the server-side AISStream subscription to the
client viewport instead of a static AISSTREAM_BBOX. The frontend POSTs its
quantized viewport box to /api/vessels/subscribe on moveend; the ais_stream
worker coalesces and applies it at the service's 1 subscription/s cap, then
last-known positions for the new area arrive within a couple of seconds (the
frontend does one follow-up fetch after retuning). Bounds the in-memory
vessel store across regions. Key stays server-side.
2026-08-27 21:50:38 -04:00
c58f66770c Merge pull request 'fix: restore news ticker on the map HUD' (#5) from fix/news-ticker-hud into master
Some checks failed
build-and-deploy / build (push) Has been cancelled
Reviewed-on: #5
2026-08-27 21:45:42 -04:00
Sirius DevOps
0a7a9236d6 fix: restore news ticker on the map HUD
Boot deferred news to the News view for overlay speed. Bring the footer
ticker back after map init starts; article bodies stay off the wire.
2026-08-27 21:47:22 -04:00
61feeb6c5a Merge pull request 'perf: faster map overlay load' (#4) from perf/map-layer-load into master
All checks were successful
build-and-deploy / build (push) Successful in 2m47s
Reviewed-on: #4
2026-08-27 21:24:24 -04:00
Sirius DevOps
734c310d2c perf: abort stale overlay fetches, skip same-cell rebuilds, update markers in place
moveend aborts in-flight overlay JSON and skips work when the 0.01° cell
is unchanged. Live aircraft/trains/vessels diff-update by id. Camera popup
HTML is built on open. Alert/perimeter polygons paint on canvas.
2026-08-27 21:23:25 -04:00
Sirius DevOps
435f63e473 perf: shared httpx client, gzip, overlay cache-control
Reuse one TLS pool for overlay upstreams (8s/3s timeouts). Gzip JSON
over 1 KB. Aircraft/vessels Cache-Control max-age=5, alerts/perimeters 30.
Lifespan replaces deprecated on_event startup.
2026-08-27 21:21:19 -04:00
Sirius DevOps
8f89994201 perf: slim fires/cameras/events/news map payloads
Heatmap uses {lat,lon,i,c}. Camera list drops URLs (detail via GET
/api/cameras/{id}). Event blips skip body. News omits content unless
include_content=true.
2026-08-27 21:19:42 -04:00
Sirius DevOps
9c14b899ee perf: simplify WFIGS perimeter geometry at query time
Ask ArcGIS for 500 features, 5-decimal precision, and ~250m offset so
fire rings are outlines instead of tens of thousands of vertices.
2026-08-27 21:16:53 -04:00
Sirius DevOps
fdd59052c5 perf: cache IEM SBW globally, clip alerts to viewport, slim properties
National storm-based warnings are fetched once (45s TTL) and clipped to
the quantized bbox. Popup fields only — NWS descriptions stay off the wire.
2026-08-27 21:16:16 -04:00
Sirius DevOps
84532d505a perf: per-key overlay cache locks and quantized bbox keys
Nearby pans share a 0.25° cache cell. Slow NWS/WFIGS factories no longer
hold a process-wide lock that stalls trains/aircraft/radar fills.
2026-08-27 21:14:49 -04:00
Sirius DevOps
07638288a9 perf: faster map boot — zoom-gate heavy layers, static basemap, defer HUD, lazy HLS
World view no longer fetches cameras/NWS/WFIGS. Default Blue Marble so init
does not wait on GIBS times. News/summary/events load with their views.
hls.min.js loads only on the first HLS camera popup.
2026-08-27 21:12:58 -04:00
dd7a09aadd Merge pull request 'Distinct heading-aware marker symbols for live feeds (aircraft/trains/vessels)' (#3) from feat/distinct-live-markers into master
All checks were successful
build-and-deploy / build (push) Successful in 2m55s
Reviewed-on: #3
2026-08-27 20:50:05 -04:00
Sirius DevOps
ce5207e060 feat: distinct heading-aware marker symbols for live feeds (aircraft/trains/vessels)
Replace the shared colored-dot renderPoints for live feeds with per-feed SVG
glyphs on heading-aware divIcons:
- Aircraft: plane silhouette rotated by heading, color-coded by alt
- Trains: railcar glyph (respecting per-train iconColor), rotated when heading present
- Vessels: sailboat glyph rotated by heading, color by speed (teal/gray)

Icons are cached per (feed, color, heading) so thousands of markers reuse a
bounded set of L.divIcon instances. Rotation is applied to the inner glyph
span only (never the marker container), keeping clustering, spiderfy, and
iconAnchor intact. Missing/NaN heading falls back to an upright glyph.
Color values are sanitized against style-attribute breakout.
2026-08-27 20:50:35 -04:00
cc03778a87 Merge pull request 'feat: toggleable live map feeds (ADS-B, trains, AIS, radar, WFIGS, NWS)' (#2) from feat/live-map-feeds into master
All checks were successful
build-and-deploy / build (push) Successful in 2m54s
Reviewed-on: #2
2026-08-27 19:08:21 -04:00
Sirius DevOps
f779b1f225 feat: toggleable live map feeds (ADS-B, trains, AIS, radar, WFIGS, NWS)
Wire the free data streams from docs/free-data-streams.md into the
dashboard as layer-panel toggles. Third-party APIs are proxied/cached
in FastAPI; raster tiles (IEM, RainViewer, GIBS) stay in the browser.

- Aircraft via ADSB.lol viewport poll (bbox required, radius ≤ 150 nm)
- Amtraker trains, NHC storms, WFIGS incidents/perimeters
- NWS + IEM SBW as /api/weather-alerts (does not collide with /api/alerts)
- AISStream worker is server-side only and idles without AISSTREAM_API_KEY
- Caltrans CWWP2 D1–D12 camera parser; FIRMS dual-write NOAA-20/21
2026-08-27 19:08:30 -04:00
Sirius DevOps
47628cc5f2 ci: pin db image instead of rebuilding in CI
All checks were successful
build-and-deploy / build (push) Successful in 2m14s
Dockerfile.pg installs TimescaleDB from packagecloud.io, which the Pi's
network cannot reach (ISP abuse-mitigation blackholes AWS ranges after the
masscan incident). Every CI deploy rebuilt the DB image and failed on the
packagecloud fetch, blocking all pipelines.

The DB image is now built once manually (docker compose build db) and
pinned as localhost/osint-dashboard-pg:latest; compose up uses it directly.
The app build only needs deb.debian.org + pypi + the docker daemon's
registry mirror, all reachable.
2026-08-27 18:26:57 -04:00
Sirius DevOps
50d3dbb1dc chore: drop merged frontend-overhaul worktree gitlink
Some checks failed
build-and-deploy / build (push) Failing after 35s
The Ghost-in-the-Shell overhaul was merged via PR #1; the .worktrees
gitlink was only ever a local staging worktree and must not live in the
repo — it breaks CI checkout (git submodule foreach: 'No url found for
submodule path .worktrees/frontend-overhaul').
2026-08-27 17:55:08 -04:00
fd43a6165a Merge pull request 'frontend: Ghost-in-the-Shell overhaul — map-first landing, event blips, tickers' (#1) from frontend-overhaul into master
Some checks failed
build-and-deploy / build (push) Failing after 1m5s
Reviewed-on: #1
2026-08-27 17:48:58 -04:00
Sirius DevOps
2a433a41e9 map: port master popup-guard fix — real popup state via events, close on zoom/drag
Master's b2369bc fixed cameras vanishing after opening a popup and zooming:
Leaflet 1.9.4's Map.closePopup() never nulls map._popup, so the old
'if (map._popup) return' guard skipped every overlay reload forever after
the first popup. Port the fix into the redesigned frontend: track popup
state via popupopen/popupclose, close on user zoom/drag so moveend reloads
always run, and keep the autopan skip for the popup's own pan.
2026-08-27 17:48:39 -04:00
Sirius DevOps
8560884bbd Merge remote-tracking branch 'forgejo/master' into frontend-overhaul
# Conflicts:
#	app/static/index.html
2026-08-27 17:47:31 -04:00
Sirius DevOps
2ce0e9ba4e ci: retrigger deploy (previous run raced the force-push)
Some checks failed
build-and-deploy / build (push) Failing after 39s
2026-08-27 17:42:03 -04:00
Sirius DevOps
b2369bcc20 map: fix cameras vanishing after opening a camera popup and zooming
Some checks failed
build-and-deploy / build (push) Failing after 52s
Root cause: Leaflet 1.9.4's Map.closePopup() never nulls map._popup (only
unbindPopup does), so the moveend guard 'if (map._popup) return' skipped
every overlay reload forever after the first popup was ever opened. Opening
one camera popup froze the marker layer: zoom out and the map kept showing
the stale zoomed-in subset (or nothing) until a full page refresh.

Track real popup state via popupopen/popupclose events instead, and close
the popup on user zoom/drag so the moveend reload always runs after
navigation; the autopan skip still protects the popup when it pans itself
into view.
2026-08-27 17:38:48 -04:00
Sirius DevOps
51e906c41f Merge remote-tracking branch 'forgejo/master' into frontend-overhaul
# Conflicts:
#	app/static/index.html
2026-08-27 17:33:12 -04:00
Sirius DevOps
12f01a17a9 frontend: Ghost-in-the-Shell overhaul — map-first landing, HUD chrome, event blips, tickers
- Map is now the landing view: full-viewport NASA GIBS globe, existing
  fires/cameras/HLS map machinery preserved verbatim
- New 'Event Blips' layer: geolocated ingest events, color-coded by source,
  bbox/since/has_coords filters added to GET /api/events
- Weather / Flights(ADS-B) / Vessels(AIS) layer slots reserved (feed pending)
- Market ticker strip with configurable symbols — auto-promotes to LIVE when
  GET /api/market returns {symbols:[...]} (contract documented in Settings)
- Breaking-news ticker: LLM exec-summary flash + headline marquee, 15-min cycle
- Dropdown nav (Map/News/Events/Alerts/Entities/Ingest/API Keys/Settings),
  Settings view (localStorage: symbols, map layer defaults), System panel
- Section-9 theme: near-black navy, cyan/magenta accents, Orbitron/Rajdhani/
  Share Tech Mono, chamfered HUD panels, scanlines, boot splash, UTC clock
- Fix: events.camera enum value missing from models.py/schemas.py caused 500s
  on every events query once camera events flowed in (migration 004 added it
  to the DB enum only)
2026-08-27 17:22:14 -04:00
Sirius DevOps
5cea0a5940 map: cluster camera markers so cameras stay visible when zoomed in
All checks were successful
build-and-deploy / build (push) Successful in 4m33s
Zooming in replaced the marker group with a bbox subset, so dense world
views (5k dots) thinned to a handful of pins — or zero on a wrapped world
copy, where currentBBox collapsed to a sliver and the API returned ~nothing.
Cameras only seemed to exist when zoomed out.

- vendor leaflet.markercluster 1.5.3; camera markers now render as numbered
  neon-green clusters at low zoom and split into individual dots as you zoom,
  so camera coverage is visible at every zoom level (spiderfy at max zoom)
- guard against null lat/lon rows (no phantom markers at 0,0)
- stale-response guard for loadCams/loadFires: rapid wheel zoom can resolve
  fetches out of order and a stale bbox response blanked the map
- serve index.html with Cache-Control: no-cache so the browser never keeps
  serving a pre-deploy copy after fixes land
2026-08-27 17:00:09 -04:00