Git Product home page Git Product logo

Comments (5)

ajbowler avatar ajbowler commented on June 5, 2024

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.

Rmarken5 avatar Rmarken5 commented on June 5, 2024

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.

swemoney avatar swemoney commented on June 5, 2024

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.

Rmarken5 avatar Rmarken5 commented on June 5, 2024

Awesome. That seems to have fixed the issue I was having.

from mlb-led-scoreboard.

ajbowler avatar ajbowler commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.