Comments (5)
Need a little more info here, as I see it from main.py
it would currently never switch to the next day's games, as we never update the day/month/year values passed to mlbgame.games
from mlb-led-scoreboard.
I've run into this issue as well. I don't know that it's necessarily try to switch the next day but rather rotate back to the first game. Here's the stack trace that I got.
Traceback (most recent call last):
File "main.py", line 44, in
GameRenderer(matrix, canvas, games[0], config).render()
File "/home/pi/mlb-led-scoreboard/renderers/games.py", line 64, in render
self.__refresh_game(game, overview.status)
File "/home/pi/mlb-led-scoreboard/renderers/games.py", line 97, in __refresh_game
scoreboard = Scoreboard(game)
File "/home/pi/mlb-led-scoreboard/data/scoreboard.py", line 16, in init
self.game_data = self.__current_game_data(game)
File "/home/pi/mlb-led-scoreboard/data/scoreboard.py", line 27, in __current_game_data
game_data['inning'] = self.__current_inning(game_id)
File "/home/pi/mlb-led-scoreboard/data/scoreboard.py", line 44, in __current_inning
inning_status['at_bat'] = self.__current_at_bat(at_bats[-1])
IndexError: list index out of range
I did some digging(I'm a beginner when it comes to python), and it looks like it may have something to do with the MLBAPI itself.
from mlb-led-scoreboard.
Give the latest a checkout and see if you're still having issues. A lot of work has been done on the data objects.
from mlb-led-scoreboard.
Awesome. That seems to have fixed the issue I was having.
from mlb-led-scoreboard.
I'm gonna say this issue is fixed by fa191b7 and close it, anybody can reopen if they see this again.
from mlb-led-scoreboard.
Related Issues (20)
- Add support for 96 x 48 matrix HOT 1
- Issue when trying to set Dbacks as preferred team HOT 9
- Delayed game still showed start time HOT 1
- Units of measurement not working HOT 2
- Scoreboard not starting with one team config and offday HOT 2
- Turning off scrolling text HOT 4
- Option to display team record on game screen HOT 2
- Trouble starting up when plugged in HOT 7
- Top Half of screen is green HOT 2
- Verify software compatibility with Raspberry Pi 5 HOT 1
- Error when installing HOT 3
- Create Image HOT 1
- Just set up the hardware and I have an issue starting the software HOT 6
- no module stats API HOT 6
- PIL failed to load HOT 1
- Update installer to disable soundcard HOT 3
- new install on Bookworm, No module named 'statsapi', then No module named 'rgbmatrix' HOT 2
- Error Message when trying to start the scoreboard HOT 6
- Button to turn on/off scoreboard HOT 2
- No matching distribution found for Pillow>=10.0.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlb-led-scoreboard.