this post was submitted on 14 Aug 2023
35 points (100.0% liked)

Migraine

233 readers
4 users here now

Community for support, conversation, and healing among migraine sufferers.

founded 2 years ago
MODERATORS
 

I've been logging my headaches since I started taking Eletriptan in 2020.

I've had an average of 10 days per month with headaches, and 4 days per month with migraines.

So far I've identified stress and insufficient sleep as contributing factors.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

It's a bit hacked together.

I found a Google charts API to draw the calendar using html and JavaScript (I mostly copied the script).

I've been writing the data in a Google doc in CSV format and copy/pasting to a CSV file. (Google sheets would have been better, and can export directly to CSV).

Rather than learn how to load the data from a file, I decided to make a regex script in a bash script to convert the CSV data to JavaScript and insert it directly into the html file. I'm now confident that this was the hard way.

Once the html file is updated, I take a screenshot of the calendar. I didn't like the default legend in the top right, so I used paint to make it easier to understand.

Finally I copied the file to my phone and used Google photos to saturate the colours.

I'm fairly confident that there is an easier way.