mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-23 17:52:05 +02:00
* Add base class for global config updates * Add or remove camera states * Move camera process management to separate thread * Move camera management fully to separate class * Cleanup * Stop camera processes when stop command is sent * Start processes dynamically when needed * Adjust * Leave extra room in tracked object queue for two cameras * Dynamically set extra config pieces * Add some TODOs * Fix type check * Simplify config updates * Improve typing * Correctly handle indexed entries * Cleanup * Create out SHM * Use ZMQ for signaling object detectoin is completed * Get camera correctly created * Cleanup for updating the cameras config * Cleanup * Don't enable audio if no cameras have audio transcription * Use exact string so similar camera names don't interfere * Add ability to update config via json body to config/set endpoint Additionally, update the config in a single rather than multiple calls for each updated key * fix autotracking calibration to support new config updater function --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
29 lines
506 B
Python
29 lines
506 B
Python
from typing import Any, Dict, Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AppConfigSetBody(BaseModel):
|
|
requires_restart: int = 1
|
|
update_topic: str | None = None
|
|
config_data: Optional[Dict[str, Any]] = None
|
|
|
|
|
|
class AppPutPasswordBody(BaseModel):
|
|
password: str
|
|
|
|
|
|
class AppPostUsersBody(BaseModel):
|
|
username: str
|
|
password: str
|
|
role: Optional[str] = "viewer"
|
|
|
|
|
|
class AppPostLoginBody(BaseModel):
|
|
user: str
|
|
password: str
|
|
|
|
|
|
class AppPutRoleBody(BaseModel):
|
|
role: str
|