Skip to content
Calculates sleep debt using sleep records from the Fitbit API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tools
.gitignore
LICENSE
README.md
calculate_sleep_debt.py
calculate_sleep_debt_v1.py

README.md

Fitbit Tools

Sleep Debt

Calculates sleep debt using sleep records from the Fitbit API

Tools

File Description
calculate_sleep_debt.py Has a CLI interface. Observes time slept in the past 7 days and asks user for target sleep time. Then calculates difference between actual and goal values.

Todo

  • Create REST API for accessing sleep over a list of dates and calculating differences in goal total and real total sleep times
  • Create GUI in flask or something to easily view statistics in a web browser
  • Add more options for the date range to use
  • Allow for more precise goals (minute precision)

Web App Tools

(as of May 26, 2014)

You can’t perform that action at this time.