Based off the following Python packages
LIFX Tomato Clock is a simple command line pomodoro app. 25 mins on with bright light, 5 mins on with red light
$ git clone https://github.com/coolcode/tomato-clock.git
$ cd lifx-tomato-clock
$ python3 lifx-tomato.py
Please read this authentication page first
Create the folder ~/.lifx
. Change the modifications to 700 so that no one else on your computer can read it.
mkdir --mode=700 ~/.lifx
Then add in a file to this directory named 'lifx.yaml' and update accordingly.
You may copy the file in templates
for convenience.
$ cat ~/.lifx/lifx.yaml
access-token: <insert access token here>
groups:
<name of your work room>:
id: <group id>
name: <group name>
Head to the LIFX API ENDPOINTS PAGE and head down to 'Try It Out'.
Insert 'all' into the selector page and your access token as the authorization key.
Click 'Try it' and head to the 'group' section.
<group id>
should become the value under group
-> id
.
<group name>
should become the value under group
-> name
.
<name of your work room>
itself is arbitrary and can be named to something convenient.
🍅 tomato 25 minutes. Ctrl+C to exit
🍅🍅---------------------------------------------- [8%] 23:4 ⏰
Focus mode: Light will turn white and 100% for 25 mins Stretch mode: Light will turn red with 100% saturation for 5 mins
- Allow for returning light to previous state prior to pomodoro invocation.
- Allow for skipping current break or starting break early.
- Allow for customised light settings, or for preferences to be set in yaml file.