Commit Graph
100 Commits
Author SHA1 Message Date
ChuckBuilds 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 2025-04-18 10:15:14 -05:00
ChuckBuilds 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 2025-04-18 10:11:22 -05:00
ChuckBuilds 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 2025-04-18 10:07:09 -05:00
ChuckBuilds 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 2025-04-18 10:02:25 -05:00
ChuckBuilds 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 2025-04-18 09:58:27 -05:00
ChuckBuilds 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 2025-04-18 09:44:14 -05:00
Chuck 3b2c46de7e Update stock_manager.py
return temporary directory and stock logo downloading. Need to find a better way to handle this
2025-04-17 21:55:35 -05:00
Chuck 8c4619069c Update weather_manager.py
adjust weather large icon from 32 to 30
2025-04-17 21:54:26 -05:00
Chuck d8e7cf0e06 Update nhl_scoreboard.py
NHL drawing rework with alpha handling
2025-04-17 21:52:44 -05:00
Chuck 8d956f81da Update stock_manager.py
commented out temporary directory and downloading of logos
2025-04-17 21:48:12 -05:00
Chuck 720c44106d Update stock_news_manager.py
added gap before headline 1 in stock_news_manager to reinforce the scroll effect
2025-04-17 21:41:26 -05:00
Chuck e6d400281c Update weather_icons.py
remove alpha threshold in weather_icons
2025-04-17 21:36:09 -05:00
ChuckBuilds 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 2025-04-17 19:45:05 -05:00
ChuckBuilds 29b4085370 adjusted icons up one pixel 2025-04-17 19:41:09 -05:00
ChuckBuilds 33dec47bb8 fine weather forecast icon height hourly and daily 2025-04-17 19:34:58 -05:00
ChuckBuilds fda52076c1 remove clamp max height, assign icon middle of matrix 2025-04-17 19:33:03 -05:00
ChuckBuilds 0802355c97 remove clamp max height, assign icon middle of matrix 2025-04-17 19:31:23 -05:00
ChuckBuilds 38af8c7b38 align time with AMPM 2025-04-17 19:25:46 -05:00
ChuckBuilds 7da306a178 shift hourly icon up by 30 px 2025-04-17 19:24:52 -05:00
ChuckBuilds ee2cdf502e shift hourly icon up by 11 px 2025-04-17 19:23:28 -05:00
ChuckBuilds 3dfa70575c shift hourly icon up by 11 px 2025-04-17 19:20:47 -05:00
ChuckBuilds 75c53a77c8 shift hourly icon up by 6 px 2025-04-17 19:19:03 -05:00
ChuckBuilds af87da124d changed font type on clock time 2025-04-17 18:24:25 -05:00
ChuckBuilds 465db4cd77 increase weather resolution from 32 to 64 2025-04-17 18:22:41 -05:00
ChuckBuilds 490c646470 remove exchange icons 2025-04-17 18:11:25 -05:00
ChuckBuilds cb8bac7aff added more logos for stocks andstocks and crypto 2025-04-17 18:08:01 -05:00
ChuckBuilds e5d3765aaf fix: Add alpha thresholding to remove icon outline on black bg 2025-04-17 18:07:22 -05:00
ChuckBuilds c077633400 refactor: Shift forecast icons further up 2025-04-17 17:58:51 -05:00
ChuckBuilds 48a20b2033 refactor: Use large icons for forecasts and adjust positioning 2025-04-17 17:56:38 -05:00
ChuckBuilds 00d51dea72 refactor: Rearrange current weather display layout 2025-04-17 17:52:45 -05:00
ChuckBuilds c4d976ab0d refactor: Adjust vertical positioning for forecast icons 2025-04-17 17:47:20 -05:00
ChuckBuilds 11764dd04c feat: Expand weather icon mapping and remove night distinction 2025-04-17 17:44:28 -05:00
ChuckBuilds 49e07c4968 changed logos to filled and larger res 2025-04-17 17:39:26 -05:00
ChuckBuilds cdd326657b change weather icon resolution 2025-04-17 17:35:03 -05:00
ChuckBuilds 9be87c461a refactor: Increase weather icon sizes 2025-04-17 17:32:00 -05:00
ChuckBuilds 27678e91bc feat: Update weather icons to use basmilius PNG set 2025-04-17 17:20:27 -05:00
ChuckBuilds 27339efb52 debug(nhl): Add logging to investigate resize/AttributeError issue 2025-04-17 14:26:20 -05:00
ChuckBuilds 081182fa98 fix(nhl): Use resize() instead of thumbnail() for logo scaling 2025-04-17 14:19:10 -05:00
ChuckBuilds 5c32aa019a fix(nhl): Use manual putpixel loop for logo drawing compatibility 2025-04-17 14:08:02 -05:00
ChuckBuilds a1fc231124 fix(stock_news): Resolve UnboundLocalError for width/height 2025-04-17 14:03:25 -05:00
ChuckBuilds 48c1eed8a9 fix(stock_news): Refactor headline scrolling logic for proper spacing
Previously, the calculation for the wide scrolling image used fixed estimates, leading to insufficient gaps between headlines and causing text to appear cut off.

