Skip to content

Changing camera settings

Till Jaeger edited this page Jan 4, 2022 · 3 revisions

Example: Change recording type of a camera (DRAFT)

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.

Clone this wiki locally