Skip to content

Commit

Permalink
Merge pull request #358 from RADAR-base/fitbit-BR-skinTemp
Browse files Browse the repository at this point in the history
Fitbit Intraday Breathing Rate & Skin Temperature
  • Loading branch information
peyman-mohtashami authored Nov 1, 2023
2 parents e2d9b19 + 18cd038 commit 30f1201
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
14 changes: 14 additions & 0 deletions commons/connector/fitbit/fitbit_breathing_rate.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"namespace": "org.radarcns.connector.fitbit",
"type": "record",
"name": "FitbitBreathingRate",
"doc": "Breathing rate (BR) data from fitbit device. BR measures the average breathing rate throughout the day and categories your breathing rate by sleep stage. Sleep stages vary between light sleep, deep sleep, REM sleep, and full sleep.",
"fields": [
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Time that the data was received from the Fitbit API (seconds since the Unix Epoch)." },
{ "name": "lightSleep", "type": "float", "doc": "Average number of breaths taken per minute when the user was in light sleep."},
{ "name": "deepSleep", "type": "float", "doc": "Average number of breaths taken per minute when the user was in deep sleep."},
{ "name": "remSleep", "type": "float", "doc": "Average number of breaths taken per minute when the user was in rem sleep."},
{ "name": "fullSleep", "type": "float", "doc": "Average number of breaths taken per minute throughout the entire period of sleep which you can compare to the sleep stage-specific measurements."}
]
}
12 changes: 12 additions & 0 deletions commons/connector/fitbit/fitbit_skin_temperature.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"namespace": "org.radarcns.connector.fitbit",
"type": "record",
"name": "FitbitSkinTemperature",
"doc": "Skin temperature (tempSkin) data from fitbit device. tempSkin measures skin temperature data for a date range. It only returns a value for dates on which the Fitbit device was able to record Temperature (skin) data and the maximum date range cannot exceed 30 days. Temperature (Skin) data applies specifically to a user’s “main sleep,” which is the longest single period of time asleep on a given date.",
"fields": [
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Time that the data was received from the Fitbit API (seconds since the Unix Epoch)." },
{ "name": "relativeTemperature", "type": "float", "doc": "The user's average temperature during a period of sleep. It is displayed to the user as a delta from their baseline temperature in degrees Celsius."},
{ "name": "logType", "type": { "name": "FitbitSkinTemperatureLogType", "type": "enum", "symbols": ["DEDICATED_TEMP_SENSOR", "OTHER_SENSORS", "UNKNOWN"], "doc": "The type of skin temperature log created."}, "doc": "The type of skin temperature log created.", "default": "UNKNOWN"}
]
}
2 changes: 1 addition & 1 deletion java-sdk/buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object Versions {
const val project = "0.8.6-SNAPSHOT"
const val project = "0.8.7-SNAPSHOT"

const val kotlin = "1.9.10"
const val java = 17
Expand Down
8 changes: 7 additions & 1 deletion specifications/connector/radar-fitbit-connector.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: RADAR-FITBIT-CONNECTOR
vendor: RADAR-base
model: radar-connect-fitbit-source
version: 0.2.2
version: 0.2.3
doc: Spec for Radar fitbit connector. Schemas should be registered in the connector.
data:
- doc: The intraday time series for heart rate.
Expand Down Expand Up @@ -31,3 +31,9 @@ data:
- doc: Intraday heart rate variability
topic: connect_fitbit_intraday_heart_rate_variability
value_schema: .connector.fitbit.FitbitIntradayHeartRateVariability
- doc: Breathing rate
topic: connect_fitbit_breathing_rate
value_schema: .connector.fitbit.FitbitBreathingRate
- doc: Skin temperature
topic: connect_fitbit_skin_temperature
value_schema: .connector.fitbit.FitbitSkinTemperature

0 comments on commit 30f1201

Please sign in to comment.