top | item 42291933

Training myself to run farther with Strava's API and an IoT dog feeder of M&Ms

167 points| danielwmayer | 1 year ago |mayer.cool

71 comments

order

vunderba|1 year ago

Good job hijacking your own pavlovian responses to run more. Personally, the low-tech solution of a plunger stuck to my forehead with a klondike bar dangling from the end has always worked for me.

Related but if you're wanting to get into running (and have the environment for it) - I HIGHLY recommend favoring trail running over running streets/sidewalks. It's far better for your joints, it'll make you work harder since it'll absorb some of your energy, and it'll improve your proprioception.

imzadi|1 year ago

A few years ago I did Couch to 5k. I did all my running at a local park with hiking trails. I actually really enjoyed "running" at the park. After I finished the program, I signed up for a 5k that was run on a flat, paved trail. I finished it, but it beat me up so badly that I could barely walk for the next week.

JAlexoid|1 year ago

> Personally, the low-tech solution of a plunger stuck to my forehead with a klondike bar dangling from the end has always worked for me.

Or you could borrow someone's labrador retriever and have the dog pull you. They like to go real far and real fast... and you get to practice hard turns.

> I HIGHLY recommend favoring trail running over running streets/sidewalks

As a triathlete - I would add something: for me it's more a case of running on soil, over a hard surface. Trail running may take you to a stony path, which is as bad as pavement/concrete.

But in the end it's training your running form to be the best it can be for running, that matters. Running uphill helps to naturally train a good form, even if it's significantly harder.

danielwmayer|1 year ago

Thanks for the tips! I live in the middle of the concrete jungle that is LA so I instead have the kushiest moon-shoes I could find. As for the klondike bar I’ll have to train up my neck :)

fifilura|1 year ago

I am the opposite :) I run every day. I prefer long stretches of asphalt without any bends

Job.

But also, running in forests messes with my pace and focus somehow.

inanutshellus|1 year ago

> My adulthood litmus test has always been the following: > > If you know what date it is every day, you are an adult.

Tangent - My definition of "adult" that I came up with as an early teen:

"When I realize I'm looking in the _driver's seat_ of passing cars hoping to see pretty girls, that will mean I'm `an adult`.".

Years later I had a palpable shock moment in which I glanced in a car and remembered coming up with the definition. "OH CRAP I'm an adult!"

Felt like a "hoist by my own petard" moment.

xandrius|1 year ago

I generally unbundle age and adulthood.

For me the definition has always been "an adult owns up to their own mistakes".

Which is the shorter version of "A child doesn't care about their mistakes, a teenager expects others to fix them and an adults own up to them".

This allows me to categorise older people who I feel like don't act like adults.

senkora|1 year ago

My definition that I came up with college was that adults had full spice racks in their kitchens. I had recently gotten into cooking and was annoyed that it didn't really make sense to buy spices that I would have to throw away at the end of the school year. (I lived out of my suitcase, so space was at a premium).

I am now very happy with my full spice rack.

woleium|1 year ago

i used to say i would become an adult the Saturday i go to buy myself a couch.

Younger folk get their couches on any day and usually from facebook/craigslist/local classifieds

elliottkember|1 year ago

I recently saw a tweet about someone who put on a nicotine patch every time he went running and tricked himself into thinking he loved it. He was on his third marathon! https://x.com/WillManidis/status/1728860291457524073

pinkmuffinere|1 year ago

Wow this is fascinating! I wonder whether the net health impact is positive or negative, I’m tempted to do this myself

johnfn|1 year ago

Just got back from a run!

By far the most effective thing to motivate me to exercise, and run in particular, is the "VO2 Max" section of the Apple health app. It's a rough indication of your cardiovascular endurance, and the higher, the better. The real key is that, though, is that it basically works like an XP bar in a game: if you "grind" running, it goes up. If you don't, it doesn't. It's incredibly addicting to check the number every time you finish a run and see if it's ticked up slightly. It's also great because in some sense it is "real". If it goes up, I have an easier time on hikes, runs (obviously), playing sports, etc.

The second thing that really got me into running is that I found that the most effective way to get VO2 Max to go up is to run in heart rate zone 4, also tracked on the Apple watch. Zone 4 is 80 - 90% of your maximum heart rate. It's not an all out sprint, but you'll be moving pretty fast.

The reason it's so effective is best illustrated by contrast. In the past, I've tried tracking a number of metrics on my run: total miles, average speed, calories burned, whatever. But I found it psychologically draining to continuously try to top my fastest speed, and I inevitably had off days (or weeks or months) when the score I was measuring wouldn't go up. Obviously as you get faster, this happens more and more, and it gets easy to start wondering if you're even progressing. Heart rate is a much better measure, because in some sense this is compensated for. You don't have to continue to beat yourself every day (or fret that you're not) to get to 80% of your max heart rate, and on days when you're more exhausted, you'll hit a higher heart rate faster, so the effort is roughly the same.

