January 5, 2007

Nike+ iPod Tracker

Nike+ iPod Tracker
I was reading Podophile the other day when I discovered that someone's written a Wordpress widget to display your running Nike+ stats on your blog. The obvious problem is that I'm not running Wordpress. In the comments I discovered two possible alternatives: justdoing.it (a service that grabs your data for you) and this bit of PHP that emulates the Wordpress widget. I'm wary of giving my username and password to a service with so little identifying information, so justdoing.it is out. I turned to the code. It works by hitting the Nike site every hour and pulling down your data. Well, I don't run that much. So the Snook and I came up with the idea of setting up a cron job to run the script at midnight every night. It pulls down all my run information (as XML files) and then I can do whatever I like with it. So far, I've created a badge for my sidebar with my cumulative totals. Whaddaya think? This weekend I'll add in the details of my most recent run. Drop me an e-mail if you're interested in the code. And thanks to Ernie for getting me started!

Comments

Hmmm... The Nike site has stopped feeding the data. I wonder if they're cracking down on us. We're investigating.
» Kris on January 6, 2007

Actually it was just the Nike site being down AGAIN. It's back now.
» Kris on January 6, 2007

The site is a bit temperamental - all that Flash, maybe...

I've found that posting images of runs on Flickr has generated People To Run With in future, as well as a challenge that I'm currently winning by about 15km :)

You're doing slower runs than me, but you're doing nice long ones! Very impressive! the majority of my runs are 5km.
» Morgan on January 13, 2007

Leave a Comment

Please note: As this post is over two weeks old, your comment will not appear until it has been moderated.

Save as cookie?

What colour is an orange? * (Spam prevention.)