Files
camera-viewer/app/config.py
chrisryn cebb9b6f28 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
2026-01-30 22:36:53 -06:00

36 lines
868 B
Python

"""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()