Also, Zone 4 is a great place to be. You're pushing yourself, but it's a sustainable sort of push. I often found that when I ran sprints I wanted to die. They were so psychologically demotivating that I would do anything to avoid them. Zone 4 is not like this. It's very manageable, and I wake up excited to do it!

At this point, I want to run every day - I'm at the point where I have to force myself to stop sometimes because it's healthy to take rest days!

Usual disclaimers apply, BTW. Don't do all your running in Zone 4, don't immediately go from no running to an hour of zone 4 every day, do a reasonable ramp up over a long period of time, etc etc.

ctchocula|1 year ago

I like how you describe vo2 max as similar to an xp bar, because I've felt something similar. Zone 2 is what got me into running, because it made running not hurt and almost pleasurable.

It's much more sustainable than Zone 4 (supposedly anyone can maintain Zone 2 for hours) and brings with it a bunch of metabolic and health benefits. I found the book "80/20 Running" to have excellent running schedules for how to mix in a small but appropriate amount of fast Zone 4 running into a schedule that's predominantly Zone 2. It has a good mix of intervals, tempo runs and hill runs that build you up to run 5k, 10s, halfs and full marathons in beginner, intermediate and advanced pace goals.

The intent of the slow Zone 2 is to build the cardiovascular base that gives you better aerobic endurance without stressing your body out too much. Zone 4 is what makes you faster.

bagels|1 year ago

What is it measuring? VO2 max is usually measured with a mask that can measure the flow of gasses while running on a treadmil/stationary bike.

Amorymeltzer|1 year ago

>I knew I had to get a food dispenser that I could control with Python, so I sought out to find the shittiest, most cheaply made looking IOT dog food dispenser on Amazon. My rationale was that it would have the worst security around whatever protocol it used to trigger the feeding, so I could easily capture and replay the feed command.

Turns out it was unnecessary but I like the idea of actively looking for the worst of something.

Also, having just recently set a repeating reminder to rotate the mattress, yes:

>I now know that what being an adult really means is that most of your time is taken up by an ever-growing list of compulsory maintenance tasks that constitute the meager amount of control you exert over your own life.

triceratops|1 year ago

> what being an adult really means is that most of your time is taken up by an ever-growing list of compulsory maintenance tasks that constitute the meager amount of contol you exert over your own life

Truer words have never been said. It's absurd how much bureaucracy adults have to engage with just to exist.

seizethecheese|1 year ago

This is pretty cynical. It might ring true, but I don’t think truer words have never been spoken.

readthenotes1|1 year ago

Something like that seems like it would require extensive in-house testing before I actually used it for real.

jeff_vader|1 year ago

I've done something similar but it was only a 7 segment display showing how much I ran. It sat on a shelf and it was pretty fun to watch number go up every time I came back to my apartment after a run.

To make everything really simple I scraped my public profile directly from esp8266 controller (so there's no need for extra steps of setting up Strava app to gain access to the API). Worked relatively well.

larsrc|1 year ago

I recently found that store-brand peanut M&M's (my favourite) were just as good, half the price, and fair-trade! Win-win!

When I joined my current job, I used M&M's as reward when learning the names and faces of the people there using memory cards. Also worked!

Fortunately I've found that Belegarth fighting is so much fun that I need no extra carrot.

pglevy|1 year ago

I go to the gym regularly but I probably should put something like this contraption between me and my family size bag of peanut M&Ms.

NBJack|1 year ago

This article is a work of art. Thank you for writing and sharing it.

I too have struggled to find something that worked for me for consistent exercise (surprisingly, prepaying for training helped more than I expected), and now I don't want to lose momentum. Make no mistake though; I had a LOT of help from friends and family as well.

Bonus points for Mord Fustang.

julianeon|1 year ago

This is the kind of content I love.

It does make me think: what else can you use Tuya devices & Python libraries to do? I've got exercise and food portions under control, but I'm interested in other applications.

petee|1 year ago

Great idea! I was picturing a device you wear that feeds you as you run :)

iandanforth|1 year ago

If you go this route consider this extra hack. Caffeine acts as a direct reinforcer. You can buy caffeinated chocolates and dispense those. This will augment the power of the treat.

nightowl_games|1 year ago

I started intermittent fasting where I would only eat breakfast after running on an elliptical for an hour.

I got my butt to the gym pretty quick in the day because I was hungry

eadmund|1 year ago

Does anyone here have decent suggestions for a local-only IoT dog feeder? No server, no Internet access at all, just LAN.

wolfgang42|1 year ago

From the fine article itself:

> If you wanted to have this thing completely isolated though, you could have a no-outbound-internet subnet with this device on it so long as the device you are going to run the script on has line-of-sight.

> You can do this because Tuya devices have a local-only protocol that tinytuya supports, so you can send commands just within your LAN.

focusedone|1 year ago

That's awesome! Do their recent API changes impact things like this?

guzik|1 year ago

It only affects 3rd party analytics, so it should not.

nextworddev|1 year ago

Techies will do everything to get better at running, except putting in the miles