Replies: 7 comments 3 replies
-
Great idea. Tested "working" on a Mi Band 5. Some ideas, idk if useful:
BTW, have you tried to post this idea in gadgetbridge's codeberg asking for a possible support in the official app? I think it could be a good thing even to that community to increase their user base. |
Beta Was this translation helpful? Give feedback.
-
Just want to point out another possibility: https://bigdigital.home.blog/2022/06/16/watchdrip-a-new-application-for-xdrip-watch-integration/ |
Beta Was this translation helpful? Give feedback.
-
Seems that here they're using the same approach: ( see gadgetbridge section of the comment ) |
Beta Was this translation helpful? Give feedback.
-
The Gadgetbridge feature was fortunately integrated into Free Three by @DecentWoodpecker67 . Thanks to the new editor, more values could now be displayed on the watchface, to be able to use these variables the Gadgetbridge connection of Free Three has been extended. Unfortunately the implementation of the weather data processing in Gadgetbridge is not complete and some of the possible values are not even changeable via the weather interface. I have opened an issue at Gadgetbridge. Feel free to join or ask there and show your interest in the topic. |
Beta Was this translation helpful? Give feedback.
-
Tried to send some fake values to an Amazfit5 using @SaschaH42 application by playing with GadgetbridgeAPI.java file in its source code. temperatures have actually a -128,127 range and there is no check, so you could send a maxTemp value which is lower than a minTemp, and the same applies to current temp So there is plenty of digits to play with on an appropriate watchface. I don't know if the same applies to the Amazfit 5 twin, aka Mi band 5, and his successor mi band 6. |
Beta Was this translation helpful? Give feedback.
-
I don't understand the purpose of this entire thread. I read the very first post until I got to Mi Band 4. |
Beta Was this translation helpful? Give feedback.
-
An update: I managed to send xDrip values to an Amazfit Band 5 using the gadgetbridge weather method using a @SaschaH42 patched app. |
Beta Was this translation helpful? Give feedback.
-
XdripGBGateway_2022-02-18_AndroidStudio.zip
apk File.zip
Wattchface Amazfit GTR 47.zip
Hello xDrip Team,
first of all I want to say a big THANK YOU for this really great piece of Software. My daughter has now T1D for one year and this Project is the largest support for having this more or less under control. You're doing a GREAT job !!!
Maybe with this post I can support the community a bit with a feature enhancement idea.
I'm wearing a Amazfit Bip or Amazfit GTR Smartwatch and use Gadgetbridge as Host Application on the Phone. I'd like to see the BG values on my smartwach. For sure xDrip supports some smartwatches - which is great. My daughter wears a Mi Band 4.
My idea is to use a Fake Weather provider for Gadgetbridge to display BG values instead of weather data.
I did a small prove of concept - and I can tell it does work ! You can find all Files including the source code attached.
As an excuse upfront - I'm not a programmer nor very exepericenced.. So please bear this in mind when you have a look at the code. It's just a prove of concept...
I haven't managed to compile the xDrip code within Android Studio, so for the test I created an application with contacts the xDRIP web service and extracts the BG values and then mimics a weather service for Gadgetbride. Gadedbride then believes there is new weather data and uploads the new data as upper and lower temperature to the smartwatch.
It's working most of the day - but sometimes my phone kills my gateway app. I assume because of energy settings or some issues in my code.
If you would like to test this - just install the attached debug apk and start it. It'll immediately contact xdrip every 20s and uploads the "weather" data to gadgetbridge.
I've also created some watchfaces for the GTR to show the data a bit more nice.
Currently there are some shortfalls as well...
as the BG value is combines out of upper and lower temp (there is no e.g. 217C) it's using 21 and 7 then. 21C upper temp and 7C lower temp...
Based on the fact that the upper temp always needs to be higher than the lower temp this leads in some cases to wrong displays. e.g. falling and 107... this ends up in -110 ... I haven't found the time for a better calculation... But I really wanted to share the idea.
If there is somebody out there who can have a look at the code and would be able to add this feature to the xDrip project that would be awesome.
As stated before: I've tested this with an Amazfit Bip and GTR 47. But I'd assime this should work with all smartwatches which are supported by Gadgetbridge.
Thansk for reading all of this.
You can find attached:
I'm curious to hear what you thing about this idea.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions