Skip to content

Commit

Permalink
Merge pull request #364 from RADAR-base/add-fitbit-spo2
Browse files Browse the repository at this point in the history
Add Fitbit oxygen saturation
  • Loading branch information
mpgxvii authored Mar 6, 2024
2 parents ca8c75c + d96dc26 commit 086b7b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions commons/connector/fitbit/fitbit_intraday_spo2.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"namespace": "org.radarcns.connector.fitbit",
"type": "record",
"name": "FitbitIntradaySpo2",
"doc": "Intra day spo2 data from fitbit device.",
"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": "spo2", "type": "float", "doc": "Percentage value of SpO2 in the bloodstream. SpO2 data is collected when the user is in an extended period of sleep (at least 3 hours of quality sleep). Spo2 values are calculated on a 5-minute exponentially-moving average and provided at the end of a period of sleep."}
]
}
3 changes: 3 additions & 0 deletions specifications/connector/radar-fitbit-connector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ data:
- doc: Skin temperature
topic: connect_fitbit_skin_temperature
value_schema: .connector.fitbit.FitbitSkinTemperature
- doc: Spo2 or Blood oxygen saturation
topic: connect_fitbit_intraday_spo2
value_schema: .connector.fitbit.FitbitIntradaySpo2

0 comments on commit 086b7b6

Please sign in to comment.