- Python 3 (On a Mac?
homebrew install python)
- Focus browser extension if you're using a browser other than Safari, Chrome, or Vivaldi
Log into Beeminder, and then download auth_token.json at this url and place it
bee-focused root folder:
goals.json and edit to reflect which of your
Beeminder goals you want to use to trigger focus time.
chmod +x bee-focused.py ./bee-focused.py
Add an entry to your crontab to run the script every few minutes:
- Find the path to your local copy of Python 3:
- Open Crontab:
export VISUAL=nano; crontab -e
- Add this line:
*/5 * * * * /path/to/python3 /path/to/bee-focused/bee-focused.py >>/path/to/bee-focused/cron.log 2>&1
- Save and exit
In order to allow you to enable Focus separately from this script, bee-focused never explicitly unfocuses. Instead, it starts 7-minute focus sessions and then lets the last one expire when you're caught up on your goals. For that reason, it's important that the script runs at least every seven minutes (I suggest every five) in order to insure that there isn't time between when one focus session expires and the next is initiated.