Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This These article provides provide python samples, API examples and instructions on how to create custom events, trigger events, and view events in their corresponding database

\uD83D\uDCD8 Instructions

Info

Python samples attached in document

Download python samples related to events API

...

.

...

Creating a Custom Event

  1. Get camera’s access token
    call camera api to get access token

  2. From the directory containing the python samples, call cameras_create_custom_event.py to create a custom event.

    Code Block
    python ./cameras_create_custom_event.py -a "dfasdfasdfasrwecsdcsdf=" -e "test event"

    Where -a is the camera’s access token and -e is the name of the event being added

Enabling Motion Detector Event

Camera Event Processing Events

END

View file
namecameras_event_processing_events.py
View file
namecameras_enable_motion_detector.py
View file
namecameras_create_custom_event.py

...



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)