Giter VIP home page Giter VIP logo

course2zwift's Introduction

course2zwift

A simple app to create Zwift workouts from CSV files.

It allows you to create Zwift workouts based on table data with time, power and (optional) hint text snippets. You can scale it by time and power, to adapt to your own abilities.

Build

It's a Rust app. Use cargo build to build it.

Usage

# When ready, pipe the output to a workout file by adding
# > ~/Documents/Zwift/Workouts/<your-id>/my_course.zwo
# to the command.
$ ./course2zwift [OPTIONS] <course-name> <your-ftp> <path-to-csv-file>

Options

  -d, --description <DESCRIPTION>    optional description
  -A, --author <AUTHOR>              customizable author name
  -T, --sport-type <SPORT_TYPE>      customizable sport type [default: "ride"]
  -a, --acceleration <ACCELERATION>  time shrink factor [default: 1.0]
  -s, --scale <SCALE>                power scale factor [default: 1.0]
  -r, --raster <RASTER>              duration rasterization in seconds [default: 30]
  -h, --help                         Print help

Data Provisioning

You can provide a CSV file like this table one:

time power text
00:00:00 180
00:01:30 Turn right
00:02:00 210 Up that hill
00:03:30 160
00:04:30 You're done!

The corresponding raw CSV file then looks as follows:

"00:00:00",180,
"00:01:30",,"Turn right"
"00:02:00",210,"Up that hill"
"00:03:30",160,
"00:04:30",,"You're done!"

Hints

Be careful to use a rasterization size to match the granularity of your file, especially if you want to ride along with a pre-recorded video:

  • If the raster is too small, it will create potentially very short segments, which means you need to change gear quite rapidly in those situations.
  • If the raster is too big, it won't keep up with the course well. Every segment is at least as long as the raster size.

course2zwift's People

Contributors

denudge avatar

Watchers

 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.