Giter VIP home page Giter VIP logo

alpe_split's Introduction

Alpe splits reporter

This simple script reports the splits (or segment times) while riding your bike up the Alpe du Zwift to a LiveSplit server. In this way, you can track your personal best times (or the times of other riders) and have a live estimation of the time it will take you should you maintain your pace.

Screenshot of the Alpe Split at work

Requirements

LiveSplit configuration

List of splits

You need to create a list of splits (or segment times) to load in LiveSplit, so that the whole thing becomes meaningful. The splits are simply:

  • Starting banner to hairpin 21
  • Hairpin 21 to hairpin 20
  • ...
  • Hairpin 2 to hairpin 1
  • Hairpin 1 to finish banner

A list of splits is saved in a file with extension .lss. You can download a list with the names so you don't have to type them all. Optionally, you can download a list that has some fake segments that make a total climb time of one hour.

Layout

LiveSplit is quite customizable, and you can modify its layout to include several times, partials or deltas. In the sample picture, the orange box contains the time for each segment that you already passed, and the best segment time for those you haven't passed yet. The yellow box contains the delta, or difference, from the segment time in your current time with respect to the best segment time. The green box contains the projected total time given the current pace and assuming you'll keep doing the best times, while the blue box contains the delta with respect to that projected time. If you keep the numbers in the blue box negative, you're on your way to a new PB!

A sample layout file is provided with these settings.

Running instructions

  1. Start LiveSplit and load a list of 22 splits (or create your own).
  2. Add LiveSplit Server to the layout.
  3. Feel free to play with the layout settings so that it shows the list of segments and a predicted total time. Optionally, load the provided layout file.
  4. Start the server (secondary click on LiveSplit -> Control -> Start Server).
  5. Open the Windows Command Prompt, go to the directory where you downloaded the alpe_split.py script, and run python3 alpe_split.py.
  6. Open Zwift and ride up the Alpe du Zwift (Road to Sky is the recommended route).

Does it work?

If this works well for a few testers, I'll see about creating an executable file so that users don't have to deal with the command line.

Caveats and comments

  • If you went up the Alpe du Zwift in your last ride, you might see many splits being marked immediately as taking 0 or 1 seconds. If that's the case, exit LiveSplit, open Zwift and open LiveSplit again once you're logged in to Zwift. That should clear the previous log file and you'd be ready for a fresh attempt.
  • This works for a single climb, so it won't reset if you start a second climb. Although that could be a nice improvement, especially for people who might want to pace multiple climbs, at this moment this is a proof of concept to see how well it works. We can try to make it better once a few people have used it successfully.

alpe_split's People

Contributors

amallea-en avatar janoma 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.