Closed Klaus3d3 closed 3 years ago
I managed to install xDrip+ directly onto the watch via sideload. After also installing google play services there is basic function. I can start a new sensor and enter the system status page. As soon as i enter the settings or blutooth scan it crashes.
I managed to make an app with tasker, wich works on the watch and can read the value from my nightscout side. And i have a working widget for the watch where i can implement what i did in tasker. Sadly the watch can only access the Internet via wifi. So we definately need a companion app wich tunnels thru Bluetooth or gives acces to the local web Service of xdrip. I'm still not giving up, but i need some help with the Bluetooth Thing.
The OS of the watch is some Kind of 5.1 but is limited in some function. i've found some apps wich work, but many that do not.
If anyone know of a simple Bluetooth Client and Server app for communication tests, please let me know.
Any chance to get help with the bluetooth thing? I could'nt figure out how to connect the watch except with the companion app. No other bluetooth app / library on github worked out.
Lately i've found someone who could do this. Still in develepment but looks promissing till now: https://github.com/edotassi/AmazMod/issues/7#issuecomment-380313664
@jamorham
Since we now have a working library to send data to the watch, would you mind to integrate this into xdrip+? Would make things easier and would open it to the full potential of xdrip+ and Amazfit.
@jamorham i think i can do the implementation, but i need some help. Since xDrip is way more complicated than my projects before.. could you please provide a switch in the settings and guide me on how/where to start the service from?
Hi Klaus3d3 I was looking for something unrelated to this and came across an app which reminded of your post and the fact that you were looking to hook the watch through bluetooth, i wonder if something like this type of app might work: https://play.google.com/store/apps/details?id=com.codegy.wearconnectforios&hl=es
Hi,
I made some progress. So far i have a switch, a running service and a theoreticly working library for the blutooth communication in my local xdrip copy. I still have some problems with it, but i think these are java beginner mistakes, wich i get over soon.
I also have i working widget for the watch.
Once i got the communication working the rest should be easypeasy. It's more a matter of time.
What i need to know is, where i can catch the new value events and the alarms.
@jamorham
It works. :-D
How do i do a pull request for multiple files?
this is my repo for the widget. https://github.com/Klaus3d3/XdripWidgetForAmazfit-Klaus
Hi @Klaus3d3
works very great, i installed from your GitHub account:
With this tool you can stay on the current page: https://forum.xda-developers.com/smartwatch/amazfit/app-paceon-amazfit-pace-screen-long-want-t3700247
So you can realize an independent faked Watchface :)
Great to hear that its being used. I have to find out how to get my fork of xdrip back on track, since it's an older Version. I made a pull request for it. Hopefully there is someone who can Review.
I know the paceon, but i think it would drain the battery a lot. So i let it go. Mostly it's just one button press and i'm back at the widget.
I'm thinking of copying the android wear watchface. Once i sideloaded the wear part of xdrip and i could choose the xdrip watchfaces on the Stratos. No values, but time and date were working. They worked only in highpower mode, but this would assure that it's always in first place when pushing the button, whereas the widget jumpes sometimes back to the watchface.
Hi, I'm interested in installing XdripWidgetForAmazfit-Klaus but I do not know how to do it, can you explain it in more detail? I have amazfit stratos. I download the XdripWidgetForAmazfit-Klaus.zip project when I run adb push xDripwidget.apk / system / priv-app, it gives me a bug. Thank you.
You need to do all instruction steps. Therefor you need at least temporary root access to the watch.
Related pull request: https://github.com/NightscoutFoundation/xDrip/pull/420
Updated pull request: https://github.com/NightscoutFoundation/xDrip/pull/477
Support is added in June 12th Nightly. Please test and confirm it works well. Thanks @Klaus3d3
Seems to work pretty well. Many thanks for fixing the mess. Now i better start with a fresh fork, should'nt i?
Works very pretty tested with my Amazfit Pace, thanks at all
BR
It works fine in mine too. I had to activate "amazfit plugin" into xDrip to make it work properly. Is there any way to make it appear in the watchface, not as plugin? Thanks!!
That's still on my todo list, but since watchface coding for these watches is very difficult, no success till now.
Right now i'm working on an alarm Service.
Hi guys,
i have a major update to pronounce for the Amazfit Widget :https://github.com/Klaus3d3/XdripWidgetForAmazfit-Klaus
We now have
Important to mention: this new update only works with the latast release of my fork of xDrip+. PR will come when i have finished the next steps:
It works perfectly. It is a great help for my diabetes. Thank you very much Klaus3d3!!!
This looks AMAZing! I am ordering my Stratos today thanks to you, hope it works!
Hi Klaus - Ok, I have the Stratos - What is the easiest way to get your watchface onto my watch? ( I've got nightscout working :) )
Do I really need to download and install the android developer platform and adb? or is there an easier way?
Hi roco5,
U don't need Android studio. Here i put some releases:
https://github.com/Klaus3d3/XdripWidgetForAmazfit-Klaus/releases
To use the newest u need to use it with my latest xdrip+ release. Because since the last pr to the master i've changed a lot.
https://github.com/Klaus3d3/xDrip/releases
For this u need to uninstall the original xdrip+ (save settings and database before)
For installation of the widget on the watch use this: https://forum.xda-developers.com/smartwatch/amazfit/tool-huami-amazfit-tool-unlockadvanced-t3739828
After installation enable and disable app drawer also with this tool. This causes the launcher to restart. (U could also reboot the watch)
Don't forget it's not a watchface, but a widget.
Oh this is very helpful, thanks. I am just using xdrip as a follower. I assume that will be ok?
On Fri, Jul 20, 2018, 1:24 AM Klaus3d3 notifications@github.com wrote:
Hi roco5,
U don't need Android studio. Here i put some releases:
https://github.com/Klaus3d3/XdripWidgetForAmazfit-Klaus/releases
To use the newest u need to use it with my latest xdrip+ release. Because since the last pr to the master i've changed a lot.
https://github.com/Klaus3d3/xDrip/releases
For this u need to uninstall the original xdrip+ (save settings and database before)
For installation of the widget on the watch use this:
https://forum.xda-developers.com/smartwatch/amazfit/tool-huami-amazfit-tool-unlockadvanced-t3739828
After installation enable and disable app drawer also with this tool. This causes the launcher to restart. (U could also reboot the watch)
Don't forget it's not a watchface, but a widget.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/353#issuecomment-406492581, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoAaJJd559pofnKJUqUL4AQUSu9aT4Cks5uIWmdgaJpZM4Su6i_ .
I can't test this, cause i only have one phone with xdrip+ running as master on it. But i don't see any reason why it should'nt. Please let me know. The data push to the watch is triggerd by the newdataobserver.class, don't know if this also reacts to new data from nightscout. When it does not work, i'll have to look at it.
Ok - I'll try it and let you know. Ive got your xdrip on my phone now and the widget installed on my phone - Now how do I get it on or find it on the watch? [image: image.png]
Best, Rob Conley
On Fri, Jul 20, 2018 at 9:55 AM Klaus3d3 notifications@github.com wrote:
I can't test this, cause i only have one phone with xdrip+ running as master on it. But i don't see any reason why it should'nt. Please let me know. The data push to the watch is triggerd by the newdataobserver.class, don't know if this also reacts to new data from nightscout. When it does not work, i'll have to look at it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/353#issuecomment-406607879, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoAaArDMMTW_JkN9OEuHJ8d5Dj2UcWQks5uIeFegaJpZM4Su6i_ .
If you rebooted the watch or enabled/disabled the app drawer via the Tool it should be in the last widget position on the watch. Just swipe through the widgets or use the top/bottom button. If ur on it you go to the smartwatch settings in xdrip and enable Amazfitservice.
Check with the Amazfit tool if it's installed. Click on Apk uninstaller. If it's not in the list it's not installed.
Doesnt matter if the app drawer is enabled or not. Turning it on and off just causing the launcher to restart. Rebooting the watch does the same, just needs more time.
If its installed, then u should find in in the list of the Amazfit tool. If it's there it's installed. But it's a widget. Widgets are the screens u will find when swiping left or right, like sleep, alarm, compass and so on. The new widget should be the last one.
Yes - Thats what I used to load the widget and to enable and disable app list.
The only place I see the appwidget I installed is in the uninistall apk list. Is there somewhere else in Amazfit ToolI am supposed to enable the widget?
Best, Rob Conley
On Fri, Jul 20, 2018 at 12:20 PM Klaus3d3 notifications@github.com wrote:
https://forum.xda-developers.com/smartwatch/amazfit/tool-huami-amazfit-tool-unlockadvanced-t3739828
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/353#issuecomment-406651056, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoAaGw-v_U190u7gBn7vSsGID3vN20Lks5uIgNkgaJpZM4Su6i_ .
Of course u cant install it from the phone, buddy. It does not work by magic.
Put the watch into the charger cradle and use the Amazfit Tool to install it. Download the watch apk and the tool onto your pc, start the tool, click on "APK Installer" and install the apk. Then reboot the watch or enable/disable App drawer.
This tool is just an easier way than adb, but does the same.
Lol - My apologies. I had never used the base because the battery is so good on this watch and I thought it would send apk by bluetooth from phone.
Once I used the base that magic happened!
Ok - Its Working!!!
Couple of questions:
How hard would it be to make it so that the watch could gather the data from NS DB without the phone near?
It looks like maybe you are working on a watchface, should I get excited for this, or is this a distant idea?
KLAUS - THANK YOU SO MUCH FOR MAKING SUCH A GREAT WIDGET FOR XDRIP and STRATOS!!! I"LL BE FOLLOWING FOR UPDATES.
One other question - Is there a way to place the widget closer to the watchface so we don't have to swipe so many times to get to it? Thank you sir.
Good to read that its working now. Placing the widget near to the watchface is possible, but only to the right side. Sadly everytime phone and watch reconnect the Amazfit Watch app resets the widget positions. I'm thinking of reseting it with every dataset, but thats not on the first positions of my todo list. For me its ok so, because you have to unlook the watch with the upper button anyway and u can then press this some more and get to the last widget.
Putting the data onto a watchface should be possible, but at this time i don't know how. I'm also really new to java and android coding, so i'm more a copy kid than a coder.
Well you've done a nice job so far, I hope you continue to refine it.
One strange thing for me so far is that it only updates when a new reading comes in. It would be better if it stayed synced with the latest reading in xdrip, or with nightscout, and not just when a reading comes in and the watch is near to the phone.
On Fri, Jul 20, 2018, 4:15 PM Klaus3d3 notifications@github.com wrote:
Good to read that its working now. Placing the widget near to the watchface is possible, but only to the right side. Sadly everytime phone and watch reconnect the Amazfit Watch app resets the widget positions. I'm thinking of reseting it with every dataset, but thats not on the first positions of my todo list. For me its ok so, because you have to unlook the watch with the upper button anyway and u can then press this some more and get to the last widget.
Putting the data onto a watchface should be possible, but at this time i don't know how. I'm also really new to java and android coding, so i'm more a copy kid than a coder.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/353#issuecomment-406715119, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoAaFQjWBo8Pq2EAvrWNN3sxFsVbGxwks5uIjp5gaJpZM4Su6i_ .
You need to explain this further. How do you get a new value in xdrip without a new reading. This watch is not a Full android watch nor does it have a sim. It can't get data without the phone.
Maybe this will explain..... Have a look at this image. This was taken after 15 mins of being in the same room with my son with a dexcom, his collector phone running xdrip master, my xdrip follower phone (with your fork of xdrip) getting readings from Nightscout (in picture) and my watch which was right next to my phone with your version of xdrip.
Somehow the readings don't sync all the time?? if the phone and watch are right next to each other, why would the readings ever be different?
Ok, this should not happen. Is this the master or follower phone?
It shows the same timestamp, wich indicates that the watch got new data, but the value got still a strike trough, wich indicates that the value is older than 10min. As long as this is not a nightscout reated issue i'm a bit confused. I gues i have to find out where the nightscout data come from and where the get populated to the home screen of xdrip in follower mode.
I'm not at home this weekend, so it takes a while. Is the value ever get updated and is evee correct?
Also the curves do not match, or do i see it wrong?
If xdrip runs on both phones, could u please test if it works with xdrips internal master/follower system without using nightscout?
Yes - It seemed to be working well for awhile, but when the readings don't get collected for some time, or the watch is away from the follower phone for some time, they seem to get out of sync. I have had the follower phone next to the watch now for 30 mins and the watch is still out of sync with Xdrip, follower phone , nightscout, and the collector watch (which are all in sync)
You are right - In that view the curves do not match. The graph on the watch is an hour old, but the time stamp does not match this.
i am just trying to get a reading now and cannot. I have rebooted the phone and watch with no affect. At this point I am not getting any readings on the watch.
++++++++ If xdrip runs on both phones, could u please test if it works with xdrips internal master/follower system without using nightscout? ++++++++
how would I do this?
I believe that is how I have it configured. The follower phone is only aware of master, and has no other nightscout data in it, that I am aware of.
On Jul 20, 2018 6:20 PM, "Klaus3d3" notifications@github.com wrote:
If xdrip runs on both phones, could u please test if it works with xdrips internal master/follower system without using nightscout?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/353#issuecomment-406741128, or mute the thread https://github.com/notifications/unsubscribe-auth/AGoAaFzz9igSjytcOFmJxDduk6fwZ2Ncks5uIle-gaJpZM4Su6i_ .
Hi there,
i don't know if this a the right pace but i'd like to discuss the possibility of an integration for the smartwatches Amazfit Pace and newly arrived Amazfit Stratos/Pace 2. Both watches share the same android based OS, have a transflective touchdisplay wich is always on and a good battery life of almost 5 days, wich i think could be a great pebble replacement.
Some ported successfully android wear apps for the watch, as long as the app does not have to communicate with the phone, cause the standard companion app is limited. I could even made myself a small app with tasker, witch works on the watch. Due to the fact, that the App watchdroid works with "watchdroid assistant" on watch and the watchdroid phone app, i'm pretty sure it is possible to do.
In first stage i would assume, that writing a companion app for the phone and writing a widget with glucose value display for the watch would be the right way. The companion app, could be integrated in xDrip+ later than in case of success.
Here i've found a project for an empty widget for the watch as a start. https://github.com/KieronQuinn/AmazfitSpringboardPluginExample
http://amazfitcentral.com/2017/08/31/better-notificationsmusicdialing-lumatic-softwares-droid-phoneassistant/
My problem is, i'm really a noop in android coding, so i need a lot of help with this.