- Download dailymile-cli-2.1.jar from the download page
- Retrieve your oauth token from dailymile, this is how dailymile-cli will be given access to your account (don't worry, it isn't stored anywhere).
- If prompted, enter your dailymile login information and then allow access for "Plater's Code Bulk Import"
- You will be redirected to an invalid page, that is expected. Grab the oauth token from the url (it's the long string after access_token=).
- From a command prompt, such as cmd or cygwin on Windows, run the executable jar. Below is an example run with <...> indicating where you need to provide information. You can skip the first few prompts since I provided the oauth url above.
$ java -jar dailymile-cli-2.1.jar
Please enter your client id:
<press enter>
Please enter your redirect url:
<press enter>
Please open a browser and go to:
<press enter>
Please enter your oauth token:
<enter oauth token (captured in step 2)>
Please enter the converison type, allowed types: [nikeplus,runningahead]
<enter runningahead>
Please enter full path to input file:
<enter path to file>
Please enter your client id:
<press enter>
Please enter your redirect url:
<press enter>
Please open a browser and go to:
<press enter>
Please enter your oauth token:
<enter oauth token (captured in step 2)>
Please enter the converison type, allowed types: [nikeplus,runningahead]
<enter runningahead>
Please enter full path to input file:
<enter path to file>
If you are looking to do something similar, take a look at dailymile-cli, it might be able to help you out (or at least be extended to do what you need).
thank you for this! It worked like a charm!
ReplyDeleteThe only place I'm getting hung up, is:
ReplyDeleteWhat is the input file? The log.txt that I download from RunningAhead?
Thanks!
Nathan Nelson
www.bloodytoe.com
Ok, just figured it out. It's the path to your log.xml file, which you export out of RunningAhead. Thanks, Jeff! Nice work. Just finished importing 442 runs. It's always so nice to find others who work so hard to do this kind of stuff. I just don't have the know-how, so I'm very grateful.
ReplyDeleteCan you make a video of this or something? I'm completely lost at the command prompt. I type in the command prompt in multiple fashions and nothing... I'm lost.
ReplyDelete