Commit Graph

  • aa15ef1fc1 Fix logo file validation in NHL managers - Use os.path.isfile instead of is_file() on string paths ChuckBuilds 2025-04-18 11:15:19 -05:00
  • 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 ChuckBuilds 2025-04-18 11:14:26 -05:00
  • 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 ChuckBuilds 2025-04-18 11:11:52 -05:00
  • 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 ChuckBuilds 2025-04-18 11:11:05 -05:00
  • 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 ChuckBuilds 2025-04-18 11:10:09 -05:00
  • 2b6cbcbbc8 Fix missing DisplayManager import in NHL managers ChuckBuilds 2025-04-18 11:08:45 -05:00
  • 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 ChuckBuilds 2025-04-18 11:08:04 -05:00
  • 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 ChuckBuilds 2025-04-18 11:06:00 -05:00
  • 2c8bae462b improvements to draw both team logos ChuckBuilds 2025-04-18 11:02:38 -05:00
  • 1c97087cf4 Add individual NHL display mode control - Add display_modes section to NHL config - Add granular control over nhl_live, nhl_recent, and nhl_upcoming - Update DisplayController to respect individual mode settings ChuckBuilds 2025-04-18 11:02:01 -05:00
  • fd2b40a35b turned off other displays to speed up testing of NHL ChuckBuilds 2025-04-18 10:58:43 -05:00
  • 1911a89271 Fix logo pasting in NHLRecentManager and NHLUpcomingManager - Replace temp_draw.im.paste with temp_img.paste - Replace draw.im.paste with img.paste - Use correct image pasting method for alpha channel handling ChuckBuilds 2025-04-18 10:57:43 -05:00
  • 147643edc5 Fix NHL display method to use correct DisplayManager API - Replace display_image with image.paste and update_display - Update all NHL manager classes to use proper display methods ChuckBuilds 2025-04-18 10:53:47 -05:00
  • f84cb4ce89 Fix NHL logo pasting in NHLLiveManager - Remove incorrect use of temp_draw.im.paste() - Use proper Image.paste() method for logo compositing - Fix alpha channel handling in logo pasting ChuckBuilds 2025-04-18 10:50:39 -05:00
  • f6a771c5a4 Implement NHL managers with proper display handling - Add BaseNHLManager with common functionality - Add NHLLiveManager for live games (30s updates) - Add NHLRecentManager for recent games (1h updates) - Add NHLUpcomingManager for upcoming games (1h updates) - Fix display dimensions handling from config - Add proper error handling and logging - Support test mode and favorite teams filtering ChuckBuilds 2025-04-18 10:47:13 -05:00
  • 8aff638fd3 Implement NHL managers with ESPN API integration - Add BaseNHLManager with common functionality - Add NHLLiveManager for live games with 30s updates - Add NHLRecentManager for recent games with 1h updates - Add NHLUpcomingManager for upcoming games with 1h updates - Add proper test mode support - Add favorite teams filtering - Add comprehensive error handling and logging - Fix logo rendering with alpha channel support ChuckBuilds 2025-04-18 10:43:13 -05:00
  • ddeb4911c1 Refactor NHL scoreboard into separate managers - Create BaseNHLManager for common functionality - Implement NHLLiveManager for live games - Implement NHLRecentManager for recent games - Implement NHLUpcomingManager for upcoming games - Add proper error handling and logging - Fix logo rendering with proper alpha channel handling ChuckBuilds 2025-04-18 10:40:02 -05:00
  • 1966e9dd4b rework NHL to call displays individually ChuckBuilds 2025-04-18 10:33:19 -05:00
  • 77242c139b Update NHL configuration for new manager structure - Add separate display durations for live/recent/upcoming games - Add specific update intervals for each manager type - Add recent_game_hours setting - Add logo_dir configuration - Remove old update interval settings ChuckBuilds 2025-04-18 10:33:00 -05:00
  • 8cd7851f42 Fix NHL logo rendering in scorebug layout - Add proper RGBA mode conversion - Implement correct transparency handling with temporary RGB images - Add detailed logging for logo loading - Fix status text field name - Add fallback text rendering ChuckBuilds 2025-04-18 10:28:43 -05:00
  • 084e283c04 Fix NHL logo transparency handling - Use logo as mask when pasting to properly handle transparency - Match the approach used in weather icons ChuckBuilds 2025-04-18 10:26:09 -05:00
  • dea69febd8 Simplify NHL logo rendering to match weather icon approach - Remove RGBA conversion and handling - Remove temporary image compositing - Use direct PNG loading and pasting ChuckBuilds 2025-04-18 10:15:14 -05:00
  • 8850387564 Simplify NHL logo rendering to match weather/stock icon approach - Use direct RGBA mode for logo loading and rendering - Simplify image resizing with thumbnail method - Improve error handling and logging - Use relative positioning for better layout ChuckBuilds 2025-04-18 10:11:22 -05:00
  • c5e99bb9a3 Fix NHL logo rendering by properly handling image modes - Convert RGBA logos to RGB before pasting to avoid alpha channel errors - Simplify logo rendering process while maintaining aspect ratio - Remove unnecessary alpha channel masking that was causing errors ChuckBuilds 2025-04-18 10:07:09 -05:00
  • 747f68e567 Fix NHL logo rendering with proper RGB/RGBA handling - Create separate RGB images for logos and background - Use alpha channel as mask when converting from RGBA to RGB - Ensure all image operations use compatible modes ChuckBuilds 2025-04-18 10:02:25 -05:00
  • bdd29b3fe0 Fix NHL logo rendering alpha channel issues - Convert RGBA images to RGB before pasting to avoid alpha channel errors - Remove unnecessary mask parameter from paste operations ChuckBuilds 2025-04-18 09:58:27 -05:00
  • 285e6f6524 Improve NHL logo rendering and add detailed logging - Add proper aspect ratio preservation when resizing logos - Improve alpha channel handling with temporary RGBA image compositing - Add detailed logging for logo loading and validation - Add image format and size validation - Fix logo size calculations to maintain aspect ratio - Add debug logging for successful logo rendering ChuckBuilds 2025-04-18 09:44:14 -05:00
  • 3b2c46de7e Update stock_manager.py Chuck 2025-04-17 21:55:35 -05:00
  • 8c4619069c Update weather_manager.py Chuck 2025-04-17 21:54:26 -05:00
  • d8e7cf0e06 Update nhl_scoreboard.py Chuck 2025-04-17 21:52:44 -05:00
  • 8d956f81da Update stock_manager.py Chuck 2025-04-17 21:48:12 -05:00
  • 720c44106d Update stock_news_manager.py Chuck 2025-04-17 21:41:26 -05:00
  • e6d400281c Update weather_icons.py Chuck 2025-04-17 21:36:09 -05:00
  • 0fa933c596 feat: Add local ticker icons support with external fallback - Add support for local ticker icons from assets/stocks/ticker_icons - Maintain existing external icon fetching as fallback - Improve icon loading with better error handling - Add text-based fallback for missing icons - Update image resizing to use newer PIL API ChuckBuilds 2025-04-17 19:45:05 -05:00
  • 29b4085370 adjusted icons up one pixel ChuckBuilds 2025-04-17 19:41:09 -05:00
  • 33dec47bb8 fine weather forecast icon height hourly and daily ChuckBuilds 2025-04-17 19:34:58 -05:00
  • fda52076c1 remove clamp max height, assign icon middle of matrix ChuckBuilds 2025-04-17 19:33:03 -05:00
  • 0802355c97 remove clamp max height, assign icon middle of matrix ChuckBuilds 2025-04-17 19:31:23 -05:00
  • 38af8c7b38 align time with AMPM ChuckBuilds 2025-04-17 19:25:46 -05:00
  • 7da306a178 shift hourly icon up by 30 px ChuckBuilds 2025-04-17 19:24:52 -05:00
  • ee2cdf502e shift hourly icon up by 11 px ChuckBuilds 2025-04-17 19:23:28 -05:00
  • 3dfa70575c shift hourly icon up by 11 px ChuckBuilds 2025-04-17 19:20:47 -05:00
  • 75c53a77c8 shift hourly icon up by 6 px ChuckBuilds 2025-04-17 19:19:03 -05:00
  • af87da124d changed font type on clock time ChuckBuilds 2025-04-17 18:24:25 -05:00
  • 465db4cd77 increase weather resolution from 32 to 64 ChuckBuilds 2025-04-17 18:22:41 -05:00
  • 490c646470 remove exchange icons ChuckBuilds 2025-04-17 18:11:25 -05:00
  • cb8bac7aff added more logos for stocks andstocks and crypto ChuckBuilds 2025-04-17 18:08:01 -05:00
  • e5d3765aaf fix: Add alpha thresholding to remove icon outline on black bg ChuckBuilds 2025-04-17 18:07:22 -05:00
  • c077633400 refactor: Shift forecast icons further up ChuckBuilds 2025-04-17 17:58:51 -05:00
  • 48a20b2033 refactor: Use large icons for forecasts and adjust positioning ChuckBuilds 2025-04-17 17:56:38 -05:00
  • 00d51dea72 refactor: Rearrange current weather display layout ChuckBuilds 2025-04-17 17:52:45 -05:00
  • c4d976ab0d refactor: Adjust vertical positioning for forecast icons ChuckBuilds 2025-04-17 17:47:20 -05:00
  • 11764dd04c feat: Expand weather icon mapping and remove night distinction ChuckBuilds 2025-04-17 17:44:28 -05:00
  • 49e07c4968 changed logos to filled and larger res ChuckBuilds 2025-04-17 17:39:26 -05:00
  • cdd326657b change weather icon resolution ChuckBuilds 2025-04-17 17:35:03 -05:00
  • 9be87c461a refactor: Increase weather icon sizes ChuckBuilds 2025-04-17 17:32:00 -05:00
  • 27678e91bc feat: Update weather icons to use basmilius PNG set ChuckBuilds 2025-04-17 17:20:27 -05:00
  • 27339efb52 debug(nhl): Add logging to investigate resize/AttributeError issue ChuckBuilds 2025-04-17 14:26:20 -05:00
  • 081182fa98 fix(nhl): Use resize() instead of thumbnail() for logo scaling ChuckBuilds 2025-04-17 14:19:10 -05:00
  • 5c32aa019a fix(nhl): Use manual putpixel loop for logo drawing compatibility ChuckBuilds 2025-04-17 14:08:02 -05:00
  • a1fc231124 fix(stock_news): Resolve UnboundLocalError for width/height ChuckBuilds 2025-04-17 14:03:25 -05:00
  • 48c1eed8a9 fix(stock_news): Refactor headline scrolling logic for proper spacing ChuckBuilds 2025-04-17 13:57:19 -05:00
  • 4144d50b9d fix(nhl): Add .load() before alpha_composite for compatibility ChuckBuilds 2025-04-17 13:54:25 -05:00
  • efe2eaf370 fix(nhl): Use Image.alpha_composite for logo drawing for compatibility ChuckBuilds 2025-04-17 13:50:45 -05:00
  • a6d97c392a increased idle update interval fo rnhl ChuckBuilds 2025-04-17 13:46:49 -05:00
  • 827f07b836 fix(nhl): Use 4-tuple box and alpha mask Image for Image.paste() compatibility ChuckBuilds 2025-04-17 13:44:23 -05:00
  • cf6685e3d2 fix(nhl): Revert Image.paste() to use 2-tuple pos and alpha Image mask ChuckBuilds 2025-04-17 13:40:30 -05:00
  • c9de154e4e added .im to away mask for NHL ChuckBuilds 2025-04-17 13:35:18 -05:00
  • 10318e56ea change config.json data refresh rates and modify logo imaging in nhl ChuckBuilds 2025-04-17 13:30:01 -05:00
  • 960239dcc7 fix(nhl): Use 4-element box tuple for Image.paste() compatibility ChuckBuilds 2025-04-17 13:24:16 -05:00
  • 72068013ad fix(nhl): Use positional arg for mask in Image.paste() for compatibility ChuckBuilds 2025-04-17 13:20:35 -05:00
  • 837dbf1346 feat(nhl): Use fast update interval only during live games, idle otherwise ChuckBuilds 2025-04-17 13:15:18 -05:00
  • 858eea87ce refactor(nhl): Move extract_game_details into NHLScoreboardManager class ChuckBuilds 2025-04-17 13:12:11 -05:00
  • 09d69ae71a fix(nhl): Add missing 'Any' import for type hint ChuckBuilds 2025-04-17 13:10:08 -05:00
  • e0660dbb6a refactor(nhl): Collect and cycle through all relevant favorite game statuses (live, upcoming, final) ChuckBuilds 2025-04-17 13:08:56 -05:00
  • 218d4af5e9 refactor(nhl): Implement prioritized display logic and live game cycling ChuckBuilds 2025-04-17 13:00:10 -05:00
  • febb44a967 added time control of NHL Score display ChuckBuilds 2025-04-17 12:36:36 -05:00
  • 6a5996ca9b feat(nhl): Fetch today and yesterday data to find recent finals ChuckBuilds 2025-04-17 12:28:57 -05:00
  • 3a542d9f9f refactor(controller): Adjust display rotation order ChuckBuilds 2025-04-17 11:45:20 -05:00
  • bd53814542 feat(nhl): Implement dynamic update interval based on game state ChuckBuilds 2025-04-17 11:44:19 -05:00
  • dfe8d6d7e8 fix(controller): Remove force_clear arg from display_news call ChuckBuilds 2025-04-17 11:40:18 -05:00
  • ece38fee43 fix(controller): Call correct update method for StockNewsManager ChuckBuilds 2025-04-17 11:34:44 -05:00
  • 3221e2f7f0 fix(controller): Call correct update method for StockManager ChuckBuilds 2025-04-17 11:33:01 -05:00
  • 16b679d80d refactor(nhl): Finalize NHL manager class implementation ChuckBuilds 2025-04-17 11:30:02 -05:00
  • 60f7828145 feat(controller): Integrate NHL scoreboard manager into display rotation ChuckBuilds 2025-04-17 11:29:11 -05:00
  • f6f39a50b7 refactor(nhl): Convert NHL scoreboard to Manager class ChuckBuilds 2025-04-17 11:24:59 -05:00
  • 5e7e62b531 fix: Correct display width calculation by reverting cols to single panel width ChuckBuilds 2025-04-17 11:17:33 -05:00
  • e31f7d6021 feat: Add NHL scoreboard logic and config integration ChuckBuilds 2025-04-17 11:15:04 -05:00
  • 0f12bc6830 starting on NHL Scoreboard and added team logos, adjusted config ChuckBuilds 2025-04-17 11:10:44 -05:00
  • e86ca31740 updated readme to include new displays ChuckBuilds 2025-04-17 10:09:59 -05:00
  • dcd1f42bc4 Update README with sudo info and remove unused files ChuckBuilds 2025-04-17 10:07:45 -05:00
  • 866a1f9901 Revert logging level to INFO and remove debug code ChuckBuilds 2025-04-17 09:58:24 -05:00
  • 22f21093f2 Disable hardware pulsing to allow running without root ChuckBuilds 2025-04-17 09:51:58 -05:00
  • 6bd9b04a3a Force DEBUG logging level in display_controller ChuckBuilds 2025-04-17 09:48:53 -05:00
  • 17dd82767d Set logging level to DEBUG ChuckBuilds 2025-04-17 09:41:57 -05:00
  • 2999bf80da Add debug logging to directory write test ChuckBuilds 2025-04-17 09:39:26 -05:00
  • 2f91c0e48c Use non-hidden filename for directory write test ChuckBuilds 2025-04-17 09:37:54 -05:00
  • 90f5087b60 Refactor stock logo download/save logic and writability check ChuckBuilds 2025-04-17 09:32:48 -05:00
  • 44b3853230 added handling of stock images to reduce number of downloads ChuckBuilds 2025-04-17 09:25:48 -05:00
  • 7dcc22f74d added space between the end of one headline and the beginning of the next ChuckBuilds 2025-04-17 09:16:46 -05:00