Weight trend
get_weight_trendDecrypt local body-weight records and compute trend: daily entries, weekly rate, averages, and goal distance. Includes coverage info for data history depth.
Instructions
Decrypt recent body-weight records locally and compute the trend.
Returns one entry per day (newest first, kilograms) plus latest/average/min/max,
the OLS weekly rate (kg/week), and β when goal_kg is given β the distance to goal.
Use owner prefix to filter by person β take it from
vaultbeat_status (owner_user_id_prefix is the paired user; server
0.7.1+), or vaultbeat_doctor for every owner present in the data.
Each record carries owner_user_id to identify whose data it is.
Carries a coverage block: quote coverage.days_covered (distinct days, not
the row count) and coverage.span_days beside any average or trend, and read
coverage.window_satisfied: false as a shorter history than asked, not as a
missing kind. π΄ Before saying how far back someone's data goes, read
coverage.more_available: true means this server can decrypt days OLDER
than first_day that your limit left behind β re-read with a larger
limit, or quote coverage.oldest_available as the real start of their
history. Never report a limit-shaped window as the extent of their data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | ||
| limit | No | ||
| owner | No | ||
| goal_kg | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||