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

Using Zwift sideloaded on to Peloton bike? #22

Closed
vodlogic opened this issue Oct 15, 2020 · 6 comments
Closed

Using Zwift sideloaded on to Peloton bike? #22

vodlogic opened this issue Oct 15, 2020 · 6 comments

Comments

@vodlogic
Copy link
Contributor

vodlogic commented Oct 15, 2020

@jeremydk @notsureifkevin, I understand that for the Peloton bike to broadcast the power/cadence, a Peloton class must be loaded ready to start or in progress. Do you know if the Peloton app runs happily in the background, continuing to broadcast data so that we can use Zwift sideloaded on to the Peloton tablet screen or would we need to use another tablet for zwift? If not happy to give it a try when my cables arrive.

@kvncrw
Copy link
Contributor

kvncrw commented Oct 15, 2020

It's possible to command the sensor directly and bypass using the Peloton service. You can probably start a "Just Ride" session and swap it to the background, but I found the Peloton tablet entirely too underpowered to run Zwift so I just run it on a different device now.

https://github.com/notsureifkevin/peloton-power/blob/master/index.js#L36-L52

You can drop this code into the peloton bike service, and reverse the TIP/RING on the serial cable (both need to be connected), and you shouldn't even need the Peloton service running on the tablet.

@vodlogic
Copy link
Contributor Author

Thanks I'll give both approaches a go and if the latter works I'll consider raising a PR to call the setInterval as a cli option

@vodlogic
Copy link
Contributor Author

vodlogic commented Oct 22, 2020

#24 would be great if someone could give this a test aswell and confirm whether the polling intervals are good enough

@PHOLAN
Copy link

PHOLAN commented Feb 3, 2021

Would it be possible to fully disconnect the Peloton Head Unit? Have the Raspberry send the wake up message to the bike upon a bluetooth device connection to the Raspberry, such from Zwift?

@kvncrw
Copy link
Contributor

kvncrw commented Feb 3, 2021

@PHOLAN yes, it would be possible, #24 can already command the sensor package without the H/U, but you'd need to write a hook that would determine if a BT connection was established to start the polling. I sold my Peloton months ago, so I don't have any interest in the project now, but good luck if you decide to try and make that work.

@ptx2
Copy link
Owner

ptx2 commented Feb 14, 2021

@PHOLAN This works now in v1.3.0. The wiring shown here: #12 (comment) needs two modifications: 1) disconnect the tablet and 2) connect the disconnected RCA cable. Good luck!

@ptx2 ptx2 closed this as completed Feb 14, 2021
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

4 participants