Displaying blood glucose on Xiaomi MiBand fitness trackers

Upd. 29.1.2020 new xDrip version which allows using all MiBand4 features available here https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/

Updates for the this xdrip version would be discontinued.

Introduction

The miband trackers it is a very good device for usual life tracking. There’s a lot to like in Xiaomi trackers. They are cheap and small. For about $40, you get a fitness tracker that has waterproofing, a heart rate monitor, text and call notifications, sleep tracking, workout tracking, and impressive battery life with up to three full weeks, depending on usage.

But they also can be used for originally unintended things.

In my case, the band was used to display a BG low/high alert notification from xdrip application.

Unfortunately, xdrip doesn’t support this band type from the box, so need to use workarounds to receive these notifications.

How to configure notification with the help a thirdparty apps were described in details in this article. https://a.kabachnik.info/blood-sugar-on-a-xiaomi-mi-band.html

But this solution has one disadvantage, to see, the current BG blood level it uses notifications, which usually updates every 5 minutes.  

After the release a MiBand4, i found a cool new thing it this band version. This time Xiaomi lets us to create and upload custom watchfaces .

So a few days ago I discovered a way of changing the watch face for a custom one. And and it took me to the idea that i can create own watchface that will display the values of glucose levels directly on the main screen.

But there was a restriction in realization such watchface. Since the watchface allow to display only time, date, and some status info, I was faced with the task of encoding the values of glucose levels into the available values that miband could display.

For such purposes, the fields of the day of the month, month, and day of the week were most suitable. To display an integer bg value i used a day of the month for decimal value was used a month and to display trend arrow i use a day of the week. In such case, i can display almost any value of the glucose but with one limitation, the maximum integer value could be 18. So if glucose would be more than, 18.9 mmol/L, the watch will display the maximum value as 18.9.

I also added a mg/dl glucose units. To correctly display these units, it is required to install another watchface. For mg watchafe the minimum possible value can be 10mg/dl and maximum value 299 mg/dl.

The watchfaces were designed and compiled with help of the in WF_Builder1.0.4 program can be found here

The watchface bins and source files located by the following links:

upd. Since xdrip version 0.1.3 the xdrip should keep a continuous connection with MiBand, so when miband connected, you will be sure that you see relevant glucose value. If the miband for some reason will lose connections with the phone, you will see a lighting blue indicator in the left bottom corner of the miband so you can consider the value can be outdated. 

No connection with xdrip (the glucose value can be outdated)

Next after this, i made a fork of the xdrip where integrated miband watchface support. Link to xdrip fork https://github.com/bigdigital/xDrip/tree/miband-integration. Link to compiled apk file can be found here xdrip-miband

This version of xdrip can send a notification to miband without any thirdparty tools. Also, it encodes and set the time on miband in a specific format, which allows displaying the BG values in such way:

Also were added a set of settings, which allow to adjust some band settings and see the status.

Unfortunately, the date modification (which required for custom watchface) has own disadvantages.

  1. It is impossible to use standard programs like Mi Fit. They continuously synchronizing time on the watchface, which leads to incorrect bg value displaying. (Note, if you would use thirparty programs, )
  2. The band cannot count steps in a normal way. So you cannot see your fitness progress.
  3. Since miband ver 4, the band developers introduced a new algorithm of the authentication. New devices and older devices with updated firmware require a server based pairing.  So now it is required to obtain an auth key which is normally cannot be extracted from MiFit program, but there exists a workaround (see more details in configuration tutorial)

But if you still want to have all miband features such as fitness progress, steps, sleep, weather, smart alarms, music control and more, it is possible to use notifications to send glucose values (there an option in the miband setting screen which allow to send bg reading as a notification ). In such case, there is no need to install custom watchface.

Configuration tutorial by steps

1. Obtaining auth key

