Skip to content

[Python script] Create fake alerts thourgh the API #11

Description

@RonanMorgan

Current Behavior

The only alerts created for development purpose are created by the false cameras (you can check cameras' behavior here : #10).
But the the timestamp of the alerts are set by the engine which means :

  1. we cannot create alerts in the past
  2. all the alerts will be attached to the same Sequence object in the API database (which means a Wildfire) because we need to have a pause of 30min between two alerts in order to create a new Sequence.

Wanted Behavior

We would like to be able to create Detections with a python script, using the /detections/ POST endpoint of the dev env API (documentation here)

In order to link the detections to an existing cameras you will have to generate a token thankts to the endpoint /cameras/{camera_id}/token. For that you can hardcode camera_id=1 for the static camera and camera_id=2 for the ptz camera.

  • No need to containerized the script, you can use the localhost:5050 url.
  • You can use these images saved in a new directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions