A R notebook to analyze your sleep and step data recorded by a Pebble watch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

3 years ago
# PebbleHealthStats
3 years ago
## Introduction and requirements
A R notebook to analyze your sleep and step data recorded by a *Pebble* watch
You need to be using [Gadgetbridge](https://gadgetbridge.org/) with your *Pebble* to have access to your data. Health data is then stored in a *SQLite* database.
## Installation
The easiest way to use this projet is to:
* download [RStudio](https://www.rstudio.com/products/rstudio/download/#download)
3 years ago
* download and open [pebble_health_stats.Rmd](https://djib.fr/djib/PebbleHealthStats/src/branch/master/pebble_health_stats.Rmd)
* and press *Knit* on the top left of the editor.
3 years ago
You will need to have [R](https://www.r-project.org/) running on you PC as well as the package [Tidyverse](https://www.tidyverse.org/).
On a [Debian](https://www.debian.org/) machine, all you need to do is:
```bash
3 years ago
sudo apt install r-cran-tidyverse
```
## Demo
A demo of the output is available [here](https://demos.djib.fr/pebblehealthstats/).
3 years ago
You can also download and open [pebble_health_stats.html](https://djib.fr/djib/PebbleHealthStats/raw/branch/master/pebble_health_stats.html).
3 years ago
## If you want to go further
This program only works with *Pebble* watches but is probably easy to adapt for a *Mi Band*, *Amazfit*, or any other watch compatible with *Gadgetbridge*.
You can also adapt the code to add new visualisations, or explore data (heart rate…).