update some broadcast logos and fix multiple stacked panels logic

This commit is contained in:
Chuck
2025-09-10 18:13:42 -04:00
parent 20a816f3e6
commit 3ee7821353
13 changed files with 602 additions and 171 deletions

View File

@@ -63,13 +63,9 @@ class BaseNBAManager:
# Set logging level to INFO to reduce noise
self.logger.setLevel(logging.INFO)
# Get display dimensions from config
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
# Get display dimensions from matrix
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
# Cache for loaded logos
self._logo_cache = {}

View File

@@ -91,12 +91,8 @@ class BaseNCAAFBManager: # Renamed class
self.logger.setLevel(logging.INFO)
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
self._logo_cache = {}

View File

@@ -63,13 +63,9 @@ class BaseNCAAMBasketballManager:
# Set logging level to INFO to reduce noise
self.logger.setLevel(logging.INFO)
# Get display dimensions from config
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
# Get display dimensions from matrix
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
# Cache for loaded logos
self._logo_cache = {}

View File

@@ -62,12 +62,8 @@ class BaseNFLManager: # Renamed class
self.logger.setLevel(logging.INFO)
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
self._logo_cache = {}

View File

@@ -63,13 +63,9 @@ class BaseNHLManager:
# Set logging level to DEBUG to see all messages
self.logger.setLevel(logging.DEBUG)
# Get display dimensions from config
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
# Get display dimensions from matrix
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
# Cache for loaded logos
self._logo_cache = {}

View File

@@ -84,12 +84,8 @@ class BaseSoccerManager:
self.team_map_file = self.soccer_config.get("team_map_file", "assets/data/team_league_map.json")
self.team_map_update_days = self.soccer_config.get("team_map_update_days", 7) # How often to update the map
display_config = config.get("display", {})
hardware_config = display_config.get("hardware", {})
cols = hardware_config.get("cols", 64)
chain = hardware_config.get("chain_length", 1)
self.display_width = int(cols * chain)
self.display_height = hardware_config.get("rows", 32)
self.display_width = self.display_manager.matrix.width
self.display_height = self.display_manager.matrix.height
self._logo_cache = {}