mikemountain / nfl-led-scoreboard

NFL LED scoreboard! This project can display live scores of your favourite football teams!
GNU General Public License v3.0
99 stars 29 forks source link

Animations are broken with game rotation #33

Open mikemountain opened 2 years ago

mikemountain commented 2 years ago

so the way it used to work was, with just one game always running, could easily track the changes in score. now with rotations, that's kinda been removed, so I gotta re-figure it out

pjockey commented 2 years ago

Trying get this board up and running. The MLB and NHL boards both work fine. When I run sudo python main.py I get the following errors:

sudo python main.py
INFO (21:04:46): NFL Scoreboard - v0.0.1 (64x32)
INFO (21:04:47): Live State, checking every 5s
INFO (21:04:47): Refresh game overview
Traceback (most recent call last):
  File "main.py", line 30, in <module>
    MainRenderer(matrix, data).render()
  File "/home/pi/nfl-led-scoreboard/renderer/main.py", line 32, in render
    self.__render_game()
  File "/home/pi/nfl-led-scoreboard/renderer/main.py", line 41, in __render_game
    self.__draw_game(self.data.current_game())
  File "/home/pi/nfl-led-scoreboard/renderer/main.py", line 104, in __draw_game
    self._draw_live_game(game)
  File "/home/pi/nfl-led-scoreboard/renderer/main.py", line 211, in _draw_live_game
    self.data.refresh_game()
  File "/home/pi/nfl-led-scoreboard/data/data.py", line 36, in refresh_game
    self.game = self.choose_game()
AttributeError: Data instance has no attribute 'choose_game'

This also seems to lock the pi (3A+) making a hard boot necessary.

xTrackstar04x commented 2 years ago

pretty sure you have to have flags on the command python main.py --led-gpio-mapping="adafruit-hat" --led-brightness=30 --led-cols=64

pjockey commented 2 years ago

pretty sure you have to have flags on the command python main.py --led-gpio-mapping="adafruit-hat" --led-brightness=30 --led-cols=64

Yes that is what I have in Supervisor, yet it takes the Pi off of the network and locks it up tight. Wanted to see what was happening.

machinasdei commented 2 years ago

so the way it used to work was, with just one game always running, could easily track the changes in score. now with rotations, that's kinda been removed, so I gotta re-figure it out

any luck?