This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder