<aside> <img src="/icons/link_purple.svg" alt="/icons/link_purple.svg" width="40px" /> bit.ly/daily-coaching

</aside>

Daily Oura Ring Data Analysis with Python and AI

As part of my daily flow, I’ve developed a Python script that automates the retrieval and analysis of Oura Ring data. Each morning, this tool connects to the Oura Ring API to download key health metrics like sleep quality, heart rate, and activity levels from the previous day. I then use OpenAI or Claude to coach me on my tasks and make personalized recommendations for health and productivity improvements.

Running this Google Colab (“Run All”) with your Oura Ring API key and an OpenAI API key will result in downloading a file with all of your raw data from the last day, as well as short summary reports on each key health area.

Google Colab

Prompt:

<aside> <img src="/icons/science_purple.svg" alt="/icons/science_purple.svg" width="40px" /> "Here's my latest data from the Oura ring, including sleep, heart rate, workout, and readiness metrics. Please analyze this data and generate a comprehensive report. Include an executive summary, highest priority follow-ups using the Eisenhower Matrix, and any necessary adjustments to my daily routine to optimize my sleep, stress management, physical activity, and overall health.”

</aside>

Report:

<aside> <img src="/icons/document_purple.svg" alt="/icons/document_purple.svg" width="40px" /> Executive Summary

The analysis of your sleep, heart rate, workout, and readiness data for Wednesday, August 28, 2024, indicates generally good sleep quality with some restlessness, stable heart rate patterns, consistent workouts, and a strong readiness score of 80. To enhance your overall well-being, focus on improving sleep efficiency, maintaining regular exercise, managing stress, and ensuring adequate recovery.

Highest Priority Follow-ups (Eisenhower Matrix - Urgent & Important):

  1. Improve Sleep Efficiency:
  2. Monitor Heart Rate and Stress Levels:
  3. Maintain and Enhance Physical Activity:
  4. Daily Schedule Adjustments:

Implementing these prioritized actions will help optimize your daily routine, improve sleep quality, manage stress effectively, and support your overall health and readiness.

</aside>