Skip to content

Instantly share code, notes, and snippets.

@ltddev
ltddev / FitbitSleepAnalyzerController.py
Created August 6, 2015 23:04
FitbitSleepAnalyzerController.py
# coding: utf-8
'''
FitbitSleepAnalyzer.py
Sheldon B. Wosnick
July, 2015
This script is a simple implentation of the Python Fitbit library, primarily in order to experiment
< with the api because my children bought me a Fitbit bracelet for fathers day and the device is reputed
to capture sleep data based all off its accelerometer. I wear this device all day and all night and
sync it regularly. Therefore I am able to perform a better analysis of the sleep data than Fitbit dooes.
@ltddev
ltddev / FitbitSleepAnalyzerController.py
Created August 6, 2015 19:23
FitbitSleepAnalyzerController.py
# coding: utf-8
'''
FitbitSleepAnalyzer.py
This script is a simple implentation of the Python Fitbit library, primarily in order to experiment
with the api because my children bought me a Fitbit bracelet for fathers day and the device is reputed
to capture sleep data based all off its accelerometer. I wear this device all day and all night and
sync it regularly. Therefore I am able to perform a better analysis of the sleep data than Fitbit dooes.
Currently Fitbit dashboard presents a monthly view of the data but beyond that it does not essentially
do anything else. I propose for this app a multi paga/View that uses some as yet conceived algorithm
@ltddev
ltddev / FitbitSleepAnalyzerController.py
Created July 31, 2015 22:57
FitbitSleepAnalyzerController.py
# coding: utf-8
'''
FitbitSleepAnalyzer.py
This script is a simple implentation of the Python Fitbit library, primarily in order to experiment
with the api because my children bought me a Fitbit bracelet for fathers day and the device is reputed
to capture sleep data based all off its accelerometer. I wear this device all day and all night and
sync it regularly. Therefore I am able to perform a better analysis of the sleep data than Fitbit dooes.
Currently Fitbit dashboard presents a monthly view of the data but beyond that it does not essentially
do anything else. I propose for this app a multi paga/View that uses some as yet conceived algorithm
@ltddev
ltddev / FitbitSleepAnalyzerController.py
Created July 31, 2015 22:22
FitbitSleepAnalyzerController.py
# coding: utf-8
'''
FitbitSleepAnalyzer.py
This script is a simple implentation of the Python Fitbit library, primarily in order to experiment
with the api because my children bought me a Fitbit bracelet for fathers day and the device is reputed
to capture sleep data based all off its accelerometer. I wear this device all day and all night and
sync it regularly. Therefore I am able to perform a better analysis of the sleep data than Fitbit dooes.
Currently Fitbit dashboard presents a monthly view of the data but beyond that it does not essentially
do anything else. I propose for this app a multi paga/View that uses some as yet conceived algorithm
@ltddev
ltddev / FitbitSleepAnalyzerStandAlone.py
Created July 31, 2015 22:21
FitbitSleepAnalyzerStandAlone.py
'''
FitbitSleepAnalyzerImpl.py (class)
This module is meant to utilize all of the capability of the exposed python sleep api to analyze sleep patterns perhaps above and beyond what fitbit itself does.
These are my current 4 keys:
consumer: "66febeae096fe9442d10dd3e92d54de2"
consumer secret: "b8b002ddf50dd3525f57b9a350051b97"
reource owner: resource_owner_key='20eb22828f652f729002ba0f855d07f3'
resource owner secret: resource_owner_secret='48eaa2e1e11ea551d1e3579c3274cccd')
# coding: utf-8
# Controller class for sleep analyzer
import ui, console,datetime
# Bring up UI and control its actions
class ViewController():
def __init__(self):
view = ui.load_view('FitbitSleepAnalyzerView')
# coding: utf-8
# Controller class for sleep analyzer
import ui, console,datetime
# Bring up UI and control its actions
class ViewController():
def __init__(self):
view = ui.load_view('FitbitSleepAnalyzerView')
# coding: utf-8
# Controller class for sleep analyzer
import ui, console,datetime
class ViewController():
def __init__(self):
view = ui.load_view('FitbitSleepAnalyzerView')
# Save off the address of the text area sonwe can poulate it with text
# coding: utf-8
# Controller class for sleep analyzer
import ui, console,datetime
class ViewController():
def __init__(self):
view = ui.load_view('FitbitSleepAnalyzerView')
view.present('popover')
self.dateSelected = datetime.date(2015,7, 1) # prime date before selected
@ltddev
ltddev / FitbitSleepAnalyzerController.py
Created July 29, 2015 02:55
FitbitSleepAnalyzerController.py
# coding: utf-8
# Controller class for sleep analyzer
import ui, console,datetime
class ViewController():
def __init__(self):
view = ui.load_view('FitbitSleepAnalyzerView')
view.present('popover')
self.dateSelected = datetime.date(2015,7, 1) # prime date before selected