Update Xiaomi_Scale.py

This commit is contained in:
5high 2021-01-10 16:29:46 +08:00 committed by GitHub
parent 6370eadf54
commit 51d65b009a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ class ScanProcessor():
if hasImpedance:
lib = Xiaomi_Scale_Body_Metrics.bodyMetrics(calcweight, height, age, sex, int(miimpedance))
bodyscale = ['Obese', 'Overweight', 'Thick-set', 'Lack-exerscise', 'Balanced', 'Balanced-muscular', 'Skinny', 'Balanced-skinny', 'Skinny-muscular']
bodyscale = ['肥胖型', '超重型', '壮实型', '缺乏锻炼型', '平衡型', '平衡肌肉型', '偏瘦型', '平衡瘦型', '瘦肌肉型']
message += ',"去脂体重":' + "{:.2f}".format(lib.getLBMCoefficient())
message += ',"体脂":' + "{:.2f}".format(lib.getFatPercentage())
message += ',"水分":' + "{:.2f}".format(lib.getWaterPercentage())