Giter Site home page Giter Site logo

nephelai's Introduction

Nephelai - Self Quantification Aggregator

The Νεφελαι were the Okeanid-nymphs of clouds and rain.

This repo aims to collect a user's self quantification data into single useful places, like storing heart rate, steps taken, and sleep data, in Google Fitness, and also doing useful aggregations.

NB: This is a hobby project, not properly tested, nor cleanly implemented.

Background

I am using Google Data Studios to make visualization and dashboard of my Quantified Self data. Over the years, I have used different systems, and mainly different fitness trackers. I am tranferring my data from Fitbit, Garmin, and Polar, into Google Fitness, to have it in a single place.

I will also add a RescueTime connector for Google Data Studios.

Current state

There are hackish scripts to transfer heart rate data from Fitbit and Garmin to Google Fitness, but currently you need to change user ID etc in the scripts themselves.

Planned structure

Local storage backend: EventStore

Setup and use

  • Setup EventStore.
  • Set ENV
    • COOKIE_SECRET
    • FITBIT_CLIENTID and FITBIT_SECRET
    • GOOGLE_CLIENTID and GOOGLE_SECRET
    • SERVER_HOST, SERVER_PORT, SERVER_PROTOCOL (for external facing app)
    • ES_ENDPOINT, ES_USER, ES_PASSWORD for EventStore server
  • yarn

Start web (for user creation and authorization)

yarn start

Tasks (to eventually be triggered by cron or queue)

  • Heart Rate from Fitbit to GoogleFit: node fitbit2google.js
  • Heart Rate from Garmin to GoogleFit: node garmin2google.js (requires garmin user to be public)

Caverats

  • Garmin import only works for public data, it uses no authentication.
  • There is no automatic setup of Google Fitness datasource, see commented bit in garmin2google.

Todo

  • Add EventStore docker setup script?
  • Add RunKeeper auth
  • Add Polar auth
  • Import runkeeper activity
  • Import polar sleep
  • Import garmin steps
  • Add input for garmin user id

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.