Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Commands #32

Open
xTrackstar04x opened this issue Sep 9, 2021 · 14 comments
Open

Update Commands #32

xTrackstar04x opened this issue Sep 9, 2021 · 14 comments

Comments

@xTrackstar04x
Copy link

Can you put what commands need to be run to update the NFL scoreboard in the readme?

@mikemountain
Copy link
Owner

Hey, so if you're talking about the rotating game feature, it's not in the main branch yet as it's still in testing, but I can post here how to run off that test branch:

  1. run git stash in the directory where you have the NFL scoreboard running
  2. run git fetch
  3. run git checkout f/rotate-games
  4. run cp config.json.example config.json
  5. run nano config.json
  6. edit in your favourite team(s) in the preferred teams field
  7. run the board as normal with sudo python main.py and whatever args you use after

@mikemountain
Copy link
Owner

also, if things are breaking, periodically try running git pull to see if I've fixed them because things will almost certainly be breaking.

@xTrackstar04x
Copy link
Author

xTrackstar04x commented Sep 10, 2021

this is what I am getting when I run git stash and git fetch

pi@raspberrypi:~/nfl-led-scoreboard $ git stash
No local changes to save
pi@raspberrypi:~/nfl-led-scoreboard $ git fetch
error: cannot open .git/FETCH_HEAD: Permission denied

@mikemountain
Copy link
Owner

Running sudo chown -R $(whoami) .git/ should fix that, try that and re-run git fetch

@xTrackstar04x
Copy link
Author

xTrackstar04x commented Sep 10, 2021

That worked! Thanks.

When I ran git fetch it came back with 3 new branches. Should I also run git checkout on the other 2 branches?

 820e343..8f324fa  master             -> origin/master
 * [new branch]      b/fix-pre-post-game-transition-states -> origin/b/fix-pre-post-game-transition-states
 * [new branch]      b/show-game-hotfix -> origin/b/show-game-hotfix
 * [new branch]      f/rotate-games     -> origin/f/rotate-games
pi@raspberrypi:~/nfl-led-scoreboard $ git checkout f/rotate-games

@mikemountain
Copy link
Owner

Nope, running git checkout essentially switches all the files to a certain state. So the files in f/rotate-games won't match the files in master. Just as a heads up, there are still a decent amount of bugs in the f/rotate-games branch, so expect things to fail tomorrow - and if they do fail, wait about 10 mins and try running git pull to see if I've pushed an update

@xTrackstar04x
Copy link
Author

10-4. I'll let you know if I find anything as well

@xTrackstar04x
Copy link
Author

The board is not rotating for me. Any ideas?

@mikemountain
Copy link
Owner

mikemountain commented Sep 12, 2021 via email

@xTrackstar04x
Copy link
Author

image

@WashCaps33
Copy link

WashCaps33 commented Sep 12, 2021 via email

@WashCaps33
Copy link

WashCaps33 commented Sep 13, 2021 via email

@mikemountain
Copy link
Owner

@WashCaps33 I can't help without any info on what error you're getting, but since this is an experimental branch that's still likely to run into bugs, hold off until I merge it into the main code (should be tomorrow) and then we'll go from there

@WashCaps33
Copy link

WashCaps33 commented Sep 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants