Using Yahoo! Pipes: Your Most Recent Nike+ Run in Friendfeed #

October 18, 2008.

During the last few weeks, I’ve built a couple of pipes I want to share. (”Pipe”, in this context, means an application built in Yahoo! Pipes.)

Here’s one of them.

Your Most Recent Nike+ Run

As I’ve mentioned once or twice in the past, I’ve become a more or less avid runner during the last year. One central piece of my equipment is my Nike+. I don’t run without it. I am a geek, I love numbers. The Nike+ provides me with numbers. It makes running a game.

I sync my iPod with my iTunes after each run, and the Nike site is taking the raw data, crunching it, giving me graphs and more numbers, and (this is the interesting thing) badges for my website.

Now, I don’t really care about those. But when there are badges, there must be an API which provides the raw data to them. Looking behind the scenes, I quickly found it. It’s not password-protected or secured in any way; when you set your nikeplus.nike.com profile to “public”, the API will return some of your data (run overviews, run details etc. — no personal details).

So, knowing the API URL, I’ve built a pipe which will do a few things:

  1. Accept any nikeplus.nike.com “brag”-type of link as parameter (when you’re logged in to the site, these are usually labelled “Share with your friends”, “Grab the link” etc.).
  2. It will extract your public, numeric runner ID from this link.
  3. It’ll fetch the data for the most recent run of the runner with this ID, i.e. you.
  4. It’ll build an RSS feed with the data of your most recent run.

When writing the pipe, I’ve made a few assumptions, namely that…

  • you sync your iPod after each run
  • you’re using the Nike+ site
  • you don’t run more than once per day.

Since I am lazy, I’ll only use the data for the most recent run, so the pipe’s results will be exactly that — just a single item, your most recent run.

That being said, I found this sufficient. After adding the pipe’s RSS URL as new “blog”-type service1 to Friendfeed, FF will effectively trigger the pipe a few times each day, and your latest run will be added to your stream quickly. Next time you sync your iPod, the Nike site will pick up the new data, the API will return the new data to the pipe, and the new run will be added as new Friendfeed item.

The pipe will post your runs in the following format: “[Nike+ runner name] ran [distance] [km/mi] in [time]“, for example “3R ran 11.3543 km in 1:03′54””. The message will link to the public page of the run — a page like this. (3R is my Nike+ moniker.)

Now, why would I want to add my runs to Friendfeed? Well, why not? For me, running is a nice part of my life. I’m actually enjoying it, I’m keeping it casual, and I am proud of every damn kilometer mark I pass. Plus, as mentioned, I am a geek, and I like to share what I build. :)

If you have questions or suggestions, speak your mind in the comments.


  1. Friendfeed’s terminology is a bit misleading here… If you want to add an RSS feed, you’ll have to use “Blog” as new service. Eh. 

This entry has been tagged with , , , , , . Follow a tag to see related entries.

Comments

Going Paleolithic #

August 05, 2008.

In his thoroughly enjoyable Science In The Capitol trilogy, Kim Stanley Robinson (who happens to be my favourite author) talks about a concept called “The Paleolithic Life”; something he also spoke about in a Google Tech Talk on Climate Change (at ~50min in).

The idea is that there are certain activities engraved in the mind of every human, which result in joy and happiness. These are the things the paleolithic man did during his waking hours, things nature rewarded him for by making him feel alive and capable and good, thus helping him evolve and aiding his development.

Mr. Robinson compiled a list of these activities:

  • Spending the day outdoors
  • Walking and running
  • Looking for things
  • Making things
  • Throwing rocks
  • Cooking and eating
  • Talking and listening
  • Singing and music
  • Dancing and sex
  • Finding a mate
  • Raising kids
  • Looking at fire
  • Seeing by moonlight
  • Killing animals
  • Being killed by animals
  • Making beds at night
  • Exploring new land
  • Feeling emotions, including terror, religion, right and wrong, etc.