This change refactors the image generation:

- Calculates the position for each headline based on the actual width of the previous headline's rendered text.

- Adds a gap equal to the full screen width between each headline.

- Simplifies the overall width calculation and adds cropping for efficiency.

- Improves the scrolling logic to handle wrap-around pasting correctly.
2025-04-17 13:57:19 -05:00
ChuckBuilds 4144d50b9d fix(nhl): Add .load() before alpha_composite for compatibility 2025-04-17 13:54:25 -05:00
ChuckBuilds efe2eaf370 fix(nhl): Use Image.alpha_composite for logo drawing for compatibility 2025-04-17 13:50:45 -05:00
ChuckBuilds a6d97c392a increased idle update interval fo rnhl 2025-04-17 13:46:49 -05:00
ChuckBuilds 827f07b836 fix(nhl): Use 4-tuple box and alpha mask Image for Image.paste() compatibility 2025-04-17 13:44:23 -05:00
ChuckBuilds cf6685e3d2 fix(nhl): Revert Image.paste() to use 2-tuple pos and alpha Image mask 2025-04-17 13:40:30 -05:00
ChuckBuilds c9de154e4e added .im to away mask for NHL 2025-04-17 13:35:18 -05:00
ChuckBuilds 10318e56ea change config.json data refresh rates and modify logo imaging in nhl 2025-04-17 13:30:01 -05:00
ChuckBuilds 960239dcc7 fix(nhl): Use 4-element box tuple for Image.paste() compatibility 2025-04-17 13:24:16 -05:00
ChuckBuilds 72068013ad fix(nhl): Use positional arg for mask in Image.paste() for compatibility 2025-04-17 13:20:35 -05:00
ChuckBuilds 837dbf1346 feat(nhl): Use fast update interval only during live games, idle otherwise 2025-04-17 13:15:18 -05:00
ChuckBuilds 858eea87ce refactor(nhl): Move extract_game_details into NHLScoreboardManager class 2025-04-17 13:12:11 -05:00
ChuckBuilds 09d69ae71a fix(nhl): Add missing 'Any' import for type hint 2025-04-17 13:10:08 -05:00
ChuckBuilds e0660dbb6a refactor(nhl): Collect and cycle through all relevant favorite game statuses (live, upcoming, final) 2025-04-17 13:08:56 -05:00
ChuckBuilds 218d4af5e9 refactor(nhl): Implement prioritized display logic and live game cycling 2025-04-17 13:00:10 -05:00
ChuckBuilds febb44a967 added time control of NHL Score display 2025-04-17 12:36:36 -05:00
ChuckBuilds 6a5996ca9b feat(nhl): Fetch today and yesterday data to find recent finals 2025-04-17 12:28:57 -05:00
ChuckBuilds 3a542d9f9f refactor(controller): Adjust display rotation order 2025-04-17 11:45:20 -05:00
ChuckBuilds bd53814542 feat(nhl): Implement dynamic update interval based on game state 2025-04-17 11:44:19 -05:00
ChuckBuilds dfe8d6d7e8 fix(controller): Remove force_clear arg from display_news call 2025-04-17 11:40:18 -05:00
ChuckBuilds ece38fee43 fix(controller): Call correct update method for StockNewsManager 2025-04-17 11:34:44 -05:00
ChuckBuilds 3221e2f7f0 fix(controller): Call correct update method for StockManager 2025-04-17 11:33:01 -05:00
ChuckBuilds 16b679d80d refactor(nhl): Finalize NHL manager class implementation 2025-04-17 11:30:02 -05:00
ChuckBuilds 60f7828145 feat(controller): Integrate NHL scoreboard manager into display rotation 2025-04-17 11:29:11 -05:00
ChuckBuilds f6f39a50b7 refactor(nhl): Convert NHL scoreboard to Manager class 2025-04-17 11:24:59 -05:00
ChuckBuilds 5e7e62b531 fix: Correct display width calculation by reverting cols to single panel width 2025-04-17 11:17:33 -05:00
ChuckBuilds e31f7d6021 feat: Add NHL scoreboard logic and config integration 2025-04-17 11:15:04 -05:00
ChuckBuilds 0f12bc6830 starting on NHL Scoreboard and added team logos, adjusted config 2025-04-17 11:10:44 -05:00
ChuckBuilds e86ca31740 updated readme to include new displays 2025-04-17 10:09:59 -05:00
ChuckBuilds dcd1f42bc4 Update README with sudo info and remove unused files
Added section on running without sudo (gpio group).

