One-button time-management with the Raspberry Pi.
Ever get frustrated by time logging? Replace all that time spent navigating crummy UI and doing mental math with a Work Pi on your desk!
It's very easy to use, with only one button
- rotate to scroll through currently-assigned tasks
- click to start time logging
- click to stop time logging
Note that this is a work in progress and currently has no export feature - it is easy to integrate into any time-logging API.
This is also an excellent platform for any project involving a rotary-encoder and a raspberry pi. Use this to build your own weather station or thermostat interface or other such things if you like.
The WorkPi runs a simple pygame
script which interfaces with a rotary encoder + button. Wiring up and installing the button requires drilling a single hole and soldering a few wires.
This device can be built with only a few Adafruit components. To replicate this you'll need the below:
- Raspi TFT Plus (2.8") kit
- Raspi TFT enclosure
- Raspi TFT Faceplate
- Raspberry Pi (2/3/4)
- Rotary encoder (with integrated button)
- Big metal knob
NOTE: if you are Canadian, like me, I recommend Elmwood Electronics when purchasing Adafruit products
The following connections will be made between the rotary encoder and the RasPi-TFT's GPIO header (not the raspberry pi's own physical GPIO pins!).
I recommend soldering these to the PCB so as not to ruin the expansion GPIO header on the RasPiTFT.
** TODO measurements + pictures**
-
Just drill a single hole in the RaspiTFT enclosure on the side which has the microSD slot. Once inserted the encoder will fit nicely above the microUSB connector and below the RaspiTFT PCB.
-
insert the Raspberry pi into the enclosure
-
screw in the rotary encoder
-
insert the raspiTFT and faceplate
Done!
There isn't a whole lot going on beyond just a simple startup script:
- Install the RaspiTFT drivers from the link here.
- Clone this repo into your
/home/pi
directory (as/home/pi/WorkPi
) - Make it run on startup by adding
sudo python3 /home/pi/WorkPi/run.py
to new file/etc/init.d/workpiscript
cd
to/home/pi/WorkPi
and runsudo python3 install -r requirements
I implore anyone intetested in using this as a work logger to help with the following tasks:
- export functionality
- API connection i.e. JIRA
This material was developed as part of an internal DarwinAI Hackathon held on Friday, March 20, 2020. For more information on DarwinAI, please visit: https://www.darwinai.com/