• Read iOS HRV data (captured during breathing session) via shortcuts

    I first started using Heart Rate Variability (HRV) to track my recovery from a concussion that I sustained while out mountain biking. HRV is a possibly useful metric to track overall health, stress levels, etc. I have a few years worth of (not entirely consistent) HRV data as a result of using Marco Altini’s fantastic HRV4Training app. If you’re not hip to HRV, here’s a little explainer from Marco’s website:

    HRV, in particular rMSSD or a transformation of rMSSD such as HRV4Training’s Recovery Points, are simply a way to capture parasympathetic activity, or in other words, level of physiological stress. As we apply stress to trigger certain adaptations, measuring our body’s response to such stressors, as well as to all other forms of stress we are affected from (e.g. simply life happening, work stress, family, etc.), is very helpful as it can provide objective feedback and help us making meaningful adjustments, the simpler adjustments is probably just being a little more honest with ourselves, and slowing down from time to time, especially when our body is already too stressed.

    The difficulty for me has been taking consistent measurements. For HRV data to be useful it ought to be collected at the same time and under similar circumstances each day. For most people, that’s first thing in the morning as they are laying in bed. Unfortunately our domestic situation is such that I do not have the luxury of laying in bed once I am awakened. Additionally there are some added stressors first thing in the AM that make replicating circumstances from one day to the next very difficult. So using HRV has always been hit or miss for me. Stepping way back and looking at long term trends I can always see my HRV going down when I play too many gigs in a given month (and am out late too frequently), but aside from that, there are so many day to day stressors in my life that it is difficult to tease out whether or not the impacts to my HRV are due to workouts or just daily stressors. I’ve had an Apple Watch (v2?) for while now and was hoping that having a measurement device strapped to my wrist might help me get HRV measurements with more consistency — and in turn make better inferences from the data. Unfortunately, Apple doesn’t make getting at the HRV data easy. Marco has written up a great explainer on how to get accurate and useful HRV measurements out of an Apple Watch

    Recently, researchers at the University of Zaragoza in Spain, published a paper showing that RR intervals extracted from the Apple Watch while using the Breathe app, are indeed very accurate (Hernando et al., “Validation of the Apple Watch for Heart Rate Variability Measurements during Relax and Mental Stress in Healthy Subjects”). This is great news as it shows that the basic unit of information (RR intervals) can be trusted.

    In other words, if you use the Breathe app on the Watch it will record HRV data for the breathing session which captures good beat-to-beat variability data. You can see from the screenshots that the Apple Watch takes a few HRV snapshots throughout each day. The measurements I’m interested in tracking are the first one from each day as I will try to do an Apple Watch breath session each morning (hopefully before the watch takes its first snapshot HRV reading). Enter iOS Shortcuts. If you’re not hip to iOS shortcuts and you own an iPhone, you should be. If you are hip to iOS shortcuts, I’ve written a proof of concept shortcut that:

    • looks to see when you’ve done the breathing app on your watch today
    • grabs the associated HRV reading from the breathing session
    • writes the value of the HRV to a Day One Journal entry

    There are a bunch of directions to go with this but basically I just wanted to prove out the case that:

    • it is possible to query the HealthKit database for all of the breathing sessions (Mindful Minute sessions = 1 min)
    • get the time that the breathing session occurred
    • extract the HRV value that is captured in healthkit for that time period

    Get the shortcut from iCloud here.
    You need to click this link from your iPhone and need to have Day One installed but if you’re this far along you can likely modify the Day One entry to your text file of choice. The shortcut seems to generally work. While it will never have the functionality of HRV4Training it will be curious to see if deriving the HRV value from my watch makes me record the data any more frequently. Also, this is the first shortcut I’ve written and shared so I’m not sure if I create new versions if I need to post a new link or not. If you’re into this kind of thing and use it/modify it, etc. please drop me a note!


  • 2019-03-22 12.04.04

    Reassuring to see the NYTimes standing up to Apple here. I can’t figure out why the WSJ would give up such a large chunk (50%!) of subscriber revenue.


  • 2019-03-20 21.36.24

    I’m not the only one! Quick read from yesterday’s Times on personal newsletters as the antidote to social media. Make sure to sign up for Casual Housekeeping if you haven’t already.


  • 2019-03-18 20.11.56

    What’s worse, Socialism or Crony Capitalism? Probably depends on who you ask. Either way, this piece by Barry Ritholtz documenting some of the more egregious missteps of our “free” market makes for an interesting read. Via @om.


  • 2019-03-18 15.39.59

    Heartening to see movement from #flickr. Feels like there is a little bit of energy circulating there lately. Latest announcement is around In Memoriam accounts and maintaining Creative Commons works in perpetuity. 


  • 2019-03-17 14.03.13

    Thanks @advcyclingassoc for the reminder about this new GAP/CO trail video. Watched it yesterday and was reminded of what a great time I had riding the C&O and can not wait to ride the GAP now! https://www.wqed.org/ride #adventurecycling #cando #bikecamping


  • 2019-03-15 14.17.53

    Safety Dance comes on when I’m out riding and all of a sudden some part of my brain is looking at Casio watches in the Service Merchandise catalog.


  • 2019-03-14 15.46.29

    Interesting approach from Spotify here on explaining their position w/r/t Apple. I see one long thread from the 19th century Railroads to the 20th century’s Internet Explorer/Microsoft anti-trust case to the issue of app-store revenue in the 21st century. Interesting times. 


  • 2019-03-13 14.41.47

    Picked up some new #StealYourNavesink stickers. Will bring some out to upcoming gigs so hit me up! #redbanknj #deadbank


  • 2019-03-13 12.08.24

    #navesink #march


