FD - fitness data

FD: fitness data (activities data, total steps, calories…)

Syntax

fd(type, [start], [end], [activity/segment], [segment])

Arguments

  • type: Info type, see examples
  • start: Date to be used. The Date can be returned by some other function or you can use text. For text dates you can both set it statically using the format '1955y11M12d22h04m00s' to express year 1955, month 11, day 12 at 22:04:00 (all fields are optional), or use 'a/r' (add/remove) operators, so, for example 'a12m3s' will add 12 minutes and 3 secs to current date.
  • end: Date to be used. The Date can be returned by some other function or you can use text. For text dates you can both set it statically using the format '1955y11M12d22h04m00s' to express year 1955, month 11, day 12 at 22:04:00 (all fields are optional), or use 'a/r' (add/remove) operators, so, for example 'a12m3s' will add 12 minutes and 3 secs to current date.
  • activity/segment: Activity type, eg running, walking and so on (regexp are accepted), optionally you can put segment here
  • segment: Segment when filtering by activity (0 is the first segment the range, -1 the last)

Examples

FormulaDescription
$fd(steps)$Steps today
$fd(cals)$Active calories today
$fd(calsr, a0d, a0d)$Inactive calories today
$fd(dista)$$fd(distu)$Distance today (in local unit)
$fd(dist)$Distance today (in meters)
$tf(fd(time))$Active time today
$fd(steps, r1d, r1d)$Steps yesterday
$fd(count)$Number of activities today
Last activity: $fd(activity, r1d, r0d, -1)$ for $tf(fd(time, r1d, r0d, -1))$ $df("hh:mma", fd(start, r1d, r0d, -1))$Last activity in the last 2 days
$fd(steps, 1w) / mu(abs, (tf(1w, D) + 1))$Average steps per day this week
Active for $tf(fd(time), H)$ hours and $tf(fd(time), m)$ minutesActive time today in hours and minutes
HR max:$fd(hrmax)$, min: $fd(hrmin)$, avg: $fd(hravg)$Max, min and average HR today
HR:$fd(hrmax, r60s, r0s)$Current HR if being recorded
Sleep:$tf(fd(sleept, 22hr1d, r0h))$Sleep time last night
Elevation:$fd(elema)$$fd(elemu)$Elevation gained today in local unit
Floors:$fd(floors)$Floors climbed today



Privacy Policy