zwift icon indicating copy to clipboard operation
zwift copied to clipboard

Fix the "How can I add custom .zwo files?" section in the README

Open netbrain opened this issue 10 months ago • 1 comments

Improve this section in the README and check if it is currently correct.

Simplify if possible.

netbrain avatar Apr 11 '24 07:04 netbrain

@jonathanglima :point_up: not sure if the latest wine 9 has broken this for you. But i think the paths may be incorrect now. And maybe this could be simplified to allow for a separate volume for zwo files. Depends on where the zwo files are located.

netbrain avatar Apr 11 '24 07:04 netbrain

e 9 has broken this for you. But i think the paths may be incorrect now. And maybe this could be simplified to allow for a separate volume for zwo files. Depends on where the zwo files are located.

zwo files are located under user\Documents\Zwift<ZwiftID>\Workouts

Problem here is the ZwiftID is a number related to the specific login user. not so easy to have a separate volume or mount point.

sHedC avatar May 24 '24 15:05 sHedC

Would doing a script to add or make an option for zwift to make use of that to copy or add a zwo mount point? then get the id from the auth and do a link or sync from the mount point to the Workouts?

e.g. ZWIFT_ZWO=/home/<user>/.config/Zwift/Workouts zwift or just use the config area to say if exists Workouts then mount to copy/ link?

Looking up the ID from the login details is as follows. curl -sSl --get --data-urlencode "username=user" --data-urlencode "pw=password" https://z00pbp8lig.execute-api.us-west-1.amazonaws.com/latest/zwiftId

Thoughts?

sHedC avatar May 24 '24 16:05 sHedC

Probably better if we provide a way to find your Zwift Id as a helper script or just in the docs and then have two env vars.

ZWIFT_ZWO=/home/netbrain/my-zwo ZWIFT_ACCOUNT_ID=1234

With these two we can link or copy the files into the container. Preferably link, but then you must link with proper uid/gid.

netbrain avatar May 24 '24 18:05 netbrain

Probably better if we provide a way to find your Zwift Id as a helper script or just in the docs and then have two env vars.

ZWIFT_ZWO=/home/netbrain/my-zwo ZWIFT_ACCOUNT_ID=1234

With these two we can link or copy the files into the container. Preferably link, but then you must link with proper uid/gid.

Yep ok with that too, actually I got that from here where it just posts direct from local page.

https://www.virtualonlinecycling.com/p/zwiftid.html

could just point to that.

sHedC avatar May 24 '24 18:05 sHedC

I try to follow KISS (keep it simple stupid) whenever possible

netbrain avatar May 24 '24 19:05 netbrain

Added Support in latest, see the README.

sHedC avatar Jul 14 '24 16:07 sHedC