Skip to content
/ jaccuse Public

A simple python script to count the [interval] since [thing happened]

License

Notifications You must be signed in to change notification settings

444B/jaccuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jaccuse

Image
A simple python script to countdown the number since a thing happened
It makes use of the sense_hat python library for controlling the LEDs

Fun fact: You dont need a physical pi to develop this!
You can run the main.py script in Trinket.io to emulate a raspberry pi with a sense hat :)
If you do emulate, just skip to copying the main.py code into the emulator IDE and hitting run. Otherwise,

Physical Setup:

1. Clone the Repo into home directory (or wherever, im not your mom so do whatever you want)

cd $HOME
git clone https://github.com/444B/jaccuse.git

2. apt update and install sense-hat

sudo apt update && sudo apt install sense-hat -y
  • note, you can make a pip venv for this but it was giving me numpy warnings (???) despite the fact that I wasnt using numpy or pillow so I opted to skip the venv

3. run file

python3 ~/jaccuse/main.py

4. (Optional) - add the python script to start up on physical pi startup

open /etc/rc.local

sudo nano /etc/rc.local

add the following in, right before the bottom line that says "return 0"

python3 $HOME/jaccuse/main.py &

Documentation

1. Orientation.

You should see a "?" displayed. Use the Sense pi button (or arrow keys if emulated on trinket) to face the question make the right way
Press the button in (or Enter if emulated) to select this orientation.

2. Duration Selection

Next, the script needs to know how long you want to set the incremental timer
The options are: Seconds, Minutes, Hours and Days.
Cycle left and right to get the setting you want and then press the physical button IN (if emulated: press enter)
The counter will now begin from zero and count up. Note that after 10, things get spooky so keep that in mind.

3. ???

4. PROFIT

How to contribute

About

A simple python script to count the [interval] since [thing happened]

Topics

Resources

License

Stars

Watchers

Forks

Languages