This project has been archived use contrihat instead
Github Contribution Graph on the Raspberry Pi Sense Hat LED Matrix
Using docker and docker compose, this is a super easy setup. Just do the following:
- Run
init.sh
usingsh init.sh
- Put your Github user name (e.g. Matt-Gleich) in
~/contribution-hat-config/config.yaml
- Put your timezone (TZ Database Name, e.g. America/New_York) in
~/contribution-hat-config/config.yaml
- Then just run
docker-compose up -d
at the root of this project
Due to the fact that the classic green colors that github.com uses look too similar on the sense hat, the following color rules are used (percent is percent of max number of contributions for the year for the user):
Percent | Color |
---|---|
0% | |
< 25% | |
< 50% | |
< 75% | |
<= 100% |
Set a list of hours for the lights to go off in Military time. Below are the setup steps:
- Add
off-hours: list of hours
to~/contribution-hat-config/config.yaml
Below is an example
username: 'Matt-Gleich'
timezone: 'America/New_York'
off-hours:
- 1
- 2
- 3
- 4
- 5
- 6
- 21
- 22
- 23
- 24
Restart by running docker-compose down
and sudo reboot
Simply run ./teardown.sh
by running sh teardown.sh