-
Notifications
You must be signed in to change notification settings - Fork 1
Changing camera settings
Till Jaeger edited this page Jan 4, 2022
·
3 revisions
In order to address the right camera, the ID of the device is needed. We use the HTTP request node for that with:
endpoint: /proxy/protect/api/cameras/
method: GET
Response type: json
Trigger this node once and feed the response msg into a debug node. It will return an array of objects, each representing one camera. Find the right camera by inspecting payload[X].name for each X. Find the "id" and copy the value. This represents your camera.
In order to change values for that camera, the request looks like this (change recording mode to "detections":
"payload": {
"endpoint": "/proxy/protect/api/cameras/<ID>",
"method": "PATCH",
"data": {"recordingSettings":{"mode":"detections"}}
}
Change mode to "always" or "never" respectively.