netbrain / zwift

Easily zwift on linux
The Unlicense
238 stars 27 forks source link

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

Closed netbrain closed 1 month ago

netbrain commented 5 months ago

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

Simplify if possible.

netbrain commented 5 months ago

@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.

sHedC commented 3 months ago

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\\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 commented 3 months ago

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?

netbrain commented 3 months ago

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.

sHedC commented 3 months ago

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.

netbrain commented 3 months ago

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

sHedC commented 1 month ago

Added Support in latest, see the README.