Repository navigation
feat(camera-api): reboot frozen or silent cameras, with a daily budget - #461
Open
MateoLostanlen wants to merge 6 commits into
Open
MateoLostanlen wants to merge 6 commits into
MateoLostanlen wants to merge 6 commits into
Conversation
This was referenced Oct 26, 2026
Open
Member
Author
|
Tested on pi-test (Pi 5, Debian 13, Docker 29), branch develop + #419 + #459 + #461, images built on the Pi, Camera without fresh image, API reboot with budget: OK
Not tested: Remarks:
|
This was referenced Oct 28, 2026
added 3 commits
October 28, 2026 12:26
… grace after reboot - Reboot attempts were in memory with monotonic times, so every container restart (healthcheck, update) handed out three new attempts. They are now wall-clock times saved in data/camera_recovery.json (RECOVERY_STATE_FILE) and loaded at startup, pruned to the last 24 h. - `Reboot raised: <exc>` logged the Reolink URL with the camera password. Only the exception type is logged. - A static camera rebooted by the detector failed its next two captures while booting and entered the 30 min skip window. The detector now resets the failure count and gives it 90 s before captures count again. - /patrol_status iterated the attempts deque while the detector appended to it: both sides now hold a lock. - "reboot budget spent" is logged once per episode instead of every 5 min.
…o feat/camera-recovery
/patrol_status showed one attempt in the last 24 h but no last_reboot_attempt once the detector restarted: derive it from the attempts loaded from disk.
MateoLostanlen
force-pushed
the
feat/camera-recovery
branch
from
October 29, 2026 09:12
7a5ea49 to
a4a683a
Compare
MateoLostanlen
force-pushed
the
fix/camera-api-stale-patrol
branch
from
October 29, 2026 09:12
719ea53 to
3bc0f60
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of pyronear/roadmap#16, fixes #445 (API reboot step). Stacked on #458.