Pomodoro

by vitalizzare

Version 4 (May 23, 2021)

Download (91 downloads)

The idea is to focus on the work for 2 houres, 4 intervals 30 minutes each, with 5 minutes gaps in between and 20 at the end.

The main variables are collected in a dictionary 'Pomodoro' :

array "Plan": [ 30, 5, 30, 5, 30, 5, 30, 20 ] // Duration of the time intervals in minutes
dictionary "Twitting": {
. . . . int "Interval": 60*5 // Time intervals in seconds, how often to twit during main intervals
. . . . dictionary "isActive": { // Set 1 or 0 to switch twitting on/off during 'work' or 'relax' intervals
. . . . . . . . boolean "atWork": 1
. . . . . . . . boolean "atRelax": 0
. . . . }
}
dictionary "Sound": { // Connect special sounds to indicate events
. . . . string "Work": " ... "
. . . . string "Relax": " ... "
. . . . string "Done": " ... "
. . . . string "Twit": " ... "
}
boolean "isPaused": 0 // a switcher to pause/continue the main fiber, should be zero at the beginning

To change the number and duration of the 'work' and 'relax' intervals set them as the new value of the Pomodoro["Plan"] array. The amount of numbers is the amount of intervals. The value of each number is a duration in minutes of a corresponding interval. The first number is a 'work' interval, the second - 'relax', and so on.

Twitting means 'keep me awaken in case I get distracted'. By default it is activeated for 'work' periods and is deactivated when there's a 'relax' time.

Pomodoro["Sound"] keeps the pathes to the tunes for events:

. . . "Work": the next 'work' interval has been started
. . . "Relax": the 'relax' time has been started
. . . "Done": all the intervals passed
. . . "Twit": Wake up and focus on the work!

The sounds will be downloaded from github repository "https://github.com/vitalizzare/termux_goodies/tree/main/pomodoro/Sounds" and stored in the local directory Pomodoro_sounds.

The script containes 29 blocks and can be used in the free of charge version of Automate.

Tested on Nexus and Pixel with Android 6 and 10.

5.0 average rating from 1 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.