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

@@ -44,7 +44,7 @@ class VideoPlayer:
self.ir_codes = self.config.get('ir_codes', {})
# Channel settings
self.video_folder = Path(self.config.get('video_folder', '/home/pi/Videos'))
self.video_folder = Path(self.config.get('video_folder', os.getenv('VIDEO_FOLDER', '/home/pi/Videos')))
self.default_channel = self.config.get('default_channel', 1)
self.channel_timeout = self.config.get('channel_timeout', 3.0)
self.multi_digit_timeout = self.config.get('multi_digit_timeout', 1.0)
@@ -71,7 +71,7 @@ class VideoPlayer:
def get_default_config(self) -> Dict:
"""Get default configuration"""
return {
"video_folder": "/home/pi/Videos",
"video_folder": os.getenv('VIDEO_FOLDER', '/home/pi/Videos'),
"ir_pin": 18,
"default_channel": 1,
"channel_timeout": 3.0,