Lazydoro is a small device that helps writers and programmers to practice the Pomodoro technique.
If you're writing text or code, you probably work at a desk. Lazydoro can see if you're at your desk.
When you sit down it assumes you're starting a Pomorodo. It will show you how time is passing and will remind you to tak a break when the pomodoro is complete.
Lazydoro assumes that you will get up from your desk when taking a break. It will start timing the break when you leave your desk, and it will buzz to alert you when the break time is over.
When you've completed a pomodoro/break cycle, Lazydoro will be ready for you to start again.
I documented this behaviour more formally in a use case.
The current version of Lazydoro Mk 5 is driven by a Raspberry Pi Zero. Other models could be used instead.
The additional hardware for the Pi is described here.
-
Clone this repository.
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Run the tests:
pytest
The MQTT integration tests require a Mosquitto broker running on a host called watcher,
and mosquitto_pub installed locally.
Once you have built the hardware:
-
Clone this repository on the Raspberry Pi.
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the required software:
pip install -r requirements.txt
source venv/bin/activate
cd <project root>/src
python3 runner.pyYou can stop it by typing ctrl-C.
I'm now using this project, and will start blogging about the implementation.