Node-RED nodes that gets information from a Fitbit record
Run the following command in the root directory of your Node-RED install
npm install node-red-node-fitbit
Two nodes that get reports from Fitbit.
Polls Fitbit for new data.
The generated messages are determined by the node type property as follows:
msg.payloadcontains an achievement message and the
msg.dataproperty contains the current activities data.
msg.payloadcontains sleep log data.
msg.payloadcontains the badge message and the
msg.dataproperty contains a single badge entry from the list returned by the badges API call.
Retrieves user data from Fitbit.
msg.payload is determined by the node type property as
msg.payloadcontains daily activities data.
msg.payloadcontains sleep log data for the main sleep and the
msg.dataproperty contains the complete sleep data result.
msg.payloadcontains data about badges awarded.
msg.date property may be set to an ISO 8601 format
date (e.g. 2014-09-25) to retrieve historical data for
activities and sleep log. If no date is supplied, then data for
today will be retrieved. In the case of sleep, this is the data
for the preceding sleep.