Well, here's one solution that may solve a couple of your problems. Redo your migraine log such that you can have individual logins/tracking, then wrap a social community around it. Crowd source (to use a buzzword) your migraine issue and figure out a way to both help others and have others help you.
There will be no simple way to analyze your data other than to sit down and look for patterns. Play with different ways of looking it it.
Heck, it COULD be related to your not eating enough. Low blood sugar is one headache trigger (for me), and chronic low blood sugar plus smoking could EASILY be a problem.
Looking down thread it very well could ALSO be a mold or other environmental issues.
If you're planning on moving out of the country in a year or two, what is the possibility of you just going to live with your mom or sister until your visa/travel arrangements are fixed? This may alleviate your financial problems (you can always pay your mom/sister "rent" but it will be less than you are paying now), get you into a cleaner place (which might clear up some of your health issues) and get you to a point where you focus on quitting the smokes (which is about the toughest thing I've ever done, to include US Marine Corps boot camp and a year in Baghdad).
An exercise:
Name something that you do not do but should/wish you did/are told you ought, or that you do less than is normally recommended. (For instance, "exercise" or "eat vegetables".)
Make an exhaustive list of your sufficient conditions for avoiding this thing. (If you suspect that your list may be non-exhaustive, mention that in your comment.)
Precommit that: If someone comes up with a way to do the thing which doesn't have any of your listed problems, you will at least try it. It counts if you come up with this response yourself upon making your list.
(Based on: Is That Your True Rejection?)
Edit to add: Kindly stick to the spirit of the exercise; if you have no advice in line with the exercise, this is not the place to offer it. Do not drift into confrontational or abusive demands that people adjust their restrictions to suit your cached suggestion, and do not offer unsolicited other-optimizing.
To alleviate crowding, Armok_GoB has created a second thread for this challenge.