{
  "id": 23388044,
  "title": "How I built a UV exposure tracker with Apple Shortcuts in iPadOS 27",
  "url": "https://urgent.news/2026/12/04/how-i-built-a-uv-exposure-tracker-with-apple-shortcuts-in-ipados-27",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-04T03:59:22.000Z",
  "source": {
    "name": "AppleInsider",
    "slug": "appleinsider",
    "url": "https://appleinsider.com/articles/26/12/04/how-i-built-a-uv-exposure-tracker-with-apple-shortcuts-in-ipados-27"
  },
  "original_language": null,
  "account": "In this report, I detail how I developed a UV exposure tracker using Apple Shortcuts on iPadOS 27 and iPhone. The goal was to estimate cumulative radiation dose during outdoor activities, an issue that cannot be adequately addressed by simply checking the UV index alone.\n\nMy colleague Wesley Hilliard aimed to log the UV index in Apple Health for a variety of workouts, but the existing automation only recorded the current UV index without considering exposure duration. I wanted to incorporate duration into the calculations and also experiment with the new persistent storage capabilities introduced in iOS and iPadOS 27.\n\nThe resulting shortcut, called Track UV Exposure, saves individual UV index readings in HealthKit and maintains a history of estimated radiation doses within Shortcuts. No special equipment is required beyond an iPhone or iPad running the latest iOS versions. The shortcut asks for permission to access location data, write to HealthKit, and save exported files.\n\nUsing menu options, the user can start and end a session, designating when outdoor activity begins and ends. Upon completion, a notification displays the estimated radiation dose. Individual UV index readings are available in Apple Health under Other Data, and users can review completed sessions directly from the shortcut or export the records to a spreadsheet.\n\nThe UV index is a measure of the intensity of ultraviolet radiation, while SED (standard erythema dose) represents the cumulative radiation exposure over time. Converting the UV index to SED allows for comparison between different outdoor activities of varying lengths and UV index values.\n\nTo implement the estimation, two store content actions save the starting and ending values under separate keys. A log health sample action records the starting UV index and timestamp in Apple Health. After the end action, the shortcut checks if it has all necessary information and validates that the ending time comes after the starting time.\n\nThe duration is calculated in hours by finding the time between dates and dividing by 3,600 seconds. The average UV index is then calculated by averaging the start and end values. Finally, the estimated radiation dose is calculated using the formula: average UV index multiplied by duration in hours multiplied by 0.9. This provides an estimate of the cumulative radiation exposure during the activity.",
  "summary": "Knowing the UV index before heading outside only tells you part of the story. I built a shortcut for iPhone and iPad that estimates how much UV radiation exposure adds up during outdoor activities. Pay attention to the UV Index My colleague Wesley Hilliard has been on a mission to fill as many data categories in Apple Health as possible using apps and automation. Logging the UV index proved…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}