← all posts site ↗

a year of health data as a github grid

i pulled everything from the ring, the band, the phone, and home assistant into one yearly report, because the averages mean nothing when each source lives in its own app. the thing that made it usable was turning the year into a github style grid, four columns of weeks across twelve rows of months, so i can see at a glance how much i've moved, trained, and slept.

the bars sit collapsed by default and expand on demand. a weekly bar and a monthly bar show the same deltas the grid does, with values right aligned and the days and dates left aligned, so the two halves of a bar line up. the font size matches the rest of the dashboard, which was a whole fight, because the charts render as pixel true svgs that scale to the widget width and that made every text size lie.

the gym page mirrors the steps page down to the same week over week and month over month math. the target used to be hard coded, which is why it kept drifting, so the whole point is finding the target somewhere that auto updates instead of typing it in. the grid keeps everything dark so nothing white flashes inside the widget, and each cell shows its own tooltip even on days with no entry.