Skip to content
/ sleep Public

💤 A simple graphical visualisation of my sleep data over time from Pillow iOS.

Notifications You must be signed in to change notification settings

TomPlum/sleep

Repository files navigation

💤 Sleep Health Data Visualisation

A simple 2D line chart visualisation of my sleep data as recorded by my Apple Watch using Pillow for iOS.

Examples

Metrics

Sleep Quality (%)

quality.png

Deep Sleep (% of session duration)

deep.png

Light Sleep (% of session duration)

light.png

REM Sleep (% of session duration)

rem.png

Awake Time (% of session duration)

awake.png

Session Duration (% of 8 hours)

duration.png

To Do

  • Date parsing not working in Safari and breaks graph
  • Update screenshots in README
  • Update session breakdown to include data like the ios app does
  • Can we get heart rate data from the raw database export?
  • There are 58k sleep stage records mapped -> undefined, why?
  • If you change the date-range and the selected session is no longer in that range, what should happen?
  • Web worker makes about 800 cached resource requests while its loading
  • Looks like the line chart redraws from new each time now instead of tweening. Is it the loop?