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(cals, a0d, a0d, inactive)$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(cals, a0d, a0d, walk)$Walking calories today
$tf(fd(time, a0d, a0d, walk))$Walking time today
$fd(count)$Number of activity segments today
Last activity: $fd(activity, r1d, r0d, -1)$ for $tf(fd(time, r1d, r0d, -1))$ $df("hh:mma", fd(start, r1d, r0d, -1))$Last active activity segment in the last 2 days
$fd(steps, 1w) / mu(abs, (tf(1w, D) + 1))$Average steps per day this week
$tf(fd(time, r1d, r1d, in_vehicle))$Time spent in a vehicle yesterday
Active for $tf(fd(time), H)$ hours and $tf(fd(time), m)$ minutesActive time today in hours and minutes



Privacy Policy