creotiv / MiBand2

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

Past/saved data on the MiBand2 #6

Closed FHantke closed 5 years ago

FHantke commented 6 years ago

Hello Andrey,

first, thank you for your great article and this program, I learned a lot.

I try to plot past/saved data like minutely steps since yesterday. I know it is possible as I have seen in wireshark, but I don't get it. I don't get it working for me...

Do you have any idea how it could work?

creotiv commented 6 years ago

minutes from yesterday = (record_timestamp - yesterday_timestamp) // 60

then just use pandas dataframe to group by minutes and get mean value df = df.groupby('minutes from yesterday').mean() df.plot()

Kindly yours, Andrey Nikishaev

Sit&Fit https://angel.co/sit-fit/ - underdesk stepper trainer. Essenly http://essenly.com - книги в кратком изложении. groovyCV http://groovycv.com - создание стильных резюме

Rates Soft Dev from $40/h, Consultation BizDev/Marketing/Customer Rel/IT from $80/h LinkedIn http://ua.linkedin.com/in/creotiv GitHub http://github.com/creotiv Slideshare https://www.slideshare.net/anikishaev/ Skype creotiv.in.ua Mobile +380632410666

On Sun, May 6, 2018 at 1:28 PM, FHantke notifications@github.com wrote:

Hello Andrey,

first, thank you for your great article and this program, I learned a lot.

I try to plot past/saved data like minutely steps since yesterday. I know it is possible as I have seen in wireshark, but I don't get it. I don't get it working for me...

Do you have any idea how it could work?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/creotiv/MiBand2/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPRDQkLqCYDZpS5X8Ig2PB_qja_1Hllks5tvtBAgaJpZM4Tz-lo .

FHantke commented 6 years ago

Sorry if I phrased this wrong. I mean, I try to extract the past data from the MiBand2 using the BT Gatt Protocol. I saw in the hcilog that the MiFit application sends a timestamp to receive data since this timestamp.

creotiv commented 6 years ago

Current lib doesn't have this, but you can add it.

Fluel commented 6 years ago

Hi creotiv! nice work. I need to extract past data if it is possible. Can you add this function to the library? Thanks

FHantke commented 6 years ago

Hey, I figured out how it works and will add it as soon as I find time.

creotiv commented 6 years ago

Cool) Glad to here this)) will look forward for your update)

On Mon, Jun 11, 2018, 6:36 PM FHantke notifications@github.com wrote:

Hey, I figured out how it works and will add it as soon as I find time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/creotiv/MiBand2/issues/6#issuecomment-396287219, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPRDX3vVuaLZbmqRIy4mZJ3cP4ue-W3ks5t7o6YgaJpZM4Tz-lo .

wshadow commented 5 years ago

Any update on this issue @FHantke ? I would also be very much interested in this feature.

FHantke commented 5 years ago

Hello, I finally found the time to add my code to this project. @creotiv can you give me the permission to push my code? I will upload a new branch so you can check the changes.

creotiv commented 5 years ago

use pull request

Kindly yours, Andrey Nikishaev

Areas ML/DS/CV/Soft Dev/BizDev/Growth Hacking/Customer Rel/IT LinkedIn http://ua.linkedin.com/in/creotiv GitHub http://github.com/creotiv Slideshare https://www.slideshare.net/anikishaev/ Skype creotiv.in.ua Mobile +380632410666

On Mon, Nov 5, 2018 at 10:32 PM FHantke notifications@github.com wrote:

Hello, I finally found the time to add my code to this project. @creotiv https://github.com/creotiv can you give me the permission to push my code? I will upload a new branch so you can check the changes.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/creotiv/MiBand2/issues/6#issuecomment-436024675, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPRDWD1S6ZQXhSqd89cD9lL42MkM4cGks5usKBkgaJpZM4Tz-lo .