Blog Β· release
Latch 0.28.0
ποΈ Workouts: the watch, families, credit by temperament, and the Handler picks (#47). Migration 30.
- Workouts from the watch.
POST /api/v1/training/workoutstakes each Apple Health or Garmin workout (source, id, type, start, length, distance) and logs it as a bout of a habit, with sourceworkout. The type picks the habit (cycling β π΄ Bike, yoga β π§ Yoga & stretch, strength β ποΈ Liftβ¦). The first time a type arrives with no habit by that name, the habit is made. Unknown types are reported, never guessed. Your own map and an off switch are in Settings β Workouts. - One ride is one ride. The same workout from both sources, or from one source under two ids,
is logged once. A bout you undid stays undone. Distance is kept (
habit_logs.distance_m); a 0 is "not measured". - Families. Every workout habit is cardio, strength or mobility. Set one on any habit in Settings β Standing days.
- Credit by temperament. A workout order that runs out unmet is judged by the credit table under the temperament it was issued with. Same family, another workout, or the ordered one at β₯ Β½: warm full / Β½ / Β½, firm Β½ / π 2 / Β½, strict π 2 / π 3 / β. Β½ closes it done at half the XP and reward. β fails it with no mark. The better cell stands, and nothing at all is still π». Workout orders wait two hours past their deadline for the watch to sync before they're judged.
- Who picks today's workout:
me(as before; the default),suggest(a morning proposal on the dashboard, the Workouts page and in the bot:!accept/!decline) orcommand(an order). The pick follows the rules: a recovery day is mobility only, cardio after two days without, and strength after three. Your AI Handler, under Assign training, picks within those options and writes the words (new actiontrain). It is never told why, and anything outside the options is refused. - Sits in the pool. An order can name a trance sit, and one score. The wheel and random can draw "sit Descent, 45 min", and only a sit of that score completes it.
- New page Workouts (
/training). Guide: Workouts.