Agentdvr Api ((exclusive)) Guide
# Format timestamps for the API (ISO 8601 is usually safest) # AgentDVR typically accepts format: YYYY-MM-DDTHH:MM:SS start_str = start_time.strftime("%Y-%m-%dT%H:%M:%S") end_str = end_time.strftime("%Y-%m-%dT%H:%M:%S")
The API can trigger scene recognition or object detection via endpoints like /command/triggerScene . It also integrates with external AI servers like DoubleTake for facial recognition.
Instead of individual IDs, you can use a group parameter to apply a command to all devices in a specific set. Integrating with Home Automation agentdvr api
rest_command: agentdvr_snapshot: url: "http://192.168.1.100:8090/video/1/snapshot" agentdvr_record_on: url: "http://192.168.1.100:8090/video/2/record?1"
Example: http://192.168.1.100:8090/
Run this command in your browser or terminal:
To control specific devices, the API uses an oid (Object ID) and ot (Object Type ID). In Agent DVR, refers to microphones and Object Type 2 refers to cameras. Commonly used endpoints include: # Format timestamps for the API (ISO 8601
Let’s explore the most practical endpoints. Replace CAMERA_NUM with the camera ID number (visible in the Agent DVR interface next to the camera name).