{% extends "base.html" %} {% import "health/_parts.html" as hp with context %} {% block title %}Workout{% endblock %} {% block head %}{{ hp.assets() }}{% endblock %} {# One workout (watch.workout_page): heart rate over time on the zone bands, time per zone, our calories (Keytel, from heart rate + profile) next to what Mi Fitness said. #} {% set n, dm = hp.n, hp.dm %} {% from "health/_watch.html" import hm with context %} {% set w = v.w %} {% block page %} {{ hp.head("workout") }}

{{ w.name }} {{ w.start.strftime("%a %-d %b %Y, %H:%M") }}–{{ w.end.strftime("%H:%M") }}

Duration{{ hm(w.minutes) }}{% if w.distance %}{{ "%.2f" | format(w.distance / 1000) }} km · {% endif %}{{ w.steps or 0 }} steps
Heart rate{{ n(w.avg_hr, 0) if w.avg_hr else "—" }} avgmax {{ w.max_hr or "—" }} bpm · {{ ((w.max_hr or 0) / w.hrmax * 100) | round | int }} % of your max ({{ w.hrmax }})
Load · effect{{ n(w.load, 0) if w.load else "—" }} {{ ("· " ~ w.effect) if w.effect }} {% if w.usual %}your usual {{ n(w.usual, 0) }} (6 weeks before){% else %}not enough workouts before it{% endif %} Training load (TRIMP)Banister's TRIMP: minutes × effort (% of heart-rate reserve), hard minutes weighted much more. Effect = this load vs the average of your workouts in the 6 weeks before: easy under 0.6×, maintaining to 0.9×, improving to 1.3×, very hard above.
Calories{{ n(w.kcal, 0) if w.kcal is not none else "—" }} kcal active {{ n(w.kcal_total, 0) if w.kcal_total else "—" }} total incl. resting{% if w.kcal_device %} · Mi said {{ n(w.kcal_device, 0) }} active{% endif %} How it's calculated Each second: effort = % of heart-rate reserve (resting {{ w.person.rest }} → max {{ w.hrmax }} bpm), which matches % of oxygen use (ACSM). Oxygen = 3.5 + effort × (VO₂max {{ n(w.person.vo2max) }} − 3.5) ml/kg/min ({{ w.person.vo2_src }}{% if "BMI" in w.person.vo2_src %}: “{{ w.person.level }}”{{ " — automatic, last 12 weeks" if w.person.level_auto }}{% endif %}); × {{ n(w.person.weight) if w.person.weight else "—" }} kg × 5 kcal per litre. Active = on top of resting — what watches show. Total adds your resting energy (Mifflin–St Jeor). Heart-rate methods are ±20–30 %; a measured VO₂max makes it much better.
{{ hp.title("Heart rate", "Averaged into 300 points; the coloured bands are your zones. Hover the graph for the time and heart rate.") }}
{% for z in v.zones[1:] %}{{ z.name }}{% endfor %}
{{ hp.hr_graph(v.graph) }}
{{ hp.title("Time in zones", "Based on " ~ ("heart-rate reserve: resting " ~ w.person.rest ~ " (" ~ ("setting" if w.person.rest_set else "watch data") ~ ") → max " if w.person.method == "hrr" else "% of max heart rate: max ") ~ w.hrmax ~ " (" ~ ("setting" if w.person.max_set else "from age") ~ "). Fat burn ≈ easy, can talk; aerobic = steady cardio; anaerobic = hard, short bursts; maximum = all-out. Change it in Settings ▸ Plugins ▸ Health.") }}
{{ hp.zone_table(v.zones) }}
{% endblock %} {% block scripts %}{{ hp.adder() }}{% endblock %}