sorenlouv / fb-sleep-stats

Use Facebook to track your friends’ sleeping habits

Home Page:https://medium.com/@sqrendk/how-you-can-use-facebook-to-track-your-friends-sleeping-habits-505ace7fffb6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where are the sleep periods saved?

tensojka opened this issue · comments

I mean not the times when people were online but times between which is night and are more than 5 hours apart from each other. (You can see at a user page in the table)
Or is it generated on the fly? What code (file is enough, I can find it myself) does generate it then?

btw thank you guys a lot, I'm making a school project about sleep based on input from this!

As you know the timestamps for when the users are online is stored here:
./src/server/services/db.json

The table overview of the users' sleep cycle is generated on the fly from these timestamp. You can find the code here:
https://github.com/sqren/fb-sleep-stats/blob/master/src/browser/services/chart.js#L41