Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
/ Contribution-Hat Public archive

🥧 Github Contribution Graph on the Raspberry Pi Sense Hat LED Matrix

License

Notifications You must be signed in to change notification settings

gleich/Contribution-Hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been archived use contrihat instead

Contribution Hat

Docker Pulls

Github Contribution Graph on the Raspberry Pi Sense Hat LED Matrix

Example Picture

Setup

Using docker and docker compose, this is a super easy setup. Just do the following:

  1. Run init.sh using sh init.sh
  2. Put your Github user name (e.g. Matt-Gleich) in ~/contribution-hat-config/config.yaml
  3. Put your timezone (TZ Database Name, e.g. America/New_York) in ~/contribution-hat-config/config.yaml
  4. Then just run docker-compose up -d at the root of this project

Features


Colors

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% Red
< 25% Orange
< 50% Yellow
< 75% Green
<= 100% Dark Green

Night Mode

Set a list of hours for the lights to go off in Military time. Below are the setup steps:

  1. 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

Teardown

Simply run ./teardown.sh by running sh teardown.sh

About

🥧 Github Contribution Graph on the Raspberry Pi Sense Hat LED Matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages