-
-
Notifications
You must be signed in to change notification settings - Fork 55
How the program works (simplified)
Daniel Fernau edited this page Jan 27, 2021
·
2 revisions
v1.x documentation
- Check if all required parameters are set
- Check if local target directory exists
- POST to /api/auth with username and password to retrieve API Bearer Token
- POST to /api/auth/access-key with Bearer Token Authorization header to retrieve API Access Key
- GET from /api/bootstrap with Bearer Token Authorization header to retrieve camera list
Then
Download video files
- Split the given time range into one-hour segments to prevent too large files
- GET video segments from /api/video/export using accessKey, camera, start, end parameters
or
Download camera snapshot
- GET snapshot(s) from /api/cameras/{camera_id}/snapshot using the accessKey