Git Product home page Git Product logo

fatigue's Introduction

FATIGUE

Import your Nike+ runs to Garmin Connect

Deprecated

Note: I'm pretty sure after Nike changed their site, Fatigue doesn't work anymore. Mega bummer.

If you're a developer, Pull Requests are definitely accepted- after my initial import of runs I have no need for Fatigue anymore, ironically enough.

It looks like this

$ fatigue


  __      _   _                  
 / _|    | | (_)                 
| |_ __ _| |_ _  __ _ _   _  ___ 
|  _/ _` | __| |/ _` | | | |/ _ \
| || (_| | |_| | (_| | |_| |  __/
|_| \__,_|\__|_|\__, |\__,_|\___|
                 __/ | for nike+garmin
                 |___/               



Nike+ User ID:           123456789
Garmin Connect Username: sookie
Garmin Connect Password: 

HARDCORE RUNNING ACTION: 
  status:      100% |oooooooooooooooooooooooooooooooooooooooooo| Time: 00:02:20

Neato! We just imported 72 runs. See them for yourself at:
  http://connect.garmin.com/activities

What you get

This grabs run data from the low-fi Nike+ histories, so while it won't have GPS maps like what Garmin rocks, we'll populate your Garmin history with Nike+ data for things like distance run, how long your run took, what day and time it was run, and shit.

Install

For the Techies

gem install fatigue

If you have no idea what the heck a gem install is, have no fear; none of this is hard to do.

For Mac Users

Open up your Applications folder, scroll down to Utilities, and then open up Terminal. Once you're there, type sudo gem install fatigue and then enter your Mac password when prompted. This will download the code to your machine. When it tells you "3 gems installed", type fatigue and enjoy the show.

NOTE: If you run into a problem during installation where it spits out ERROR: Failed to build gem native extension, that means you need to install XCode. It's available on your OS X install DVD or through the Mac App Store. We're working on fixing this so you don't need to install XCode in the future.

For Windows Users

Microsoft makes everything harder since you'll have to install Ruby yourself. Until someone forks this repository with better Windows instructions (hint hint!), the best I can give you is to go try RubyInstaller, install it, and then see if you can run gem install fatigue in it. Somehow. I don't know really, but I have a lot of faith that you can manage it. You seem like a strong-willed individual.

Can I see your ID

Nike might release a public API at some point in the future (although they'll probably make you buy their shoes in order to use it). Until then, we can sneak onto their widget API. You need to find your Nike+ user id, though (numeric ID, that is; not your login).

To do this, log into your Nike+ account, click on "Runs", and then the long number right at the end of the URL is just what you need. COPY AND PASTE IT WITH ALL DUE HASTE.

You'll also need to make sure your runs are public. Click on your face on the sidebar, go to settings, and share your life away. No need to be modest.

Contribute

Pretty sure Nike will change their site, Garmin will change their site, or both, so this may be a bit unstable, from time to time. Have no fear; open source is here.

If you'd like to contribute fixes (thanks!), fork this project, add your changes, make sure tests pass with rake, and send me a pull request. High-fives for new methods that are properly TomDoc'd.

JUST DO IT™

Love, @holman.

fatigue's People

Contributors

holman avatar aqr avatar

Watchers

Julien Fusco avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.