eight-health

Version, currently main branch1 version
  • main branchlatestMay 18, 2024

github.com/luisivan/eight_export

Exports your average HRV and BPM per day from Eight Sleep to a CSV file, which then you can easily import into Apple Health

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  eight-health:
    github: luisivan/eight_export
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.12.1
License
MIT
Author
Luis Cuende
Target
  • eight-health from src/eight-health.cr

Dependencies

Runtime Dependencies

  • crest*github: mamantoha/crest

README

eight_export

Exports your average HRV and BPM per day from Eight Sleep to a CSV file, which then you can easily import into Apple Health.

Installation

It's a Crystal program, so you just need to download and run the binary (eight_export). It's a macOS binary, binaries for other platforms haven't been compiled. Please read the code (it's really short) before running random binary programs in your machine.

Usage

Create .auth.yml like this:

email: your@email.com
password: securepassword123
timezone: America/Grenada

Then run the program like this:

eight_export -f 2024-01-01

Default file path is entries.csv and by default it looks for a date in the latest row and exports entries from that date. So, the first time you run it, you probably want to specify a date. From then onwards, it overwrites the file every time with the new entries.

The use case is to export data to a CSV in iCloud, and then import the CSV to Apple Health every day/week.

Usage: eight_export [arguments]
    -f DATE, --from=DATE             Export from date (in format %Y-%m-%d)
    -o FILE, --output=FILE           Export to file path
    -h, --help                       Show this help