Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
/ oura-to-runalyze Public archive

Sync health data from Oura to Runalyze - Archived as Runalyze now has direct support

License

Notifications You must be signed in to change notification settings

lildude/oura-to-runalyze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This project has been archived as Runalyze now has a direct Oura integration


Oura to Runalyze

Tests Status Badge

Sync health data from Oura to Runalyze. Currently only sleep data and resting heart rate as this normally lowest during sleep. The Runalyze Sleep Quality metric is calculated by taking the Oura Sleep Score, dividing by 10 and rounding down.

Installation

Download a binary from the releases page, or run go get github.com/lildude/oura-to-runalyze.

Usage

Obtain an access token from both Oura and Runalyze and set OURA_ACCESS_TOKEN and RUNALYZE_ACCESS_TOKEN environment variables respectively.

$ export OURA_ACCESS_TOKEN="secret1" 
$ export RUNALYZE_ACCESS_TOKEN="secret2"

You can also set these via a .env file in the current directory.

You're now ready to start synchronising.

Usage:
  -start string
        Start date in the format: YYYY-MM-DD. If not provided, defaults to Oura's default of one week ago.
  -end string
        End date in the form: YYYY-MM-DD. If not provided, defaults to Oura's default of today.
  -yesterday
        Use yesterday's date as the start date.
  -version
        Print the version and exit.

Sync the last week using Oura's defaults:

$ oura-to-runalyze
Successfully sync'd to Runalyze
$

Sync just last night's sleep:

$ oura-to-runalyze -yesterday
Successfully sync'd to Runalyze
$

Sync a range of dates:

$ oura-to-runalyze -start 2020-01-01 -end 2020-03-31
Successfully sync'd to Runalyze
$

Releasing

This project uses GoReleaser via GitHub Actions to make the releases quick and easy. When I'm ready for a new release, I push a new tag and the workflow takes care of things.

About

Sync health data from Oura to Runalyze - Archived as Runalyze now has direct support

Topics

Resources

License

Stars

Watchers

Forks

Languages