If you want to use xdrip with Mi Band4, you need to get Mi Band 4 Auth key (for the older devices (MiBand2 and Miband3), you can skip this step). The Auth key can be obtained with these simple steps (was copied from https://www.freemyband.com/ )

  1. Unpair band from the existing official app
  2. Uninstall official app
  3. Reset your Mi Band (optional)
  4. Download and install the Mi Fit mod apk version
  5. Login into the Mi Fit with your email
  6. Pair the band
  7. Enable band visibility in the MiFit settings.
  8. Uninstall modified Mi Fit application (If you want to use all miband features, you can install official Mi Fit application again. Login into the Mi Fit with email which was used with patched application and enable “BG readings as notification” option. But in this case would be impossible to use xdrip watchface and display bg values on main screen.)
  9. Finished! You can find your Auth key on /sdcard/freemyband folder of your phone

Notice:

  • If you reset your band (MAC address of band change) 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)
  • The mod apk is compatible with any firmware version installed on your band
  • You can do this procedure with any phone (if your phone doesn’t allow install apk outside Play Store, you can ask to a your friend to obtain your auth code for you)

2. xdrip configuration. Connecting to miband

  1. Install xdrip from this link xdrip-miband
  2. If you skipped “Obtaining auth key” phase, go to MiFit settings, and enable band visibility.
  3. Place miband near the phone.
  4. Go to Settings -> Smart watch features -> MiBand and enable option “Use MiBand”.
  5. Normally miband should be automatically found, and you will see a notification with your model name.
  6. If it wasn’t found autmatically, 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 visibility option enabled).
  7. 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 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 application. But if it was not generated, you should manually enter the key in “Auth key” field and retry everything from step 3
  8. Finally, you should see the message that your miband was succesfully authenticated and now you can control miband via xdrip.

3. xdrip configuration. General settings and installing glucose watchface

3.1. Configuration for MiBand4

If you use a MiBand4, you can receive a glucose readings in two ways.

  1. In standard miband way, using text notifications 
  2. Displaying glucose values on the main band screen with help of custom watchface and specific date modification.

When use a text notification, xdrip would send a message to the miband after every glucose reading. Also there no restrictions in the miband functonality. So you can use an official MiFit application to track activity and music controll.

To display glucose value on the main band screen the xdrip change a date on the band (the date represent the glucose value). Unfortunately, such things as fitness progress, step counters and weather directly related to the date on the tracker. So these features would not work correctly because the date on the band would be changed after every new glucose reading.
The things like music control (not sure regarding alarms and timers) not related to the date, so they should work fine. But official MiFit application continuously corrects the date on miband, which leads to the incorrect glucose values displayed on the band. So at the moment it is not possibe to use miband in such mode with the official apllication.

The option “BG readings as notification” in MiBand settings allow to controll the way you prefer to receive glucose values.

So if you want to see the reading on the main screen and ready to sacify life tracking functionality, you can disable “BG readings as notification” option and press on “Install miband4 watchface” button to install a custom watcface, which will display a bg readings directly on the main watch screen.

Notice: Keep your watch nearby with your phone, while phone transmitting data.

The watchface with required measurement units (mmol or mg/dl ) would be automatically installed. It would use the units from the general xdrip settings.

When the uploading process will be finished, you will see the new watchface on your miband.

Finally to send reading to the see miband you should enable “Send reading” option

3.2. Configuration for MiBand2 and MiBand3

These band version can only receive bg values as notifications. To receive bg reading, you would need to enable “Send reading” and “BG readings as notification” options.

Xdrip miband integration apk changelog

Ver 0.1.4 (16.01.2020)

  • Fixed: trend arrow is always horizontal

Ver 0.1.3 (13.01.2020)

  • Synchronized with original xdrip
  • Fixed bg timer (not fired when phone in sleep mode)
  • Update glucose value on miband after the midnight
  • Added Bluetooth autoreconnect (the band will keep Bluetooth connection)
  • Added “Find phone” functionality
  • APK recompiled with old signature version and should work on Android 6

