Camera Events
Endpoint: https://server:port/api/push_cameraevents
Supported actions: POST, (GET)
Notes
Add an HTTP Event Receiver component to the camera to allow it to receive events.
POST is the preferred method. GET is implemented for compatibility reasons.
Examples
POST https://server:port/api/push_cameraevents
GET https://server:port/api/push_cameraevents?number=1&state=true&target=17d7c877-3ab8-4fa9-a241-35221ffef10a
Permissions
POST: allowRemote
GET: allowRemote
POST Request:
{
"target": "<camera uuid, mandatory>",
"number": "<integer (1-4), mandatory>",
"state": <boolean, optional, defaults to true>,
"waitForDeactivation": <boolean, optional, defaults to false>
}
WARNING:
if waitForDeactivation = true, the event will stay active until state is set to false. Do not use this, unless it is really needed.
POST Request examples:
{
"target": "17d7c877-3ab8-4fa9-a241-35221ffef10a",
"number": 1,
"state: true
}
{
"target": "17d7c877-3ab8-4fa9-a241-35221ffef10a",
"number": 1,
"state: true,
"waitForDeactivation": true
}
Comments
0 comments
Please sign in to leave a comment.