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
, valuesleep
serial
: the watch's serial number
Fields:
total_sleep_min
deep_sleep_min
rem_sleep_min
slept_from
(timestamp)slept_to
(timestamp)
Sleep Stage
A recorded stage of sleep. Timestamp is the end of the stage.
Tags:
activity_type
, valuesleep_stage
sleep_type
: the sleep stage (light_sleep
,deep_sleep
,awake
orREM
)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_tracker
serial
: 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_steps
calories
distance_m
activity_duration_m
Activity Tracker
A per minute entry for each recorded activity
Tags:
activity_type_tracker
serial
: the watch's serial number
Fields:
current_activity_type
current_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_read
serial
Fields:
spo2_level
Blood Oxygen ODI Event
An event recording a suspect ODI drop
Tags:
blood_event
, valueodi
serial
Fields:
odi_read
score
Blood Oxygen OSA Event
An event recording a suspected Obstructive Sleep Apnea event
Tags:
blood_event
, valueosa
serial
Fields:
spo2_decrease
Daily Stress
A daily rolling stress indicator. Levels are out of 100
Tags:
stress
, valuedaily
serial
Fields:
minimum_stress_level
max_stress_level
mean_stress_level
relaxed_time_perc
normal_stress_time_perc
medium_stress_time_perc
high_stress_time_perc
Daily PAI stats
Fields:
scorable_activities
(integer)pai_score
(float)total_pai
(float)
Tags:
PAI_measure
:daily
PAI_bound
:daily
Heart Rate
A continual reading of the user's heart rate, measured once a minute.
Tags:
hr_measure
, valueperiodic
serial
Fields:
heart_rate
PAI rate measurements
Collected along with Personal Activity Intelligence scores (see Issue 7)
Field:
heart_rate
(integer)
Tags:
PAI_measure
:daily
hr_measure
:PAI
hr_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
:daily
PAI_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_time
serial
Fields:
current_stress_level