Skip to content

How the program works (simplified)

Daniel Fernau edited this page Jan 27, 2021 · 2 revisions

v1.x documentation

  1. Check if all required parameters are set
  2. Check if local target directory exists
  3. POST to /api/auth with username and password to retrieve API Bearer Token
  4. POST to /api/auth/access-key with Bearer Token Authorization header to retrieve API Access Key
  5. GET from /api/bootstrap with Bearer Token Authorization header to retrieve camera list

Then

Download video files

  1. Split the given time range into one-hour segments to prevent too large files
  2. GET video segments from /api/video/export using accessKey, camera, start, end parameters

or

Download camera snapshot

  1. GET snapshot(s) from /api/cameras/{camera_id}/snapshot using the accessKey