This article provides python samples These article provide python samples, API examples and instructions on how to create custom events, trigger events, and view events in their corresponding database
Instructions
Download python samples related to events API
...
.
...
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Info |
---|
Access tokens for cameras can be found on the integrations page of the VXG Cloud One web client. |
Creating a Custom Event
...
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 |
...
Enabling Motion Detector Event
From the directory containing the python samples, call cameras_enable_motion_detector.py to enable motion detection events.
Code Block |
---|
python3 ./cameras_enable_motion_detector.py -access_token dfasdfasdfasrwecsdcsdf= -enabled true |
...
How to Start and Stop Recording Events
To begin recording events call cameras_event_processing_events.py with the parameter record_stat=on.
Code Block |
---|
python3 ./cameras_event_processing_events.py -access_token sdafasdfasdfasdfasdfasrwecsdcsdf= -ename motion -record_stat on |
...
To stop recording events call cameras_event_processing_events.py with the parameter record_stat=off.
Code Block |
---|
python3 ./cameras_event_processing_events.py -access_token sdafasdfasdfasdfasdfasrwecsdcsdf= -ename motion -record_stat off |
...
How to View Event Records
Call storage_api_get_events.py to view recorded events within a specified time interval.
Code Block |
---|
python3 ./storage_api_get_events.py -access_token sdafasdfasdfasdfasdfasrwecsdcsdf= -start 2022-12-01T08:30:00 -end 2022-12-02T08:30:00 -limit 10 |
...
In the examples below, ACCESS_TOKEN
should be replaced with an actual access token of the selected channel with "all" permission.
Child pages (Children Display) |
---|