massive refactor on game filtering logic and odds calls for all sports displays

This commit is contained in:
Chuck
2025-07-22 11:06:54 -05:00
parent e238577f36
commit a580d87876
10 changed files with 303 additions and 206 deletions

View File

@@ -33,42 +33,42 @@
},
"display_durations": {
"clock": 15,
"weather": 15,
"weather": 30,
"stocks": 30,
"hourly_forecast": 15,
"daily_forecast": 15,
"hourly_forecast": 30,
"daily_forecast": 30,
"stock_news": 20,
"odds_ticker": 60,
"nhl_live": 30,
"nhl_recent": 20,
"nhl_upcoming": 20,
"nhl_recent": 30,
"nhl_upcoming": 30,
"nba_live": 30,
"nba_recent": 20,
"nba_upcoming": 20,
"nba_recent": 30,
"nba_upcoming": 30,
"nfl_live": 30,
"nfl_recent": 15,
"nfl_upcoming": 15,
"nfl_recent": 30,
"nfl_upcoming": 30,
"ncaa_fb_live": 30,
"ncaa_fb_recent": 15,
"ncaa_fb_upcoming": 15,
"ncaa_fb_recent": 30,
"ncaa_fb_upcoming": 30,
"ncaa_baseball_live": 30,
"ncaa_baseball_recent": 15,
"ncaa_baseball_upcoming": 15,
"ncaa_baseball_recent": 30,
"ncaa_baseball_upcoming": 30,
"calendar": 30,
"youtube": 20,
"youtube": 30,
"mlb_live": 30,
"mlb_recent": 20,
"mlb_upcoming": 20,
"mlb_recent": 30,
"mlb_upcoming": 30,
"milb_live": 30,
"milb_recent": 20,
"milb_upcoming": 20,
"milb_recent": 30,
"milb_upcoming": 30,
"text_display": 10,
"soccer_live": 30,
"soccer_recent": 20,
"soccer_upcoming": 20,
"ncaam_basketball_live": 20,
"ncaam_basketball_recent": 15,
"ncaam_basketball_upcoming": 15,
"soccer_recent": 30,
"soccer_upcoming": 30,
"ncaam_basketball_live": 30,
"ncaam_basketball_recent": 30,
"ncaam_basketball_upcoming": 30,
"music": 30
}
},
@@ -137,6 +137,7 @@
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"show_favorite_teams_only": true,
"favorite_teams": ["TB"],
"logo_dir": "assets/sports/nhl_logos",
"show_records": true,
@@ -157,6 +158,7 @@
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_game_hours": 72,
"show_favorite_teams_only": true,
"favorite_teams": ["DAL"],
"logo_dir": "assets/sports/nba_logos",
"show_records": true,
@@ -176,6 +178,7 @@
"odds_update_interval": 3600,
"recent_games_to_show": 0,
"upcoming_games_to_show": 2,
"show_favorite_teams_only": true,
"favorite_teams": ["TB", "DAL"],
"logo_dir": "assets/sports/nfl_logos",
"show_records": true,
@@ -196,6 +199,7 @@
"season_cache_duration_seconds": 86400,
"recent_games_to_show": 0,
"upcoming_games_to_show": 2,
"show_favorite_teams_only": true,
"favorite_teams": ["UGA", "AUB"],
"logo_dir": "assets/sports/ncaa_fbs_logos",
"show_records": true,
@@ -214,6 +218,7 @@
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_game_hours": 72,
"show_favorite_teams_only": true,
"favorite_teams": ["UGA", "AUB"],
"logo_dir": "assets/sports/ncaa_fbs_logos",
"show_records": true,
@@ -230,6 +235,7 @@
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_game_hours": 72,
"show_favorite_teams_only": true,
"favorite_teams": ["UGA", "AUB"],
"logo_dir": "assets/sports/ncaa_fbs_logos",
"show_records": true,
@@ -255,6 +261,7 @@
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 1,
"show_favorite_teams_only": true,
"favorite_teams": ["TB", "TEX"],
"logo_dir": "assets/sports/mlb_logos",
"show_records": true,
@@ -302,6 +309,7 @@
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_game_hours": 168,
"show_favorite_teams_only": true,
"favorite_teams": ["LIV"],
"leagues": ["eng.1", "esp.1", "ger.1", "ita.1", "fra.1", "uefa.champions", "usa.1"],
"logo_dir": "assets/sports/soccer_logos",