creotiv / MiBand2

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

Is it possible to use this to fetch data to magic mirror ? #21

Open Mark-papi opened 5 years ago

Mark-papi commented 5 years ago

Is it possible to use this to fetch data to magic mirror on raspberry pi for heart informations to display on the mirror ? Im asking this cause i want to know if i am in the correct road to do that, or should i try something else. with this code i can get data right ? so it will be possible then to display them with a module implementation.

Mark-papi commented 5 years ago

should i use this as a default https://github.com/vshymanskyy/miband-js ?

Pablohn26 commented 5 years ago

@Mark-papi with this python script you can read data from the miband. Once you get the data, you have to find a way to represent it (for example I plot on a graph my heart rate). So it deppends of the software you are using to represent the data on the magic mirror.

If you just one just a PoC, modify the python code or use the library that you suggest (please note that library does not support real time data yet) . If you want a full integration with Magic Mirror, you need a deep knowledge of programming and MagicMirror² Module Development

So the answer to your question is yes, but just for fetching data. As I said, once you fetch the data it deppends the software you are using to represent the data you are fetching.