nhl-led-scoreboard
nhl-led-scoreboard copied to clipboard
Fix scoreboard stuck in off day
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.
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!
OK, I'm not a Putty guy and do everything using ssh. The data.py file is located in the /home/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.
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/datafrom the home directory. Thennano data.pyand the file should open. Scroll down to the line that starts withdata = 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 :)
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!