Insomnia :-(
dwyl / sleep Goto Github PK
View Code? Open in Web Editor NEW🛌 MVP Sleep-tracking App with Step-by-Step Tutorial
🛌 MVP Sleep-tracking App with Step-by-Step Tutorial
I've suffered from insomnia for the largest part of my adult life, so I've read and researched a fair amount on sleep, meaning I know the basics.
I would like to read a sleep book (or readme) to deepen my knowledge on this subject that isn't all dross with one or two worthwhile pages (I've flicked through a number of sleep books that are mostly a combination of 'here is what we did when we were cavemen' and 'here are some elementary tips for what you need to do now').
Here's what I know about getting better sleep (in no particular order):
For myself personally I also know that the following hold true, but the jury is out on whether these hold true for everyone:
My question therefore is: once you know these basics, which book is recommended reading?
Need to investigate the format for sleep diary.
E.g: today:
Only fell asleep after 2am last night.
Woke up a few times in the night, because of noise. Got up 06:53 to go bathroom.
Trying to get a nap before now before the day starts.
Don’t feel at all rested.
Yesterday (Sunday) I made every effort to reset my circadian rhythm (after a couple of late nights - going to bed just after midnight - on Friday and Saturday I was feeling rather tired ...).
I avoided all processed foods (sugar!) and meat, stopped my green tea (caffeine) at 13:00, went for a 40min (high intensity) bike ride and then spent the evening closing off tasks from last week to ensure I had a fresh desk.
Last night I went to bed at 21:30 as per the recommendation in the "Why We Sleep" Book #33
I made a concerted effort during the day to stay extra hydrated, avoided sugar (completely) and tapered off my green tea . Only drank lemon water (squeezed lemon in tap water) followed by a camomile tea with fresh ginger.
I managed to fall asleep around 22:00 and rested well until I was needlessly woken up!
Sadly I was woken up at 03:00 by a "night owl" ... 😞
and despite trying to fall asleep again for over and hour I was not able to ...
so I got up and went to the lounge to read. (as recommended in all books on sleep I've read)
The reading light woke me up and I only felt sleep again at 06:00 ... (The time I should have been waking up!)
When I'm exhausted I lose all focus/motivation and my whole body hurts.
I know I cannot go back to bed and try and rest because I have meetings and doctors appointments today. Meetings I felt prepared for and was even looking forward to (getting out of the way early in the week so that I could focus on more creative work!)
I thought I was setting myself up for a great day and week by doing everything I could.
I even put out the clothes (and swimming gear) I wanted to use on Monday morning.
I feel this is more of a "communication problem" than anything else ...
What are the 7 most important factors in getting better quality sleep?
@iteles thoughts? can you improve on or add to this list?
Answer this question:
When I am fully rested, I feel like I have more willpower to resist distraction and am able to focus on my work. I can easily avoid eating processed-sugary-junk and stick to drinking water.
When I'm tired it's like I'm a different person. I resort to "sweet things" (the worst are chocolate or cookies) to boost my energy that I would otherwise be able to avoid. but I know it's a slippery slope and I will just be even more tired when the temporary sugar rush wares off (usually quite fast!). So I know if I'm craving sugary things, it's a clear sign that I need to sleep, not eat!
Listen to this podcast and write up notes!
https://itunes.apple.com/gb/podcast/the-tim-ferriss-show/id863897795?mt=2&i=1000392711677
Nick Littlehales is one of the foremost experts on Sleep.
He is not a "doctor" or "desk researcher", he is a "field expert" (pun intended)
and has collated the data from the world's highest performers.
His book "Sleep": https://www.amazon.co.uk/Sleep-Change-sleep-this-minute/dp/0241975972
Is a an excellent read on the subject. It took em a little longer than 90mins to read,
but it was definitely "worth it" for the insights.
I very much want to build my own "sleep kit" from scratch see: https://www.r90sleepkit.com
And do everything I can to improve the effectiveness/quality of my sleep.
This interview/podcast episode is a good intro/summary:
Dr. Chatterjee talks to elite sports sleep coach and author of the book Sleep: The Myth of 8 Hours, the Power of Naps… and the New Plan to Recharge Your Body and Mind about his unique journey to coaching world famous sports teams, on improving performance through sleep patterns and on daily actionable tips for everyone.
FirBit are still the most popular activity/sleep tracking wearables.
Which means we need to be testing the device(s) for dwyl/learn-apple-watch-development#35
And ...
@iteles please:
thanks! 👍
https://www.fastcompany.com/40491939/netflix-ceo-reed-hastings-sleep-is-our-competition
This in a nutshell is why you should DELETE
Netflix from any device you own.
Good summary with time marker references in the top comment.
@andrew recommended using https://gyrosco.pe/app/ looks pretty decent... 😉
People are usually actively looking for information on this topic because they already sleep badly and through experience, one of the hardest things about trying to incorporate the habits of better sleep is that there is a learning curve for your body.
Having a consistent bed time for example, often touted as one of the things that makes the most difference to getting better sleep, comes with a difficult adaptation period of insomnia and early wake-up times for most. This often wreaks havoc on people's next day, worsening the situation (that "I really should be asleep by now" thought whirring in your head) and killing motivation.
It dawned on my that the more chaotic nature of 'the day after' a bad night's sleep is particularly unproductive because there is no plan for dealing with it.
I propose therefore that a good addition to this repo would be a section on 'How to cope with a bad night's sleep', both whilst you're adjusting your habits and because in life, for one reason or another, these are inevitable.
The kind of thing to include here are doing your most important task first thing when you have energy, meditation, green tea (short term solutions should come with a disclaimer), nutrition, taking a shower, etc.
This Podcast is a good intro to Shawn Stevenson's research/findings on effective sleep.
Podcast EP without any Cookie Consent BS: https://soundcloud.com/lewishowes/shawn-stevenson
Show notes: https://lewishowes.com/podcast/shawn-stevenson
But only in certain areas... otherwise it's $300 or £200/year...
www.nhs.uk/Conditions/online-mental-health-services/Pages/sleepio.aspx
Who ever made this ad ... https://youtu.be/STCV_NBYqpU
https://www.youtube.com/watch?v=Yl0C3Hv0Hxk
I've taken some notes on what was particularly interesting to me:
Sleep stages
Sleep schedule consistency is the most important thing and you certainly don't need 8 hours, you need the right amount of time for your chronotype.
To figure out your ideal times to go to sleep: Count back 7.5 hours from your wake-up time (when your whole house wakes up) and see when you wake up naturally without an alarm. Adjust the sleep time based on your natural wake-up time.
Your chronotype can change over time but usually stabilises for the time between 22 and 50 years of age.
The biggest problem for sleep is people not being able to deal with the stress and not knowing how to slow down their brains
Cognitive behavioural therapy is therefore a great way to try treating this Psycho-physiological insomnia:
It's no secret that I'm terrible at sleeping.
if I don't fall asleep when I'm tired (e.g. I'm stressed about work) then I often stay awake till 3/4am ...
if I'm woken in the middle of the night e.g. 1am I often won't be able to go back to sleep and end up just reading/working instead.
Living @ 2 Palmer's Road has been atrocious for my sleep.
The intermittent traffic noise from Roman Road is loud even with fairly decent double glazing.
TODO: Upload screenshot of decibel meter reading
A bit research indicates that FitBits are still the best sleep trackers:
http://www.nosleeplessnights.com/best-sleep-tracker
I was briefly tempted to buy a New FitBit Flex 2 (Waterproof) Sleep & Fitness Tracker
see: https://www.fitbit.com/uk/flex2 on the basis that it's waterproof and has a much better battery life than Apple Watch ... but maybe I don't need to spend another $70 ...
this Apple Watch App appears to have good reviews: http://autosleep.tantsissa.com
Going to try it out today.
This appears to be a good starting point:
http://www.nosleeplessnights.com/how-do-sleep-trackers-work
How Do Sleep Trackers Work And Are They Reliable_.pdf (PDF in case the article disappears)
Please summarise your findings in the README of this repo. thanks! 🎉
(if the research get's "too big" we can always split it out into a separate file e.g: sleep-tracker-research.md
and link to it from the main README...)
It's free!
From reading Arianna Huffington's "Sleep Revolution" I noted that there are sleep-quality focussed hotels in several major cities. I want to invest the money to visit at least one of them to see for myself what they are like and if they are worth the cash for the improvement in sleep.
http://ariannahuffington.com/sleep-resources
Winter is here and heating has to be moderately low overnight or the air dries out and we all wake up with a headache.
I've been trying to make sure I switch off the lights by 22h30 every night (which I've so far done for 12 nights in a row) but am still battling the usual insomnia that keeps me awake past midnight. Result = I'm always exhausted when I wake up in the morning.
There are lots of things to be done for better sleep (as per this repo), but what can be done when you've already woken up and you're exhausted to help you cope? (Both practical tips and 'one must have a plan' type tips very welcome!)
We have been working remotely for the last month and a half.
During this time I have noticed that mattresses across Portugal appear to all be hard as rock and that a thin memory foam mattress topper makes a huge difference to my sleep quality. But the conversations I have had with people show that there are different preferences - some because they've never tried anything else and some because firm mattresses are their 'thing'.
So if we were to try to furnish a dwyl summer hq with beds, mattresses and pillows to promote optimal sleep for the most people (with the knowledge that one size does not fit all), what kinds would these be?
http://www.bbc.co.uk/programmes/b08q8p13
Watching this program now.
F.Lux is not Open and it appears that they have plans for a paid version:
https://forum.justgetflux.com/topic/28/open-source
We need to investigate if there is an Open Source alternative.
https://www.kickstarter.com/projects/respio/respio-sleep-coach-track-manage-improve-your-sleep/
I'm almost at the stage where I'm keen to get 'one of each' of the latest sleep gadgets (obviously within reason and only those backed by some scientific rigour) to test out in https://github.com/dwyl/home and see if any are helpful in our mission to improve people's sleep as the number 1 contributor to health and longevity.
But the challenge for me is data leakage. None of the apps, coaches, gadgets are even close to open source, so effectively we're just paying to give some startup a lot of important data. This particular app also gives you the option of granting the app control of your microphone 'to record snoring'. Big brother much?
This is, however, a problem with ALL current solutions and to do better, it might also behoove us to learn from some of these to see what works for people and what doesn't.
I'm opening this issue therefore to log the existence of this gadget and app, should we choose to test it out.
NB: Of course my assumption is that most reviews at this stage are paid for as the product doesn't really exist and reviews like this have zero additional information other than the product's own blurb: https://thegadgetflow.com/portfolio/biometric-sleep-coach/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.