Add option to have cameras sorted inside the Birdseye stream (#5450)

* Add option to sort cameras inside Birdseye

* Make default order to be sorted alphabetically

* Add docs for sorting cameras

* Update index.md for cameras

* Remove irelevant comments
This commit is contained in:
Alin Balutoiu
2023-04-27 02:29:01 +02:00
committed by GitHub
parent e451f44ced
commit 83006eeb65
4 changed files with 53 additions and 1 deletions

View File

@@ -396,6 +396,7 @@ class BirdseyeConfig(FrigateBaseModel):
# uses BaseModel because some global attributes are not available at the camera level
class BirdseyeCameraConfig(BaseModel):
enabled: bool = Field(default=True, title="Enable birdseye view for camera.")
order: int = Field(default=0, title="Position of the camera in the birdseye view.")
mode: BirdseyeModeEnum = Field(
default=BirdseyeModeEnum.objects, title="Tracking mode for camera."
)