Daily Steps to PostgreSQL
Insert step counts into a Postgres or MySQL database every night to build a personal health history.
Add a Webhook trigger node in your n8n workflow. Copy the generated webhook URL.
Open HC Webhook, add a new webhook endpoint, and paste the n8n URL. Select the health data types you want to forward.
Your n8n workflow fires on every sync. Add nodes to write to a database, send a Telegram message, or update a spreadsheet.
Insert step counts into a Postgres or MySQL database every night to build a personal health history.
Trigger a Telegram message when your sleep drops below 7 hours. Use n8n's IF node for the condition.
Stream heart rate data into InfluxDB and visualize trends in Grafana dashboards.
Aggregate a week of metrics and send yourself a formatted email digest every Sunday morning.
Append health metrics to a Google Sheet row-by-row. Track progress without a separate app.
Create a new Notion database entry for each sync. Build a searchable health journal automatically.
Each sync posts one JSON object to your endpoint containing all selected data types as arrays. Only types with new data are included.
{
"timestamp": "2026-01-15T23:59:59Z",
"app_version": "1.7.1",
"steps": [
{
"count": 8432,
"start_time": "2026-01-15T00:00:00Z",
"end_time": "2026-01-15T23:59:59Z"
}
],
"heart_rate": [
{ "bpm": 72, "time": "2026-01-15T08:30:00Z" },
{ "bpm": 68, "time": "2026-01-15T14:00:00Z" }
],
"sleep": [
{
"session_end_time": "2026-01-15T07:00:00Z",
"duration_seconds": 27000,
"stages": [
{ "stage": "deep", "start_time": "...", "end_time": "...", "duration_seconds": 5400 }
]
}
]
}