If you follow me on Twitter, you may have spotted me on Monday tweeting some of the nerdier things I have in awhile. First about this month's homescreen post, and then later on about making my own Caffeine tracker, and the app changes that would allow me to make. Because how could I possibly stick with the homescreen I'd blogged about 12 hours earlier, right?
I've been tracking my caffiene intake for nearly a year now. I like doing so for a variety of reasons that range from trying to prevent caffiene overloads and crashes (very real things for me that have happened this past year), trying to keep myself more accountable on what I eat and drink, and just enjoying the nerdiness of tracking such a thing in general. The only problem with my tracking so far being that the available caffeine tracking apps were either too bloated, not developed enough, or just plain obsolete - including the app I'd been using until now; UP Coffee. Not an ideal setup.
I'd been watching the App Store patiently for the past 6 months or so to see if a more worthy app would appear - even thinking about making my own - before the idea struck me on Monday to see if a simple tracking implementation would be possible using a combination of Workflow and Launch Center Pro. Thankfully, a simple solution is quite possible.
Workflow supports a couple of basic health actions, and so even a pretty inexperienced Workflow user like myself was able to cobble something together. When run, my action will prompt for the time and date when the coffee was had, (useful in seeing how much caffeine at what time of day can affect me) before then writing either 150milligrams or 75milligrams of caffeine to the Health.app database. Which are about equivalent to 1 cup or 1/2 a cup of coffee respectively.
Once that was put together, all that was left to do was share the actions over to Launch Center Pro, add in a similar action to track my water intake (another thing that had been stuck in a less-than-optimal app until now), and then assign them to some of Launch Center's 3D-Touch quick-actions.
What I'm left with is simple, quick, caffeine and water tracking that can be thrown together by someone as workflow-green as myself. Sure, it's not as full featured as some of the other dedicated caffeine or water tracking apps out there, but for me it's all I need right now. I'll leave links to all three of my actions down below for if you're interested in using them or modifying them to fit your own needs. I'd love to see or hear how they might help others out as well.
Add Doubleshot - Adds 150mg of caffeine - or about 1 cup of coffee / one doubleshot of espresso into your Health.app database.
Add Singleshot - Adds 75mg of caffeine - or about a 1/2 cup of coffee / a singleshot of espresso into your Health.app database.
Add Waterbottle - Adds 625ml - or about 22 fluid ounces (which is the size of the bottle I drink from daily) to your Health.app database