Query my last reported activity level?

24 views
Skip to first unread message

John Kramlich

unread,
Mar 18, 2010, 4:20:52 AM3/18/10
to FitBit Developers
I have submitted this question to the fitbit support email about a
week or two ago and was told it would be sent on to the developers.
However, I thought someone on the list may be able to point me in the
right direction.

I am using the fitbit to track my sleeping habits. I am attempting to
integrate it with my home automation code so that I can run my own
scripts when I go to sleep (e.g. set an alarm to go off 8 hours after
I fall asleep, run a backup, etc). It appears that while the fitbit
syncs to the base station at 15 minute intervals, it only logs a sleep
session when you have indicated both a start and stop time by pressing
the devices button before going to bed and again upon awaking. The
base station is within range of the fitbit and the attached computer
is awake and syncing data to the website while I sleep.

Does anyone know if it is possible for me to query my last reported
activity level; asleep, awake, very awake, etc. prior to indicating a
STOP?

If it is necessary for both a start and stop be indicated to register
a sleep session is is possible to query the site and return whether
the fitbit is currently in a START state?

I've combed through some of the xml files that populate the flash
charts but could not find the data I'm looking for. Hopefully, it
exists and I'm simply not looking in the right place.

mdgarf

unread,
Mar 23, 2010, 5:29:30 AM3/23/10
to FitBit Developers
There is probably no way how to identify sleep/activity only from body
movement, that is why manual indication is required.
But once in the sleep mode intradaySleep should start showing in sync
intervals??

On Mar 18, 9:20 am, John Kramlich <j...@manifestinteractive.com>
wrote:

John Kramlich

unread,
Mar 23, 2010, 11:17:24 PM3/23/10
to FitBit Developers
If I press the button to indicate a START, the fitbit will still sync
with the computer every 15 minutes. However, if I query the intraday
XML page here:

http://www.fitbit.com/graph/getGraphData?userId=229HGM&type=intradaySleep&arg=323130&period=1d&dataVersion=1651&version=amchart&dateTo=2010-03-22&chart_type=column2d

No intradaySleep records are found until I press STOP on the fitbit.
Once I press STOP, and the fitbit syncs to the basestation at the next
interval, the intraday xml file will return data.

I have not found another XML document that tells me if the fitbit is
currently in the in the middle of creating a sleep record or not, but
I'm hoping it exists somewhere.

Reply all
Reply to author
Forward
0 new messages