Recued
Menu
← Back to recipes

Receive Apple Health readings

by recued-core v2 38 views

Use “Receive Apple Health readings” in Recued. Saves what an iPhone Shortcut posts through your webhook into Body signals, one row per day and measurement. It refuses a post without its Body, its day, or a number for a measurement it knows. The webhook needs a public HTTPS address for this server.

Complete workflow

Use Body signals from Apple Health to save what an iPhone Shortcut reads from Health, such as sleep, heart rate variability and steps, into Body signals on your server. The phone posts straight to your server through a webhook with a header token you choose, so the server needs a public HTTPS address.

You are viewing one recipe in this workflow. Installing it opens the complete pack so its other recipes and background automations arrive together.

Use “Receive Apple Health readings” in Recued. Saves what an iPhone Shortcut posts through your webhook into Body signals, one row per day and measurement. It refuses a post without its Body, its day, or a number for a measurement it knows. The webhook needs a public HTTPS address for this server.

apple-healthpack:body-signals-apple-healthhealthwebhook
by recued-core pinned v2
View pack details, dependencies, and permissions →
How it works 43 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (43 steps)
■ require_contract template
Generate text from a template
fail: context.caller.contract_id is_null
◆ webhook_event core.webhook.event.get
Get webhook event
■ sent default
Apply default
■ now_iso date_add
Add 0 minutes to
■ now date_parse
Parse now iso as a date
■ body_id trim
Trim whitespace from sent body id
■ body_json json_stringify
Apply json_stringify
■ body_is_text starts_with
Check if body json starts with "
■ body_ok all
Check if all conditions are true
fail: step.body_ok equal false
■ day trim
Trim whitespace from sent day
■ day_ms date_parse
Parse day as a date
■ day_again date_format
Format as a date
■ day_ok all
Check if all conditions are true
fail: step.day_ok equal false
■ entries to_list
Apply to_list
■ present filter
Filter by condition
■ present_count count
Count items in present
fail: step.present_count equal 0
■ known enrich_by
Apply enrich_by
■ unknown filter
Filter by condition
■ unknown_count count
Count items in unknown
fail: step.unknown_count greater 0
■ with_json map
Extract value from each item
■ with_number map
Extract value from each item
■ as_sent map
Extract from each item
■ as_number map
Extract from each item
■ checked enrich_by
Apply enrich_by
■ not_numbers filter
Filter by condition
■ not_number_count count
Count items in not numbers
fail: step.not_number_count greater 0
■ incoming map
Extract from each item
◆ existing_page recued-core.body-signals.daily_metric.search
Search daily metric on body signals
■ existing default
Apply default
■ existing_keyed map
Extract from each item
■ marked enrich_by
Apply enrich_by
■ changed filter
Filter by condition
■ with_revision enrich_by
Apply enrich_by
■ split partition
Apply partition
■ day_start date_add
Add 0 minutes to
■ new_ops map
Extract from each item
■ update_ops map
Extract from each item
■ ops flatten
Flatten nested lists in
■ ops_count count
Count items in ops
◆ save recued-core.body-signals.daily_metric.batch
Batch daily metric on body signals
skip: step.ops_count equal 0
■ saved_table to_table
Format results as a data table
■ unchanged_count math
Calculate: {{step.present_count}} - {{step.ops_count}}
■ summary template
Generate text from a template
▼
Output
text summary
table saved_table

Uses (3 operations)

Webhooks Get webhook event core.webhook.event.get
Pack operation Search daily metric on body signals recued-core.body-signals.daily_metric.search
Pack operation Batch daily metric on body signals recued-core.body-signals.daily_metric.batch

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Webhooks core.webhook.event.get read-only

2 more aren't listed here. You'll see them at install.

Data it touches

SurfacesWebhooks

About

Tags

apple-health pack:body-signals-apple-healthhealthapple-healthwebhook

Details

43 steps recipe_id: receive-body-metrics-apple-health