Hacker News new | ask | show | jobs
by godot 3027 days ago
I'm very prone to headaches and migraines as well and after a couple of decades of observations, I've nailed down the root causes pretty well for myself. This doesn't answer your question for logging data but it's some things you could look into.

1. Hydration - a main contributing factor in almost every episode of migraine I get. If I go for prolonged periods without water (as in, a couple of hours), it can start. This has really only gotten worse/more prone as I got older. I need to keep drinking water more frequently than when I was younger to keep off migraines. The funny thing is, if I want to sleep in on the weekends, I have to make sure to drink some water when I wake up at 7~8, before I go back to sleep. Otherwise, I wake up after sleeping for 10 hours with a migraine.

2. Sleep time - as I got older, I became intolerant of "elastic" sleep hours. I pretty much have to keep to a fairly consistent sleep schedule daily (varying no more than an hour off a day). If I go to bed an hour or 1.5 hours late for a day, my chances of getting a migraine the next day is very high. (could be reduced if I drink even more water than usual that night; see previous point)

3. Screen color - Use an automatic blue light reducer software like f.lux for your OS, whichever you use. Even better, install it on mobile too. This made a noticeable difference when I first started using it.

4. Screen use when unfocused - this one is funny and might be unique to myself. I find that when I'm bored and just surfing the web (like reading HN right now), I start getting migraines after a longer period of it (an hour or two). If I'm actually working, writing code, etc. I have no problems looking at the screen for hours on end. I don't really know why this is, but I have pretty much confirmed this to be the case myself.

5. Gaming - less of a factor nowadays simply because I don't game much anymore. I used to play games like SC Brood War, Diablo 2, WoW for hours on end and be OK when I was younger. Now, if I play Starcraft 2 or HotS for more than an hour, the migraines start.