Removed integrate_news_ticker.py, src/mqtt_manager.py, and test_stock_news_manager.py as they were unused.
2025-04-17 10:07:45 -05:00
ChuckBuilds 866a1f9901 Revert logging level to INFO and remove debug code 2025-04-17 09:58:24 -05:00
ChuckBuilds 22f21093f2 Disable hardware pulsing to allow running without root
Set options.disable_hardware_pulsing = True in display_manager._setup_matrix.

This corresponds to the --led-no-hardware-pulse flag for the rgbmatrix library.

Disabling hardware pulsing removes the need for root privileges, allowing the script to run as the regular user (ledpi).

This aims to resolve the permission issues encountered when trying to write stock logos to assets/stocks while running with sudo (which resulted in UID=1 instead of UID=0).
2025-04-17 09:51:58 -05:00
ChuckBuilds 6bd9b04a3a Force DEBUG logging level in display_controller 2025-04-17 09:48:53 -05:00
ChuckBuilds 17dd82767d Set logging level to DEBUG 2025-04-17 09:41:57 -05:00
ChuckBuilds 2999bf80da Add debug logging to directory write test 2025-04-17 09:39:26 -05:00
ChuckBuilds 2f91c0e48c Use non-hidden filename for directory write test 2025-04-17 09:37:54 -05:00
ChuckBuilds 90f5087b60 Refactor stock logo download/save logic and writability check 2025-04-17 09:32:48 -05:00
ChuckBuilds 44b3853230 added handling of stock images to reduce number of downloads 2025-04-17 09:25:48 -05:00
ChuckBuilds 7dcc22f74d added space between the end of one headline and the beginning of the next 2025-04-17 09:16:46 -05:00
ChuckBuilds e9157867c5 removed asterisk from temperatureadouts 2025-04-17 09:13:48 -05:00
ChuckBuilds bfb2f50942 Limit daily forecast to 3 days and adjust spacing 2025-04-17 09:10:21 -05:00
ChuckBuilds 8092148adc Use tiny font for daily forecast temperatures 2025-04-17 09:02:40 -05:00
ChuckBuilds 16e94d7f16 Exclude today from daily weather forecast 2025-04-17 08:56:14 -05:00
ChuckBuilds 6a5949d65e Update fonts and adjust layout for clock and weather displays 2025-04-17 08:48:11 -05:00
ChuckBuilds 3d83930e0b spacing adjustment on weather and clock. Added notes to readme about font type requing ttf. removed sensitive credentials 2025-04-15 15:55:47 -05:00
ChuckBuilds ecb20003ff implemented 4x6-font.ttf as extra small font 2025-04-15 15:48:29 -05:00
ChuckBuilds 05d2a3f97e added 4x6-font.ttf 2025-04-15 15:43:23 -05:00
ChuckBuilds 7f716d4d25 adding rgbmatrix to requirements txt 2025-04-15 15:35:16 -05:00
ChuckBuilds 36b1ddc5ff swapped 4x6 for player 3 font for troublebshooting 2025-04-15 15:29:50 -05:00
ChuckBuilds 8f2382e7a8 changed font path for 4x6 2025-04-15 15:27:15 -05:00
ChuckBuilds 7efaa2e3b9 fix(display): Use normalized absolute path for 4x6 font
Calculate path relative to script, then normalize to absolute path before loading.
2025-04-15 15:11:38 -05:00
ChuckBuilds 57e5d801c7 hard code asset location 2025-04-15 15:02:24 -05:00
ChuckBuilds 6a796c3794 feat(weather): Adjust layout and use 4x6 font for details
Removed "time since update" text. Used 4x6.bdf font for pressure, humidity, and wind speed.
2025-04-15 11:31:46 -05:00
ChuckBuilds 97b0b79901 Revert "feat(weather): Adjust layout and reduce font size"
This reverts commit 6d31a0953e.
2025-04-15 11:27:23 -05:00
ChuckBuilds 6b6fc9fc49 Revert "commented out the time since last refesh on weather current"
This reverts commit 731ba7e2b1.
2025-04-15 11:24:25 -05:00
ChuckBuilds aaedb468a3 Revert "fix(display): Use absolute path for 4x6 font"
This reverts commit a3b8902dcb.
2025-04-15 11:20:00 -05:00
ChuckBuilds a3b8902dcb fix(display): Use absolute path for 4x6 font
Corrected the path for loading 4x6.bdf font to resolve "cannot find glyph data file" error.
2025-04-15 11:11:52 -05:00
ChuckBuilds 4683a175c5 change font on bottom half weather display 2025-04-15 11:02:36 -05:00
ChuckBuilds 6d31a0953e feat(weather): Adjust layout and reduce font size
Remove update time text and use smaller font for pressure/humidity/wind details.
2025-04-15 10:55:00 -05:00
ChuckBuilds 731ba7e2b1 commented out the time since last refesh on weather current 2025-04-15 10:51:35 -05:00