Ver 0.1.2 (29.12.2019)

  • fixed apk crash when attempt to install miband watcface   

Ver 0.1.1 (28.12.2019)

  • added a mg/dl glucose units
  • synchronized with original xdrip

Ver 0.1 (3.12.2019)

  • Initial stable release  (support only mmol glucose units)

120 thoughts on “Displaying blood glucose on Xiaomi MiBand fitness trackers

    1. I guess it possible to implement mg/dl glucose units, but with limitation. Due to the date limitation, which is used to interpreter the glucose value on the band, the maximum possible mg/dl value would be 319 mg/dl . Everything that would be greater than this value would be displayed as 319. But i think this glucose value would be enough to understand that you should take attention to your glucose value and check the actual glucose value on the phone.

      Like

      1. Upd. I’ve added mg/dl watchface to my version of the xdrip. It would use the units from the general xdrip settings. You would need to reinstall xdrip, and then click to “Install miband4 watchface” button to install the corresponding watchface

        Like

  1. hello, is there a chance that you will be able to use other features of my band in the future (weather, music control, fitness progress, and more)? if so, when will the changes in the update appear? Thank you for your response

    Like

    1. I’m afraid no, if you will use a custom watchface. This is a band software restriction.
      To display glucose value on the main band screen the xdrip change a date on the band (the date represent the glucose value). Unfortunately, such things as fitness progress, step counters and weather directly related to the date on the tracker. So these features would not work correctly because the date on the band would be changed after every new glucose reading.
      The things like music control (not sure regarding alarms and timers) not related to the date, so they should work fine. But there also another restriction. The official MiFit application continuously corrects the date on miband, which leads to the incorrect glucose values displayed on the band.
      That’s why if you want to use all band features, you will need to enable “BG readings as notification” option in the xdrip settings. In such way the glucose values would be received as a notification.

      Like

  2. It’s really cool to see glucose on Mi band. Thanks so much.
    I can’t see the glucose trend arrow after default watchface installed, there is only glucose number. Would you like to know how install your watchface(xdrip_miband4_mgdl.bin)?
    Much appreciated.

    Like

    1. Simply go to Settings -> Miband menu and click to “Install miband4 watchface” . It will automatically install watchface with corresponding units (mgdl or mmol), which was configured in the general xdrip settings. Let me know if you have some problems with miband or xdrip configuration.

      Like

    1. Could you please go to xDrip -> settings -> smartwatch features -> MiBand menu and make sure you have disabled option “BG reading as notification”. Also, if you have installed MiFit application or any other thirdparty application that can communicate with miband, you may need to delete it. These applications can override the date on miband.
      If these suggestion does not help, can you please show a miband status screenshot from xdrip “System status” interface?

      Like

  3. Bom dia, fizemos todo o processo, mas não conseguimos alterar as setas, ela fica sempre estável. Poderia nos ajudar com um passo a passo dos arquivos que temos de baixar e procedimentos em ordem? Obrigado

    Liked by 1 person

    1. Could you please go to xDrip -> settings -> smartwatch features -> MiBand menu and make sure you have disabled option “BG reading as notification”. Also, if you have installed MiFit application or any other thirdparty application that can communicate with miband, you may need to delete it. These applications can override the date on miband.
      If these suggestion does not help, can you please show a miband status screenshot from xdrip “System status” interface?

      Like

  4. Sounds interesting. I use xdrip+ with the patched LibreApp for the Libre2 readout. Will your xdrip fork work with this combination? Is it possible to import the xdrip settings from the original Installation? And, last but least… How about the other functions of the MiBand like HeartRate, Steps and so on? Will they still be recognized?

    Thanks for your superb work. 🙂

    Regards
    Volker

    Like

    1. Yes, it will work, this is the same xdrip apk as the original, but with miband integration. The program settings can be imported and exported into the SDCARD via the xdrip settings menu. So you can save the settings, delete xdrip, then install modified xdrip and load settings. Regarding HeartRate, Steps, etc, they would not work if use xdrip watchaface. You can read more details in my reply to Intun user.

      Liked by 1 person

      1. Text error: “APK is corrupted and is unable to be installed. Please download again”. The error occurs at the installation level of about 80%.. I have android 6.0

        Like

    1. Could you please go to xDrip -> settings -> smartwatch features -> MiBand menu and make sure you have disabled option “BG reading as notification”. Also, if you have installed miFit application or any other thirdparty application that can communicate with miband, you may need to delete it. These applications can override the date on miband.
      If these suggestion does not help, can you please show a miband status screenshot from xdrip “System status” interface?

      Like

  5. Hi. What should I do when mi Band disconnect from xdrip? I’m having some problems with disconnection.

    Like

    1. This is normal behaviour, the xdrip does not keep a continuous connection with the MiBand. This was done for a better battery life of the MiBand and phone. The xdrip will only connect to MiBand when it is necessary to send data. Do you have any problems with this?

      Like

      1. Yes. It suddenly stops sendind BG to miBand. I know It because BG doesn’t change for minutes or hours. But It sucks, because I can’t trust If it’s a new or old data till I look my phone. Sometimes It reconnects by itself, but sometimes It does not reconnect anymore. I had to do the hole process three times in a week.

        Like

        1. Could you please try to Disable “Trust Android Auto connect” in xDrip+ -> Settings -> Less common settings -> Bluetooth settings ?
          Also try to enable “turn Bluetooth on”, “bluetooth watchdog” and “allow blucon unbonding” options.
          And finally, go to Less common settings -> other misc options and enable options “run collector in foreground”, “battery optimization prompt” and “Samsung workarounds”.

          Like

          1. Also please try to check this xdrip version https://www.dropbox.com/s/z5paal29hmc8gbq/xdrip-miband_0.1.3.apk?dl=0
            It should keep a continuous connection with MiBand, so when the miband connected, you will be sure that you see relevant glucose value. If the miband for some reason will lose connections with the phone, you will see a lighting blue indicator in the left bottom corner of the miband https://i.imgur.com/dFAdYqc.png so you can consider the value can be outdated.

            Like

  6. Hi! Do you think it’s possible to make such watchface for amazfit bip? I would be very grateful if you could tell me how to do this

    Like

    1. I think yes, the amazfit bip have a similar watchface structure, and as i saw from the internet sources, it has similar Bluetooth commands like MiBand. But unfortunately, i don’t have this device so can’t implement such integration.

      Like

  7. Thank you! I’ll try. Is it possible to add on watchface time when impressions were received? (1 minutes ago, 5 minutes ago) to be sure that they are relevant and not an hour ago?

    Like

    1. I’m afraid there is no way to display this information. If my suggestions will hot help, i guess i can add an option to keep a continuous connection with the miband. So when the miband connected, you will be sure that you see relevant glucose value. If the miband for some reason will lose connections with the phone, you will see a lighting blue indicator in the left bottom corner of the miband https://i.imgur.com/dFAdYqc.png so you can consider the value can be outdated.

      Like

  8. Halloo bigdigitalkov,

    first of all, many thanks for the implementation.

    But I have a problem.
    As soon as I get a value sent
    I can’t control the Mi Band anymore.
    Only the clock face is displayed.
    I can not switch to the menu with push.
    And at every value, the watch vibrates.
    Since it is for my daughter in school, it is a bit annoying when the clock vibrates every 5 minutes.

    What am I doing wrong?!

    best regards
    Toni from Germany

    Like

    1. Hi. I’m glad you like it. To add miband screens, please go to xdrip settings -> Smart watches -> miband -> Miband screens/features and enable required screens (notifications, status, heart rate, etc)
      The vibrates possible to deactivate only if you use a watchaface to display bg reading (the option “BG reading as notification” disabled ) . For this, you should disable option “Vibrate on readings” in miband settings menu.
      I also recommend to update xdrip to version 0.1.3 which available at the end of my article.

      Like

      1. Yeahh this it.

        It worked with the new version and the settings.

        Thank you very much for the quick reply and the fix.

        But the trend arrow is always horizontal, regardless of whether the value goes up or down.

        Is that an attitude thing too?

        I would like to donate something if paypal is available.

        Good work.

        best regards
        Toni

        Like

  9. I have been using this system for a couple of weeks and I found it amazing, only that it has some minor flaws:
    1) The “Find phone” feature works great only that you should put the option of being able to change the sound that is produced by the mobile phone.
    2) The arrows that indicate the blood glucose trend don’t work, I tried to uninstall all the apps that could cause corruption but it doesn’t work the same.
    3) Since they are not related to the time you may be able to use the music control functions as they do not work
    4) Personalization is a bit too cumbersome could you make sure to load the .bin files directly into the xdrip app?
    Thank you

    Like

    1. Hi, thank you for feedback.
      1,3) I already started to work on this. But delayed this because I got an idea worth trying. I want to try to generate a custom watchface on the fly with the custom background, where i can display any bg value and even add a timestamp of the last reading. This watchface would be uploaded to the miband after each bg reading. Using such approach, all miband functionality would work and it would be possible to use original applications to control and communicate with band.
      2) Thanks, I’ll check what can be wrong and will update the app.
      4) Sorry, not sure i understand what you mean. You don’t need to use any third-party application to upload a custom watchface. The custom watchface embedded into xdrip and can be uploaded via xdrip interface by click on “Install miband4 watchface” button in miband menu.

      Like

  10. Is it possible to revert the installation of the MiBand4 watchface? I’m planning to use it for a while, then give it away

    Like

  11. What will happen when replacing the “official” app with this one, or vice versa? Will settings and recorded glucose data be kept?

    Like

    1. This is like a two different programs, so when you install my version of the xdrip, you would need to configure it from scratch. But you can save xdrip settings to the sdcard using transfer tool which is available in the xdrip and then import these settings to modified xdrip. But not sure id it will keep recorded glucose data.

      Like

  12. After some more testing, I’ve decided not to use the 0.2 series – waking the band every 5 minutes is not suitable in some circumstances, and I prefer silent updates.

    Will you continue to work on the 0.1 series? (I have no idea whether both approaches could be provided by a single app.)
    If so, may I utter a few wishes?

    (1) Add a battery level display. ATM, there’s absolutely no way to find out that the battery is going down. Having to unpair and pair with GadgetBridge or MiFit just to read the battery level would become a nuisance quickly.
    (2) What’s the preferred order of actions for initial pairing? I started from scratch today, and with “Use MiBand” still off, I checked the MAC field (clean), and entered the auth key. I ended up with the app FCing. After restarting it, and enabling “Use”, I could find the band, but it didn’t connect – it took another stop (via Android Settings)/start of the app to get it connected and authorized. No problems since.
    (3) Enable all screens in features by default. It’s rather surprising to find that the band cannot be controlled by gestures anymore.
    (4) Please explain the meaning of the colour bars at the bottom, how are they controlled? (It seems that “blue” means “outdated” – as in “frozen”, is there an expiration timer connected with this?)
    (5) Pretty please, after thorough testing, get this merged with upstream so future updates are possible.
    (6) BTW, why is your app smaller (by 2.5 MB, that’s about one quarter!) than the original app?
    (7) State more clearly that the MiBand2 would receive notifications, but wouldn’t be able to show them (which makes the whole thing moot imho)

    Thanks for this awesome extension of xDrip!

    Like

  13. Hello
    you did a great job and as soon as i saw it i immediately bought the MI Band 4 to try it.
    I think the version 0.1 is fantastic for its easy way to use for children and my wife, even if we lose some functions that are still easily visible on the phone.
    I made little changes to the watch face to control the battery charge and enlarged the bluetooth symbol to see it better.
    The problem is that I can’t understand how to change the watch face with the modified one.
    I send the watch face to this e-mail to share it: bigdigital.kov@gmail.com
    Thank you
    Michele

    Liked by 1 person

  14. Hello
    I failed to connect the miband4 with xdrip. In the miband settings I haven’t found a button to “enable band visibility”.
    How do I enable the visibility? Perhaps this would be the solution for my problem.
    Thank you
    Ralf

    Like

  15. Hi Artem,

    I’ve been using 0.2.2 for a while, looked into 0.2.3 (being able to switch off the graph in favour of a bigger time display is nice) – and found that the app writes data (2 or 3 files) to /sdcard/xdrip every five minutes. Is this a leftover from development and debugging, or is it required? If the former, can it be disabled?

    Like

  16. Hi. tank you for your work!
    I have a problem: I can not send the watchface to my band 4.
    I set “allow to use custom watchface” but noyhing happens.
    I’m using the last release. Band is connected with xdrip and can get BG as notification.
    What am I missing.
    My smartphone is Xiaomi mi9 running Android 10

    thank you

    Like

  17. Hi.
    I fear there are problems in porting this fork into official xdrip, so I wish to use your fork, but I have some doubts.
    I use latest Nightly on my phone, and it works flawlessly, giving me the possibility to insert Carbs, bolus and basal different insulin types and quantities, obtaining this way a sufficently accurate forecast curve.
    Moreover, it allows me to insert as many calibrations I need, and obtain the curve variation acordingly, and to insert the needed calibrations.
    I would like to use the Nightly xDrip+ on my cell phone, and to have the curve, arrow and minicurve on my Mi Bamd 4.
    My question: what have I to do to obtain it?
    I lost my way among the many changes occurred till now to the fork , so I pray you to confirm me if the operations shown here
    https://bigdigital.home.blog/2020/01/23/future-of-the-xdrip-miband-project/
    at point “Configuration tutorial by steps for v 0.2.x” are still correct.
    If yes, and if I understand correctly, the sentence at point “1.Install latest patched xdrip from this link xdrip-miband . If you have original xdrip application installed on your phone, you would need to delete it.” means that if I have installed the official version, I must delete it, and lose the actual and the future improvements.
    So, what is the nightly release on which the fork is based ?
    I apologize for my stupid questions, but for me it’s a very important matter of health, so I must be sure of what I’m doing, hope you understand, and beg your pardon for my bad English..
    Thank you very much.

    Andrea

    Like

      1. Hi bigdigital, thank you very much for your kind reply. I’ll follow your suggestion, making a settings backup, and then I’ll follow the given procedure. Just a doubt: the MiBand authorization key is still necessary? I think it is a long and annoying procedure…
        Thank you very much.

        Like

        1. yes, it is necessary. And not, obtaining authorizaions key is is not so long procedure as you may think. it takes minutes to unpair your band from original mifit, install patched apk and pair it again. Just follow every step in my instruction

          Like

          1. Hi bigdigital. No I think I’m OK, because I have in use the 2010.01.29 xDrip+ Nightly, that should be the first after your release. Anyway I already decided to update my phone with the next nightly, as soon as it will be issued, so everything should be OK. Thank you. Bye. Andrea 🙂

            Like

          2. Hi bigdigital.
            I followed your guide to obtain the auth key, so I unpaired band from official installed MiFit, then I uninstalled MiFit and installed MiFit Mod. But when doing login with my pwd, the app freezed as shown in the image, saying “One second only…”. I tried again, uninstalling the mod and starting again with the mod installation, but again when doing login it freezed the same way. I’m desperate! Any suggestion? Thanks a lot, I apologize for my surely silly problem.
            Andrea

            Like

              1. Hi bigdigital.
                I received just now my Mi Band 4 replacement, and I would like to know what can I avoid to do in the list of actions to implement the xdrip+ readings on it.
                I think that in the “1-Obtaining auth key” procedure I must follow only the points 4 to 8, and all the steps in procedure “2-Connecting to miband” and “3-General settings and installing glucose watchface” remain confirmed, correct?
                Beg your pardon, but as you can understand I’m very interested to have it working.
                Thank you very much.
                Andrea 🙂

                Like

                1. Hi, I’ve little updated the configuration steps in my post. If you have a new miband, you can start from installing patched mifit application and then follow all steps. from the post

                  Like

                  1. Hi bigdigital, thank you for the confirmation. I have seen that jamorham has started interesting to the porting into official xDrip.
                    Any news on this?
                    Bye.
                    Andrea 🙂

                    Like

                    1. Hi bigdigital, this is a very good thing, both for all the people waiting for this, and for you, because IMO it’s a satisfaction to see your own work become part of an important project like xDrip+.
                      Very happy, appreciated.
                      Bye. Andrea 🙂

                      Like

      2. Hi bigdigital.
        I’ve finally been able to give the right Auth, all works, xdrip sends to Mi Band alarms for high-low glucose levels, with its value, and Mi Band sends heart rate value to xdrp, but… I cannot see the right watchface on Mi Band.
        I downloaded the watchface (2 files, xdrp_mi and xdrip_miband4_mgdl.bin) and put it in xdrip folder of phone memory.
        In xDrip Mi Band Settings I checked ON “Allow to use system watchface”.
        Then I went to Mi Band display settings…. but it wasn’t there.
        So I tried with Mi Fit display settings, hoped it was there… It wasn’t.
        What thave I to do to change the watchface with the last one, with BG graph, BG delta, etc.?
        Plese help me, I’m desperate! :-((-

        Like

        1. Hi, you don’t need to put any wathcface files to see the dynamic watchface. 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.

          Like

          1. Hi bigdigital.
            Beg your pardon for my late reply, was too busy for my job and COVID related problems.
            Now I had some free time, and I made settings as you suggested, and finally all worked fine when I enabled “Disable high MTU value”.
            But after the first reading, 174, at 19:54 LT, no changes up to now, so I checked Mi Band notifications, and BG there is the correct one.
            So what am I missing, or where is my mistake?
            Please bigdigital, help me to find the final solution, we are very close now.
            Thanks a lot.
            Andrea 🙂

            Like

            1. Plese try to use “update bg manually” option an check if you will see a fresh data on the screen. If not, an you please show a miband status screenshot from xdrip “System status” interface and miband settings screen . Also it would be usefult if you provide events logs. For this please go xdrip Settings->Less common settings-> Extra logging -> Extra tags for loggings and enter here “MibandService:d” (without quotes) . After this go to “Less common settings” -> View recent error interface . Leave enabled only “Low” checkbox and make screenshots of the last 10 minutes of the log. You can send screenshots to my email bigdigital.kov@gmail.com

              Like

  18. Sorry, cannot find a way to attach the image, anyway it shows at the center a black rectangle with a circular increasing bar and the words “One second only”. Andrea :-((

    Like

  19. Hi bigdigital.
    During the third try, Mi Band frosted during pairing with Mi Fit. The screen was locked, showing only the “Regulations” and “Pair first” pages, nothing else. Never mind, tomorrow will send back to the seller, and hope to receive the replacement within this week. By soon, and thank you for your patience.
    Andrea 🙂

    Like

  20. Hi,
    really a nice job!! Thank you!
    I’m usin a Mi smart band 4, i think it’s the same object of miband4 but xdrip do not recognize it like miband4 to install the custom xface. I installed it with mi band-tool but it’s just freeze on 15mg/dl. Have you some tips?

    Like

      1. Yes, i paired my band with also the key generated with the modified mi feet apk, but when i try to install from xdrip the xface it return me an erro message “Sorry, watchfaces can be installed only on MiBand4”. I don’t know if just a check on the device name. My band is recognized as Mi Smart Band 4.

        Like

  21. Ok, thank you for the support, i found the issue thanks to the log. Was my mistake, i had a custom bt app that work like firewall. I’m so sorry. Thank you so much for this customization!!!

    Like

  22. Hi Artem,

    I already install latest xDrip-plus-20200505-3f17d8e it’s necessary to install the patch xdrip_miband_0.1.4 if this article or is already embeded in the 20200505 version of xDrip+ ?

    Cheers from Portugal,

    Alberto

    Like

  23. No, the miband integration already present in the latest xdrip nightly build, so it would be enough to install only offcical xdrip application. Regards, Artem

    Like

  24. Hello bigdigital,
    I can’t open the mifit mod apk-file. Tried both from this site and from the freemyband-site. Tried on the sony-phone where it should be installed and on a samsung s10+ but it can’t be open. What can be wrong? Any help is very much appreciated.

    Best regards,
    Cecilia

    Like

    1. Hi, at first thanks for that great app!! could be changed time of last reading as it is in xdrip “minutes ago” You know, for six yr old boy to watch himself.

      Like

  25. Hi, I am having trouble finding ‘xdrip’ folder on my phone to locate ‘my_watchface.bin’.
    Any suggestions where to find ‘xdrip’ folder on Android (Xiaimi Pocophone) phone?

    Thank you for all the effort!

    Like

    1. Hi, I am having trouble finding ‘xdrip’ folder on my PC to locate ‘my_watchface.bin’.
      Any suggestions where to find ‘xdrip’ folder stored on Android (Xiaimi Pocophone) phone?

      Thank you for all the effort!

      Like

  26. Hi Bigdigital,
    I have a lot of problems while installing Mi Band 5.
    I have a Mi Band 5 and Samsung 8 and problems with the Auth Code on X-Drip.
    We install tausend times all the Apps. XDrip found Mac Adress and Auth Code. Mac Adress and Auth code is the same I can see it in the file on Smartphone. Xdrip Status is connect but authorization failed.
    What can I do? Does anyone has any idea?
    Thanks Ralf

    Like

    1. Look like you use a wrong auth code. Normally the key should be autopopulated from the patched mifit. I can suggest you generate a new auth code and connect your band from the scratch. For this, open patched MiFit app. If you already have a paired miband here, unpair it, and then pair it again. After this, go to xdrip miband menu. Switch off the option “Use miband”, and then clear fields “mac address” and “auth key”. Now, switch on the option “Use miband”. You should see that your miband was found and succesfully authentificated. If not, recheck that mac address which was automatically found is the same as on your band and correct it in the “mac address” field. The mac address can be found in the mifit application.

      Like

  27. Hi bigdigital,

    Really nice job. I’m looking forward to getting it to work. Right now I ran the patched mi fit which generated the key placing a txt file in a dir on my s7 internal memory. I copied it to the sd in case this is where xdrip looks. I am using the latest xdrip which appears to support mi band directly. However if I enable it is unable to locate band. If i add the mac address manually it connects but fails autherisation. The system status indicates this also. I have the auth code but don’t see where I can enter it manually. Any tips would be great. Thanks.

    Like

      1. Hi, Thanks I had missed that. I will try it. How close is this version of xdrip to the latest stable? Just curious.
        Thanks,
        Ciaran.

        Like

  28. Thank you for the great work you did here. I appreciate it a lot! 🙂
    However, is it possible to deactivate the “receive CALL” feature on ALERTS? There is an option for that for other smart watches. For me it would be enough to receive just the standard notification for alerts.

    Btw. If you are in a call and an alert rises you would dismiss the call by dismissing the XDrip notification.

    Like

Leave a Reply to muggiri Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at WordPress.com
Get started
%d bloggers like this: