Commit Graph
100 Commits
Author SHA1 Message Date
ChuckBuilds ed23f8e3a5 adjusting LED panel settings to reduce flicker 2025-04-18 19:05:23 -05:00
ChuckBuilds 4f8e782683 adjusting LED panel settings to reduce flicker 2025-04-18 19:04:06 -05:00
ChuckBuilds b95ecc3175 adjusting LED panel settings to reduce flicker 2025-04-18 19:02:37 -05:00
ChuckBuilds 81099455a5 add schd logo 2025-04-18 18:56:16 -05:00
ChuckBuilds 73cf19f941 Fix weather icon vertical positioning: - Center icon in top 2/3 of display - Improve layout balance between icon and metrics - Maintain bottom space for additional weather data 2025-04-18 18:55:48 -05:00
ChuckBuilds e09ddda62b turned off nhl_scoreboard to work on other features since api calls are exhausted 2025-04-18 18:30:15 -05:00
ChuckBuilds 6c60ac46f2 Implement caching system for NHL managers to reduce API calls: - Add CacheManager class with singleton pattern - Update _fetch_data to use caching - Optimize update intervals in config.json - Reduce API calls by ~48% 2025-04-18 18:29:34 -05:00
ChuckBuilds 4815f9f143 Remove temporary stock icon folder and download missing icons functionality 2025-04-18 18:11:10 -05:00
ChuckBuilds 096d8ae6d7 Remove NHL timing control from DisplayController to let NHL managers handle their own timing 2025-04-18 15:49:59 -05:00
ChuckBuilds cae217c228 Fix NHL recent display to properly rotate games with timing 2025-04-18 15:44:35 -05:00
ChuckBuilds e34ac6a38b Fix mode switching to ensure proper display clearing between modes 2025-04-18 15:43:12 -05:00
ChuckBuilds 37929ba6e8 Remove nhl_live from regular rotation and simplify live game handling 2025-04-18 15:40:55 -05:00
ChuckBuilds 1f76c12b11 Fix display update method name in NHL managers 2025-04-18 15:39:25 -05:00
ChuckBuilds 82b8e358fe Remove sleep delays to improve display frame rate 2025-04-18 15:35:06 -05:00
ChuckBuilds c4e30f0dc9 Update NHL managers with clearer logging messages and consistent display handling 2025-04-18 15:33:27 -05:00
ChuckBuilds d686cda6c7 Simplify display rotation to follow specified order: clock -> weather -> stocks -> NHL modes 2025-04-18 15:31:19 -05:00
ChuckBuilds 94279b97e3 Remove internal rotation logic from NHL managers to let display controller handle it 2025-04-18 15:29:19 -05:00
ChuckBuilds 5529b52ad1 Fix NHL rotation to respect mode order and prevent premature NHL mode switching 2025-04-18 15:26:50 -05:00
ChuckBuilds c3959cde04 Fix display rotation to start with clock and follow correct mode order 2025-04-18 15:24:46 -05:00
ChuckBuilds a91a02dcf1 re-enabled other display screens to ensure they play nice with new display controller 2025-04-18 15:21:58 -05:00
ChuckBuilds a41331f6b0 Update display rotation to respect mode order instead of always returning to clock 2025-04-18 15:20:57 -05:00
ChuckBuilds a88e0d471f Replace display controller with fixed version 2025-04-18 15:11:27 -05:00
ChuckBuilds c57baaa57f Add fixed display controller with improved team rotation 2025-04-18 15:11:13 -05:00
ChuckBuilds 6583082f46 Add team rotation limit to prevent getting stuck in NHL modes 2025-04-18 15:06:06 -05:00
ChuckBuilds e9920b5929 Fix display rotation to properly handle NHL recent and upcoming games 2025-04-18 15:02:36 -05:00
ChuckBuilds f5a460c348 Implement team-based rotation for NHL recent and upcoming games 2025-04-18 15:00:12 -05:00
ChuckBuilds c845c9fe55 Add detailed logging for recent games filtering in NHLRecentManager 2025-04-18 14:58:13 -05:00
ChuckBuilds 5bb2c6bc2a Fix display mode initialization to use correct config paths for enabled flags 2025-04-18 14:55:43 -05:00
ChuckBuilds cb82c5d0c3 Fix Clock initialization in DisplayController to match Clock class signature 2025-04-18 14:54:30 -05:00
ChuckBuilds dec76bac3d Fix ConfigManager method call in DisplayController 2025-04-18 14:53:54 -05:00
ChuckBuilds c0dc9fc1ef Increase nhl_recent display duration to 60 seconds to allow proper game cycling 2025-04-18 14:53:00 -05:00
ChuckBuilds 8a582fb7aa Add detailed logging for recent games list management 2025-04-18 14:49:35 -05:00
ChuckBuilds daf09c1b16 Fix recent games cycling to ensure proper game switching 2025-04-18 14:46:07 -05:00
ChuckBuilds d1fa9c4f92 Fetch NHL data from multiple days to ensure we catch all recent games 2025-04-18 14:43:50 -05:00
ChuckBuilds 948356b694 Add detailed logging for game time window calculations 2025-04-18 14:42:38 -05:00
ChuckBuilds 3f2052b36c Add detailed logging for recent games processing 2025-04-18 14:41:13 -05:00
ChuckBuilds 3a78a12e69 Move recent_hours parameter to BaseNHLManager for consistent access 2025-04-18 14:38:55 -05:00
ChuckBuilds d3b4c9e55f Disable test mode in NHL managers to use real game data 2025-04-18 14:35:36 -05:00
ChuckBuilds 1a9aa8ca9f add functionality for Live Game Priority 2025-04-18 14:33:28 -05:00
ChuckBuilds 609a04882a Fix game rotation to show each game for 20 seconds before switching 2025-04-18 14:21:15 -05:00
ChuckBuilds bb63e288b8 Fix NHL recent games rotation to properly show all team games 2025-04-18 14:15:25 -05:00
ChuckBuilds 6794ee9962 Fix NHL upcoming games rotation to properly handle teams with no games 2025-04-18 14:11:36 -05:00
ChuckBuilds a50eb41282 Fix NoneType error by adding proper checks for current_game 2025-04-18 14:07:59 -05:00
ChuckBuilds 5939039cd0 Modify game rotation to show all games for one team before switching to the other team 2025-04-18 13:52:19 -05:00
ChuckBuilds 00fe279875 Add debug logging to show all games received from ESPN API 2025-04-18 13:43:25 -05:00
ChuckBuilds 9ec0c30875 Update favorite teams list to use TB instead of TBL for Tampa Bay Lightning 2025-04-18 13:41:27 -05:00
ChuckBuilds 127442863a disable hardware pulsing true 2025-04-18 13:40:01 -05:00
ChuckBuilds 6e533047f0 Update test mode to use TB instead of TBL for Tampa Bay Lightning 2025-04-18 13:37:21 -05:00
ChuckBuilds 8ea44e6293 update NHL team abbreviation on logos 2025-04-18 13:35:49 -05:00
ChuckBuilds 125e4f3b64 Remove team abbreviation mapping and debug logging, use direct ESPN abbreviations 2025-04-18 13:35:23 -05:00
ChuckBuilds 8c1b957d86 Add temporary debug logging to print raw team data from ESPN API 2025-04-18 13:31:57 -05:00
ChuckBuilds 92107b35aa Implement game rotation for favorite teams in recent and upcoming displays 2025-04-18 13:28:24 -05:00
ChuckBuilds 2303f8487f Update period display to show '1st', '2nd', '3rd', or 'OT' instead of 'P:1', etc. 2025-04-18 13:26:54 -05:00
ChuckBuilds d3cc087fef Shift team logos in by 3 pixels for better positioning 2025-04-18 13:25:21 -05:00
ChuckBuilds ce790b64c0 Change recent game display to show 'Final' instead of period and time 2025-04-18 13:24:34 -05:00
ChuckBuilds 14d9205cd2 Update upcoming game text to 'Next Game' and change date format to numerical (e.g. 4/19) 2025-04-18 13:20:34 -05:00
ChuckBuilds 589bb97367 Improve recent games data fetching to look back multiple days 2025-04-18 13:19:14 -05:00
ChuckBuilds 1210e16c44 Make NHL Recent manager use real data while keeping test mode for live games 2025-04-18 13:17:59 -05:00
ChuckBuilds 6d2314d9f3 Remove leading zero from upcoming game time display 2025-04-18 13:16:00 -05:00
ChuckBuilds aff5ceef31 Remove NHL-specific logging from display controller 2025-04-18 13:15:11 -05:00
ChuckBuilds 99626a175c Remove test data from NHLRecentManager and NHLUpcomingManager to ensure real data usage 2025-04-18 13:12:20 -05:00
ChuckBuilds c17b3a67c2 Move team logos further apart and extend beyond screen edges 2025-04-18 13:08:13 -05:00
ChuckBuilds c05c4fded5 Increase logo size to 150% of display dimensions for dramatic effect 2025-04-18 12:55:57 -05:00
ChuckBuilds 4df89ef9a7 Remove glow effects and reduce logging in NHL display methods 2025-04-18 12:52:06 -05:00
ChuckBuilds f2bc56b69c Remove color backgrounds and reduce logging spam in NHL scorebug layout 2025-04-18 12:50:20 -05:00
ChuckBuilds 1de254c4e3 Increase logo size and fix debug image path 2025-04-18 12:48:12 -05:00
ChuckBuilds 6aeb839ace Fixed NHL manager display inheritance: removed duplicate display code and properly call base class display method 2025-04-18 12:45:57 -05:00
ChuckBuilds d8f221cb56 Added debug logging to track NHL display execution path and manager selection 2025-04-18 12:44:06 -05:00
ChuckBuilds 19e2afa38a Improved NHL scoreboard layout: Added proper spacing, bounds checking, and repositioned elements to prevent overlap 2025-04-18 12:41:38 -05:00
ChuckBuilds 4151e35fc9 Enhanced logo visibility: positioned logos at opposite ends, increased glow effects and color tinting 2025-04-18 12:37:55 -05:00
ChuckBuilds 9dbfb230a1 Add glow effects and stronger color tinting to make both logos more visible 2025-04-18 12:35:59 -05:00
ChuckBuilds ec350cd091 Improve logo rendering with separate layers and color tinting for better visibility 2025-04-18 12:34:24 -05:00
ChuckBuilds f42850372b Fix logo display in scorebug layout to show both home and away team logos 2025-04-18 12:31:01 -05:00
ChuckBuilds e4af5c6c45 refactor: Reduce logo loading logging verbosity - Change routine logo loading messages from INFO to DEBUG level - Keep INFO level only for important events like test logo creation 2025-04-18 12:29:18 -05:00
ChuckBuilds c8e6d5a201 fix: Adjust NHL team logo positions to prevent overlapping - Move home team logo to right side (3/4 width) - Keep away team logo on left side (1/4 width) - Fixes issue with logos being displayed in the same position 2025-04-18 12:26:55 -05:00
ChuckBuilds 75a17c7465 Add detailed debugging for NHL logo display - Add comprehensive logging for logo loading and compositing - Make debug overlays fully opaque - Add logging for image sizes and positions - Add clear start/end markers for layout process 2025-04-18 12:23:33 -05:00
ChuckBuilds 32b357d5d5 Add debug features and reduce logging in NHL manager - Add colored overlays for logo debugging - Save debug layout image for visual inspection - Remove excessive logging messages - Upgrade warnings to errors for missing logos 2025-04-18 12:15:45 -05:00
ChuckBuilds 8323472e63 Improve NHL logo display and add detailed logging - Use RGBA mode with transparent overlays for logo compositing - Add comprehensive logging for logo loading and display process - Fix image compositing to properly display both logos 2025-04-18 11:41:21 -05:00
ChuckBuilds 6f4a735bee Fix NHL logo display by using separate images and alpha compositing - Create separate images for each logo - Use alpha_composite to properly combine images - Preserve transparency during image combination 2025-04-18 11:35:55 -05:00
ChuckBuilds 595b0792cd Reduce NHL logging noise and optimize logo loading - Change logging level to INFO - Remove redundant debug messages - Keep only essential logging for important events 2025-04-18 11:35:25 -05:00
ChuckBuilds 69b5628864 Add detailed debug logging for NHL logo loading and display process - Set logging level to DEBUG - Add logging for logo directory and file paths - Add logging for image mode conversion - Add logging for logo pasting positions 2025-04-18 11:33:40 -05:00
ChuckBuilds be217a9cd8 Add detailed debug logging for NHL logo loading and display - Track logo loading process for both teams - Log logo sizes and positions - Add warnings for missing logos 2025-04-18 11:32:14 -05:00
ChuckBuilds 0f36242361 Fix team logo display in NHL managers - Simplify logo pasting process - Remove temporary images - Use direct logo pasting with alpha channel mask 2025-04-18 11:30:35 -05:00
ChuckBuilds 7487d5f0d3 Fix team logo display in all NHL managers - Create separate temporary images for each team logo - Fix logo overwriting issue in scorebug layout - Ensure both home and away logos are visible 2025-04-18 11:29:03 -05:00
ChuckBuilds ad8d4762ba rename Tampa Bay team acronym 2025-04-18 11:27:32 -05:00
ChuckBuilds 2e68a468bd Add test logo generation for NHL teams - Create simple colored rectangles with team abbreviations - Blue for Tampa Bay, Red for Dallas - Generate logos automatically if missing 2025-04-18 11:27:13 -05:00
ChuckBuilds 43051ae34d Enable test mode for NHL managers - Force test mode to be enabled in BaseNHLManager - Allow testing of live, recent, and upcoming game displays 2025-04-18 11:22:52 -05:00
ChuckBuilds c98469e590 Reduce NHL update frequency when no games available - Add longer intervals for no-data states - Live: 5min, Recent/Upcoming: 15min - Keep normal intervals when games are available 2025-04-18 11:22:22 -05:00
ChuckBuilds 96b6ef3b34 Reduce NHL warning message spam - Add 5-minute cooldown for 'No game data available' warnings - Use instance variable for warning time tracking - Improve warning message logging logic 2025-04-18 11:20:57 -05:00
ChuckBuilds 6914f068a1 Fix NHL display modes not being cycled through - Add NHL display modes to available_modes list in DisplayController initialization 2025-04-18 11:20:17 -05:00
ChuckBuilds a14f5277b8 Reduce NHL warning spam with improved logging - Add class-level warning tracking variables - Implement warning cooldown to limit frequency - Share warning state across all NHL manager instances 2025-04-18 11:19:01 -05:00
ChuckBuilds 8557e9acb6 Reduce terminal spam in NHL managers - Add no_data_warning_logged flag to track when warnings have been logged - Only log warnings once when no game data is available - Reset warning flag when game data becomes available 2025-04-18 11:17:22 -05:00
ChuckBuilds aa15ef1fc1 Fix logo file validation in NHL managers - Use os.path.isfile instead of is_file() on string paths 2025-04-18 11:15:19 -05:00
ChuckBuilds d43371f069 Fix test mode in NHL managers - Fix logo path construction in test game data - Add game_time and game_date to test game data 2025-04-18 11:14:26 -05:00
ChuckBuilds 8d5676f626 Fix game time and date extraction in NHL managers - Initialize game_time and game_date variables - Format time and date from UTC to local time 2025-04-18 11:11:52 -05:00
ChuckBuilds 6bde48f0f7 Fix logo path construction in NHL managers - Use os.path.join instead of Path operator for logo paths - Add game_time and game_date to extracted game details 2025-04-18 11:11:05 -05:00
ChuckBuilds 95ea58e03e Fix font loading in NHL managers - Use available 4x6-font.ttf as primary font - Add PressStart2P-Regular.ttf as fallback - Improve font loading error handling with detailed logging 2025-04-18 11:10:09 -05:00
ChuckBuilds 2b6cbcbbc8 Fix missing DisplayManager import in NHL managers 2025-04-18 11:08:45 -05:00
ChuckBuilds 3fdaf5be65 Implement NHL game state managers - Add BaseNHLManager with common functionality - Create NHLLiveManager for live games with 30s updates - Add NHLRecentManager for completed games with 5min updates - Implement NHLUpcomingManager for future games with 5min updates - Add logo caching to reduce redundant loading - Improve display layouts for each game state - Add detailed logging for debugging 2025-04-18 11:08:04 -05:00
ChuckBuilds d5edc2c07f Improve NHL logo rendering and logging - Add logo caching to prevent redundant loading - Change logo-related logging to DEBUG level - Reduce update intervals for non-live games - Add proper RGB/RGBA image handling - Improve error handling and logging format - Set dedicated NHL logger with appropriate level 2025-04-18 11:06:00 -05:00