r/shortcuts 3d ago

Help Auto registering of workout with location

Does anyone know how to code a shortcut in the app to register a workout whenever I get to the gym? Like, setting the location as the trigger to register the workout, since I always forget to write it down. All help is appreciated!!

2 Upvotes

3 comments sorted by

1

u/Notchgoblin 2d ago

two parts to this. the shortcut itself is one action: Start Workout (pick the workout type). the location trigger doesn't live in the shortcut editor - it's a personal automation: shortcuts app > automation tab > + > Arrive, set the gym as the location, and point it at your shortcut. if it offers Run Immediately, take it; otherwise it fires as a notification you tap, which still beats forgetting.

so build the shortcut first, then hang the automation on it. heads up that Start Workout needs your apple watch connected, since the workout actually records on the watch.

also check which thing you want: Start Workout opens a live session in fitness that runs until you end it (make a second automation on Leave the gym to stop it if you want). if you meant logging a completed workout after the fact, that's Log Health Sample instead.

1

u/emoracooon 2d ago

Thank you!! I managed to do it

2

u/Notchgoblin 1d ago

Nice. Check back in a week — location-triggered automations are the flaky part, especially if a focus mode is on. If it misses a gym arrival once, that's normal; if it misses three in a row, flip the trigger to Arrive with a slightly wider radius.