Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
netbrain opened this issue Apr 11, 2024 · 6 comments
Open

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

netbrain opened this issue Apr 11, 2024 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@netbrain
Copy link
Owner

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

Simplify if possible.

@netbrain netbrain added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Apr 11, 2024
@netbrain
Copy link
Owner Author

@jonathanglima ☝️ 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 sHedC self-assigned this May 13, 2024
@sHedC
Copy link
Collaborator

sHedC commented May 24, 2024

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
Copy link
Collaborator

sHedC commented May 24, 2024

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
Copy link
Owner Author

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
Copy link
Collaborator

sHedC commented May 24, 2024

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants