Skip to content

Integrations

Kamila Součková edited this page Mar 18, 2018 · 3 revisions

Built-in Integrations

None so far, but stay tuned! I intend to integrate with at least the Oura ring and maybe Clue.

Integrate with a bunch of things via IFTTT

IFTTT is an easy way to integrate with a lot of stuff, such as smart assistants, email, or anything else. You can use the Webhook integration. Example setup:

"This" → Google Assistant

  • "What do you want to say?" → log $ #
  • "What's another way to say it?" → note $ #
  • "And another way?" → write down $ #
  • "What do you want the Assistant to say in response?" → Logged $ #.

"That" → Webhook

  • "URL" → https://username:[email protected]/track/
  • "Method" → POST
  • "Content Type" → text/plain
  • "Body" → {{TextField}} {{NumberField}}

Note that IFTTT is a 3rd party, so, obviously, data that you send through IFTTT is visible to IFTTT. Depending on your level of paranoia, you might want to avoid that or limit what you send through it.

Roll your own

It's just HTTP! Currently, the API is very simple:

  • GET /track/: Returns the last data in CSV format (date, label, number).
  • POST /track/ with body label (may contain spaces) number (i.e. just space-separated label and value): Saves the data, with the current timestamp

Right now headers such as Content-Type or Accept are ignored, but you should set them to text/plain (or at least to something other than application/json) for future compatibility, as JSON might come in the future.

Clone this wiki locally