feat: enable spotting detector — cold-start suppression + pull stub

Stamp last_spotting_broadcast_at on all 23 active fires before enabling
the detector, preventing false positives on first pixel after deploy.
Remove the return None stub from _check_spotting so the convex-hull
perimeter + cooldown logic runs on every attributed FIRMS pixel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson (via Claude) 2026-06-09 18:59:51 +00:00
commit 196e19e76e

View file

@ -877,7 +877,6 @@ def _close_prev_perimeter(conn, irwin_id: str, prev_pass_id: str) -> None:
def _check_spotting(conn, *, irwin_id, pixel_lat, pixel_lon, def _check_spotting(conn, *, irwin_id, pixel_lat, pixel_lon,
current_pass_id, incident_name, data, now): current_pass_id, incident_name, data, now):
"""Return spotting wire if criteria met, else None.""" """Return spotting wire if criteria met, else None."""
return None
threshold_mi = float(adapter_config.fires.spotting_distance_threshold_mi) threshold_mi = float(adapter_config.fires.spotting_distance_threshold_mi)
cooldown_s = int(adapter_config.fires.spotting_cooldown_seconds) cooldown_s = int(adapter_config.fires.spotting_cooldown_seconds)