-
-
Notifications
You must be signed in to change notification settings - Fork 22
MILB_TROUBLESHOOTING
Chuck edited this page Aug 12, 2025
·
1 revision
The MiLB manager is no longer pulling accurate game information due to several factors, primarily the current offseason period.
- Problem: MiLB season runs from April to September
- Current Status: We're in January 2025 (offseason)
- Impact: No regular season games are scheduled during offseason
- Solution: Enable test mode for offseason testing
- API Endpoint Changes: MLB Stats API endpoints may have changed
- Sport ID Updates: Some sport IDs might be outdated
- Team Mapping: Team abbreviations may have changed
{
"milb": {
"test_mode": true
}
}- Season Awareness: Added offseason detection
- Better Logging: More informative error messages
- Test Mode Enhancement: Improved test data
python test/test_milb_api.pypython test/diagnose_milb_issues.pycd /path/to/LEDMatrix
python test/diagnose_milb_issues.py- Ensure
test_mode: truein config - Restart the display system
- Check if test games appear
python test/test_milb_api.py- No real games found
- Test mode shows sample games
- Logs indicate offseason status
- Real games should be found
- Live games display correctly
- Upcoming games show properly
{
"milb": {
"test_mode": true,
"enabled": true
}
}{
"milb": {
"test_mode": true,
"force_season": true
}
}- Cause: Offseason or API issues
- Solution: Enable test mode
- Cause: Network or endpoint issues
- Solution: Check internet connection and API status
- Cause: Team mapping outdated
-
Solution: Update
milb_team_mapping.json
- Cause: MLB API changes
- Solution: Update sport IDs in config
-
"MiLB is currently in offseason"- Normal during offseason -
"Using test mode data for MiLB"- Test mode active -
"No games returned from API"- API issue or offseason
Enable debug logging to see detailed API calls:
logger.setLevel(logging.DEBUG)- Season Schedule Integration: Use official season dates
- API Fallback: Multiple API endpoints
- Caching Improvements: Better cache management
- Error Recovery: Automatic retry mechanisms
{
"milb": {
"season_start_month": 4,
"season_end_month": 9,
"api_fallback": true,
"cache_duration": 3600
}
}For additional issues:
- Run the diagnostic tools
- Check the logs for specific errors
- Verify network connectivity
- Test API endpoints directly
# Edit config/config.json
# Change "test_mode": false to "test_mode": truepython test/diagnose_milb_issues.pypython test/test_milb_api.py- April-September: Season active
- October-March: Offseason (use test mode)