As of v0.3, the script creates quite a few more fields than I'd originally anticipated, so detailing them here:
The default measurement is zepp, though this can be changed via environment variable INFLUXDB_MEASUREMENT
Daily General Stats
Tags:
serial: the watch's serial number
Fields:
recorded_sleep_stages: the number of sleep stages recorded that nightrecorded_{$stage}_events: the number of recorded instances of that sleep stage that dayrecorded_activities: the number of recorded activities that dayrecorded_{$activity_type}_events: the number of recorded activities of that type that daylast_sync: When the watch last synced with the APIstep_goal: The configured daily step goal
Daily Sleep Stats
Tags:
activity_type, valuesleepserial: the watch's serial number
Fields:
total_sleep_mindeep_sleep_minrem_sleep_minslept_from(timestamp)slept_to(timestamp)
Sleep Stage
A recorded stage of sleep. Timestamp is the end of the stage.
Tags:
activity_type, valuesleep_stagesleep_type: the sleep stage (light_sleep,deep_sleep,awakeorREM)serial: the watch's serial number
Fields:
total_sleep_min
Sleep State Tracker
A per minute entry generated for each recorded stage
Tags:
activity_type, valuesleep_stage_trackerserial: the watch's serial number
Fields:
current_sleep_state: string representation of the sleep typecurrent_sleep_state_int: Zepp's integer representation of the sleep type
Daily Step Data
Cumulative counters for the day
Tags:
activity_type: stepsserial: the watch's serial number
Fields:
total_steps: Total steps recorded (so far) that daycalories: Estimated total calories (so far) burned that daydistance_m: Distance (in meters) covered that day
Activities
Activities that the watch/band has detected and recorded
Tags:
activity_type: activity typeserial: the watch's serial number
Fields:
total_stepscaloriesdistance_mactivity_duration_m
Activity Tracker
A per minute entry for each recorded activity
Tags:
activity_type_trackerserial: the watch's serial number
Fields:
current_activity_typecurrent_activity_type_int: Zepp's integer representation of the activity type
Blood Oxygen Click Event
An event indicating that the user clicked measure on the watch/band
Tags:
blood_event, valuemanual_readserial
Fields:
spo2_level
Blood Oxygen ODI Event
An event recording a suspect ODI drop
Tags:
blood_event, valueodiserial
Fields:
odi_readscore
Blood Oxygen OSA Event
An event recording a suspected Obstructive Sleep Apnea event
Tags:
blood_event, valueosaserial
Fields:
spo2_decrease
Daily Stress
A daily rolling stress indicator. Levels are out of 100
Tags:
stress, valuedailyserial
Fields:
minimum_stress_levelmax_stress_levelmean_stress_levelrelaxed_time_percnormal_stress_time_percmedium_stress_time_perchigh_stress_time_perc
Daily PAI stats
Fields:
scorable_activities(integer)pai_score(float)total_pai(float)
Tags:
PAI_measure:dailyPAI_bound:daily
Heart Rate
A continual reading of the user's heart rate, measured once a minute.
Tags:
hr_measure, valueperiodicserial
Fields:
heart_rate
PAI rate measurements
Collected along with Personal Activity Intelligence scores (see Issue 7)
Field:
heart_rate(integer)
Tags:
PAI_measure:dailyhr_measure:PAIhr_state(one ofmax,resting) Tags
PAI scores, durations and bounds
split across series
Fields
activity_duration_m(integer)pai_score_bound(integer)pai_score(float)
Tags:
PAI_measure:dailyPAI_bound: (one oflow,medium,high)
Point-in-time Stress
The watch periodically reads stress through the day. Each point represents a reading.
level is out of 100
Tags:
stress, valuepoint_in_timeserial
Fields:
current_stress_level