/oura-exporter

Prometheus(OpenMetrics) exporter for Oura Ring

Primary LanguagePythonMIT LicenseMIT

oura-exporter

Badge publish

Prometheus(OpenMetrics) exporter for Oura Ring.

Usage

Registration

At first, create Oura Personal Access Tokens(PATs) for yours.

And check your local TZ identifier.

Start(Docker)

The simplest way to use it is with Docker.

docker run -p 8000:8000 \
     -e OURA_ACCESS_TOKEN="youraccesstokenhere" \
     -e TZ="Asia/Tokyo" \
    legnoh/oura-exporter

Start(source)

Alternatively, it can be started from the source.

# clone
git clone https://github.com/legnoh/oura-exporter.git && cd oura-exporter
pipenv install

# prepare .env file for your apps
cat << EOS > .env
OURA_ACCESS_TOKEN="youraccesstokenhere"
TZ="Asia/Tokyo"
EOS

# run exporter
pipenv run main

Metrics

please check metrics.yml or example

Disclaim

  • This script is NOT authorized by Oura.
    • We are not responsible for any damages caused by using this script.
  • This script is not intended to overload these sites or services.
    • When using this script, please keep your request frequency within a sensible range.