diff --git a/app/mifit_to_influxdb.py b/app/mifit_to_influxdb.py
--- a/app/mifit_to_influxdb.py
+++ b/app/mifit_to_influxdb.py
#
@@ -224,7 +224,6 @@ def minute_to_timestamp(minute, day):
#
time_norm = minutes_as_time(minute)
#
date_string = f"{day} {time_norm}"
#
epoch = int(datetime.datetime.strptime(date_string, "%Y-%m-%d %H:%M").strftime('%s'))
#
@@ -234,7 +233,7 @@ def get_band_data(auth_info):
#
- print("Retrieveing mi band data")
#
+ print("Retrieving mi band data")
#
band_data_url='https://api-mifit.huami.com/v1/data/band_data.json'
#
'apptoken': auth_info['token_info']['app_token'],
#
@@ -274,25 +273,33 @@ def get_band_data(auth_info):
#
summary=json.loads(base64.b64decode(daydata['summary']))
#
for k,v in summary.items():
#
- dump_step_data(day,v)
#
+ # dump_step_data(day,v)
#
result_set = result_set + extract_step_data(ts, v, day)
#
# dump_sleep_data(day,v)
#
result_set = result_set + extract_sleep_data(ts, v, day)
#
- "timestamp": int(ts) * 1000000000, # Convert to nanos
#
- "step_goal" : int(v),
#
+ "timestamp": int(ts) * 1000000000, # Convert to nanos
#
+ "step_goal" : int(v),
#
+ "timestamp": int(ts) * 1000000000, # Convert to nanos
#
+ "last_sync" : int(v),
#
+ print(f"Skipped {k} = {v}")
#
return result_set, serial