source: flowtimer/README.md@ b4adb9d

guix
Last change on this file since b4adb9d was b4adb9d, checked in by Enrico Schwass <ennoausberlin@…>, 9 months ago

json part of README.md reformatted

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[7ce6506]1# Flowtimer
2
[7a52e57]3Flowtimer is a customizable Pomodoro timer designed to enhance productivity by breaking work into intervals, typically 25 minutes long, separated by short breaks. It allows you to configure your work and break sessions through a JSON file and includes predefined phases of activity to help you stay focused.
[7ce6506]4
5## Features
6
[7a52e57]7- **Configurable Sessions:** Define your own work, short break, and long break durations through a JSON file.
[7ce6506]8- **Predefined Phases:** Start with standard Pomodoro phases or create your own.
9- **Progress Tracking:** Visual feedback on time remaining for each phase.
10- **Customizable Cycle:** Choose how many work sessions you want before taking a longer break.
11
12## Getting Started
13
14### Prerequisites
15
16Ensure you have the following installed on your machine:
17
18- Python 3.x
19
[c251a80]20### Test without install
[7ce6506]21 ```bash
[7a52e57]22 git clone --branch guix https://gitlab.kid.local:/legacy/flowtimer.git
[7ce6506]23 cd flowtimer
[c251a80]24
25 guix shell python python:tk python-pillow --
26 export PYTHONPATH=$PYTHONPATH:./
27 python3 flowtimer/main.py
[7ce6506]28 ```
29
[c251a80]30### Installation
31
321. Clone the repository:
[7ce6506]33 ```bash
[c251a80]34 git clone --branch guix https://gitlab.kid.local:/legacy/flowtimer.git
35 cd flowtimer
[7ce6506]36 ```
[c251a80]372. Install the app and required dependencies
38 ```bash
39 pip3 install .
[7ce6506]40
[c251a80]41 ```
[7ce6506]42### Usage
43
441. **Create or Modify Configuration:**
45
[7a52e57]46 Flowtimer reads its configuration from a JSON file.
47
48 Example `default.json`:
[b4adb9d]49;;;
50{
51 "title": "Default",
[7a52e57]52 "blocks": [
[b4adb9d]53 {
54 "type": "Phase",
55 "title": "MorningHuddle",
56 "initial_ticks": 900
57 },
58 {
59 "type": "Sequence",
60 "title": "AM",
61 "sequence": [
62 {
63 "title": "Tasking",
64 "initial_ticks": 120
65 },
66 {
67 "title": "Working",
68 "initial_ticks": 5400
69 },
70 {
71 "title": "Syncing",
72 "initial_ticks": 300
73 },
74 {
75 "title": "Break",
76 "initial_ticks": 600
77 }
78 ],
79 "initial_repetitions": 2
80 },
81 {
82 "type": "Phase",
83 "title": "Lunch",
84 "initial_ticks": 2700
85 },
86 {
87 "type": "Sequence",
88 "title": "PM",
89 "sequence": [
90 {
91 "title": "Tasking",
92 "initial_ticks": 120
93 },
94 {
95 "title": "Working",
96 "initial_ticks": 5400
97 },
98 {
99 "title": "Syncing",
100 "initial_ticks": 600
101 },
102 {
103 "title": "Break",
104 "initial_ticks": 600
105 }
106 ],
107 "initial_repetitions": 2
108 }
[7a52e57]109 ]
110}
[b4adb9d]111;;;
112```
[7ce6506]113
[b4adb9d]114This configuration represents a standard Pomodoro cycle: three work sessions of 25 minutes each, separated by 5-minute short breaks, and followed by a 15-minute long break.
[7ce6506]115
1162. **Run Flowtimer:**
117 ```bash
[c251a80]118 python3 flowtimer.py --start --config /path/to/config_file.json
[7ce6506]119 ```
120
[7a52e57]121 This will start the timer based on the phases and durations specified in the JSON file.
[7ce6506]122
1233. **Adjusting Configuration:**
[7a52e57]124 To change the timings or the order of phases, simply edit the JSON file and rerun the script.
[7ce6506]125
126
127### Command-line Options
128
[7a52e57]129- `--config <file>`: Specify a custom JSON configuration file.
[7ce6506]130- `--start`: Start the Pomodoro timer with the current configuration.
131
132### Example
133
134```bash
[c251a80]135python3 flowtimer.py --config myconfig.json
[7ce6506]136```
137
[7a52e57]138This command will start Flowtimer with a custom configuration provided in `myconfig.json`.
[7ce6506]139
140## Contributing
141
142Contributions are welcome! Please submit a pull request or open an issue to discuss any changes or improvements.
143
144## License
145
146Flowtimer is open-source software licensed under the [MIT License](LICENSE).
147
148## Acknowledgments
149
150Special thanks to the Pomodoro Technique® for inspiring this tool.
Note: See TracBrowser for help on using the repository browser.