riffnshred / nhl-led-scoreboard

🚨 Display NHL live score, stats, and more of your favorite teams, on a Raspberry Pi driven RGB LED matrix. 🚨
GNU General Public License v3.0
421 stars 96 forks source link

AttributeError: 'Data' object has no attribute 'current_round' #450

Open Overboard-code opened 6 months ago

Overboard-code commented 6 months ago

Describe the bug I just did a clean install. I get AttributeError: 'Data' object has no attribute 'current_round' every time and we restart

Logs Loop of: INFO: Validating config.json..... INFO: config.json passes validation Traceback (most recent call last): File "/home/pi/nhl-led-scoreboard/src/main.py", line 165, in run() File "/home/pi/nhl-led-scoreboard/src/main.py", line 160, in run MainRenderer(matrix, data, sleepEvent).render() File "/home/pi/nhl-led-scoreboard/src/renderer/main.py", line 80, in render self.render_game_day() File "/home/pi/nhl-led-scoreboard/src/renderer/main.py", line 204, in render_game_day self.boards._scheduled(self.data, self.matrix,self.sleepEvent) File "/home/pi/nhl-led-scoreboard/src/boards/boards.py", line 124, in _scheduled board(data, matrix, sleepEvent) File "/home/pi/nhl-led-scoreboard/src/boards/boards.py", line 229, in seriesticker Seriesticker(data, matrix, sleepEvent).render() File "/home/pi/nhl-led-scoreboard/src/boards/seriesticker.py", line 26, in render if not self.data.current_round: AttributeError: 'Data' object has no attribute 'current_round' INFO: Validating config.json..... INFO: config.json passes validation

Your config file { "debug": false, "loglevel": "INFO", "live_mode": true, "preferences": { "time_format": "12h", "end_of_day": "6:00", "location": "", "live_game_refresh_rate": 10, "teams": [ "Hurricanes" ], "sog_display_frequency": 4, "goal_animations": { "pref_team_only": false } }, "states": { "off_day": [ "clock", "weather", "wxalert", "wxforecast", "scoreticker", "seriesticker", "standings", "team_summary", "christmas", "seasoncountdown" ], "scheduled": [ "clock", "weather", "wxalert", "wxforecast", "scoreticker", "seriesticker", "standings", "team_summary", "christmas", "seasoncountdown", "stanley_cup_champions" ], "intermission": [ "clock", "scoreticker", "seriesticker", "standings", "team_summary", "seasoncountdown" ], "post_game": [ "clock", "seriesticker", "standings", "team_summary" ] }, "boards": { "scoreticker": { "preferred_teams_only": false, "rotation_rate": 7 }, "seriesticker": { "preferred_teams_only": false, "rotation_rate": 7 }, "standings": { "preferred_standings_only": true, "standing_type": "conference", "divisions": "metropolitan", "conference": "eastern" }, "clock": { "duration": 15, "hide_indicator": false, "preferred_team_colors": true, "clock_rgb": "", "date_rgb": "", "flash_seconds": true }, "weather": { "enabled": true, "view": "full", "units": "imperial", "duration": 30, "data_feed": "OWM", "owm_apikey": "584a45a2e53805b06ec4bb1ac18680ab", "update_freq": 5, "show_on_clock": true, "forecast_enabled": true, "forecast_days": 2, "forecast_update": 1 }, "wxalert": { "alert_feed": "NWS", "update_freq": 5, "show_alerts": true, "nws_show_expire": true, "alert_title": true, "scroll_alert": true, "alert_duration": 7, "show_on_clock": true } }, "sbio": { "screensaver": { "enabled": false, "animations": true, "start": "22:00", "stop": "08:00", "data_updates": false, "motionsensor": false, "pin": 7, "delay": 30 }, "dimmer": { "enabled": true, "source": "software", "daytime": "6:00", "nighttime": "21:00", "offset": 0, "frequency": 5, "light_level_lux": 400, "mode": "off_day", "sunset_brightness": 5, "sunrise_brightness": 60 }, "pushbutton": { "enabled": false, "bonnet": false, "pin": 25, "reboot_duration": 2, "reboot_override_process": "", "display_reboot": true, "poweroff_duration": 10, "poweroff_override_process": "", "display_halt": true, "state_triggered1": "weather", "state_triggered1_process": "" } } }

Hardware you are using

Software

azaroth08 commented 6 months ago

Is this the image installation?

Overboard-code commented 6 months ago

I downloaded the zip from : https://github.com/riffnshred/nhl-led-scoreboard/releases/tag/v1.8.2 unzipped it to /home/pi/nhl-led-scoreboard and ran scripts install.sh then nhl_setup I have been running the older code for a year. on my 128x64 LED matrix. I did not use my modified fonts or layouts Just the default setup When I reconfigure and don't use 'series ticker' it works OK

azaroth08 commented 6 months ago

Oh. Try removing all playoff settings from your config. The series ticker, and Stanley cup champions. As well as the season and Christmas countdowns.

Overboard-code commented 6 months ago

Changed it to: "states": { "off_day": [ "clock", "weather", "wxalert", "wxforecast", "standings", "scoreticker", "team_summary", "christmas" ], "scheduled": [ "clock", "weather", "wxalert", "wxforecast", "scoreticker", "standings", "team_summary", "christmas"

And it works fine now. Thanks a ton!

azaroth08 commented 6 months ago

Don't forget to remove the series ticker from post game and intermission

Overboard-code commented 6 months ago

:-)