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.

  • 18107@aussie.zoneOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    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.