Skip to content

romilly/tdd-lazydoro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazydoro Mk V

Lazydoro is a small device that helps writers and programmers to practice the Pomodoro technique.

Lazydoro Mk V hardware

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.

Development setup

  1. Clone this repository.

  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the tests:

    pytest

The MQTT integration tests require a Mosquitto broker running on a host called watcher, and mosquitto_pub installed locally.

Installing the software on a Pi

Once you have built the hardware:

  1. Clone this repository on the Raspberry Pi.

  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the required software:

    pip install -r requirements.txt

Running the software on the Pi

source venv/bin/activate
cd <project root>/src
python3 runner.py

You can stop it by typing ctrl-C.

Future plans

I'm now using this project, and will start blogging about the implementation.

About

tdd lazydoro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors