TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

167 点作者 danielwmayer5 个月前

19 条评论

vunderba5 个月前
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.<p>Related but if you&#x27;re wanting to get into running (and have the environment for it) - I <i>HIGHLY</i> recommend favoring trail running over running streets&#x2F;sidewalks. It&#x27;s far better for your joints, it&#x27;ll make you work harder since it&#x27;ll absorb some of your energy, and it&#x27;ll improve your proprioception.
评论 #42329906 未加载
评论 #42329761 未加载
评论 #42329746 未加载
评论 #42347934 未加载
inanutshellus5 个月前
&gt; My adulthood litmus test has always been the following: &gt; &gt; If you know what date it is every day, you are an adult.<p>Tangent - My definition of &quot;adult&quot; that I came up with as an early teen:<p>&quot;When I realize I&#x27;m looking in the _driver&#x27;s seat_ of passing cars hoping to see pretty girls, that will mean I&#x27;m `an adult`.&quot;.<p>Years later I had a palpable shock moment in which I glanced in a car and remembered coming up with the definition. &quot;OH CRAP I&#x27;m an adult!&quot;<p>Felt like a &quot;hoist by my own petard&quot; moment.
评论 #42330214 未加载
评论 #42333595 未加载
评论 #42333429 未加载
elliottkember5 个月前
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! <a href="https:&#x2F;&#x2F;x.com&#x2F;WillManidis&#x2F;status&#x2F;1728860291457524073" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;WillManidis&#x2F;status&#x2F;1728860291457524073</a>
评论 #42333355 未加载
johnfn5 个月前
Just got back from a run!<p>By far the most effective thing to motivate me to exercise, and run in particular, is the &quot;VO2 Max&quot; section of the Apple health app. It&#x27;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 &quot;grind&quot; running, it goes up. If you don&#x27;t, it doesn&#x27;t. It&#x27;s incredibly addicting to check the number every time you finish a run and see if it&#x27;s ticked up slightly. It&#x27;s also great because in some sense it is &quot;real&quot;. If it goes up, I have an easier time on hikes, runs (obviously), playing sports, etc.<p>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&#x27;s not an all out sprint, but you&#x27;ll be moving pretty fast.<p>The reason it&#x27;s so effective is best illustrated by contrast. In the past, I&#x27;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&#x27;t go up. Obviously as you get faster, this happens more and more, and it gets easy to start wondering if you&#x27;re even progressing. Heart rate is a much better measure, because in some sense this is compensated for. You don&#x27;t have to continue to beat yourself every day (or fret that you&#x27;re not) to get to 80% of your max heart rate, and on days when you&#x27;re more exhausted, you&#x27;ll hit a higher heart rate faster, so the effort is roughly the same.<p>Also, Zone 4 is a great place to be. You&#x27;re pushing yourself, but it&#x27;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&#x27;s very manageable, and I wake up excited to do it!<p>At this point, I want to run every day - I&#x27;m at the point where I have to force myself to stop sometimes because it&#x27;s healthy to take rest days!<p>Usual disclaimers apply, BTW. Don&#x27;t do all your running in Zone 4, don&#x27;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.
评论 #42330694 未加载
评论 #42330487 未加载
Amorymeltzer5 个月前
&gt;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.<p>Turns out it was unnecessary but I like the idea of actively looking for the worst of something.<p>Also, having just recently set a repeating reminder to rotate the mattress, yes:<p>&gt;I now know that what being an adult <i>really</i> 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.
triceratops5 个月前
&gt; 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<p>Truer words have never been said. It&#x27;s absurd how much bureaucracy adults have to engage with just to exist.
评论 #42331165 未加载
readthenotes15 个月前
Something like that seems like it would require extensive in-house testing before I actually used it for real.
jeff_vader5 个月前
I&#x27;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.<p>To make everything really simple I scraped my public profile directly from esp8266 controller (so there&#x27;s no need for extra steps of setting up Strava app to gain access to the API). Worked relatively well.
larsrc5 个月前
I recently found that store-brand peanut M&amp;M&#x27;s (my favourite) were just as good, half the price, and fair-trade! Win-win!<p>When I joined my current job, I used M&amp;M&#x27;s as reward when learning the names and faces of the people there using memory cards. Also worked!<p>Fortunately I&#x27;ve found that Belegarth fighting is so much fun that I need no extra carrot.
评论 #42330564 未加载
NBJack5 个月前
This article is a work of art. Thank you for writing and sharing it.<p>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&#x27;t want to lose momentum. Make no mistake though; I had a LOT of help from friends and family as well.<p>Bonus points for Mord Fustang.
julianeon5 个月前
This is the kind of content I love.<p>It does make me think: what else can you use Tuya devices &amp; Python libraries to do? I&#x27;ve got exercise and food portions under control, but I&#x27;m interested in other applications.
petee5 个月前
Great idea! I was picturing a device you wear that feeds you as you run :)
bsimpson5 个月前
Reminds me of this video:<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;HWceX64ZC8w?si=a-mm-DP4EKMmGhXy" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;HWceX64ZC8w?si=a-mm-DP4EKMmGhXy</a><p>Similar idea with origami ninja stars.
guyzero5 个月前
A much improved successor to Tomatan: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cOJaDDO38kk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cOJaDDO38kk</a>
iandanforth5 个月前
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_games5 个月前
I started intermittent fasting where I would only eat breakfast after running on an elliptical for an hour.<p>I got my butt to the gym pretty quick in the day because I was hungry
eadmund5 个月前
Does anyone here have decent suggestions for a local-only IoT dog feeder? No server, no Internet access at all, just LAN.
评论 #42353424 未加载
focusedone5 个月前
That&#x27;s awesome! Do their recent API changes impact things like this?
评论 #42329500 未加载
nextworddev5 个月前
Techies will do everything to get better at running, except putting in the miles