Here's a side project of mine to help me learn more about stats, using Fitbit's sleep tracking feature. Figured I'd use their API and do it for everyone else too. I don't save your data, I promise. The code's on Github. https://github.com/davemckenna01/sleepstats