Code Monkey home page Code Monkey logo

werow-to-strava's Introduction

werow-to-strava

This is spaghetti code, but it works pretty well. I wasn't able to detect when it's done importing all activities to Strava (I still don't really get async/await), so the program needs to be killed with ctrl+c when it's done.

It goes through all We-Row sessions every time it's run and imports those to Strava. It detects already imported rowing sessions (and skips them) by comparing the start time of the Strava activity to the start time of the We-Row session. There might be some daylight saving related problems with this method, but I'm not sure how those cases are handles by Strava and We-Row.

Note: After the first successful run, it saves your We-Row credentials and Strava Access Token as plain text in credentials.json.

Usage

  • Clone
  • yarn install
  • node .
  • Follow the Strava OAuth flow and enter We-Row credentials in your browser.
  • On the subsequent runs, no browser interaction is needed.

Go version

I tried implementing this in go, but ran into problems with the official Strava Golang library (https://github.com/strava/go.strava/) being out of date.

werow-to-strava's People

Contributors

marconett avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

werow-to-strava's Issues

everything being skipped!

Hi
Ive moved over from we-row to coxwain. I found this app and thought it would be good to upload my werow performance into strava and then I can look at some of the performance.

The app asked me to permit strava to connect; then it asks for (first time) the werow details.
It finds the werow details and then skips installing them all saying 'session already uploaded, skipping', when there are no recorded sessions on those data in strava.

can you steer me... I dont mind skipping the logic for the check as Im only doing this the once.
thanks
R.

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.