nhl-led-scoreboard icon indicating copy to clipboard operation
nhl-led-scoreboard copied to clipboard

Fix scoreboard stuck in off day

Open ebrucker406 opened this issue 1 year ago • 4 comments

Updates get_score_details call in data.py to have 2 character month and date. This fixes the issue that cause the scoreboard to be stuck in off day mode.

ebrucker406 avatar Jan 03 '24 04:01 ebrucker406

Could someone please provide some more details to these instructions? I looked through the sd card files and tried to open up the files on putty but am lost. Where do you find "data.py"? And is it a simple change to the calendar settings? Just trying to get all the info so I bother in one post, not multiple! Thanks in advance!

angtang10 avatar Jan 04 '24 23:01 angtang10

OK, I'm not a Putty guy and do everything using ssh. The data.py file is located in the /home//nhl-led-scoreboard/src/data. My is pi so change your user name accordingly. So, cd nhl-led-scoreboard/src/data from the home directory. Then nano data.py and the file should open. Scroll down to the line that starts with data = nhl_api.data.get_score.details.............

The line you want is 288 in the file I have, change what is there with the noted fix, or copy and paste this into line 288 after you remove the current line 288.

data = nhl_api.data.get_score_details("{}-{}-{}".format(str(self.year), str(self.month).zfill(2), str(self.day).zfill(2)))

Hope this helps.

pjockey avatar Jan 05 '24 01:01 pjockey

OK, I'm not a Putty guy and do everything using ssh. The data.py file is located in the /home//nhl-led-scoreboard/src/data. My is pi so change your user name accordingly. So, cd nhl-led-scoreboard/src/data from the home directory. Then nano data.py and the file should open. Scroll down to the line that starts with data = nhl_api.data.get_score.details.............

The line you want is 288 in the file I have, change what is there with the noted fix, or copy and paste this into line 288 after you remove the current line 288.

data = nhl_api.data.get_score_details("{}-{}-{}".format(str(self.year), str(self.month).zfill(2), str(self.day).zfill(2)))

Hope this helps.

Amazing! Thank you so much. It's working now :)

angtang10 avatar Jan 05 '24 02:01 angtang10

Is there a way to get the scoreboard to stay with this new code? I don't keep my scoreboard on 24/7 so when I try starting it up, I have to recode it every single time. Maybe I'm not saving it right? Thank you in advance!

angtang10 avatar Feb 09 '24 20:02 angtang10