Skip to content

stephaneseng/mi-band-sleep-data-plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mi-band-sleep-data-plotter

Plot the sleep data exported by the Mi Fit application (tested with version 4.0.7).

The main motivation for developing this tool is to have a simple way to analyse workdays sleep data, by offering the possibility to exclude weekends sleep data.

Output example

Using the pseudo-randomly generated data in example.csv, the tool generates the following plot:

(venv) $ python main.py --after 2018-09-01 --before 2018-11-01 --exclude-weekends docs/example.csv docs/example.png

example.png

Installation

0. Requirements

  • Python (tested with version 3.6)

1. Install

(venv) $ pip install -r requirements.txt

Usage

(venv) $ python main.py $SLEEP_DATA_CSV_FILE_PATH $OUTPUT_PNG_FILE_PATH [--after YYYY-MM-DD] [--before YYYY-MM-DD] [--exclude-weekends]

About

Plot the sleep data exported by the Mi Fit application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages