creotiv / MiBand2

Library to work with Xiaomi MiBand 2
Creative Commons Zero v1.0 Universal
544 stars 173 forks source link

python example.py --mac MAC_ADDRESS --init #41

Open jalpeshpanchal99 opened 4 years ago

jalpeshpanchal99 commented 4 years ago

Traceback (most recent call last): File "example.py", line 5, in from base import MiBand2 File "/root/MiBand2/base.py", line 104 self.device.outfile.write(f"{timestamp.strftime('%d.%m.%Y - %H:%M')},{category},{intensity},{steps},{heart_rate}\n")

yeah61 commented 4 years ago

Traceback (most recent call last): File "example.py", line 5, in from base import MiBand2 File "/root/MiBand2/base.py", line 104 self.device.outfile.write(f"{timestamp.strftime('%d.%m.%Y - %H:%M')},{category},{intensity},{steps},{heart_rate}\n")

have you solved this problem? I meet the same question today.

GiacomoEandi commented 3 years ago

I solved by commenting the line 104 within the file base.py Now it works with my Raspberry Pi 4