You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Fitbit . Sleep . LogSleep
Creates log entry for sleep.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo uses your OAuth credentials to authenticate your account with Fitbit, and creates log entry for sleep. The documentation for this Fitbit resource can be found here.
Keep in mind that it is not possible to create overlapping log entries or entries for time periods that have no associated data from tracker device.
Here's an example list of acceptable inputs:
ConsumerKey: {YOUR FITBIT CONSUMER KEY}
ConsumerSecret: {YOUR FITBIT CONSUMER SECRET}
AccessToken: {YOUR FITBIT ACCESS TOKEN}
AccessTokenSecret: {YOUR FITBIT TOKEN SECRET}
Date: 2011-06-16
Duration: 6000000
StartTime: 17:20
The following is a sample of the JSON information returned by this Choreo:
{ "sleep": { "isMainSleep": false, "logId": 29767, "efficiency": 98, "startTime": "2011-06-16T17:20:00.000", "duration": 6000000, "minutesToFallAsleep": 0, "minutesAsleep": 47, "minutesAwake": 24, "awakeningsCount": 10, "timeInBed": 100 } }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms