strautomator / web

Strautomator Web / API
https://strautomator.com/
MIT License
30 stars 1 forks source link

Merge activites #16

Closed cagnulein closed 1 year ago

cagnulein commented 1 year ago

Hi @igoramadas ! I don't know if you remember me, QZ developer https://github.com/cagnulein/qdomyos-zwift !

I'm writing this because a QZ user ( @victorypoint ) here https://github.com/cagnulein/qdomyos-zwift/pull/1280#issuecomment-1437604488 pointed me to an issue of Zwift app that could be easily solved with your project.

In short, Zwift doesn't handle all the QZ stats to strava and the idea that we have is that we can merge the QZ fit file and the Zwift one in one only big fit file.

What do you think?

In particular we are interested about positive and negative elevation gain from QZ to zwift file.

Let me know!

igoramadas commented 1 year ago

Yes I do remember you :-)

So I quickly checked the issue, and I think this would go out of scope for Strautomator.

First, it would need to be connected to both Zwift and your app, so it could get notified of new workouts to then merge those files before pushing to Strava. Problem is that Zwift doesn't have a public API (only a private one), and Strautomator would need to open an incoming endpoint in which you would post your QZ file.

Technically, it's possibly doable, but I think that would be a very niche case for an already very niche segment of Strava power users.

If you want to try to spin up an instance of Strautomator yourself and get such integration done, feel free to fork the repo and ask for help whenever you need.

cagnulein commented 1 year ago

@igoramadas Thanks, actually I don't think we need access to Zwift API. We just need the trigger of a new activity, and when it comes from zwift and/or qz we have to merge the fit files.

Is this any better?

igoramadas commented 1 year ago

How would Strautomator get those files? Strava does not expose the original FIT files via API.

cagnulein commented 1 year ago

Hah! I missed this, I thought Strava does. Ok nevermind. Thanks for your time!

igoramadas commented 1 year ago

No worries :-)