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

export all data from oura to a sqlite database

License

Notifications You must be signed in to change notification settings

mfa/oura-to-sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oura export to sqlite

Tests

About

Export all your data from oura into sqlite. The code is tested with a Gen2 oura ring account.

Authentication

This app needs a "Personal Access Token".
Setup yours here: https://cloud.ouraring.com/personal-access-tokens
Copy oura_to_sqlite/secrets.json.template to oura_to_sqlite/secrets.json.
And add your token to oura_to_sqlite/secrets.json

install

python setup.py install

Download everything

Either set token via cli:

oura-to-sqlite <db_path> --token <token>

or via environment:

export OURA_PAT=ABC...
oura-to-sqlute <db_path>

Use with Datasette

install Datasette:

pip install datasette

run with Datasette:

datasette my_oura.db

Thanks

Simon Willison for Datasette and sqlite-utils.