From 045824d3cbd7614a0b57911cbabb275eb5803a9b Mon Sep 17 00:00:00 2001 From: Mateo Date: Thu, 24 Sep 2026 14:20:00 +0200 Subject: [PATCH] fix: add missing frontend config keys Without ALERTS_PLAYER_BUFFER_SIZE the platform requests detections with limit=NaN and alert images never load. --- containers/frontend/app-config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containers/frontend/app-config.js b/containers/frontend/app-config.js index 46e02be..5090762 100644 --- a/containers/frontend/app-config.js +++ b/containers/frontend/app-config.js @@ -1,13 +1,17 @@ window.AppConfig = { API_URL: 'http://localhost:5050', API_TIMEOUT_MS: 2000, + CAMERA_CONTROL_TIMEOUT_MS: 30000, LIVE_STREAMING_MEDIA_URL: '', LIVE_STREAMING_TIMEOUT_SECONDS: 30, CAMERAS_INACTIVITY_THRESHOLD_MINUTES: 30, CAMERAS_LIST_REFRESH_INTERVAL_MINUTES: 2, ALERTS_LIST_REFRESH_INTERVAL_SECONDS: 30, + MOVING_AZIMUTH_REFETCH_INTERVAL_SECONDS: 2, + STABLE_AZIMUTH_REFETCH_INTERVAL_SECONDS: 30, ALERTS_PLAYER_INTERVAL_MILLISECONDS: 500, + ALERTS_PLAYER_BUFFER_SIZE: 20, ALERTS_PLAYER_CONFIDENCE_THRESHOLD: 0.15, ALERTS_SOUND_FILE: 'notification-alert.mp3', ALERTS_CAMERA_RANGE_KM: 30, @@ -18,4 +22,6 @@ window.AppConfig = { es: 'https://pyronear.notion.site/Gu-a-de-uso-de-la-plataforma-Pyronear-389425b6366881e69fd6f6f1a414814d', }, HISTORY_NB_ALERTS_PER_PAGE: 15, + // IGN Géoplateforme key; empty hides the IGN Topo base layer. + IGN_API_KEY: '', };