Commit Graph

112 Commits

Author SHA1 Message Date
Chuck
8cbdef3949 Fix/leaderboard timing improvements (#60)
* Fix leaderboard timing issues with comprehensive improvements

- Add maximum display time cap (120s) to prevent hanging
- Implement dynamic scroll speed tracking with runtime measurements
- Simplify complex timing logic that was causing hangs
- Add enhanced progress tracking and logging
- Add configurable safety buffer (10s)
- Update config template with new timing options
- Add comprehensive test suite for timing logic

Fixes the 30-second hanging issue reported in PR #53 by providing
multiple layers of protection against time overestimation.

* Simplify leaderboard timing to use long timeout with exception-based ending

- Remove complex dynamic duration calculations
- Remove safety buffer complexity
- Remove scroll speed tracking and measurements
- Use simple 10-minute timeout (600s) for both display_duration and max_display_time
- Let content determine when display is complete via existing StopIteration logic
- Update display controller to use simplified duration approach
- Clean up config template to remove unused timing settings

This approach is much more reliable than trying to predict content duration
and eliminates the hanging issues reported in PR #53.

* Fix configuration structure to use centralized display_durations

- Remove redundant display_duration from leaderboard section
- Use main display_durations.leaderboard (300s) for fixed duration mode
- Update leaderboard manager to read from centralized config
- Increase leaderboard default duration from 60s to 300s for better content coverage
- Maintain dynamic_duration option for user choice between fixed/dynamic modes
- Add comprehensive scroll behavior analysis and testing

This completes the leaderboard timing improvements with proper config structure.

* scroll every frame to be smoother like the stock ticker instead of waiting  per subsecond

* leaderboard block api calls while scrolling

* leaderboard debugging

* added leaderboard fps logging

* leaderboard frame control and optimizations

* background update memory leak for scrolling text found and first solution applied

* tuning scroll speeds

* working display scrolls

* revert scroll delay to 0.01 (about 100fps)

* revert min duration of leaderboard

* remove onetime test scripts
2025-09-22 20:42:10 -04:00
Alex Resnick
a5a9398c5c Add Emulator Support (#35)
* Add emulator

* Update limit for ESPM API

* use params

---------

Co-authored-by: Alex Resnick <adr8282@gmail.com>
2025-09-14 16:44:50 -04:00
ChuckBuilds
e63198dc49 scroll priority to determine data refreshes 2025-08-18 15:21:39 -05:00
Chuck
dfecc6f8a0 loading fonts va absolute paths 2025-08-13 21:23:37 -05:00
Chuck
6bc1039ed6 change how font is loaded via systemctl - added direct paths 2025-08-13 20:36:23 -05:00
Chuck
dc840b63d8 trying to improve on demand display 2025-08-11 16:01:16 -05:00
Chuck
edce5fae85 milb upcoming game debug logging 2025-08-10 18:26:25 -05:00
Chuck
f8ebcffa08 add api counter 2025-08-10 16:17:51 -05:00
Chuck
1f7285cfc4 web preview fixes 2025-08-10 13:33:51 -05:00
Chuck
87daddbeb2 web action permission changes 2025-08-10 12:52:27 -05:00
Chuck
8b7ae3beed web ui v2 improvements 2025-08-10 11:43:28 -05:00
Chuck
b7ba899df7 adjust ball & strike count in mlb display 2025-08-09 22:38:40 -05:00
Chuck
85d63243c7 AI bug squash sesh 2025-08-09 21:00:25 -05:00
Chuck
b451d5def8 Respect live game display duration when no priority is given 2025-07-31 21:52:21 -05:00
Chuck
802e596f06 fix display width error for news_manager 2025-07-27 09:58:37 -05:00
Chuck
a3c5f9a74f programmatic changes to artist and album font 2025-07-24 15:33:58 -05:00
Chuck
9dedfe0264 shift bdf draw text down one mor epixel total 6 2025-07-23 16:18:07 -05:00
Chuck
0d6e147df3 shift bdf draw text down one mor epixel 2025-07-23 16:17:44 -05:00
Chuck
8bab8124cd shift bdf draw text down 2025-07-23 16:11:10 -05:00
Chuck
b4d2c34217 fix bdf font positioning for displays negatively impacted by previous change 2025-07-23 14:57:07 -05:00
Chuck
2af78a37d5 fix bdf drawing in other displays relying on display manager 2025-07-23 14:36:35 -05:00
Chuck
b5b18babe8 revert daily weather temp font change due to negative effects on other displays 2025-07-23 14:27:50 -05:00
Chuck
723b7ce190 fix bdf font for weather 2025-07-23 14:17:53 -05:00
Chuck
58bfdc04a0 found a nice font for weather daily tempts 2025-07-23 13:50:46 -05:00
Chuck
df3d010c65 toggleable short date format 2025-07-22 11:28:13 -05:00
ChuckBuilds
b4c775aa6c Revert "conditional loading messages"
This reverts commit 8aab1f8e17.
2025-05-26 10:38:46 -05:00
ChuckBuilds
8aab1f8e17 conditional loading messages 2025-05-26 10:38:01 -05:00
ChuckBuilds
7b64f10dad Revert "slow music debugging so I can read it"
This reverts commit 830b14cb61.
2025-05-25 18:08:20 -05:00
ChuckBuilds
830b14cb61 slow music debugging so I can read it 2025-05-25 18:00:48 -05:00
ChuckBuilds
d341c24a2a change music fonts 2025-05-23 13:50:41 -05:00
ChuckBuilds
08ab6f404d fix: Correct display update logic for draw_text 2025-04-30 11:13:03 -05:00
ChuckBuilds
429a7dfbaf Revert "feat: Add smaller font for inning indicator and use in live MLB display"
This reverts commit 4f3abb4975.
2025-04-25 15:17:00 -05:00
ChuckBuilds
4f3abb4975 feat: Add smaller font for inning indicator and use in live MLB display 2025-04-25 15:14:36 -05:00
ChuckBuilds
922bfed7f3 Display Manager: Fix text display by properly syncing image with canvas 2025-04-25 10:51:06 -05:00
ChuckBuilds
b603494973 Display Manager: Remove automatic display update from draw_text to prevent flickering 2025-04-25 10:49:18 -05:00
ChuckBuilds
5ef851678e Display Manager improvements: 1) Update BDF font handling to use passed font 2) Fix font selection in _draw_bdf_text method 2025-04-25 10:45:18 -05:00
ChuckBuilds
33d57a3490 Display Manager improvements: 1) Use existing calendar_font in _draw_bdf_text method 2) Remove redundant Face object creation 2025-04-25 10:29:08 -05:00
ChuckBuilds
0b80303da1 changed calendar summary from 4x6 to 5x7 2025-04-23 17:50:55 -05:00
ChuckBuilds
537def7d37 refactor: update logging configuration to INFO level and enhance font logging 2025-04-23 15:43:05 -05:00
ChuckBuilds
3f4b1ec4fc refactor: reduce debug logging output in calendar and display managers 2025-04-23 15:38:40 -05:00
ChuckBuilds
a38f83d27a adjust Calendar title font size to 8 2025-04-23 15:36:19 -05:00
ChuckBuilds
1ab87d29b8 feat: switch calendar font from tom-thumb.bdf to 4x6.bdf 2025-04-23 15:09:52 -05:00
ChuckBuilds
1d52acdf77 fix: handle both FreeType and PIL fonts in get_text_width method 2025-04-23 15:03:20 -05:00
ChuckBuilds
3e5486d9b7 fix: add default y-coordinate in draw_text method 2025-04-23 14:58:01 -05:00
ChuckBuilds
daea754e83 feat: implement proper BDF font handling using freetype library 2025-04-23 14:53:44 -05:00
ChuckBuilds
646383c870 fix: enhance BDF font loading with better error handling and verification 2025-04-23 14:52:14 -05:00
ChuckBuilds
db3f1cd4cf refactor: remove MatrixChunky6 font and standardize on tom-thumb.bdf for calendar display 2025-04-23 14:48:44 -05:00
ChuckBuilds
4da42236f6 feat: add detailed font type and size logging for debugging 2025-04-23 14:39:19 -05:00
ChuckBuilds
6dd7794d46 fix: reduce font change logging spam by only logging when font actually changes 2025-04-23 14:34:53 -05:00
ChuckBuilds
f135befb3b feat: add debug logging for font usage in calendar display 2025-04-23 14:21:52 -05:00