https://github.com/cnnrrss/nbaconsole
A minimal NBA scoreboard presented in the terminal using go and gocui
https://github.com/cnnrrss/nbaconsole
cui go golang nba nba-api
Last synced: 5 months ago
JSON representation
A minimal NBA scoreboard presented in the terminal using go and gocui
- Host: GitHub
- URL: https://github.com/cnnrrss/nbaconsole
- Owner: cnnrrss
- License: mit
- Created: 2019-05-01T00:02:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T12:00:36.000Z (about 6 years ago)
- Last Synced: 2026-01-14T18:58:01.406Z (5 months ago)
- Topics: cui, go, golang, nba, nba-api
- Language: Go
- Homepage:
- Size: 1.49 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# NBA Console
A minimal NBA scoreboard terminal application using the populer gocui library
## Usage
`git clone git@github.com:cnnrrss/nbaconsole`
`cd path/to/nbaconsole`
`go mod`
`make clean && make build`
```bash
./bin/nbaconsole \
-d \ # optional: date flag
-tz # optional: timezone flag
```
### Controls
Screen|Action|Description
------|---------------|-------------|
All|`Ctrl+q`, `Ctrl+c`|Quit NBAConsole|
All|`Up`|Scroll up the current views' list|
All|`Down`|Scroll down the current views' list|
Scoreboard|`enter`|Expand the currently highlighted games' boxscore|
BoxScore|`Ctrl+t`|View team stats for currently selected games' boxscore|
## Features
- [x] **Scoreboard View**: View summary info of all current date games (start time, current score, final score, etc.)
- [x] **Background Refresh**: Poll changes to scoreboard automatically using lightweight background goroutine
- [x] **Specify Date**: Optionally view scoreboard on any date
- [x] Pass in a flag `-d 20190310` with a value in `YYYYMMDD` format to view games from a specific date
- [x] **Developer Productivity**: Track NBA scoress while you continue to live in the terminal
- [x] **Game Box Score**: View players box score from a selected game
- [x] **Game Team Stats**: View team statistics from a selected game
[](https://goreportcard.com/report/github.com/cnnrrss/nbaconsole)