Commit Graph

76 Commits

Author SHA1 Message Date
ChuckBuilds
2c2d24c0a8 Fix missing datetime variables for baseball live games
- Added back day_text, date_text, and time_text variables for baseball live games
- These variables are needed for the datetime display section
- Shows inning (▲5), count (2-1), and outs (2 outs) in the datetime column
- Fixes the 'cannot access local variable' error that was occurring
2025-08-18 21:01:39 -05:00
ChuckBuilds
b252229e03 adjust live bases on the odds ticker 2025-08-18 20:55:50 -05:00
ChuckBuilds
8f7aeee546 Fix graphical base positioning and remove old text display
- Removed old text-based bases display code that was still showing
- Fixed positioning calculation for graphical bases to center properly
- Added bounds checking to prevent bases from overlapping off display
- Bases are now properly centered in the odds column with appropriate spacing
- Cleaned up baseball live game display to show only count, outs, and graphical bases
2025-08-18 20:44:48 -05:00
ChuckBuilds
b7fa2f1df6 Add graphical base indicators to odds ticker for baseball live games
- Added _draw_base_indicators() method similar to MLB manager
- Replaced text-based bases display with graphical diamond representation
- Shows diamond outline with filled circles for occupied bases
- Displays count and outs as text while showing bases graphically
- Creates more visual and intuitive representation of game state
- Uses smaller size (6px) and spacing (8px) appropriate for odds ticker
2025-08-18 19:54:13 -05:00
ChuckBuilds
ba3b79dd72 adjust spacing on live game scores 2025-08-18 19:48:14 -05:00
ChuckBuilds
e4e058ff97 Fix outs pluralization in odds ticker live baseball games
- Changed outs display to use proper pluralization:
  - '1 out' for single out
  - '2 outs', '3 outs' for multiple outs
- This makes the live game information more grammatically correct and readable
2025-08-18 19:47:23 -05:00
ChuckBuilds
0b42cec902 Fix odds ticker mid-scroll cutoff issue
- Modified calculate_dynamic_duration() to add extra buffer time when looping is enabled
- Added 20% extra buffer for looping to ensure smooth transitions
- Added logic to detect when display is ending and reset scroll position for clean transitions
- Added display start time tracking to manage duration properly
- This prevents the odds ticker from cutting off mid-scroll when switching modes
2025-08-18 19:46:20 -05:00
ChuckBuilds
35ad842ba1 adjust spacing on live odds outs 2025-08-18 19:43:27 -05:00
ChuckBuilds
08cf4152f7 Improve odds ticker live game display formatting
- Removed parentheses around scores for live games (e.g., 'Team 5' instead of 'Team (5)')
- Improved bases section for baseball games:
  - Changed from '1', '2', '3' to '1B', '2B', '3B' for clarity
  - Changed from '---' to 'Empty' when no bases are occupied
  - This makes it much clearer what the information represents
- Live games now show cleaner, more readable score format
2025-08-18 19:42:30 -05:00
ChuckBuilds
71a392737e Add comprehensive debug logging for odds ticker dynamic duration
- Added debug logging to _fetch_upcoming_games() to track data fetching
- Added debug logging to _create_ticker_image() to track image creation
- Added logging for favorite teams, odds filtering, and game counts
- Added logging for total_scroll_width calculation
- This will help identify why dynamic duration is falling back to minimum
2025-08-18 19:26:12 -05:00
ChuckBuilds
2b93eafcdf improve odds ticker dynamic duration 2025-08-18 19:23:20 -05:00
ChuckBuilds
3c1706d4e8 Fix odds ticker dynamic duration timing issue
- Modified get_dynamic_duration() to trigger update when total_scroll_width is 0
- This ensures the dynamic duration is calculated with actual data before being used
- Prevents fallback to minimum duration (30s) when odds ticker hasn't updated yet
- Added debug logging to track when updates are triggered for duration calculation
2025-08-18 19:13:54 -05:00
ChuckBuilds
9f00124fad Fix odds ticker dynamic duration calculation
- Fixed double-counting of display width in total_scroll_width calculation
- Added detailed debug logging for dynamic duration calculation
- Added debug logging for scrolling behavior and loop resets
- Created test script for debugging dynamic duration issues
- The issue was that total_scroll_width included display width, causing
  incorrect duration calculations that resulted in early cutoff
2025-08-18 19:05:36 -05:00
ChuckBuilds
68416d0293 live games in odds ticker 2025-08-18 15:50:23 -05: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
b0941641c7 added dynamic display durations to scrolling managers 2025-08-09 17:15:14 -05:00
Chuck
0b1ff3f9b6 adjust broadcast logo height ratio from .6 to .8 2025-07-23 16:47:35 -05:00
Chuck
b051288804 broadcast logo rescaling 2025-07-23 15:00:06 -05:00
Chuck
6c02b9dc4a justify day date font in odds ticker manager 2025-07-23 13:53:30 -05:00
Chuck
1aab15fb4e new name extraction for broadcast names 2025-07-22 18:43:23 -05:00
Chuck
2c0596baf6 broadcast logo test py 2025-07-22 17:56:52 -05:00
Chuck
1a92389334 more channel logo formatting 2025-07-22 17:34:26 -05:00
Chuck
2199dd4e05 channel logo movement 2025-07-22 17:24:46 -05:00
Chuck
eed0baec53 changing the postitioning of channel logo 2025-07-22 17:07:17 -05:00
Chuck
740a47d061 more robust broadcast image logic 2025-07-22 16:58:12 -05:00
Chuck
442dd929e6 type error fix : remote ttl 2025-07-22 16:48:38 -05:00
Chuck
f3201adc05 add scoreboard to cache 2025-07-22 16:44:31 -05:00
Chuck
d851df6709 dynamic odds updates depending on how soon a game is 2025-07-22 16:39:06 -05:00
Chuck
0ffd8efeb3 more robust channel name processing 2025-07-22 16:32:45 -05:00
Chuck
045f51ed96 less odds ticker logging and skip milb odds check 2025-07-22 16:15:43 -05:00
Chuck
2e7644b2ea skip milb when checking odds 2025-07-22 16:05:46 -05:00
Chuck
26a518e63f odds error handling so it doesn't get stuck 2025-07-22 16:00:55 -05:00
Chuck
5e7e9fa2ae debug logging around channel logos 2025-07-22 13:14:40 -05:00
Chuck
16ed79fef1 debug logging around channel logos 2025-07-22 13:07:21 -05:00
Chuck
784b0458bb move channel logo behind game time 2025-07-22 12:54:11 -05:00
Chuck
e25e853de6 fix import error and method order 2025-07-22 12:35:14 -05:00
Chuck
0f181905eb resolve temp image draw error 2025-07-22 12:28:29 -05:00
Chuck
9ce74800dc odds ticker channel logos and ensure all sports work with odds ticker manager 2025-07-22 12:12:42 -05:00
Chuck
acc3e7f249 resolve milb error with odds_ticker_manager 2025-07-22 11:54:21 -05:00
Chuck
8b6e40b32e make odds ticker channel logos user definable in config 2025-07-22 11:51:06 -05:00
Chuck
f6441c0674 add channel logo for odds_ticker_manager 2025-07-22 11:49:29 -05:00
Chuck
c141742b6a SHow team names instead of city abbreviatons on Odds_ticker 2025-07-22 11:33:12 -05:00
Chuck
c3ded3999f game time formatting to remove space between time and AM/PM 2025-07-22 11:23:25 -05:00
Chuck
4da2fd32e2 change weather logging, changed odds api call to only pull odds for games we will see, expanded game fetch window to see more games on odds ticker (50days from 30). 2025-07-22 09:31:14 -05:00
Chuck
78a63d5cea mlb and milb recent game debugging 2025-07-21 22:07:21 -05:00
ChuckBuilds
2516a06ad3 implement some functionality from commit 8dccebf without a complete roll back 2025-07-21 19:48:20 -05:00
Chuck
243dc44eb9 trying to fix odds ticker 2025-07-21 19:37:24 -05:00
Chuck
88affae2db struggling to efficiently pull sports data 2025-07-21 19:23:21 -05:00