Summary
This documents provides an overview of health data recorded by Gadgetbridge using a Pebble smartwatch.
Preparation
Put the GadgetBridge database in the current folder, then knit the current .Rmd
file.
You should also set you timezone in the corresponding variable.
PEBBLE_HEALTH_ACTIVITY_SAMPLE
is a simple table containing steps and timestamps.
PEBBLE_HEALTH_ACTIVITY_OVERLAY
is more complex. It tracks activities (sleep, deep sleep, nap…) with a start and an end date. Note that date may overlap: you can be both in sleep and deep sleep.
I have decided that any event happening after 8pm is registered for the next day. For instance:
- if you go to bed at 9pm on Tuesday and wake up at 7am on Wednesday, the data will return 10 hours of sleep on Wednesday
- if you go to bed at 7pm on Tuesday, a part of your sleep will be added to Tuesday. The cutoff won’t exactly be 8pm, it will depend on the duration of the first sleep session recorded by you watch.
Visualisation
Steps
Distribution of steps

Distribution of steps per day of week

Number of steps per month

Average number of steps per hour of the day, year after year

Active time per week

Sleep
Distribution of sleep duration

Distribution of deep sleep duration

Distribution of sleep duration per day of week, year after year

Distribution of nap duration

Time of bed and waking up by year
