cagnulein / qdomyos-zwift

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

[BUG] Large Calorie difference between QZ and Zwift #1696

Closed hortocam closed 10 months ago

hortocam commented 11 months ago

Describe the bug Large difference between QZ calorie count and what Zwift & Bike are calculating.

Main concern is that if QZ is calculating much higher, this is the data that is going to Apple Health and it makes my Active Energy counts way higher than reality.

Secondary concern is that Apple Watch is counting active energy at the same time a workout is going on. I am using the QZ app from my watch for HRM.

Combined together, my active energy is overstated so I cannot rely on what I see it Apple Health or the Fitness app.

Example I am 52 yo male. I weigh 315 pounds. My weight is set to 315 in Zwift and 317 in QZ. FTP: 200

I did a 7mi ride this morning. QZ calculated 715 calories. Zwift showed 315.

You can see from the Apple Health screenshot that it recorded 715 calories from QZ at 10:54am. But prior to that (it goes back to the time I started the ride) my watch is also tracking active calories at sub-minute intervals.

In the overall move calories it seems to be adding these together.
debug-Tue_Oct_10_09_36_46_2023.log

Expected behavior Relative parity between calorie calculations on Bike / Zwift / QZ.

Screenshots IMG_1810

IMG_1807

IMG_1808

Smartphone (please complete the following information):

Append a debug log Log attached from the morning ride.

cagnulein commented 11 months ago

thanks i will check it tomorrow so i will do a single release in case i will find something

Il giorno mar 10 ott 2023 alle 19:08 Cameron Horton < @.***> ha scritto:

Assigned #1696 https://github.com/cagnulein/qdomyos-zwift/issues/1696 to @cagnulein https://github.com/cagnulein.

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

cagnulein commented 11 months ago

@hortocam checking with an external tool that have a similar formula looks ok the QZ result.

image

of course, as I said by email, there are a lot of different algorithm that are available to calculate the calories. For sure zwift is using a different one.

So let's think about a possible solution for you (if you don't like the QZ result):

What do you think?

For the AW issue, I'm checking and I will post here my findings.

Thanks for feedback!

cagnulein commented 11 months ago

ok I have also already the answer for the AW thing. AW is using the most priority app for the KCAL counts if there are multiples. You can set QZ or Apple Calories from this menu. I checked on my today's workout, and only the QZ ones are counted

image

cagnulein commented 11 months ago

image

1300kcal today

where 1000kcal from my indoor session

image

140kcal from my outdoor one image

the rest 150kcal is me walking into the office :) let me know your thoughts

stale[bot] commented 11 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.

cagnulein commented 10 months ago

@hortocam are we good with this?