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

Zwift hub one Click integration #181

Open
CarlosMenke opened this issue Jan 23, 2024 · 2 comments
Open

Zwift hub one Click integration #181

CarlosMenke opened this issue Jan 23, 2024 · 2 comments

Comments

@CarlosMenke
Copy link

Hey, i just got a Zwift hub one with virtual shifting, and i wanted to ask if you could implement virtual shifting of the cycling trainer, because without it is hard to use with your app?

Thanks in advance!

@bttger
Copy link

bttger commented Apr 6, 2024

As far as I know, Zwift has not published any specification about the Zwift click. So we don't know how to read it (yet).

Wahoo writes "If you plan to ride in Zwift, but also in other apps like our SYSTM training app or others, the Zwift Cog will work for most applications, but because the Click only functions in Zwift, you won’t be able to shift gears. This is fine for ERG mode workouts, but for other virtual ride environments, fitness tests, or some sprint workouts, shifting is necessary. In any case, read on for other considerations."

@dvmarinoff
Copy link
Owner

Hey, folks, I've been slowly working on this. In another project we have the Zwift Click commands figured out and the traffic decoded. What remains is the control of the trainer. I am sceptical that Zwift/Wahoo would ever release access to the public, so this would need to be solved in a round about way. In this other project we have explored the idea to use ERG mode to Simulate virtual gears. It's working, but it needs more refinement.

In the future I'll add support here. There is actually some code in the project already. The biggest obstacle is figuring out the function that matches nicely ERG resistance to virtual gears. And the second thing is the encryption. The Zwift Click uses AEC CCM mode, but the browser has support for AES GCM mode. So I'd have to implement a small encryption library too.
It's a lot of work to do all these tasks, so it will take time, but it's definitely coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants