...
...
...
...
We provide two ways of creating new custom events.
1. Using API requests
It is possible to add new custom types of events using POST/cameras/{CAMID}/event_processing/events/
request.
...
Code Block |
---|
{ "caps": { "can_be_triggered": false, "can_record": false, "can_snapshot": false, "is_periodic": false }, "custom": true, "name": "custom_event", "notify": true, "receive": false } |
2. Using our API Python samples
View file | ||
---|---|---|
|
Get camera’s access token. (located in integrations page of Cloud One)
From the directory containing the python samples, call cameras_create_custom_event.py to create a custom event.
Code Block python3 ./cameras_create_custom_event.py -a dfasdfasdfasrwecsdcsdf= -e test
Where -a is the camera’s access token and -e is the name of the new event being created.