A clock for Pimoroni's Display-O-Tron HAT (for Raspberry Pi)
git clone https://github.com/juniorRubyist/clock.git
cd clock
./install.sh # Follow onscreen instructionsPlease leave a star, it means a lot to me.
git pull # While in project directory
./install.sh- Absolutely no logic for accurate time updates.
- Runs in background, with help from
screen. - Can run on startup, with
crontabconfiguration.
••••••••••••••••••
• 02:47 pm • Local Time
• •••••• • Binary Seconds
• Jun 08, 2017 • Local Date
••••••••••••••••••
To start clock, execute:
clockTo attach to the clock process, execute:
screen -r clockTo kill the clock, execute:
screen -r clock
# Send a SIGINT (^C), SIGTSTP (^Z), or SIGKILL (^\\)To initiate the backlight, press the center button.
To switch backlight colors, press the left/right buttons, when not glowing.
- Fork the repo (not required, but recommended) and clone it, or pull the latest changes (if you don't want to fork it).
- Open
share/clock.pywith an editor. - Find the
colorslist and add a dictionary with the following syntax (which is similar to JSON).
{'name' : color_name, 'combo' : (r, g, b)}color_name is a string and the value of combo is a tuple.
4. Save the file and reinstall (run ./install.sh).
Note: Make sure you kill the existing process.
To share an edit, please push your changes and file a pull request.
If you have a good idea, but don't know how to add it, file an issue. If accepted, we'll add it to the Next Steps project.
If you have enjoyed this project, please leave a star or a comment on my Say Thanks page. You can also donate Bitcoin to the address below 👇.
1JS7RBqqWu5oCUzNfJnAHfkxBC5cPRew8u
- Joseph Geis (@juniorRubyist): Project Owner
Coded with love from California.