Especially when you spend your waking hours in an office job, most of these activities are not part of your life anymore. We do not need to hunt for food anymore, we’re seldom being killed by animals1, we don’t throw rocks. But the engraved patterns, the subconcious memories of our ancestors life in the paleolithic, the biochemical reward mechanisms are still within us — just unused.

What a waste.

Having doubts about this? Here are some quick tests: If you have the chance, find a fireplace in the night and stare at the flames for a while. Or get out at night, take a walk by moonlight. Or meet with friends for self-made dinner. Or have good sex. (Or all of the above, at once.)

KSR’s proposal is picking up our old habits again, raking in the old rewards, in order to lead a happier life. In a slightly modernised form, of course. Throwing rocks is awesome — until someone is crying, that is. Which should be avoided. So, how about Frisbee or Baseball? You throw things at things, with less chance of killing people by accident! And think about walking, running, building things with your own hands

Intriguing, no?

(His theory doesn’t seem to be entirely fresh or new, tho; I think it has influenced some of the storylines in his wonderful Mars books, even though it was not specifically mentioned (it was in the aforementioned Science In The Capitol books). Some of the characters find some inner peace when doing more or less mundane tasks; Nirgal just wanted to run2, Nadia was happiest when she could build and make, John was at the top of his world when he could talk with and listen to people, etc.)

So, long story short, I’m trying to get a bit more paleolithic in my life.

As mentioned, I have started running in April, and it’s actually pretty cool. I feel really good after most of my runs (not during them, mind you) — my new-found ability to run 5km straight is nothing short of a miracle to me, really.

Since I don’t feel like hitting and paying for other peoples’ stuff, but want to throw things at things, I bought some Frisbees and already took them out for some hilarious practice games with Dana, we had a blast, and I will try to make it a regular activity. I actually want to give casual Disc Golf a try; we’ll see.

Already I try to spend (a little bit) more time outdoors, mostly by walking instead of taking the bus, watching my surroundings, i.e. walking with open eyes. Good for the health, and sometimes you’ll see interesting things, really. And next week I’ll go kayaking. Gonna be interesting.

And I will try not to be eaten by wild animals.

Opinions?


  1. The feeling of successfully outrunning/outsmarting a predator was where the reward and joy lay, KSR mentioned in his Google Tech Talk. 

  2. Quite honestly, the figure of Nirgal, especially his recurring wish to “just run” deeply resonated with me. I’d even say he was one of the big influences that made me pick up running. Don’t laugh, please. Interestingly enough, Science In The Capitol’s Frank Vanderwal’s excursions into “running frisbee golf” read so good, it made me order two discs. :P 

This entry has been tagged with , , , , , . Follow a tag to see related entries.

Comments

Still Running: June 2008 #

July 06, 2008.

After two weeks of not being able to run without pain I’m good again. I had to find a different route, but after poking around in Google Maps and the surrounding forest I’ve managed to come up with a enjoyable one. The slightly annoying part is that I have to walk ~900m before to get to my actual starting (and end) point. Well, I consider it warming up. I’ve added the distance to my usual 5km, and thus I am now at 7km per run.

A few weeks ago I’ve bought some light weights for my hands. They’re ~450g (1lb) each. Doesn’t sound much, but it’s noticable—now my upper body gets some minor workout as well.

I’ve registered myself for the Nike+ 10km Human Race going down end of August. Going to run for the World Wildlife Fund. There’s an official event here in Munich, actually! Unfortunately the whole 10km are over pavement, and I don’t want to risk injury again, so I’ll have to run a different route, I think.

Overall I am well on track towards my “250km in 2008” goal. I believe with my next run I’ll be hitting the 100 miles mark. We’ll see what the Nike+ site is going to tell me. Which is still kind of crappy, by the way. They rather add new and useless features than fixing longstanding issues like the broken OSX widgets.

I’ve discovered Runner+, a site which aims to be Nike+ without the cruft, I guess—but that whole social networking thing is not doing it for me. Also, the data sync is done by either using their desktop widget (requiring the Y! Widget Engine) or manual upload of the XML files or an automated daily sync where I need to give them my Nike+ credentials. Quite frankly, neither method is doing it for me. Plus I don’t really like the site. It doesn’t click with me.

Other options? Yes, OSX software.

  • Runner’s Log is nice and rather simple, but not exactly what I am looking for. Runs are broken down into “laps”, which might be nice if you’re running actual laps, but I ain’t.
  • And then there’s TrailRunner for those who not only use a Nike+ but a GPS receiver and heartrate monitor and have a fully staffed lab crew with instruments running with them. So… that’s not me. In their defense, I believe the TrailRunner target audience is a bit more hardcore about their running, biking, hiking, inline-skating or skiing than I am. (Also I was seeing more error dialogs during my 15 minutes with TR than I have in any other software in the last 6 months combined. Probably some Nike+ sync issues.)

So no help on that front. Too bad. If I wasn’t so lazy I’d probably would’ve hacked together something simple that’s making use of the Nike+ web badge APIs. Maybe the day will come, tho.

Addendum: I’ve set up a Nike+ FriendFeed room. Nothing in there yet, but who knows, that might change.

This entry has been tagged with , , . Follow a tag to see related entries.

Comments

Pleasant Memories Of Times Past #

June 13, 2008.

Trying to keep track of the last one or two weeks…

  • Running again! Avoiding tarmac, thank God there are many forest roads around. Using light weights on my hands now, too. Fun. The most interesting part of the down period was that I was actually missing my runs, and that I was looking forward to start running again. I think it’s official: I like it.
  • Found out I can watch The Daily Show with Jon Stewart & The Colbert Report freely and legally on the web,OMG. Thank you, Comedy Central. Too bad there isn’t an RSS feed. Or is there?
  • Jeremy Zawodny is leaving Yahoo! – and so is JR Conlin. Bummer, two of my personal heroes gone. Well, I guess ~9 years at the same company is enough for anyone. All the best, guys!
  • Using FriendFeed now. It’s not bad, really; then again, I mostly use it to have a single place where all my loose threads come together. I really like the stalking helper imaginary friends feature. Makes it easy to keep track of pals who don’t use FriendFeed themselves. I’ve tried subscribing to the combined feed of all the people I’ve subscribed to on the site, but it’s like being fed by a firehose. Unusable, sorry. As I’ve said before, the idea to build a social network on top of peoples’ lifestreams is a bit too meta for me.
  • Discovered Goodreads. Nice.
  • I love GTA IV. Incredible game. So many lovingly crafted details, amazing.
  • New iPhones! Dope. Want. And a revamped .mac! Let’s hope it works as good as it looks in the presentations. The current .mac web implementation is useless for me. It just doesn’t cut it.

This entry has been tagged with , , , , , , , , , , . Follow a tag to see related entries.

Comments

Pavement Is Bad, mmmmkay #

June 02, 2008.

A week ago, during the day, my left lower back and leg started to hurt. Each step I made stung, and it didn’t get better. I couldn’t think of anything I had done; I didn’t fall, trip or twist my leg. I had just run in the morning.

On Thursday the pain was still there, so I’ve consulted a doctor. She told me to stop running on asphalt the pavement, because no matter how good the shoes, the ground in itself is too hard, too solid, too inflexible. So what I’ve done, in effect, was messing with my joints and cramping up my muscles. I was given a shot and the task to find a better route for running, preferrably something like forest roads.

Splendid.

Anyways, it’s Monday now, I haven’t been able to run for a week by now, and this sucks. I’m sitting around, actually craving to log a few kilometers. Which feels a bit weird because three months ago I didn’t even think about running.

Damn.

This entry has been tagged with , , . Follow a tag to see related entries.

Comments
photo of Carlo Zottmann Carlo Zottmann carlo@zottmann.org
München Germany
AIM YIM Jabber

You look like you have no time, but still need to find some Xmas gifts, but have no idea what to get them, right?

Then try my new site, random.li: fast-paced, crack S.W.A.T. team-style gift finding.

Go go go! No time to waste! :)