I wanted a way to track Oura data on the Day One journal app. This Python script is designed to fetch today's Oura data, insert it into a Google Sheets spreadsheet. Which is then connected with an IFTTT applet to seamlessly import the data into the Day One journal app.
The python script is only requesting today's readiness and sleep score. We will use gpread to place the data in a googlesheet. The 3 data points that are requested are: date, readiness, sleep
Before using the script, make sure you have the following:
-
- Obtain your Oura API access token from the Oura developer platform.
-
- Create an API key in the Google Cloud Console.
- Share your Google Sheets document with the associated email.
- Place JSON file in gspread folder
-
- Sign up for an IFTTT account
- Create an applet:
- Triggered when a new record is inserted into a google sheet.
- Day One journal entries when a new row is added to your Google Sheets.
-
Install the required Python libraries:
pip install requests gspread
-
Obtain the Python script from this repository.
-
Replace the placeholder values in the script:
- spread_sheet_name: title of the document
- work_sheet_name: name of the worksheet ex: Sheet1
-
Run script main.py