deps and envs

This commit is contained in:
2025-09-25 14:58:56 +02:00
parent aee8ec5cb0
commit 97547f4f80
5 changed files with 28 additions and 9 deletions

View File

@@ -12,12 +12,16 @@ from pathlib import Path
from typing import Dict, List, Optional, Any, Union
from dataclasses import dataclass, asdict
import shutil
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
@dataclass
class VideoPlayerConfig:
"""Video Player Configuration"""
# Video settings
video_folder: str = "/home/pi/Videos"
video_folder: str = os.getenv("VIDEO_FOLDER", "/home/pi/Videos")
supported_formats: List[str] = None
default_channel: int = 1
auto_play: bool = True