Log your sun exposure with an Apple Watch automation ⌚️

Shows a screenshot from the Shortcuts app with “Get Current Weather,” “Get the Device name,” an “If” action set to “If Device Name contains iPad”, then “Show Result,” otherwise “Log Health Sample” and then “Show Alert.”

Here’s a Personal Automation for Apple Watch that I’m running automatically at the start of my Walking workouts – Log UV index:

Gets the current weather at the current location and logs the UV index for the hour into the Health app, then displays it or speaks it back when run via Siri.

Includes “Get Device Name” and an “If” action to account for being run on the iPad, which does not have the Health app and would otherwise fail.

Shows a screenshot from the Shortcuts app with “Get Current Weather,” “Get the Device name,” an “If” action set to “If Device Name contains iPad”, then “Show Result,” otherwise “Log Health Sample” and then “Show Alert.”

I built this because I wanted to track the UV levels I am being exposed to on a daily basis, whether it be too much during the summer or not enough during the winter.

I use this inside a Personal Automation for Apple Watch set to the “Walking” workout type – the Run Shortcut action runs the Log UV Index when the trigger is met as my workout begins. That way, any time I go on an outdoor walk and I begin a Workout, this will log the sun exposure I’m getting into the Health app.

Shows a Personal Automation in Shortcuts set to Apple Watch walking workouts and including one action step for Run Shortcut set to “Log UV Index.”

Since having an Apple Watch and seeing the UV index on my watch faces, I have realized just how strong the afternoon sun in California can be in and, conversely, how little I was actually getting outside during the winter. I also included the “X out of 14” bit to help with the context, since I doubt many people know the bounds of UV index scores ?

Since I already use the Outdoor Walk feature every day, it’s an easy and automatic way to trigger a shortcut reliably – why not log the UV index every time? Some day in the future I might be able to make an interesting insight from having the data saved.

Plus, I may stack on other shortcuts using the “Run Shortcut” action, treating my daily walks as a human-powered hamster wheel for all my Shortcuts Automation needs.

Get the shortcut or view a full screenshot.

Then, to set up the trigger, do the following 10-step process:

  1. Open the Automations tab.
  2. Create a new automation by tapping the + in the top right.
  3. Select “Personal Automation.”
  4. Choose “Apple Watch Workout” under the Event label.
  5. Choose “Walking” from the Workout Type menu, then tap “Next.”
  6. Add “Run Shortcut” from the actions list.
  7. Tap in the empty “Shortcut” field and then choose Log UV Index.
  8. Tap “Done,” then toggle “Ask Before Running” off.
  9. Confirm the “Don’t Ask” option so it will run without asking each time the workout starts.
  10. Tap “Done” to finish the Automation.

Then, go for a walk, start a Workout, and look for the notification!

Posts You Might Like

Photograph of the App Shortcuts feature open on an iPhone, with a bookshelf in the background showing the corner of Shortcuts' original logo as the Workflow app as artwork on the shelf.
How Apple put its weight behind App Shortcuts in iOS 16
Apple released automatic App Shortcuts to power every action from your apps — here's how this new Shortcuts feature plays into its Siri strategy.
Smart Tech Today #1: Voice Assistants in Your Ears
How to create speaker groups for HomePod using Shortcuts
Opening directly into Watch Later on YouTube with a Siri Shortcut
How to use Siri Shortcuts to open directly into the Watch Later tab in the YouTube app for iOS