Current Spins

Top Albums

Check out my album Set It All Down on your favorite streaming service.


Posts Worth Reading:


Letterboxd


Reading Notes

  • The real problem, in my mind, isn’t in the nature of this particular Venture-Capital operation. Because the whole raison-d’etre of Venture Capital is to make […]
  • The antidote to all of this, in the broadest terms, is *more reality*, more immersion in the finite here and now: more writing on paper; […]
  • “Under the worst conditions, what’s the most important thing to have?” He replied: “Friends.” Source: Recording: After the Election – Four Ways We Can Respond […]
  • Spain’s unity at this moment is from the bottom up. Or, as Spanish professional soccer player Ferran Torres wrote on social media, “The people are […]
  • Unable, then, to see the world because I have forgotten the way of being in the world that enables vision in the deepest sense, I […]

Saved Links

  • Built for people who buy music — Direct link
  • Top news shared by the people you trust Sill streamlines your Bluesky and Mastodon feeds to give you a clear picture of what’s happening. — Direct link
  • The day's tech news, every day at 5pm. From Techmeme.com, Silicon Valley's most-read news source. 15 minutes and you're up to date. — Direct link
  • Beautifully Simple Podcasts. — Direct link
  • Uncover the insidious ways in which our daily lives are being surveilled by the state. In a gripping chase, Ronan Farrow travels across the world following breadcrumbs and finally exposing a dark world of spywares, hacking, and peddling of private information, where activists and journalists are persecuted, and no one is protected from the watchful and vicious eyes of authoritarianism. #API #Actors #Actresses #Cast #Credits #Movies #Photos #Ratings #Reviews #Shows #Streaming #Synopsis #TV #Teasers #Trailers #User — Direct link
  • Western democracies have been roiled by the use of spyware to target politicians, journalists, and other vulnerable groups. Could it happen here? Ronan Farrow reports. — Direct link
  • The Gentle January series shares one practical privacy tip a day from a Markup staffer who actually uses the advice in their own life. — Direct link
  • "to be clear, I’m a fan of the Bluesky leadership and engineering team. With the VC money as fuel, I expect their next 12 months or so to be golden, with lots of groovy features and mind-blowing growth. But that’s not what I’ll be watching. I’ll be looking for ecosystem growth in directions that enable survival independent of the company. In the way that email is independent of any technology provider or network operator." — Direct link
  • "I have been impressed with the tools that the open source development community is building to bridge the gap between the AT protocol and ActivityPub, and I’m hopeful that some mixture of Bluesky and Mastodon will eventually serve most of my needs as a social media user and, hopefully, as someone who co-owns a website" — Direct link
  • Ditch big telco. Rise above with The People's Carrier, a new carrier owned by the people, and earn crypto. — Direct link