/** * Environment configuration * Values are loaded from .env file via Vite */ export const env = { // Home Assistant haUrl: import.meta.env.VITE_HA_URL || 'http://192.168.1.50:8123', haWsUrl: import.meta.env.VITE_HA_WS_URL || 'ws://192.168.1.50:8123/api/websocket', // Frigate & go2rtc // Use empty string to proxy through same origin (nginx), or set explicit URL frigateUrl: import.meta.env.VITE_FRIGATE_URL || 'http://192.168.1.241:5000', go2rtcUrl: import.meta.env.VITE_GO2RTC_URL || 'http://192.168.1.241:1985', go2rtcRtsp: import.meta.env.VITE_GO2RTC_RTSP || 'rtsp://192.168.1.241:8600', // Google Calendar googleClientId: import.meta.env.VITE_GOOGLE_CLIENT_ID || '', // Screen management screenIdleTimeout: parseInt(import.meta.env.VITE_SCREEN_IDLE_TIMEOUT || '300000', 10), // Photo frame idle timeout (ms) - 5 minutes default photoFrameIdleTimeout: parseInt(import.meta.env.VITE_PHOTO_FRAME_IDLE_TIMEOUT || '300000', 10), photoFrameInterval: parseInt(import.meta.env.VITE_PHOTO_FRAME_INTERVAL || '15000', 10), // Presence detection presenceEnabled: import.meta.env.VITE_PRESENCE_DETECTION_ENABLED === 'true', presenceConfidenceThreshold: parseFloat(import.meta.env.VITE_PRESENCE_CONFIDENCE_THRESHOLD || '0.6'), // Frigate streaming frigateStreamEnabled: import.meta.env.VITE_FRIGATE_STREAM_ENABLED === 'true', frigateRtspOutput: import.meta.env.VITE_FRIGATE_RTSP_OUTPUT || 'rtsp://192.168.1.241:8554/command_center', } as const;