40 lines
999 B
Python
40 lines
999 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",
|
|
"WyzePanV3": "Wyze Pan",
|
|
"BackDoor": "Back Door",
|
|
"Parlor": "Parlor",
|
|
"Livingroom": "Living Room",
|
|
}
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|