deps and envs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user