Viewing a single comment thread. View all comments

Ryuzzaki OP t1_jckv8qo wrote

Hey folks!

I put together this minimal sleep calculator app after the one I was using (sleepyti.me) was bought out and turned into a giant ad.

If you've never used a sleep (cycle) calculator before, the idea is that sleep is cyclical, with the body going through lighter and deeper phases in roughly 90 minute cycles. This app suggests times to go to bed or to set your alarm, aiming to wake you up in a lighter sleep phase.

It's not quite an exact science, but I find it helpful (as someone who is more of a night owl than a morning person).

Appreciate any feedback and hopefully some of you find it useful!

Update (22/03): Thanks for all the feedback all! As per requests, the site now has a 24 hour mode for those of you who prefer it (toggle between 12/24 in the settings menu, cog icon on the top right). Also resolved some issues a few people were seeing on older browsers.

221

Tapemaster21 t1_jcm2tri wrote

Nice! I had noticed sleepytime has changed a bit, I don't use it super often, but I'll have to change my bookmark.

38

in2theriver t1_jcmpfkl wrote

I'd mention something about estimated times to fall asleep. It usually takes me about 30 to fall asleep, I know a lot of people do it in 15, and some almost instantly. At least if I know what you are assuming (it looks like 15?), I can easily adjust. Also the style is great, it looks awesome and I love how easy to use it is.

35

Ryuzzaki OP t1_jcmyr8p wrote

That's a good shout! You're right, it's currently working on a rough average of 15 mins to fall asleep, so I'll make that clear and look at making it a setting so different folks can adjust as necessary.

46

Indrigis t1_jcn4s2w wrote

Purely technical: Your site presents the "time to sleep" in the client's locale ("9 heures of sleep") but still shows the wake up time as AM/PM.

It would be nice if the wake up time followed the 12h/24h setting of the locale.

27

Ryuzzaki OP t1_jcn55g1 wrote

Yeah, definitely some improvement I can make here. I'll add proper 24 hour support and pull it from the locale + make it user selectable. Thanks for the feedback!

15

Wrenigade t1_jcn8lx4 wrote

Thanks, I used sleepyti.me a ton when I was in school and working full time, I noticed it got weird later on and I was dissapointed. These things are so useful when you need to basically minmax your sleep

8

Impregneerspuit t1_jco69iw wrote

Can we just copy all the good apps and make them free without ads? If we all chip in it should be possible. Think of all the tools our ancestors left us for free.

6

Snapdragon318 t1_jcnokfd wrote

Aw, that sucks about Sleepytime. I stopped using it a while ago but have actually been thinking of using it again after getting on meds for my fatigue.

Thanks for this. I'll have to look into it.

3

valoon4 t1_jcokgo3 wrote

Thanks, been searching for a replacement for some time now!

2

miarsk t1_jcomfaf wrote

Sorry to be that guy, but that's not how sleep works and your calculations are off and not usefull. It's better than not caring about sleep at all of course, and might help somebody who simply just doesn't sleep enough, so it's good you made it anyway.

For anyone having sleep issues, please read Why we sleep if you consider your problems mild, or visit sleep centre or consult your doctor if it's affecting your day-to-day functioning.

1

MyFacade t1_jcowm4y wrote

Rather than reading an entire book to understand your views, can you summarize things?

I would assume you are referring to variability in sleep patterns, but I don't know for sure since you just said, read a book. I think that's a big ask.

4