cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
370 stars 109 forks source link

[REQ] control trainer resistance from Garmin watch #1930

Open stewpend0us opened 9 months ago

stewpend0us commented 9 months ago

Is your feature request related to a problem? Please describe. I'd like my Garmin watch to be able to control the bike resistance based on a workout

Describe the solution you'd like Seems like the easiest (without knowing anything about the code or constraints #953 ) thing to do would be to implement the FE-C ant+ device. Here's a repo that seems to have it working in c++ https://github.com/alex-hhh/TrainerControl/blob/master/src/FitnessEquipmentControl.cpp

Describe alternatives you've considered Could probably get this working using the QZ Companion app with 'Background' processes. The QZ phone app would have to essentially poll the watch to get the current/next workout steps and then set the resistance that way. This seems more clunky to me and requires the QZ Companion app to be installed but maybe gets around some other technical issues I don't understand

cagnulein commented 9 months ago

duplicate of #1841 :)

cagnulein commented 9 months ago

yes i just need the time to do it :)

stewpend0us commented 9 months ago

Ah. I apologize for the duplicate! I might be able to help some if you can point me in the right direction...

cagnulein commented 9 months ago

no problem! do you need it on android right?

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno sab 30 dic 2023 alle 22:22 Stewart @.***> ha scritto:

Ah. I apologize for the duplicate! I might be able to help some if you can point me in the right direction...

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1930#issuecomment-1872609485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWHGXORYRNKMEDJQLGDYMCAYFAVCNFSM6AAAAABBHYGPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGYYDSNBYGU . You are receiving this because you were assigned.Message ID: @.***>

stewpend0us commented 9 months ago

Yeah I use android. Just got an ant+ dongle so I can get cadence/power now!

cagnulein commented 9 months ago

great! are you a java developer? the code should be easy to do in case

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno sab 30 dic 2023 alle 22:31 Stewart @.***> ha scritto:

Yeah I use android. Just got an ant+ dongle so I can get cadence/power now!

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1930#issuecomment-1872610789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWE7BPHTQYH37Q3N3OLYMCB3VAVCNFSM6AAAAABBHYGPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGYYTANZYHE . You are receiving this because you were assigned.Message ID: @.***>

stewpend0us commented 9 months ago

Not exactly but may be able to get it figured out. Is there a specific file/files I should look at to get a better idea?

stewpend0us commented 9 months ago

I do c++ development professionally and have done a couple "hello world" Android apps. I also don't give up easy...

cagnulein commented 9 months ago

@stewpend0us you are "another me" so :D i'm a firmware guy :)

you can check this file to start https://github.com/cagnulein/qdomyos-zwift/blob/master/src/android/src/PowerChannelController.java

it's the power sensor on ant+ of qz

you can use it for reference.

you can create a PR so the CI on github will create directly a binary every change you made so you don't need to setup a build environment (only an editor :) )

Let me know if you have any questions

stewpend0us commented 9 months ago

Awesome. I'll take a closer look tonight and open a PR if it seems like something I can manage.

cagnulein commented 8 months ago

@stewpend0us any news?

stewpend0us commented 8 months ago

No news. Been traveling for work. I did read through the documentation for FE-C and it seems doable but need to find a minute

cagnulein commented 8 months ago

No worries, thanks for the update!

Il giorno gio 11 gen 2024 alle 11:33 Stewart @.***> ha scritto:

No news. Been traveling for work. I did read through the documentation for FE-C and it seems doable but need to find a minute

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1930#issuecomment-1886817199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWF6IX74P7L2YL4WGZDYN65W7AVCNFSM6AAAAABBHYGPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWHAYTOMJZHE . You are receiving this because you were assigned.Message ID: @.***>

stewpend0us commented 8 months ago

Just curious...why aren't you using this: https://github.com/ant-wireless/ANT-Android-SDKs/tree/master/ANT%2B_Android_SDK

cagnulein commented 8 months ago

we are using that one :) it's the lib under qz

stewpend0us commented 8 months ago

I see the Ant lib but not the Ant+ lib?

cagnulein commented 8 months ago

yes i'm using only ant, if you think that it could be useful and easier using the ant+ please go on! i never investigated it

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno sab 13 gen 2024 alle 20:39 Stewart @.***> ha scritto:

I see the Ant lib but not the Ant+ lib?

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1930#issuecomment-1890749200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWDC5H5Q6CZN2PL6HW3YOLPGDAVCNFSM6AAAAABBHYGPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG42DSMRQGA . You are receiving this because you were assigned.Message ID: @.***>

stewpend0us commented 8 months ago

Seems like the ant+ lib might have been useful for some of the simpler stuff like heart rate...but doesn't add anything for faking a FE-C Trainer device. I'm working locally on my machine with just a place holder Android project just so I can check if things compile...once I have something worth trying out I'll put it here.

cagnulein commented 8 months ago

Cool, let me know.

Il giorno mar 16 gen 2024 alle 04:24 Stewart @.***> ha scritto:

Seems like the ant+ lib might have been useful for some of the simpler stuff like heart rate...but doesn't add anything for faking a FE-C Trainer device. I'm working locally on my machine with just a place holder Android project just so I can check if things compile...once I have something worth trying out I'll put it here.

— Reply to this email directly, view it on GitHub https://github.com/cagnulein/qdomyos-zwift/issues/1930#issuecomment-1893014467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWAMP5SEVPCCPBUBSSLYOXXGJAVCNFSM6AAAAABBHYGPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGAYTINBWG4 . You are receiving this because you were assigned.Message ID: @.***>

stale[bot] commented 8 months ago

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.

stale[bot] commented 7 months ago

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.