Commit graph

136 commits

Author SHA1 Message Date
Sirius DevOps
ef8b877d21 feat(map): chokepoint preset catalog + vessels ?src= filter
- GET /api/map/chokepoints: static five-strait fly-to catalog (Hormuz, Bab
  el-Mandeb, Suez, Malacca, Taiwan) with bbox/center/zoom/vesselapi. No
  VesselAPI calls; only Hormuz flags vesselapi=true.
- GET /api/vessels?src=aisstream|vesselapi|all (default all) filters the
  union store by provider so a Hormuz view skips ~5k CONUS AISStream rows.
- Tests: span validation of all five boxes, catalog 200 shape, src filter.
2026-08-29 14:03:15 -04:00
8498945549 Merge pull request 'docs: free satellite-feeds catalog for the OSINT map' (#26) from docs/satellite-feeds-catalog into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m3s
Reviewed-on: #26
2026-08-29 13:15:46 -04:00
Sirius DevOps
09fe615d89 docs: add free satellite-feeds catalog from research card
Live-probed 2026-08-29 inventory (GIBS extra layers, GOES/Himawari,
HLS, OPERA, STAC/COG paths). Ranked drop-ins for the OSINT map; skip
paid/NICFI. Does not change runtime code.
2026-08-29 13:12:26 -04:00
b6da7b7bd4 Merge pull request 'fix(vessels): protect Hormuz VesselAPI rows from AISStream eviction' (#25) from fix/vesselapi-hormuz-eviction into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m7s
2026-08-29 13:04:28 -04:00
Sirius DevOps
86b412dd37 fix(vessels): protect Hormuz VesselAPI rows from AISStream eviction
AISStream's live US-coast feed crowds vessel_last_known past _MAX_VESSELS
(6000) and the 'evict oldest seen_at' pass reaps the Hormuz VesselAPI rows,
which are only refreshed every VESSELAPI_INTERVAL (~4.8h). Result: the poller
was fetching 50 Hormuz vessels per 2xx but /api/vessels?bbox=Hormuz stayed
empty. Eviction now skips src=vesselapi rows (falls back to evictable-only,
clamped) so the blind-spot box stays resident between polls.
2026-08-29 13:05:57 -04:00
fc2c7c28c3 Merge pull request 'fix(titiler): drop @1x suffix + append SAS token top-level' (#24) from fix/titiler-tile-url into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m12s
Reviewed-on: #24
2026-08-29 12:13:33 -04:00
Sirius DevOps
68e1b63421 fix(titiler): drop @1x suffix + append SAS token top-level
TiTiler /tiles/{z}/{x}/{y} takes a strict int for y; the @1x scale-suffix
template 422s on every SAR tile request (int_parsing on '21@1x').

sign_cog_url wrapped the Planetary Computer SAS token under a single
token= param, which Azure rejects (403→409); the token is a pre-encoded
query string and must be appended top-level (st=…&se=…&sig=…).

Proven live: correct-form URL renders a 200 image/png 256px tile.
2026-08-29 11:42:03 -04:00
405845067e Merge pull request 'feat(map): Sentinel-1 SAR layer toggle (Leaflet)' (#23) from feat/sentinel1-sar-layer into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m10s
Reviewed-on: #23
2026-08-29 11:24:09 -04:00
Sirius DevOps
fa06c1dc42 feat(map): Sentinel-1 SAR layer toggle (Leaflet)
Add a default-off Layers row that fetches GET /api/map/sentinel1?bbox=
only when enabled, then L.tileLayer(tileUrl) at opacity 0.8. HUD hints
for 404/429/502; moveend refetch while on. Same-origin tileUrl as-is.
2026-08-29 11:15:34 -04:00
4b9760d6e1 Merge pull request 'fix(ui): stop map chrome overlapping on phone' (#22) from fix/map-mobile-chrome-overlap into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m0s
Reviewed-on: #22
2026-08-29 10:46:14 -04:00
Sirius DevOps
82ef815e20 fix(ui): stop map chrome overlapping on phone
Retune the 820px layout so GIBS sits as a full-width bar under the
header, LAYERS starts collapsed top-left, zoom stays top-right, and
the DVR row clears the ticker. Hide attribution and map-hint on phone
so NASA/RainViewer text no longer paints through MKT/NEWS.
2026-08-29 10:30:46 -04:00
5434dda2a9 Merge pull request 'fix(ui): keep last Keys card above ticker on mobile' (#21) from fix/keys-mobile-vesselapi-clip into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m8s
Reviewed-on: #21
2026-08-29 10:06:02 -04:00
Sirius DevOps
773d204f68 fix(ui): keep last Keys card above ticker on mobile
Stage uses 100dvh (100vh fallback) plus safe-area so the scrollport
ends above the dock. Subviews get extra bottom padding; phone key
forms wrap with 44px tap targets.
2026-08-29 09:47:27 -04:00
b0657cf3e4 Merge pull request 'feat(sentinel1): Sentinel-1 SAR STAC -> self-hosted TiTiler tile template' (#20) from feat/sentinel1-sar-titiler into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m6s
Reviewed-on: #20
2026-08-29 08:24:31 -04:00
Sirius DevOps
d09009e0bf merge master: keep VesselAPI env and self-hosted TiTiler in compose
PR #20 conflicted on docker-compose.yml after #19 landed. App service now
passes both VESSELAPI_* and TITILER_* ; titiler stays on 127.0.0.1:8001.
2026-08-29 08:25:51 -04:00
7b48caa793 Merge pull request 'feat(vessels): AISStream (US) + VesselAPI (Hormuz) as two active providers' (#19) from feat/vesselapi-ais-poller into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 2m51s
Reviewed-on: #19
2026-08-29 07:23:37 -04:00
Sirius DevOps
5212aaa5cd feat(sentinel1): Sentinel-1 SAR STAC -> self-hosted TiTiler tile template
Add GET /api/map/sentinel1?bbox=... which queries Planetary Computer STAC
(sentinel-1-grd, last 7d, most recent), signs the vv/hh COG with a SAS token,
and returns a same-origin /titiler/... XYZ tile template. Cache keyed on
quantized bbox + UTC day (20 min TTL). 429 -> 429 (Retry-After), no imagery
-> 404, other upstream errors -> 502.

Self-host TiTiler on the Pi (ghcr.io/developmentseed/titiler, arm64, 1G cap,
host loopback 8001 -> container 8000) instead of titiler.xyz. nginx
/titiler/ proxy snippet routes browser tiles to it; TITILER_PUBLIC_BASE and
TITILER_INTERNAL_URL are env-driven (no hardcoded hostnames).
2026-08-29 01:01:20 -04:00
Sirius DevOps
a8ad9ba1ff fix(vessels): both AIS providers are first-class, not fallback
Layer-panel note and .env.example now match the two-key model:
AISStream (US live) and VesselAPI (Hormuz) run independently.
2026-08-29 00:58:57 -04:00
Sirius DevOps
e7429a4161 feat(vessels): present AISStream + VesselAPI as two independent providers
- keystore KEY_REGISTRY copy splits the two keys (open/shared US-coast WS vs
  commercial Hormuz 5x/day REST); VesselAPI no longer reads as an AIS backup.
- vesselapi.py docstring drops 'fallback'; states both are first-class.
- /api/vessels docstring: last-known is the union (extra.src aisstream vs
  vesselapi).
- tests: VesselAPI idles/polls independently of the AISStream key.
2026-08-29 00:40:41 -04:00
Sirius DevOps
1f23083351 feat(vessels): VesselAPI quota-capped AIS poller for Middle East blind spot
Add a server-side REST poller for VesselAPI (free tier 150 calls/mo) that
upserts last-known positions into the shared vessel_last_known store when
AISStream is unset. Default box is the Strait of Hormuz (span 3.6 <= 4 deg),
never CONUS/NC (AISStream owns US coasts).

- app/vesselapi.py: worker loop, 4deg span validator, position->marker
  transform (skip suspected_glitch), durable Postgres daily-quota table.
- Local hard cap 5 successful 2xx/UTC day (VESSELAPI_MAX_CALLS_PER_DAY),
  monthly floor from X-RateLimit-Remaining, single request limit=50, no
  nextToken, no filter.sat, no retry-storm.
- keystore VESSELAPI_API_KEY registry entry; config + compose env passthrough
  (app + ingest); wired next to AISStream in main.py lifespan + run_ingester.
- GET /api/vessels docstring notes AISStream and/or VesselAPI cache.
- tests/test_vesselapi.py: 20 unit tests (no network/DB).
2026-08-29 00:18:54 -04:00
30a9c9e9b1 Merge pull request 'fix(aircraft): show planespotters photo in overlay popup' (#18) from fix/planespotters-popup-photo into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 2m55s
Reviewed-on: #18
2026-08-28 23:27:23 -04:00
Sirius DevOps
20a266563c fix(aircraft): show planespotters photo in overlay popup
Planespotters 403s server clients whose User-Agent has no contact
email; compose default UA lacked one. Leaflet popup.update() also
re-ran the bindPopup factory and wiped the thumbnail after load.

- Send a contact UA on planespotters lookups; align compose default.
- Resize the popup without re-rendering content.
- Keep hex/src on live firefighter upserts so they get a photo too.
2026-08-28 23:28:28 -04:00
bb849515fb Merge pull request 'fix: stop summarizer from bailing to a canned empty brief' (#17) from fix/summarizer-empty-brief into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m20s
Reviewed-on: #17
2026-08-28 23:19:14 -04:00
Sirius DevOps
7822d45f37 fix: stop summarizer from bailing to a canned empty brief
The reduce/recap prompts told the model to AND STOP with "No qualifying…"
whenever nothing looked breaking enough, so full article batches became
one sentence. Always write summary_en from the provided stories; ticker
and map may still be empty. Futures/market tape stay ignored.
2026-08-28 23:20:40 -04:00
680aeea29f Merge pull request 'feat(aircraft): planespotters.net photo in aircraft popup' (#16) from feat/planespotters-photos into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m53s
Reviewed-on: #16
2026-08-28 22:58:29 -04:00
Sirius DevOps
665aaec22f feat(aircraft): planespotters.net photo in aircraft popup
Add planespotters.net latest-photo lookup for ADS-B aircraft.

- app/live_layers.py: fetch_planespotters_photo() (hex preferred, reg
  fallback) + _normalize_planespotter_photo(); 24h TTL cache (their ToS cap).
- app/main.py: GET /api/aircraft/photo?hex=...|reg=... (422/404/502).
- app/static/index.html: .ps-photo block in ADS-B popup; lazy load on
  popupopen; thumbnail links to photo page + photographer credit.

Server-side proxy, not browser fetch(): planespotters 403s any request
carrying an Origin header (every browser fetch() sends one). The thumbnail
binary is loaded by the browser straight from their CDN, never re-hosted.

Tests: 4 unit + 4 API contract (38 pass in the two files).
2026-08-28 22:58:04 -04:00
e568d013ca Merge pull request 'feat: 23:00 daily news recap; prompts drop futures' (#15) from feat/news-daily-recap into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 4m5s
Reviewed-on: #15
2026-08-28 22:53:59 -04:00
Sirius DevOps
49ee5fe7a3 feat: 23:00 daily news recap; prompts drop futures
Summarizer still runs the 15-min analyst, plus a 24h breaking-news recap
at 23:00 America/New_York. HUD pins kind=daily_recap. Prompts ignore
futures/market tape.
2026-08-28 22:53:31 -04:00
d25ca8ed9c Merge pull request 'fix: chunk FIRMS bulk inserts under asyncpg 32767 bind cap' (#14) from fix/firms-bind-limit into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 3m35s
Reviewed-on: #14
2026-08-28 22:20:48 -04:00
Sirius DevOps
5302e261d7 fix: chunk FIRMS bulk inserts under asyncpg 32767 bind cap
A ~90k-row INSERT ... ON CONFLICT dies with InterfaceError, so fire_loop
fails every poll and /api/health stays degraded (fires age > 30 min).
Chunk 2000 rows per statement, still one commit per poll.
2026-08-28 22:22:12 -04:00
19fa0db32c Merge pull request 'fix: pipeline reliability — WS, summarizer, ingest, health' (#13) from fix/pipeline-reliability into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 4m11s
Reviewed-on: #13
2026-08-28 21:49:56 -04:00
Sirius DevOps
d81ea68dec fix: pipeline reliability — WS, summarizer, ingest, health
Stop the live HUD reconnect storm (nginx WS snippet + backoff), copy
intel/nous_client into the summarizer image, and make event ingest
idempotent on URL. GDELT uses the DOC API; NWS no longer sends bbox;
FIRMS is one ON CONFLICT batch; GET /api/aircraft serves last-known.
Health reports freshness without 503ing docker. EONET + CISA KEV added.
2026-08-28 21:49:05 -04:00
c6bfc50705 Merge pull request 'feat: classify aircraft/vessels as military vs civilian in popups' (#12) from feat/ac-vessel-intel into master
All checks were successful
build-and-deploy / build-push-deploy (push) Successful in 4m11s
2026-08-28 20:58:51 -04:00
Sirius DevOps
ca15885e7f feat: classify aircraft/vessels as military vs civilian in popups
Aircraft: readsb dbFlags bit0, then ICAO combat types / US-DoD hex /
callsign. Popup shows type, operator, alt, vs, squawk, emitter class.
Vessels: ITU ship type 35 = military, 50/51/55 = government; cargo/
tanker/passenger/etc otherwise. Popup shows kind, flag, dest, nav,
IMO, size. Magenta glyphs = military, gold = law/gov.
2026-08-28 21:00:20 -04:00
dd8d665af0 Merge pull request 'feat: continuous news scrape + 15-min analyst, expand urls.txt' (#11) from feat/news-cadence-feeds into master
Some checks failed
build-and-deploy / build-push-deploy (push) Has been cancelled
Reviewed-on: #11
2026-08-28 20:56:02 -04:00
0d1c095296 Merge branch 'master' into feat/news-cadence-feeds 2026-08-28 20:55:43 -04:00
Sirius DevOps
8643153954 feat: continuous news scrape + 15-min analyst, expand urls.txt
Scraper loops with NEWS_SCRAPE_INTERVAL_S (default 10s after each
crawl). Summarizer runs every NEWS_SUMMARIZE_INTERVAL_S (default 900)
over the last 15 minutes of articles. Feed list replaced from the
k8s scrapy-urls configmap (334 sources).
2026-08-28 20:53:32 -04:00
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