davidkroell / bodycomposition

Bodycomposition is a program to manage your body measurements and composition stored in Garmin Connect from your beloved commandline.
Apache License 2.0
33 stars 3 forks source link

BMI parameter #9

Closed RobertWojtowicz closed 2 years ago

RobertWojtowicz commented 3 years ago

Hi,

I miss the BMI parameter transfer to Garmin Connect. Can you check if there is such a possibility?

Best Reagards, Robert

davidkroell commented 3 years ago

Hi @RobertWojtowicz I already experienced this, but I cannot find the root cause yet.

It seems like the problem is in Garmin connect. At the specific weight-ins the BMI is not shown, but when you use the weekly/monthly view, the average BMI shows up (maybe internally calculated).

It seems that this is also not possible in https://github.com/kochka/WeightLogger.

Regards

davidkroell commented 3 years ago

Hi @RobertWojtowicz, may I close this?

RobertWojtowicz commented 2 years ago

Hi @davidkroell

Could you have a look at this? I guess you could add BMI: https://github.com/jaroslawhartman/withings-garmin-v2/pull/19

In a newer version: https://github.com/jaroslawhartman/withings-sync/blob/master/withings_sync/fit.py

Best Reagards, Robert

davidkroell commented 2 years ago

Hi @RobertWojtowicz I'm currently looking into it. The base library I use will need an update.

I'm working on that right now.

Best regards

RobertWojtowicz commented 2 years ago

rrently looking into it. The base library I use will need an update

Thank you very much

RobertWojtowicz commented 2 years ago

Analyzing the BMI sync case, I found this, maybe it can help to solve the problem of Caloric Intake sync (https://github.com/davidkroell/bodycomposition/issues/11): https://github.com/jaroslawhartman/withings-sync/blob/master/withings_sync/fit.py You can see such fields: (7, FitBaseType.uint16, basal_met, 4), (9, FitBaseType.uint16, active_met, 4), >> caloriesActiveMet (Caloric Intake ?)

The case looks old: https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/43018/body-fat-manual-input/307510

Best Regards, Robert

davidkroell commented 2 years ago

Hi,

of course this could be also the case but I'm not sure if your code snippet is correct. You maybe mix something up here.

I think the active_met is the burnt calories rather than the calories eaten.

Maybe it is also possible to implement this using a similar fix, but I'll have to investigate this further

BR, David

RobertWojtowicz commented 2 years ago

Maybe it is also possible to implement this using a similar fix, but I'll have to investigate this further

BR, David

Thank you very much for your support, I am patiently waiting for the fixes :) I adapted Xiaomi scale sync with your amazing module, it works perfectly :)

Best Regards, Robert

davidkroell commented 2 years ago

Part of the version v2.2.0

Regards, David