I’ve decided to improve miband integration, and change the method which was used to represent glucose data for MiBand4. Instead of the date modifying and using a custom watchface which interpreter a custom date format in correct way, i will generate entire watchface with a dynamic background and upload this watchface to the band. By using this method, all the disadvantages of changing the date on the watch will disappear, and your watch will be fully functional. So it would be possible to use it with any program, and all band features like weather, music control, fitness progress, and more would work.
In addition, this method allowing to display any data on the watch screen.
I’ve finished a new xdrip version . Would be grateful if someone can help to test it on different miband versions. If this version would be stable, i’ll create a pull request for the official Xdrip apk version. So there would be a chance this patch would be added to the official aplication.
Great news! The pull request was recently approved and merged into official xdrip application. At the moment it is available in the latest nightly build xdrip version which can be downloaded from the following URL https://github.com/NightscoutFoundation/xDrip/releases
New watchface legend
Real view on miband4 and v0.2.4 with enabled graph and bolus
Configuration tutorial by steps for v 0.2.x and higher
1. Obtaining auth key
If you want to use xdrip with Mi Band4, Mi Band5 or Amazfit Band5, you need to get Mi Band Auth key (for MiBand2 and Miband3 devices, you can skip this step). The Auth key can be obtained with these simple steps (was copied from https://www.freemyband.com/ )
- Unpair band from the existing official app
- Uninstall official app
- 1. For MiBands. Download and install the modified Mi Fit application
- 2. For Amazfit. Download and install the modified Zepp application
- Login into the Mi Fit(or Zepp in case of Amazfit) with your email account
- Pair the band
- Enable band visibility in the MiFit(or Zepp) settings. If you don’t have this option, make sure you have set your age in the account to be over 18 years old.
- (optional) Now you can uninstall modified Mi Fit (or Zepp) application and install official application or any other APK you like to use together with MiBand. If you would use official Mi Fit(or Zepp) application, you would need to Login into the Mi Fit(or Zepp) with the email which was used with the patched application.
- Finished! You can find your Auth key on /sdcard/freemyband folder of your phone
Notice1. If you reset (MAC address of band change) or unpaired your band, the Auth key need to be calculated again. The miband will change the MAC address, so you should change mac and auth key in xdrip(for auto search you can clear mac address and auth key fields)
2. The modded mifit apk is compatible with any firmware version installed on your band
3. You can do this procedure with any phone (if your phone doesn’t allow install apk outside Play Store, you can ask your friend to obtain this auth code for you)
2. xdrip configuration. Connecting to miband
- If you have original xdrip application installed on your phone, you would need to delete it. To save all your existent settings and glucose history, you can export your current database into file. To do this, click to the 3 dots on the main xdrip screen, select Import/export feature -> export database.
- Install latest patched xdrip from this link xdrip-miband. If you had a database backup, you can restore it by using export/import feature mentioned earlier.
- If you skipped “Obtaining auth key” phase (only for miband 2 and 3), go to MiFit settings, and enable band visibility.
- Place miband near the phone.
- Go to xdrip Settings -> Smart watch features -> MiBand and enable option “Use MiBand” for both MiBand and Amazfit.
- Normally miband should be automatically found, and you will see a notification with your model name. If this happen, you can skip next step.
- If it wasn’t found automatically, make sure the band visibility option was enabled in MiFit, then disable “Use MiBand” option and repeat step three. You can also enter the mac addres manually (in this case, there no need for visibility option enabled).
- Now the miband should be connected, but it is required authentification. On MiBand2 and MiBand3, you should approve authentification by touching the miband button. For MiBand4, MiBand5 or Amazfit Band5 you don’t need to do anything. Normally auth key should be automatically extracted from the file /sdcard/freemyband which was generated by patched Mi Fit(or Zepp) application. But if it was not generated, you should manually enter the key in “Auth key” field and retry everything from step 4.
- Finally, you should see the message that your device was successfully authenticated.
3. xdrip configuration. General settings and installing glucose watchface
3.1. Configuration for MiBand4, MiBand5 or Amazfit Band5
Upd (30.12.20 )The “BG readings as notification” was removed in Ver 0.3.2 (09.09.2020) So now For MiBand2 and 3, the readings would be sent as notification. For MiBand4,5 and Amazfit Band5 would be used watchface uploading.
If you use a MiBand4, you can receive a glucose readings in two ways In standard miband way by using the text notifications Displaying glucose values on the main band screen with help of dynamical custom watchface.. When use a text notification, xdrip would send a message to the miband after every glucose reading. When use a “dynamical custom watchface” the xdrip will generate a new watchface after every reading and will send this watchface to the miband. This option available only for MiBand4. All miband features would work as before. The watchface with required measurement units (mmol or mg/dl ) would be automatically installed. It would use the units from the general xdrip settings. The option “BG readings as notification” in MiBand settings allow to controll the way you prefer to receive glucose values. When it is enable , you would receive notifications after every glucose readings. And when it is disabled, this fancy “dynamical custom watchface” would be used.
You can also enable option Send alarms to receive glucose low/hight alerts. If you enable this option, you would get bg alerts as a phone call. Instead of the caller number, you would see an alarm text with the current glucose value. During alarm notification, it is possible to push on the ignore button on you band to skip alarm or push on hangup button to snooze alert. The low/high alarms can be configured directly in xdrip general settings
It is also possible to enable night mode feature (in miband screens/ features menu) This feature allow to decrease glucose synchronization interval by specifying interval value and mode start/end time. This mode allow to improve miband battery life by reducing synchronization frequency.
Since v 0.2.4 it is possible to display bolus on the band (if this information present in xdrip). The bolus data can be displayed only when graph option enabled.
Finally to send reading to the see miband you should enable “Send reading” option
Notice1. Keep your watch nearby with your phone, while phone transmitting data (actually the real BlueTooth connection distance can be even up to 50 meters 🙂 ) If your band will lost connection with the phone while transmitting watchface, it will automatically will use default watchface. This watchface would be replaced again after connection would be established
2. Take a note to the bluetooth connection status and last synchronization date to make sure you see not outdated data. Always remember to
3. The band will not accept a new watcface if battery level is less then 10%. In this case the band will automatically switch to notification mode.
3.2. Configuration for MiBand2 and 3
The only possible way to receive bg values on these band versions is to receive them as a text notification. Such notification would be sent to miband after every reading.
Xdrip miband integration apk changelog
If you like this project and want to thank an author for work done or want to support further development of features, become a sponsor on PatreonIf you have some advices regarding features that you want to see, or want to see similar feature on some specific band type, please write them in the comment of the donation form.
The latest xDrip version can be found here
Ver 0.2.4.1 (15.03.2020)
- Fixed App Crash at the settings screen on the first run.
Ver 0.2.4 (10.03.2020)
- New. Added option to display bolus (when enabled graph)
- Fixed issue with when BG numbers were displayed without infill
- For better readability, BG number size was slightly increased
- Added bg prediction line on the graph (would display 30 minutes prediction line)
At this moment, most of the issues were fixed, and i added many new features so I hope this would be the latest version 🙂 I have plans to merge it into the official xdrip build (if it would be accepted)
- New. Added option to disable graph on watch
- New. Added a new watchface without graph (would be used when disabled graph)
- New. Added option to collect heart rate data from miband. Update interval can be configured in MiFit or any thirdparty application. To see heart rate data in xdrip, the options “Use Health Data” and “Heart Rate sensor” which is located in Settings -> Smartwarch Features -> Smart watch sensors, should be enabled.
- Improvement. Updated graph watchface view
- Fixed. Authorisation issue on some miband 4 devices
- Syncronized with official xdrip version
Added a new options which are available only when enabled engineering mode https://github.com/NightscoutFoundation/xDrip/wiki/Engineering-Mode
- New. Added option which allow to disable hight MTU (when enabled, can fix watchface sync issues which may happen on some phones, but the watchface uploading would take much more time)
- New. Added possibility to install custom watchface. The custom watchface files ‘my_watchface.bin’ and ‘my_image.png’ should be placed into into ‘xdrip’ folder on your phone. “my_watchface.bin” is a normal watchface and my_image.png is a watchface background image. The background image shouldn’t have more than 128 colors. For faster delivery and longer battery life, the wathcface size should be as small as possible.
- New. Added offset option for custom watchface (defines offset between top of the background image and xdrip generated data)
- Improvement. Added BG update interval in night mode.
- Improvement. UI improvements on the band settings screen.
- Syncronized with official xdrip version
- Watchface. Fixed HR value when no data available.
- Watchface. Increased font size for delta and bg date.
- Fix in watchface generation algorithm which should fix “black” watchfaces reported by some users.
- Fix. Requesting higher MTU size and use the size negotiated by Bluetooth protocol. (should fix watchface synchronization issue).
- Improvement. BG alarms now work as call. On MiBand 3 and 4 the ignore button will delay alarm, and hangup will snooze alert.
- Improvement. Authentification for miband2 and 3 (no need to approve auth after disconnection).
- Improvement. Decrease brightness when uploading watchface. This can significantly improve band battery life. Also makes watchface update to be not so noticeable to people around.
- Improvement. Added night mode settings.
- Resend BG as notification if watchface cannot be installed when the battery level is less than 10%
- Quick-fix to fix a empty watchscreen and small styling issues
- New algorithm to represent glucose data, which use a dynamic watchface with a custom background. This allows using all miband features. (only for MiBand4)
- Like in previous versions, MiBand 2 and 3 can receive bg values as a notifications.
346 thoughts on “Future of the xdrip miband project”
Big Thanks! Great budget solution for poor people like me, and its look cool too 🙂
Works great with huawei mate 20lite+latest xdrip nightly+mi band 4
Hi, thanks for letting know. Glad you like it 🙂
Lo que no consigo es tener un esfera con la glucosa
glucose sphere? Sorry, i do not understand your question. Can you be more descriptive ho i can try to help you?
hello, I would like to point out that the last version of 15/03/2020 still poses some synchronization problems, I had to uninstall xdrip and redo everything from the start, so I am wondering about the possibility of a new update integrating the new features of the current official version, thank you very much
PS:on the installed version of the xdrip of 3/15/2020 or those before I cannot display the heart rate as for the number of steps, it is displayed but remains at zero.
so “synchronisation” problem were resolved after reinstall?
Works very good. One issue: With the current xdrip nightly from 20200419 working on a xdrip sync follower phone I get no indication when the master phone dont get new readings. Is this a know issue?
Hi. This is intended behaviour. Normally you should receive data every 5 minutes. The last bg reading would be displayed on the band wacthface, based on this time, you can consider ф relevance of the data. If xdrip wouldn’t receive new data for 30 minutes. The xdrip will force the watcface uploading, and you should see crossed out last glucose value like on this photo https://bigdigitalhome.files.wordpress.com/2020/01/prot1.jpg .
Buenos dias maestro desde España.
Resulta que hemos seguido todos los pasos de su tutorial con la ultima versión de xdrip. Pero no nos aparece la esfera de glucosa en myband4.
Nos llegan las alarmas de xdrip, si tenemos activada la casilla de “Bg reading” nos llegan las notificaciones cada 5 minutos pero si desactivamos “Bg reading ” no nos aparece la esfera.
En estado del sistema my band de xdrip nos aparece conectado y autentificado.
Qué estamos haciendo mal?
Please try the suggestions from this reply https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/comment-page-2/#comment-388
Hi, you did gret job. Could be time for not recieved data edjusted for less then 30 min?
Is there an option for always screen on? I would prefer.
And the last one 🙂 Could there be shown minutes ago as Xdrip instead of the time?
You know I am talking about six years old son to use it. He´s been having sony3 since that time
Obviously I missed that this was merged into the official xDrip+ Nightlies?
Just installed 2010-04-19 and found the MiBand settings in there and worked on my new OnePlus 8 Pro.
Can you please update your blog here?
Hi, glad it works for you. I already added a note at the beginning of this article about successful merging.
LikeLiked by 1 person
Hi, I’ve performed every single step in your documentation. Xdrip tell me that the Mii Band was successfully authenticated. But unfortunately it will not send any watchface to the Miiband itself. (push notification are deactivated).
Xdrip version 20200419.
Could you please try to disable night mode feature in the xdrip settings, also disable “show bolus”, “allow to use custom watchface” and “bg readings as notification” options. And finally make sure you have enabled “send readings” option. If this does not help, try to enable “Disable hight MTU value” option under experimental section.
Disable allow to use custom watchface was the root cause. now it is working fine ! Many thanks you saved my day !;)
Dónde encuentro el apartado de permitir el uso de una esfera personalizada?
Had some trouble setting this up but it’s running. thanks alot.
Setup: xdrip nightly 20200419, mi Band FW 22.214.171.124, Mi Fit App frozen
How does it work having xdrip and any third Party app (eg Mi Fit, Notify&Fitness) at the same time? When I had them both active watchfaces with BG from xdrip did not work.
But I would like to continue to use especially N&F for other purposes.
Is it possible just to have xdrip send the watchface and to use N&F for notifications, pulse etc.?
Works perfectly with any third party applications. Personally i use xdrip + notify & fitness for miband. But there no difference which apk to use. You just should use the apk key which was generated in patched mifit (if thirdpatrty application allows to enter it manually). If you use original mifit apk, just make sure you not unpaired you band when authorisation key was generated in the patched mifit and you use the same login account which was used when you paired your band in patched mifit
It works. Again 🙂
I really had some trouble. On the first run it worked out of the box. I tried a few things here and there and suddenly watchfaces failed to update. I tried resetting everything, re-Installing all the apps, but still xdrip failed to update the watchfaces. I didnt count how often i reset the whole setup until trying the “disable high mtu value” option. Now it is working again. Strange tho, cause i worked without this option at the beginning.
But I’m happy now 🙂
Hope the new watchface will soon be integrated in xdrip nightly.
Works stable on my Motorola One with Android 10. But trying a China android phone running Android 8.1 I get no watchfaces uploaded to the band. Google Play Sevices isnt running. Do I need Wear OS installed?
Really great that your Band integration would be merged.
Can you tell me what I need to do to switch to the nightly? Do I need to deinstalled your version or can I install the nightly over it?
THX for your help 🙂
Yes, just reinstall application. Do not forget to make a database and settings backups before deinstallation. In this case you can easily restore all your settings and data on the nightly build apk version.
OK cool thx and can I do this in an active session or would It better to wait til I switch to a new sensor?
Leider bekomme ich die xdrip Kurve nicht auf die Uhr. Kann sich jemand von euch mit mir in Kontakt setzen? Ich bin leider etwas am verzweifeln. Ich habe mich an die Anleitung gehalten. Bekomme es aber nicht hin.
LikeLiked by 1 person
So you see the current glucose value on the band, but do not see the graph? If yes, please make sure you have enabled checkbox “Enable graph” in xdrip miband settings
Thanks for the work, I really appreciate!
So i have the newest nightly and xdrip+ works pergectly on my Miband 4 (really easy installation, thanks!)
So in Xdrip i see, that there is also a beta, for a custom watchface.
Do you have any hint how to “modify” your watchface? And where to copy it (I just find the xdrip export folder on my mobilephone).
What i want to do is to change the Background (from black to a picture), add the heart rate (like you have it in an older version, but still show the battery percent) and to change the date style from US/UK to European (German) 🙂
Made it 🙂
Thanks for the amazing project 🙂
i would love to only change the date to european [German 😉 ] style. Could you provide such a watch face or give a short introduction on how to change the existing watchface?
I’ve no idea, I think due to different copyright aspects, I’m not allowed to upload my watchface. Even if, it will make no sense, since I included personal pictures of me 😉
Nevertheless, how I did it:
I downloaded a tool called “WF-Builder1.0.4” It took me some hours to really get used to it in detail. To do it perfectly, you should also be able to do picture editing.
The steps i had to do:
– 1. create a Background image (png file, exactly 120×240 pixel, the lower area below 160px should be black, to show xdrip data better, create directly dots for the date in the picture)
– 2. Open the WF-Builder and choose your picture
– 3. add all the data you want to a position where you want it, you can modify all the symbols, numbers and letters like you want it. I also changed the day from “MON, TUE, WED,…..” to “MO, DI, MI, …)
– 4. Save the files
– 5. Copy it to your xdrip folder
– 6. Allow the custom watchface option in Xdrip
What I’ve in my watchface:
– BT Status
– Time (24 h format)
– Heart Rate
– Remaining Battery
And of course the xdrip stuff
Is it possible to write direct messages here?
Then I can send you an example watchface with a neutral picture. So it would be easier for you to edit 😉
LikeLiked by 1 person
thank you for the tutorial, im happy with the acutual watchface, just want to change the date to dd/mm and Weeknames to German ones. Perhaps make steps and battery a little bit bigger. But I want to keep the graph. I will try myself, perhaps im able to import the default watchface from bigdigital, edit it and perhaps he will provide it here. Perhaps you can get in contact with him as well.
Hi. At the moment i’m working on the new xdrip update. The eu/us date format would be available here.
yeah, I also kept the xdrip graph, but I did a picture behind the other values (time, date, etc.
Thinka about, that with the watchface maker, all numbers are saved as a png file. So if you want bigger symbols or bigger numbers, you just need to ^make the png pixel size bigger.Or easier: creat a blank png file, and write the numbers as text and save it as a picture. So you can also choose the font type.
Just write me, if you need any help or assistance. (also in german if its easier for you).
In general I think you can not (so I don’t know how), export the actual xdrip watchface.
Are you also twinko on Github?
first of all, sorry, i couldnt reply directly to your answers! Thank you already!
Will the next update change the date format for the Miband4 aswell or only band 5? And is this change included in the mibdand5 release? if yes, than i will invest some more time changing the watchface by myself. I saw your comment, that it will take some time to accomplish support for band 5. That’s totaly fine, dont get me wrong!
Could you tell me which font u used to create the text images for the watchface? I would provide the new watchface as soon as its done, so everybody can benefit (2 versions: one with german Weekdays, one with Englisch ones).
Btw now i noticed, i never asked: is it ok if i use your watchface as a blueprint/template? I think it’s simple, fast and has a good overview, 99% perfect 🙂
Yes i’m the twinko at github aswell. Feel free to text me 🙂
Would be great if you could share the images for Mo,Di, Mi etc.if you used the same font.
I was tinkering around with the watchface. I already accomplished the following:
1. extract original watchface from bigdigitals app
2. Raised the size of the steps and battery (just took the numbers from date 😉 )
3. switched to dd/mm
Only thing missing is the “/” or a “.” between the date, will have to edit the background image for that But shouldnt be a big problem.
Created a repo, so we dont flood bigdigitals comment section 🙂 We can use the issue section to talk https://github.com/twinko/Band5-WF-Xdrip/issues I know, not ideal, but havent had the time to think about a better solution 😀
Sure you can use this watchface as you want. Here are the source files of the latest wathface with the EU date format https://www.dropbox.com/s/q74coap3hzu3f0f/xdrip_graph_eu_date_watch.zip?dl=0 Here you can find presliced weekdays layers in photoshop format. The text uses a Roboto bold font 12px size. The EU date format watchface would be available for miband4 and 5 .
sorry for my late reply. I changed the following
raised the size of steps, date, week
changed the week days to german format
Here you can download the files that need to be put in the xdrip folder on your phone.
Saludos desde España.
Me encantaría poder cambiar el fondo negro de mi esfera de reloj en myband4, pero mis conocimientos de informática son muy básicos. Habría alguna forma de encontrar cómo hacerlo? El proceso que usted ha descrito se debe hacer en el ordenador y después pasarlo al móvil? Gracias por su trabajo
Saludos desde España.
En primer lugar, gracias por todo vuestro trabajo.
Mis conocimientos de informática son muy básicos. Todo el proceso descrito por usted debe hacerse desde el ordenador y después pasarlo al móvil?
Divulgo todos sus trabajos en España y hay muchas personas interesadas en cambiar el fondo negro de la esfera del reloj y de aumentar el tamaño de los números. Pueden ayudarme?
Thanks for this awesome watchfaces for MiBand from xDrip ! … I have discover an issue on NIGHT MODE intervals: If it is set at “continuous readings” it works, but if you set reading intervals, let says at 10′ minutes, it doesn’t actuallize the MiBand glucose values every 10′ minutes as supposed, and as a consequence the alarms doesn’t works properly either. Cheers and THANKS, Alberto
Good job. I have a problem. The brightness of the clock is set to 4. Often, shortly after synchronization, the brightness jumps to 1 when queried and only returns to 4 after a few seconds. The Xdrip version is the latest Nightly and the night mode is switched off.
Hi, this is normal behaviour. During watcface uploading the miband firmware activates screen and keeps the screen on until update process would’nt be finished + 6 seconds after succesfull watchafece uploading. To improve battery life and make the uploading process not so noticeable for people around, the xdrip decreases brightness to minimum, and then, sets back it to the value defined in the settings.
Thank you, now or maybe in the future there is the possibility to increase the brightness manually during synchronization Sometimes it takes a long time that the brightness is raised from 1 to 4 again.
I cannot locate the files I need to put in the xdrip folder
Sorry if I’m annoying you. I have installed or executed all Aps and settings as described. Unfortunately I get the xDrip Watchface and therefore no display on the clock. “BG readings as notifications” works however.
Thank you very much for your work and for making it possible to use the MiBand 4. I have diabetes since 1966 and I am very happy about the many possibilities which are possible today. Also about the luxury of wearing the values on my wrist 🙂
By the way: On my watch the folder “freemyband” is stored on the internal memory and not on the SD card.
Thank you very much in advance for your help.
Translated with http://www.DeepL.com/Translator (free version)
Bonjour, après mon miband 4 parfaitement fonctionnel avec xdrip, j’ai acquis un nouveau amazfit band 5, malheureusement il ne marche pas avec l’application officielle (la dernière du 31/03/2021) par manque d’autorisation, et si j’installe miband_xdrip 0.4.1.2 alors amazfit band marche mais la base de données que j’ai sauvegardé sur la version officielle xrip ne peut pas être récupérer..aidez moi pour pouvoir utiliser ma base de données avec mon amazfit band..merci beaucoup
Hello. Installed hdrip Version 0.2.4.1 (15.03.2020). There is no option to select BluCon in the data source.
LikeLiked by 1 person
Please try to use official xdrip latest nightly build https://github.com/NightscoutFoundation/xDrip/releases
Recently Xiaomi have announced the new my band 5. Will I can see the blood glucose in my band 5 the same as in my band 4? If so, will the installation process be the same? Thanks in advance.
No, the xdrip will not work with new band 5 xiaomi version. At least for now. Even if they did not change the command protocols, the new mi band has a different screen size, which means that watchface from miband4 will not work here. To implement integration for the new miband, it would be required to reverse engineer and test new watch model and for this i would need to have this watch on my table. At the moment i not planing of switching from my miband 4 to miband 5. But when i collect enought funds from my Patreon page https://www.patreon.com/xdrip_miband i will buy this watch and try to implement integration.
How close are you to purchasing the Mi Band 5?
I’ve almost collected the required funds to purchase Mi Band 5. For this, i want to thanks Lukas Petro,
Alberto HD, Otto75so3e and Michalis Velonakis. Now just need to wait while miband 5 appears in local stores.
LikeLiked by 1 person
Do you have Paypal? I would like to donate instead of Patreon. Thanks
Hi, unfortunately no. There no legal way to receive payments via paypal in our country 😦 . But you can donate via Patreon service and after the first donation, you can unsubscribe. In this case you will donate only once.
@bigdigital, no rush, just checking in to see if you were able to get your hands on the new Mi Band 5 yet? 🙂
LikeLiked by 1 person
Thank you. This helps me a lot with managing my blood glucose. It’s a real improvement of my life. Installation was very easy in xdrip+ & freemyband.
Glad you enjoyed this project. In the near future, I plan to spend the funds raised on Patreon platform to purchase the new miband 5 and apply such integration to the latest miband.
Could you also start a Patreon campaign for the amazfit gts? I’ve been looking for a wachface for so long … Unfortunately I’m not adequately technical to do it myself. I would be very grateful to you!
I guess it would be possible to implement similar functionality on this watch type. So most possibly it would be the next Patreon campaign after miband 5.
Is there any Option for this wonderful watchface in iOS?
I have a similar Problem like Burkhart and Martin: Connection to MiBand works, I get glucose readings as a message. But I cannot get the watchface to work.
-disable “show bolus”,
-“allow to use custom watchface”
-“bg readings as notification”
-enabled “send readings” option.
-enable/disable “Disable hight MTU value” option under experimental section.
Only “disable night mode feature in the xdrip settings” gives me problems, I cannot find it. Is that the reason it´s not working?
Do you know if the android wear settings make a difference? Mine was turned on, turninhg it off does not help. I used a pebble before trying the MiBand, think I can use both?
Thanks for all the great work!
OK, if anyone else has this issue, i figured it out (for my setup). Somehow it worked after doing all the things mentioned above and then activating android wear under the watch setting in xdrip. But only after some time, then a popup from xdrip or android (can´t remember) asked if I wanted to activate it. After that it displayed the watchface correctly (and beautifully, I might add). Thank you!!!
Glad that it is now working for you.
Por favor me puedes decir como2lo has conseguido?
Hey, big thanks! Thats amazing. Im new to xdrip and will try your solution.
Do you plan on adding support for the miband 5 aswell? It will be released on the 15th of July.
Hi, thanks. About miband 5, see my reply https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/comment-page-2/#comment-454
Awesome! I saw your replay but couldnt delete my post. sorry should have read longer 🙂
Hi I have followed all of the instructions in setting up the watch. Notifications work but no matter what I try the dynamic watch face will not work. Checking the event log shows that the watch face generator is running with no errors being reported however the watch face does not update on the Mi band. I am using the latest nightly of xDrip and the Mi band is on the latest of firm ware, making other changes under the mi band screens/features options changes the setting on the mi band immediately. I am at a loss as to what to do, are you able to give me some guidance please.
Hi, sorry for the delay. Could you please try to disable night mode feature in the xdrip settings, also disable “show bolus”, “allow to use custom watchface” and “bg readings as notification” options. If this does not help, try to enable “Disable hight MTU value” option under the experimental section.
This is amazing thank you so much!
Thanks. Glad you like it.
Awesome! I got an MiBand 5, expecting it to work with this but it didn’t. I didn’t manage to install the Free my Band app on my motorolaOne (android 10), it just doesn’t open the dowloaded app with an option to install, as it does with Xdrip. Installed the latest night build from Xdrip which doesn’t have the BG readings as notifications as an option. There’s anyway to help you to make this works on MiBand 5?
At the moment it does not support miband5 series. For more details, see my replies above https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/comment-page-2/#comment-477 https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/comment-page-2/#comment-454
Awesome! But I’m interested in help you coding, testing, whatever. Of course, if you want/need some help with it. And I’m signing as Patreon, so you can keep motivate to continue doing such great work. Thanks!
Thanks. It would be great if you can help me with the future testing. For now, i still waiting when miband 5 appears in our country and trying to understand a new watchface format. By analysing available watchfaces here https://amazfitwatchfaces.com/mi-band-5/fresh I see it was changed. So need to reverse engineer it again. Also hope the communication protocol wasn’t seriously changed in comparison to the older models.
thank you so much for your work and time. I’ll buy a miband 4 tomorrow, due to the bad battery life and no real improvements of the miband 5 i decided to go for the band 4.
Thank you so much for your work!!
Did you ever thought about providing support for LiteOS? This would help to bring xdrip to, for example, the HUAWEI Watch GT 2e or Honor MagicWatch 2. I found these watches with there 14 day lifespan very interesting. Especially when WearOS watchs only last 2 days max.
Thank you so much for your great work ! It will be so good 🙂
I just can’t see on the watch the heart rate (despite choosing the option in the parameters) but i can see the steps. How can I do to have both ?
On XDRIP I have neither heart rate nor number of steps
how I can fix this.
Thanks so much in advance !
Could you please make sure You have enabled options “Use health data” and “heart rate sensors” in “Smart watch sensors” menu. Also the options “Collect HR”, should be enabled in the “Miband -> miband screen/features settings”. Please note that xdrip doesn’t send requests for the heart rate and steps data to the miband. It only listen the data which was transmitted from the miband. The miband will transmit heart rate info when you force pulse detection via band screen. Also you can configure mifit to request the heart rate info with some specific time intervals.
Thank you for your answer 🙂
Concerning the miband, I do not have the heart rate on the watchscreen but I have glycemia, steps, hours and date (mm/dd) same as this page’s third photo on your wrist
I would like to have the same interface as your first photo
=> how can I correct it ? Is it another version to install ?
Concerning Xdrip+, I followed your instructions by (updating to a recent nighlybuild with integrated miband menu and correct on it the 3 enabled options).
Sadly it still doesn’t show the steps and the heart rate on xdrip+
Thank you again for your great work !
Will it work with the mi band 5? And if so, when will it happen?
PS: Great work, i love my mi band 4 🙂
Thanks. I’ve begun the code adaptation for new miband 5. For now, can’t say how much time this can take. I’m planning to spend last summer days far away from the computer, so approximately, first beta would be at the end of the October. Regards,
where is the auth key on my phone.
Llevo 8 meses usando xdrip y myband4 y hasta hoy todo perfecto. Pero durante las últimas horas xdrip no envía la grafica a mifit.
Sin embargo si envía notificaciones Bg y hace vibrar la pulsera
He seguido todos pasos descritos por bigdigital pero no consigo recuperar la grafica en myband4.
Tampoco funciona la opción de Update Bg manually.
Saben cómo solucionarlo?
Gracias por su trabajo
A mi me ocurre cada vez más. En mi experiencia, la solución es ésta: en los ajustes, desactivar la primera opción “Use MiBand Band”, borrar la Mac adress para que vuelva a buscar la pulsera, volver a activar “Use MiBand Band”; entonces vuelve a encuentrar la pulsera y pide autorización para emparejarla (mejor dejar activada la ubicación). Después de eso ya funciona la opción “Update BG manually” y también toda la configuración que tenia previamente.
De todas formas, estoy pensando en borrar todo y volver a instalar porque esto me ocurré cada día y resulta engorroso.
Espero que sirva la explicación.
Hey, great post.
Quick question: this doesn’t apply to an iPhone, right?
When you say “install the moddified MiFit application Mi Fit mod apk”, you can’t do that on an iPhone. Or am I missing something?
Yes, all these aplications designed only for android devices.
I will support the Amazfit Bip campaign on Patreon
Hi. Not sure, but i can try to implement the same functionality on this watch model. I guess, i can start another one patreon campaing for this watch.
Is there a was to revcieve the predicted low alert from xdrip in the band?
Dear bigdigital, i installed the latest version of xdrip for miband like linked in this homepage. I’m using miband 4 and i made the steps like described. But till now i wasn’t able to get the system working. As source im using the patched App form Libre2. The watchface is simply not genarating. i disabled all the other smartwatch posibilities in Xdrip. Is it possible to make a Video walk through. Thank you best regards.
Thank you so much for this! I bought a Mi Band 4 for myself over a year ago and just used the notifications to see my 6 year old daughter’s blood glucose. Today, I can hand this watch to her with a beautiful watchface to see her own numbers! I am so happy. You have made this mama’s day!!
Quick question! Is there a way to change the time format from 24 hour to 12 hour? Or is the default 24 hr for the xdrip watchface? I love the watchface, but my 6 year old will be confused by the time in 24 hr format.
Hi. the miband time format controlled by mifit application. In the same time the mifit application uses the android system time settings, so you need to configure 12hour format in android time settings. Here you can find a tutorial on how to do this https://www.youtube.com/watch?v=X6H5c-dfIA4
Thank you! So my time setting was already set to 12 hour format. But by toggling to 24 hour and then back to 12 hour it seems to have fixed the issue. Hopefully, this info will also help others. Thanks so much for this wonderful watchface!
Thank you for the info. It seems it was some unsynchronization between phone and band. In anyway, glad it works for you. Regards, Artem
We do not use xdrip but use nightscout to view dexcom data from the european dexcom servers. Is it posible to use dexcom data with the miband?
No. Necesitas instalar xdrip de forma que recoja los datos de tu Dexcom share y enviarlos a la myband
Hallo, vielen vielen Dank. Endlich die richtige Lösung für mich. Ich nutze seit ca. 2 Monaten den MiaoMiao 2 für meinen libre2. Endlich habe ich auf meinem Atom L und Soyes xs mini xdrip ans laufen bekommen. Seit gestern habe ich das Amazfit Band 5 verbunden und bin nun endlich zufrieden. Ich bekomme permanent meine BZ Werte, brauch nicht mehr scannen. Danke, danke an die Entwickler.👍👍👍😊😊😊.
Mit freundlichen Grüßen
Hi. Thank you . I’m glad my work was useful for you
I have somehow changed watchface to original one and now mi band watch face wont show up
I’ll recommend to try to repair and reconnect your band from the scratch. Here you can read how to do this https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/comment-page-1/#comment-594 . And , make sure you use the latest xdrip from my blog
I’m having troubles getting my new miband5 (FW 126.96.36.199) to work with xdrip+ (from your site, 0.3.2.6)
I have the patched Mifit 4.2.0-50315 paired with the band (and it seems to work). I have the authcode file (correct MAC) on my device.
I entered the MAC in xDrip manually. It shows “connected” but “Authorization failed”.
When re-enabling the miband integration in xDrip, it says “Cannot authorize miband, please recheck Auth code.”
Any hints what am l doing wrong?
Device is Samsung S4, Android 5.0.1
I even deleted app data and cache, and did not reimport data or settings, no change.
Hi. Most possibly the auth code was changed. Could you please try to regenerate auth code again like it was described in my previous comment https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/comment-page-1/#comment-594
I already did this, even after a factory reset, which changed the MAC as expected.
I dont see an auth code in the xDrip settings. Just the (manually added) MAC.
It looks like you use an official xdrip which does not support miband 5. Are you sure you have installed the latest xdrip from my blog? Could you please go to xdrip System Status -> classic status page and check xdrip version. It should contain text ..watchface_config…
Downgradable to: 1603091400
Fresh installed from Filename xdrip_miband_0.3.2.6.apk
Oh my God, it works.
I did another clean install and now it’s up and running.
How will we know when there is a merge request to the official version?
I’m glad it works for you now. I`m planning to push merge request when add amazfit GTR integration. It is almost finished. But it was a little postponed due to some advanced research in amazfit gtr2 watchface structure.
Now that the band is working with xDrip+ (thanks again!), can i use the official miband app and upgrade the firmware savely or should i better not touch it?
Yes, you can use official mifit. But make sure you use the same account as it was used when you paired device in the patched apk.
Qué tal va la integración de xdrip con amazfit bip?
At the moment, i’m not planning integration for amazfit bip. So far, only GTR and maybe GTR2.
Great idea and explanation.
i did everything several Times. the miband 5 seems connected to xdrip+ (the latest miband Version) but the watchface is still the same and I have no idea how to change or solve this Problem.
can someone help me please?
Is it possible to get the IOB on the watchface as well? I find myself checking my 2y old T1D CGM values and if he is high, I still have to look at the phone (with xDrip+ and 600SeriesAndroidUploader, located in his room) checking the IOB to decide about further treatments.
Hi. The latest xdrip from my blog already can display IOB (if it is available) . See watchface legend https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/
Where is this data taken from (technically, i can read Java code). I need to serve this data from the 600SeriesUploader to xDrip correctly.
The miband module listens bradcast intend Intents.HOME_STATUS_ACTION which contain the latest iob value. As I can see, this intend forming by the function Home.updateStatusLine(“iob”, df.format(iob.iob)); which is located in BgGraphBuilder.java . And iob instance itself takes data from ioBForGraph_new from Threatments.java. And finally, the function latestForGraph doing a query from the database. I guess if you configure nightscout uploading in 600SeriesUploader and set nigscout data source in xdrip, the iob values could be automatically nightscout to the database and you should see this data in xdrip and miband. Also according to the xdrip code, the iob Intent would be created only if you enable “predictive simulation” option in xdrip settings.
Thanks a lot for the details. I’d love to skip the nightscout server as the two appd already can talk to each other directly. The data just needs to go to the right place.
Hello, after my perfectly functional miband 4 with xdrip, I acquired a new amazfit band 5, unfortunately it does not work with the official application (the last of 03/31/2021) for lack of authorization, and if I ‘install miband_xdrip 0.4.1.2 then amazfit band works but the database that I saved on the official xdrip version cannot be recovered..help me to be able to use my database with my amazfit band..thanks a lot
Hi , will the xdrip version with the miband 5 support also works for miband 6 ? Thanks
Nope, it would not work
What does “Disconnect Alert” do? I have a Miband 4 & I was hoping it would warn me that I’d left my phone behind but it doesn’t seem to. Thank you for your hard work in creating this.
I appreciate it if amazfit gts2 mini compatible version would be released
Hi, unfortunately i don’t think the integration for gtr2 mini would be released. Because there no watcface editors for gts2 mini.
Can I ask you? Can xDrip+ work on Fitbit Inspire HR?
Thanks a lot for your work. I managed to have my BG readings on my Mi Band 4.
I only miss from my last official version of xDrip+ the AOD function on my S10.
It was pretty useful to see my BG level just touching one time the screen.
Do you think it could be implemented as well into your xDrip+ Mi Band compatible version?
Thanks again and have a nice day,
Hello, does it work also in miband 6?
Hi, pls see my reply https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/comment-page-2/#comment-2025 . Thanks
Hi there, thank you for your hard work on this project. I have had this working perfectly on my Miband 5 but now it will not see it in xDrip. I have tried just about every version but no joy. Also I’m unable to enter the auth code manually because there is nowhere to do it. When found automatically the code populates under the mac address but but there is only the mac address entry when it doesn’t find it.
Hi. Any update on Xiaomi band 6? Thanks
For now i only started a poll to decide which device would be supported next. You can also choose desired device https://www.patreon.com/posts/which-device-be-56182562
Great info on here. Can not link my Amazfit band 5 to xdrip. Does not find it. Enter the Mac address and still not found it. Tried on a pixel 4a and now a Galaxy A3.Any help please?
Hello ! I have this problem..miao miao 2 it’s connected to xdrip but not showing anything.. how or what can i do to resolve that ? I have connected with mi band 5 but show me no data because xdrip not reading anything..
Dobry den. nevím proč ale nedaří se mi přihlásit do žádné upravené aplikace MiFit. když vytvořím nový učet tak v officialní aplikaci je zase neplatný. Jedná se o hodinky MiBand 4. prosím co mám dělat aby vše jelo jak má?
Hi – Thanks for this. I have followed the instructions for Amazfit band 5 – I downloaded the latest xdrip and in settings selected smart watch features and then Miband (for Amazfit band I still choose Miband?) but it repeatedly says cant find miband. I have also tried manually typing the mac address. any help appreciated.
I am getting the readings from Libre 2 on the xdrip.
ok – fixed now. I had uploaded the latest vesrion of xdrip rather than the specific version here – https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/
i wrongly assumed that it had now been integrated into latest release
Hi, and thanks for the hard work. I’ve been using this on my MiBand2 for years now.. Do you think it is possible to use this on something like Huawei Band 6 or Honor Band 6?
No, possible on MiBand6
Hello, Will this work with mi band6? does it worth to try it?
Exactly this version, no. You need to use the latest version from my blog. See my latest post
Hi, there is a New version xdrip 20211202, because there were problems with dexcom share, but it doesn’t support miband 5. Can you help me?
Does the feature works with miband 6?
yes, see my latest posts
Hi! First, I would like to say that this invection seems like a great job and these kind of work deserves to be aknowledge. In second place, I’ve got two questions about the project itself: This function mesures the level of glucose in blood or estimates your glucose level based on, for example your diet? If the second, how does it?
Hi, I just got it working on my sons Mi Band 6. I am so happy! Thanks a lot for your work!
But I already got a question: if I want to change the sons phone: what would be the procedure? which steps do I have to repeat on a new phone?
hi, followed every steps, whenever i try to connect it says wrong authorization key. Please help. been struggling since 4 days
At first, please, make sure you use the latest xdrip from my blog https://bigdigital.home.blog/2022/01/27/a-new-supported-device-amazfit-gts2-mini/#changelog . If this does not help, it seems you entered the wrong auth key or trying to connect to the wrong device. At first make sure you set the correct MAC address which belongs to your watch (the mac address can be seen in the settings on your watch or in the mifit application) After this, if you followed all steps from the instructions and use patched mifit application, the patched app should automatically generate auth key. To let xdrip autopopulate this auth key. Please disable “Use MiBand” option in xdrip settings, clear the auth feld
Hi. I am facing the same issue. When I try to download the latest xdrip it is telling me that the file can’t be opened.
Hello, nope. At the moment only miband, and some models of Amazfit.
Mam problem. Nie mogę pobrać pakietu instalacyjnego na telefon. Wyskakuje komunikat: “nie udało się otworzyć dokumentu. Przyczyna: wystąpił błąd wewnętrzny” co mam zrobić? Help me.