Skip to content

karlicoss/emfitexport

Repository files navigation

Export your personal Emfit QS sleep data.

Setting up

  1. Clone recursively: git clone --recursive https://github.com/karlicoss/emfitexport
  2. pip3 install --user -r requirements.txt
  3. Note that unfortunately, the script needs your Emfit username and password, because the token expires after a few weeks.

Exporting

Usage:

Recommended: create secrets.py keeping your api parameters, e.g.:

username = "USERNAME"
password = "PASSWORD"

After that, use:

./export.py --secrets /path/to/secrets.py

That way you type less and have control over where you keep your plaintext secrets.

Alternatively, you can pass parameters directly, e.g.

./export.py --username <username> --password <password>

However, this is verbose and prone to leaking your keys/tokens/passwords in shell history.

I highly recommend checking exported files at least once just to make sure they contain everything you expect from your export. If not, please feel free to ask or raise an issue!

Releases

No releases published

Packages

No packages published