Fetch existing retained snapshot upon initial connection

- Added logic to request the retained snapshot message upon MQTT connection.
- Ensure initial snapshot is processed after connecting to the MQTT broker.
- Improved debugging logs for better traceability.
This commit is contained in:
2024-10-20 17:28:56 +11:00
parent 121673fde1
commit 043e56e6f7
2 changed files with 16 additions and 9 deletions
+9 -9
View File
@@ -52,12 +52,12 @@ services:
limits:
cpus: '0.9'
memory: 5000M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
#healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"]
# interval: 30s
# timeout: 10s
# retries: 5
# start_period: 30s
dayglo_detector:
container_name: dayglo_detector
@@ -73,9 +73,9 @@ services:
MQTT_PASSWORD: 'RadGawlEikWothecOmtAmmoihumid8'
FRIGATE_URL: 'http://frigate:5000'
INTERESTED_ZONES: 'Door_Front'
depends_on:
frigate:
condition: service_healthy
#depends_on:
# frigate:
# condition: service_healthy
volumes:
frigate-config: