create_run_long_workout
Build a long run workout with a custom BPM heart-rate range, warmup, and cooldown, then upload it to Garmin Connect.
Instructions
Create a long run with custom BPM range and upload it to Garmin Connect.
Uses targetValueOne/Two for a custom HR band — the device displays "130-145 bpm" instead of "Zone X". This fixes the old encoder's silent-drop bug on heart.rate custom ranges.
Args: name: Workout name (e.g. "Long Run 90m") duration_min: Duration of the long run in minutes hr_min: Lower HR target in bpm (default 130) hr_max: Upper HR target in bpm (default 145) warmup_min: Warmup duration in minutes (default 10) cooldown_min: Cooldown duration in minutes (default 10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| hr_max | No | ||
| hr_min | No | ||
| warmup_min | No | ||
| cooldown_min | No | ||
| duration_min | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |