Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fitbit oxygen saturation #364

Merged
merged 3 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions commons/connector/fitbit/fitbit_intraday_spo2.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"namespace": "org.radarcns.connector.fitbit",
"type": "record",
"name": "FitbitIntradaySpo2",
"doc": "Intra day spo2 data from fitbit device.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add more info from the webapi docs (esp regarding that spo2 is mainly calculated during sleep periods)

"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": "timeInterval", "type": "int", "doc": "Chronological window size (s)." },
{ "name": "spo2", "type": "float", "doc": "Percentage value of SpO2 calculated at the specific time."}
]
}
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
Loading