VXG Knowledge Base

How to Start and Stop Recording Events

Starting and stopping the recording of events using Python Sample

  • Download the corresponding python sample

cameras_event_processing_events.py

  • To begin recording events call cameras_event_processing_events.py with the parameter record_stat=on.

    python3 ./cameras_event_processing_events.py -access_token sdafasdfasdfasdfasdfasrwecsdcsdf= -ename motion -record_stat on
    


    Where access_token is the camera’s access token and ename is the name of the event.

  • To stop recording events call cameras_event_processing_events.py with the parameter record_stat=off.

    python3 ./cameras_event_processing_events.py -access_token sdafasdfasdfasdfasdfasrwecsdcsdf= -ename motion -record_stat off
    


    Where access_token is the camera’s access token and ename is the name of the event.