Initial commit: Camera Viewer with Frigate alerts
Features: - 8-camera WebRTC grid using go2rtc - MQTT subscription to Frigate events - Auto-fullscreen on person detection (Front_Porch) - SSE for real-time browser updates - Touch-friendly tablet interface - Wake lock to keep screen on - Auto-dismiss after 30 seconds
This commit is contained in:
35
app/config.py
Normal file
35
app/config.py
Normal file
@@ -0,0 +1,35 @@
|
||||
"""Camera Viewer Configuration"""
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# MQTT Settings (Home Assistant)
|
||||
MQTT_HOST: str = "192.168.1.50"
|
||||
MQTT_PORT: int = 1883
|
||||
MQTT_USER: str = "mqtt"
|
||||
MQTT_PASSWORD: str = "11xpfcryan"
|
||||
|
||||
# go2rtc Settings
|
||||
GO2RTC_HOST: str = "192.168.1.241:1985"
|
||||
|
||||
# Alert Settings
|
||||
ALERT_CAMERA: str = "Front_Porch"
|
||||
AUTO_DISMISS_SECONDS: int = 30
|
||||
|
||||
# Camera list (name: display_name)
|
||||
CAMERAS: dict = {
|
||||
"Front_Porch": "Front Porch",
|
||||
"FPE": "Front Yard",
|
||||
"Driveway": "Driveway",
|
||||
"Driveway_door": "Driveway Door",
|
||||
"Porch_Downstairs": "Porch Downstairs",
|
||||
"Street_side": "Street Side",
|
||||
"Backyard": "Backyard",
|
||||
"House_side": "House Side",
|
||||
}
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user