mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
actually load config to read timezone for clock
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
},
|
||||
"clock": {
|
||||
"enabled": true,
|
||||
"format": "%H:%M:%S",
|
||||
"format": "%I:%M %p",
|
||||
"update_interval": 1
|
||||
},
|
||||
"weather": {
|
||||
|
||||
@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
|
||||
class Clock:
|
||||
def __init__(self, display_manager: DisplayManager = None):
|
||||
self.config_manager = ConfigManager()
|
||||
self.config = self.config_manager.config
|
||||
self.config = self.config_manager.load_config()
|
||||
# Use the provided display_manager or create a new one if none provided
|
||||
self.display_manager = display_manager or DisplayManager(self.config.get('display', {}))
|
||||
logger.info("Clock initialized with display_manager: %s", id(self.display_manager))
|
||||
|
||||
Reference in New Issue
Block a user