diff --git a/app/mifit_to_influxdb.py b/app/mifit_to_influxdb.py
--- a/app/mifit_to_influxdb.py
+++ b/app/mifit_to_influxdb.py
#
@@ -480,10 +480,30 @@ def get_blood_oxygen_data(auth_info, config):
#
rows.append(processODIEvent(blood))
#
elif blood['subType'] == "osa_event":
#
rows.append(processOSAEvent(blood))
#
+ elif blood['subType'] == "click":
#
+ rows.append(processBloodClickEvent(blood))
#
+def processBloodClickEvent(record):
#
+ ''' Process a "click" event
#
+ This appears to be the user manually triggering a blood
#
+ oxygen reading from the watch/band (utilities/zepp_to_influxdb#6)
#
+ extra = json.loads(record['extra'])
#
+ "timestamp": int(record['timestamp']) * 1000000, # Convert to nanos
#
+ "spo2_level" : float(extra['spo2']),
#
+ "blood_event" : "manual_read"
#
def processOSAEvent(record):
#
''' Process a possible Obstructive Sleep Apnea event