-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
[BUG] Peloton Auto-sync not working after Peloton app update #1767
Comments
mmm ok let's start saying that peloton didn't change the API. They're starting with
as usual |
i'm checking if maybe it's the autosync the issue |
@marklogan17 it seems that the auto sync is not working anymore that's the issue. I see over and over the same frame in the OCR, like peloton blocks QZ from getting their frame (video protection). If you press yes on the popup when the timer is 0:00 after the intro i guess it should be fine right? |
Yup, I think that would work just like it does when auto-sync is off. I wonder if I can bypass the video protection... |
it's the same issue on google tv #1441 |
Oh well, I can hit start at the right time :) |
ehehe but i guess they are hiding the elapsed somewhere...
Il giorno ven 3 nov 2023 alle 15:56 marklogan17 ***@***.***>
ha scritto:
… Oh well, I can hit start at the right time :)
—
Reply to this email directly, view it on GitHub
<#1767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALYWEQP3HOUU6SLSQC74TYCUA3XAVCNFSM6AAAAAA64P4C4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGU4TGOBWGA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
@marklogan17 I had an idea: when you have time could you please provide me a qz debug log where
If I can get this event I can do auto sync without the ocr |
Turned off auto sync.
Log file attached |
thanks i will check it today, just as a reminder for me, if i can't find
anything useful here we can try to sniff with a chrome browser using
peloton on a web browser if it shows the elapsed timer
Il giorno ven 3 nov 2023 alle 22:01 marklogan17 ***@***.***>
ha scritto:
… Turned off auto sync.
- Started QZ (with floating window), started Peloton, picked class,
started class.
- Waited until intro was done and hit 'yes' on floating window.
- Road for 5 minutes
- Hit pause on peloton
- Waited a bit over 2 minutes (kept riding)
- Hit 'play' on peloton
- Rode for approx 2 minutes
- BONUS:
- Hit 'forward 30 seconds' on Peloton
- Rode for 30 seconds or so
- Hit 'back 30 seconds' on Peloton
- Rode for 30 seconds or so
- Ended class
- Exited QZ
Log file attached
debug-Fri_Nov_3_16_43_57_2023.zip
<https://github.com/cagnulein/qdomyos-zwift/files/13254668/debug-Fri_Nov_3_16_43_57_2023.zip>
—
Reply to this email directly, view it on GitHub
<#1767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALYWC6FQIMC4GK7XN6QGLYCVLUDAVCNFSM6AAAAAA64P4C4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGA4TQMZZGA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
thanks @marklogan17 for the test, unfortunately there is no difference along the whole workout until you finished it :( So, if you want and you're available we can try to collect some information from the developer view on chrome or any other browser. I would like to do myself but as you know I can't access to a peloton account from Italy and for other reasons... So the test would be (it has sense only if you can see the elapsed timer on the web interface of peloton):
you can export also the HAR file in chrome with all the details I guess. Thanks as usual! |
Did the same class in the browser.
HAR file: https://drive.google.com/file/d/1nLxt41JNYQvPqPVrN0hkS--YFsb_67cA/view?usp=drive_link |
@marklogan17 great news! In the "packets" ( The only issue is that it seems a writing endpoint so we have to understand if we can also read them. Bonus issue: it seems that the web app is writing it only every 10 seconds) So that's my plan: I will build a new PC version of qz trying to read that endpoint. I hope will have some results from it I will share here the link for the PC version. When you will have it, you can just enable the fake bike setting, adding your peloton credentials and do a fake workout of 1-2 minutes with the debug log enabled Thanks in advance! |
also @marklogan17 I guess we can check the API with the same chrome procedure from this website https://support.onepeloton.com/hc/en-us/articles/13924166574356-Downloading-Your-Workout-History-and-Data (trying to get a workout) |
Trouble connecting to Peloton. Debug log. I'm sure the username and password was right - tried username, email, etc. Could have been airport wifi. Could have been vpn or firewall on the laptop we were using. Will find another system to try it on later. https://drive.google.com/file/d/1sAP93160sRZnElQLKzUhRNTcCM5N5PbG/view?usp=drive_link |
that's the error
it could be something on the windows build. I'm checking it |
@marklogan17 peloton auth fixed https://github.com/cagnulein/qdomyos-zwift/suites/18009692409/artifacts/1036335623 Let me know! Sorry for the delay, crazy days as usual! |
I'll see if we can get it tested today! |
Ran it. Success connecting to Peloton (green checkmark). Ran it, ran class on separate device. Didn't get prompt on QZ to follow class. Tried it with auto sync enabled the second time because, well, why not :) https://docs.google.com/document/d/1niF9SHAsoTgG8B-2sifWRnshJrXZaE19iDAyDRx3kFI/edit?usp=drive_link |
ok that's the issue
the API that I added that I hoped it was read/write it seems to be read only. |
when you have time could you please also check this? |
Done. Files attached (had to zip the har file so github would let me upload) |
thanks, i will check it asap. i hope it's time to fly back home ;)
Il giorno ven 10 nov 2023 alle 21:36 marklogan17 ***@***.***>
ha scritto:
…
https://support.onepeloton.com/hc/en-us/articles/13924166574356-Downloading-Your-Workout-History-and-Data
Done. Files attached (had to zip the har file so github would let me
upload)
WorkoutDownload.har.zip
<https://github.com/cagnulein/qdomyos-zwift/files/13323016/WorkoutDownload.har.zip>
mlogan17_workouts (1).csv
<https://github.com/cagnulein/qdomyos-zwift/files/13323017/mlogan17_workouts.1.csv>
—
Reply to this email directly, view it on GitHub
<#1767 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALYWEWUSY7JMFT522Q54TYD2F6DAVCNFSM6AAAAAA64P4C4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGQYDAMJVGA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Got home last night! Home for two whole weeks now!! |
log checked, unfortunately there is only the https://api.onepeloton.com/api/user/xxxxx/workouts?joins=ride&limit=10&page=0 api used... Is there any other webpage on the peloton website that you think that could contains useful data? Otherwise my last idea for this (and I know for sure that will work) is to embeed the website of peloton inside QZ and so i can inject a javascript to collect the elapsed time without using the OCR. What do you think? |
Nothing I can think of. Obviously there has to be some control from the web to the servers and the app to the servers to keep everything in sync. Potentially could do wireshark to sniff the app to see if its doing anything different but you would think they would have the same mechanism for web and app versions. |
Yes I guess they have the same behaviour...what do you think about the embedded version of peloton in the qz app? |
@marklogan17 ok almost done (at least for html parsing) How to Use:
Let me know, I will be ready tomorrow or in the day after tomorrow with a test version in qz ;) |
ok that's my idea to try to understand this: I will create a simple android app directly in java to understand if the standard webview has also this limitation. I will let you know the result! |
ok tried, it works fine. so there is something to setup in the android webview under the qt or I will try to use a standard component directly on QZ. I will keep you posted |
ok, update. The error is about stryde So I already thought about a second solution: using a bookmarklet that can send data via udp like the QZ AI companion app already did! It should also be easier. I will let you know! |
ok due to security browser reason i need to add a https server in the middle that receives the info from the browser and it sends to qz i don't know how many out there will run peloton on browser for auto sync. |
Its a lot of work when the alternative is just hitting 'yes' at the right time and everything works fine... |
lol yes, anyway this it will also bring the floating window on ios for example. It will be nice in the future. I will keep you updated if something new will pop up in my mind. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Android tablet (Samsung Galaxy S9). Peloton running. QZ running with floating window and peloton auto-sync enabled. Worked correctly until recent Peloton app update (where they introduced the tracking for cadence and resistance in the app). Since that update QZ seems to have started as soon as you hit 'Yes' on the prompt. I end up needing to use the Peloton offset to get somewhere close to -60s to get the class in sync.
Log file attached
The text was updated successfully, but these errors were encountered: