Git Product home page Git Product logo

life's Introduction

Quantified Self project

Schema

Json objects, every object has a type. Other fields decend from the type.

Types

measure

A type of measure indicates a datapoint for a thing that varies over time. For example, weight, body-fat percentage.

A thing field is required, indicating what is measured. The thing strictly maps to information about units (for example)

A source field is optional, may indicate the device or system used to capture this measure.

A timestamp field is required, numeric UTC epoch time in seconds (eg, as output by date +%s)

A scope field is optional, this can be used to indicate the measure should be applied to that scope, for example "day". If I'm capturing my subjective experience of the last day, I'll specify a scope of "day".

A timezone field is optional, as a UTC offset in hours. For example, PDT would be -7. Timezone should be specified if using a scope of "day"

event

A type of event indicates a thing that happend, for example. I drank a cup of coffee, I urinated.

action is a required field. This is what happend. It is a strict mapping to to a table of actions. Examples may include "coffee" or "pee".

quantity is an optional field. Some actions may require it. Any action that requires a quantity defines it's units and meaning

duration is an optional field. Some actions may require it.

timestamp is a required field. UTC epoch seconds.

timezone is optional

update

A type of update reflects a state change. Examples might include: "I went to sleep", changing my state from awake to asleep. Or: "I started a low-carb diet".

timestamp required

property is required. This is the thing that has a changing state. It defines the units and meaning of the state field.

state is required, this must be a number. For binary states 1 means on and 0 means off. For example "property":"sleep", "state":0 means I woke up. It could also be the current dosage of a drug that is used regularly.

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.