mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
odds ticker display changes
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
"odds_ticker": {
|
"odds_ticker": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"show_favorite_teams_only": true,
|
"show_favorite_teams_only": true,
|
||||||
"enabled_leagues": ["mlb"],
|
"enabled_leagues": ["mlb", "nfl", "ncaa_fb"],
|
||||||
"update_interval": 3600,
|
"update_interval": 3600,
|
||||||
"scroll_speed": 1,
|
"scroll_speed": 1,
|
||||||
"scroll_delay": 0.01
|
"scroll_delay": 0.01
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ class OddsTickerManager:
|
|||||||
if self.ticker_image and self.scroll_speed > 0 and self.scroll_delay > 0:
|
if self.ticker_image and self.scroll_speed > 0 and self.scroll_delay > 0:
|
||||||
# Duration for the ticker to scroll its full width
|
# Duration for the ticker to scroll its full width
|
||||||
self.dynamic_display_duration = (self.ticker_image.width / self.scroll_speed) * self.scroll_delay
|
self.dynamic_display_duration = (self.ticker_image.width / self.scroll_speed) * self.scroll_delay
|
||||||
logger.info(f"Calculated dynamic display duration: {self.dynamic_display_duration:.2f} seconds for a width of {self.ticker_image.width}px")
|
logger.info(f"[OddsTickerManager] Calculated dynamic display duration: {self.dynamic_display_duration:.2f} seconds for a width of {self.ticker_image.width}px, scroll_speed={self.scroll_speed}, scroll_delay={self.scroll_delay}")
|
||||||
else:
|
else:
|
||||||
# Fallback to the configured duration if something is wrong
|
# Fallback to the configured duration if something is wrong
|
||||||
self.dynamic_display_duration = self.display_duration
|
self.dynamic_display_duration = self.display_duration
|
||||||
|
|||||||
Reference in New Issue
Block a user