-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miband 5 and Amazfit band5 integration #1659
Miband 5 and Amazfit band5 integration #1659
Conversation
…t updating if alarm is triggered) Fix. Properly handle not initialized last treatment value ( the exception was handled by catch statement which interrupts watchface uploading ) Improvement. Decrease first update interval to 15 minutes when there no new data (data loss)
Add us/eu date format watchfaces Display IoB on graph
…show added watchafaces for miband5 added eu date format wathfaces
…ed to correctly position "no connection" layers ) Fix. Graph display changes. Display prediction line even when there no threatments available. Fix. Graph display changes. Display hight and low lines under the bg line. Fix. In rare cases, the BG data can stop sending (usually happen when Bluetooth connection lost while sending the nightmode )
Fix. Screen Brightness Timeout
…ight/low alarms ) (NightscoutFoundation#1425) Improvement. An alarm would be received before watchface uploading (NightscoutFoundation#1425) Improvement. More detailed alarm snooze confirmation text (NightscoutFoundation#1425) Fix. The screen brightness does not restore on some phones NightscoutFoundation#1427 Removed. Send readings as a notification option. Now For MiBand 2 and 3 the readings would be sent as notification. For MiBand 4 and 5 would be used watchface uploading. Removed. Call notification. For call notifications use MiFit or any thirdparty apk.
…uring wathcface update
…ation that can control watch settings) refactor MiBandType, to be more general for other watch models. initial amazfit implementation
…ation that can control watch settings) refactor MiBandType, to be more general for other watch models. initial amazfit implementation
New. Send alarm missing message notification. Fix. alarm hangs on “WAITING_USER_RESPONSE” state when nigtmode active
# Conflicts: # app/src/main/res/values-pt/strings-pt.xml
# Conflicts: # app/src/main/java/com/eveningoutpost/dexdrip/watch/miband/MiBandService.java # app/src/main/res/values-pt/strings-pt.xml
@jamorham Can you merge this, please? :-) |
I'm not worried about minor whitespace issues in the code, my main question here is can we get a brief description of the content of the Second to that is just that this doesn't introduce any issues for users not using the feature. I had a quick look through the code and it looks okay on that front (eg it just hooks in to the same places as the existing service) If there are unused preference sections then they should be removed any any dynamic preference handling in |
As I'm not the developer, but as I'm analyzing the bin's due to understanding process I could say those are watchface containers which includes XML/json informations for positions and triggers within a watchface. Also graphic files are included for building for example the values of the watch, or background. The bin's are compressed with specific algorithm and are produced normally with open source watchface editors. I did not see any copyright problems with them, except licensed graphic files are used (Wich does not look like in that way in my eyes) |
Hello, Does it work olso with the mi band 6? |
No it does not. Even not with the mi band 5.. |
Any update? @bigdigital are you stlll working on "resolving the conflicts" ? Any solution on the horizon ? |
I don't see anything in the comments other than support and approval for this PR. However, none of the questions have been answered. Either way, I see no reason to keep the issues related to this open any longer. |
I just made a comment on this personal blog, hopefully we can get a reply soon. |
Artem is really busy but also working on the suggested changes. |
BtyOn his personal blog is a version of xdrip + huami watch update 30.03.2021 that does not work to import the log after an update. (actually after export+uninstall+install) Even if I try to import a log exported from another xdrip that is the same version on another device that was a follower. So after the import in settings the app shows that uses 40mb data space like the import has but in history is data is emply.
Sent from Yahoo Mail on Android
On Tue, Jun 22, 2021 at 0:06, Mathias ***@***.***> wrote:
Artem is really busy but also working on the suggested changes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Any news? |
@jamorham The bin files contain the watcface itself. The watch face contains a set if images compressed with a specific algorithm and header which defines how interpreter and display these images would be on the device screen. The watcface design for all devices was created personally by me so there are no copyright issues. Before uploading this watchface to the device, the xdrip will inject the canvas.png image into watcface.bin file. The canvas.png acts as a dynamical part of the watcface which contains xdrip related information. |
@jamorham @tolot27 @bigdigital anything I can support to get this merged? I just bought a Mi Band 5 to be able to see my daughter's BG (after ditching the sony smartwatch) - so I either pull this into a local instance here -- or support in getting it merged into mainline ;). |
No, some are still not commented and no commit was pushed containing the addressed comments. |
Will it be merged soon? |
Not as long as not all reviewer comments are addressed by @bigdigital. |
@tolot27 Sorry for not answering here for so long. I've done all suggestions mentioned here a couple of mont ago. But every time I try to merge the changes, there is something new happening that stops me(I also still have not configured a new github token authorisation to push local changes to the repository) . For now, this merge request is too far compared to my current branch. With the latest changes, has been added support for almost all amazfit devices, and now, miband6 support was added. All these things takes too much code and resources, not related to the healthy application in any way. With the the latest changes also were added an Android NDK depedency in order to support a specific encryption required in the new authentication protocol . I don't this it would be a good idea to leave all those things in the xdrip project. I'm thinking about moving miband and amazfit devices support to the separate application and use inter-app communications to transfer data between applications. I think this should leave a clear code in the xdrip and there would be no need to merge latest changes into xdrip so frequently. What do you think? |
This should be a good idea. HTH |
Yes, I also think that moving miband related stuff to the separate application would be the best approach to support miband devices in xdrip app. In such cases the users can receive updates for xdrip and miband/amazfit related features much faster. At the moment the miband related resources already taking 2.5 MB of data, and it would grow with the new devices. Also in such case the xdrip stability would be much improved, since some unpredinced errors would not crush the main healthy application (although this never happens with my code). Regarding inter-app communication , I'm thinking about using amazfitcommunication protocol. It is already present in xdrip. The Amazfitservice class should do almost all things that need for interapp communication. But maybe it should be a little extended, especially for graph display configuration. I'm thinking that it would be better to draw graph on xdrip side and simply return a serialized ready to use image, than transferring a huge massive of graph-related data. |
That's IMHO a good idea. Beforehand, we should clearly define an extension/plugin interface for IPC, maybe based on On the other side, we can also find a way to improve the review and merge process. We need this anyway. @bigdigital Are you still listening in the dev gitter room? If yes, we can continue our discussion there. Please close this PR if you not work on it anymore. Thanks! |
I'm closing this as discussed. @bigdigital Please let me know if you need support with the integration. |
Would you please tell me if there is anything I can do to help with this? |
@Navid200 For now i work on prototyping a separate application. I hope i could spend more time on this on the holidays. |
@bigdigital I know. That will be wonderful. |
This is an extension to previous miband integration. Now it brings support of Miband 5 and Amazfit Band5 devices. And many new features.
It was well tested. All details available on my blog
https://bigdigital.home.blog/2020/08/25/new-xdrip-now-supports-miband-5/