ERG/MRC to Zwift Workout File, based on code posted to this blog https://fukawitribe.wordpress.com/2015/12/15/zerg-ergmrc-to-zwift-workout-file/
In an effort to better understand the format that is needed for Zwift to correctly accept the files this script creates, here is some reverse engineered documentation.
An interval that stays at the same level for the entire time.
- Duration: Time of Interval, in seconds
- PowerLow: % of FTP for interval divided by 100
- PowerHigh: % of FTP for interval divided by 100 (appears to be redundant to PowerHigh)
An interval that slowly increases the power required throughout the duration of the interval.
- Duration: Time of Interval, in seconds
- PowerLow: % of FTP for the start of the warmup divided by 100
- PowerHigh: % of FTP for the end of the warmup divided by 100
An interval that slowly decreases the power required throughout the duration of the interval.
- Duration: Time of Interval, in seconds
- PowerLow: % of FTP for the start of the cooldown divided by 100
- PowerHigh: % of FTP for the end of the cooldown divided by 100