Caffeine is the number one cause of headaches. It causes the arteries to constrict, lowering blood flow to the brain.<p>Other than that, there's lots of things that can be measured.<p>1. Sleep.<p>Fit bit will work, but more importantly is a pulse oximiter that measures oxygen intake through the night. If you're not sleeping well, apnea may be causing your headaches. You would see this by an oxygen drop below 88. This will cause your heart to race as well throughout the night as it has to work harder to push oxygen through your body.<p>Also, it's worth noting that it's not heavyweight people that experience apnea. It can happen with anyone and with any weight.<p>Some watches have oximeters built in I believe. This really needs to be done for one night, and if something is wrong, you should go see a sleep doctor anyway.<p>2. Caffiene / Sugar intake<p>This can be simple script that when you drink caffiene/sugar you just run a script that logs the time/date and amount to a google doc. Also you can use this to track your headaches. If you get headaches during a particular time of day, then it could be intake related.<p>3. Exercise<p>Your cellphone/smart watch can measure steps, as can a fit/bit, etc. 10,000 steps a day is the recommended amount of exercise for people that don't get a lot of exercise in.<p>4. Feelings / Stress<p>So seratonin regulates your feelings. Ideally, if you're feeling sad, angry, or stressed, or down, you should feel those for a while and then your feelings should return to normal over time. If you're feeling emotionally bad all the time, you can get your seratonin level checked through a blood test.<p>5. Eye strain<p>60 hertz flickering lights, bad eyesight, are all causes of eye strain.<p>Here's an article which talks about detecting flicker.<p><a href="https://www.graybar.com/applications/lighting/blog/the-flicker-checker-on-smartphone" rel="nofollow">https://www.graybar.com/applications/lighting/blog/the-flick...</a><p>If you have a friend with a D850 camera, that camera can detect flicker and report it through the viewfinder.<p>6. Blood pressure.<p>A blood pressure cuff is a good thing here. $30 or so. Take your blood pressure once a day and record the readings. And take your blood pressure when the headaches arrive.<p>7. Salt intake.<p>So salt increases blood pressure, so one option is to watch how much salt you eat in your diet, and if you're salting food constantly, cut back. Or drink more water to help flush the salt out of your system.<p>There's a sodium tracker here in a pdf, but you could just as well make a google doc out of it:<p><a href="http://www.heart.org/idc/groups/heart-public/@wcm/@fc/documents/downloadable/ucm_448279.pdf" rel="nofollow">http://www.heart.org/idc/groups/heart-public/@wcm/@fc/docume...</a><p>8. Energy Drinks.<p>These should probably be avoided at all costs. But if you're hooked and feel like you need them, just record when you drink one. The key is not to make you feel bad about drinking them if your hooked, but making you aware that when you're drinking them.