The workout builder now supports text events. Currently these only work in zwo (Zwift) files and workouts automatically uploaded using the Zwift integration. Other platforms and file formats get all the messages concatenated together. Here is an example:
Yeah same thing I found only I noticed it by building the workouts as .zwo files and importing. Doing this causes a line like this and in Zwift that whole message block is displayed at the beginning of the repeat as 1 message:
Set #3 – final set, make it count! 240^ Halfway through final set 420^ Last interval – empty the tank!<!> 8x
- 30s 130%
- 30s 50%
I’m building an automated workout generator that creates ZWO files via the API (POST /api/v1/athlete/{id}/events with file_contents + file_extension: "zwo").
My ZWO includes TextEvents like:
<SteadyState Duration="600" Power="0.65">
<TextEvent timeoffset="10" duration="30" message="Find your rhythm!"/>
</SteadyState>
But after upload, the TextEvents are stripped - workout_doc doesn’t contain them and file_contents is empty when I fetch the workout back.
Is there a way to preserve TextEvents when uploading via the API? Or a different format I should use?
Hi I am trying to get chatgbt to help me do my cycling planning and write it out in intervals to be used in zwift but I have an issue with getting the textevent on screen in zwift. Could you help me with what is wrong with the codign of this workout: "Warmup