getDashboardData
Fetch all Garmin training dashboard data in one call—HR zones, fitness age, weekly activities, HRV, sleep, daily summaries, units, and locale—while caching to sync only new data.
Instructions
All the data of the training dashboard in one call: HR zones, fitness age, the activities of the
last weeks weeks (compact summaries, with strength sets and laps where they apply), the activities
of the weeks before for the period comparison, daily HRV, and the last 14 days of sleep and daily
summaries, and units: the measurement system of the Garmin profile (metric, statute_us or
statute_uk) that the page shows; the data itself is always metric; locale: the language of
the Garmin profile, e.g. it or pt-BR. Keeps a local cache and
fetches from Garmin only what is new since the last call, so a rebuild or an update needs few
calls. sync in the result says what was fetched: Garmin calls, .FIT files downloaded
(fitDownloads) and new activities.
digest, first in the result: the server's totals for the whole period and for each
Monday-Sunday week (sessions, km, hours, load), the training load of the last 7 and 28 days,
best efforts, races and strength top sets, the long runs with their half split and HR drift, the
longest run and the race predictions (Riegel), the page's readiness verdict for today with its
inputs (readiness), and today's fitness, fatigue and form (fitnessFatigue); quote them
instead of your own sums. For another date range, use the activities: each one is on its own
line. A load is null (n/a) when the sessions have none; estimatedLoads counts the loads that
are estimates from heart rate. A week with partial: true starts before the period. Without HRV
and sleep data the digest has no readiness: give the verdict as n/a.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks | No | Weeks to cover, default 12, max 52 | |
| workouts | No | Also the laps of the runs of each run name that repeats, to compare a workout across weeks: the last 8 (downloaded once) and older ones whose .FIT file is saved; default false |