Skip to main content

Module routines

Module routines 

Source
Expand description

Routines (docs/tasks.md, “Routines”): a sequence of timed steps played one at a time, the next one said before it comes, so nothing is decided while doing (Routinery). Moving on when a step’s time is up is each routine’s choice: it helps some and pressures others. Skipping costs nothing and is never counted. Kept in the configuration ([[routine]]), so they travel with your settings.

Structs§

Routine
Step
One step: what, for how long, and what it opens (porch, sioul:task/<UID>).

Functions§

change
The routines as the configuration holds them now, changed by change and written back, the whole under the file’s lock, which the sharing takes too: a routine another device’s change brought in meanwhile is never written over with an older list.
minutes_word 🔒
parse_step 🔒
parse_steps
“10 min Open the Porch”, “Open the Porch 10”, “Open the Porch ~10m”, “Make tea (5)”: one step a line.
save
The routines written back into the configuration, the rest of it as written, read and written under the file’s lock.
save_locked 🔒
steps_text
The steps as one line each, as the form shows them: “10 min Open the Porch”.