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.
- Zwift for Windows
- LiveSplit with LiveSplit server
- Python 3
- The
alpe_split.py
script.
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.
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.
- Start LiveSplit and load a list of 22 splits (or create your own).
- Add LiveSplit Server to the layout.
- 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.
- Start the server (secondary click on LiveSplit -> Control -> Start Server).
- Open the Windows Command Prompt, go to the directory where you downloaded the
alpe_split.py
script, and runpython3 alpe_split.py
. - Open Zwift and ride up the Alpe du Zwift (Road to Sky is the recommended route).
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.
- 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.