From 6b8ccc2412207bec0d5cfc66feeba228b8070963 Mon Sep 17 00:00:00 2001 From: 5high <5high.net@gmail.com> Date: Sat, 9 Jan 2021 23:25:04 +0800 Subject: [PATCH] Update Xiaomi_Scale.py --- mi-scale/src/Xiaomi_Scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi-scale/src/Xiaomi_Scale.py b/mi-scale/src/Xiaomi_Scale.py index 45d268e..2c02dbb 100644 --- a/mi-scale/src/Xiaomi_Scale.py +++ b/mi-scale/src/Xiaomi_Scale.py @@ -292,7 +292,7 @@ class ScanProcessor(): message += ',"身体类型":"' + str(bodyscale[lib.getBodyType()]) + '"' message += ',"代谢年龄":' + "{:.0f}".format(lib.getMetabolicAge()) - message += ',"timestamp":"' + mitdatetime + '"' + message += ',"测量时间":"' + mitdatetime + '"' message += '}' try: sys.stdout.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Publishing data to topic {MQTT_PREFIX + '/' + user + '/weight'}: {message}\n")