Git Product home page Git Product logo

peloton-to-garmin's Introduction

Peloton To Garmin

This is a simple CLI tool that will pull the last x Peloton workouts and upload them to Garmin Connect. To use this tool you need a Peloton username and password as well as a Garmin Connect username and password.

Currently this tool only supports Peloton Cycling and stretching workouts.

Please note, Peloton do not publicly publish their API documentation, so things could break if Peloton decide to change how their API performs. If you notice issues, please create a github issue and I'll take a look when I can. If you like this project and use it please do watch and star the repo.

Example usage:

peloton-to-garmin.exe sync --pelotonUsername [email protected] --pelotonPassword 'toSecretPassword' --garminEmail [email protected] -garminPassword 'ToSecretToTellAnyone'

Default Options

By default, this cli will lookup your last 30 workouts from Peloton and attempt to upload them. It will not overwrite existing workouts. Re-running this tool again will simply output the workout already exists in Garmin. You can also set your datapoint granularity from Peloton. The default is set to a datapoint per second, but this could be changed if needed to something less ganular if required.

To see optional options, you can run peloton-to-garmin.exe sync --help

Still To Do

This is a work in progress project and some of the things I'd like to do as I get time are:

  • Implement a http.client logger so trace logging can show request and response
  • Improve my usage of the http.client and try and reduce duplicate code
  • Support additional workout types from Peloton

peloton-to-garmin's People

Contributors

markdordoy avatar

Stargazers

 avatar

Watchers

 avatar

peloton-to-garmin's Issues

Speed issue

Average and max is ok. Problem appears to be with the track data. Likely need to convert from mph to meters per second

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.