Skip to content

Streamlit App to help you cross analyze your Levels glucose and Whoop sleep data.

License

Notifications You must be signed in to change notification settings

jbpauly/glucose-sleep-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabolic Health and Lifestyle Metrics Cross Analysis

As you actively work on your metabolic fitness, it's important to understand the impact of environmental variables, not just nutrition.

This application allows you to upload your Levels, Zero Fasting, and Whoop data and analyze the results for yourself.

Try it out!

  1. Log your Levels Metabolic Scores and Save as a CSV (view template)
    • Two Columns: Date, Metabolic Score
    • Descending by date (oldest to newest)
    • Save as a CSV file
  2. Export Zero Fasting Log and re-save as a CSV
    • In app instructions
      • Me (lower right) -> Settings (upper right) -> My Data -> Export Data
    • Check if file exports as a TXT or CSV file and re-save as a CSV if necessary
  3. Download your Whoop sleep summary data
    • Follow the How To video
    • Download only the 'Whoop' sheet as a CSV
  4. Upload your data

Learn more about the Whoop api

Thank you Pelo-Tech and DovOps for creating the api and GUI!

How to run in your own environment

The app requires Python 3.7. Create a new virtual environment, then run:

git clone https://github.com/jbpauly/glucose-sleep-analysis.git
cd glucose-sleep-analysis
pip install -r requirements.txt
cd src
streamlit run main.py

Roadmap

  1. Close out code coverage with tests
  2. Enhance Zero module to work with 24+ hour long fasts
  3. Add 'data pruning' functionality
  4. Add confidence intervals to regression lines
  5. Create a 'binning' function and functionality to bin any continuous variable
  6. Integrate with whoop-api-spec so users can request Whoop sleep data directly from app instead using the google-sheet GUI
  7. Add functionality with other datasets / sources (if requested).

Questions, comments, or suggestions?

This app new and will likely break at some point. It has not be tested with a large number of unique datasets, Please let me know if you run into problems by submitting an Issue

About

Streamlit App to help you cross analyze your Levels glucose and Whoop sleep data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages