Automate first-time provisioning of Reolink cameras#35
Open
fe51 wants to merge 11 commits into
Open
Conversation
This reverts commit ca9b777.
…Baichuan discovery, password init via CGI ModifyUser, HTTP/HTTPS enable, static-IP assignment, and handoff to setup_reolink_cameras.py.
…eping the manual Reolink-app steps as an alternative.
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.
Automate first-time provisioning of Reolink cameras
Objectif & context
Onboarding fresh Reolink cameras currently requires the Reolink mobile app to discover each camera, create the admin password, and enable HTTP/HTTPS, only then can setup_reolink_cameras.py configure them over HTTPS.
This PR removes that manual step so a batch of factory-fresh cameras can be provisioned headless, end to end, with a single command.
What it does
provision_reolink.py:
Run with:
uv run provision_reolink.py --run-setupuv fetches dependencies into a throwaway env (PEP 723 inline metadata), so requirements.txt/.venv are untouched.
Notable detail
reolink_aio exposes no password-init API; the CGI ModifyUser command requires the newPassword/oldPassword fields — sending password returns code 0 but silently no-ops.
Validation
Tested against real RLC-823S2 hardware: cold fresh provisioning, idempotent re-runs, static-IP relocation, and graceful skip of an unreachable host.