GlucoDataHandler icon indicating copy to clipboard operation
GlucoDataHandler copied to clipboard

Broadcast to WatchDrip+

Open infossk opened this issue 1 year ago • 57 comments

If possible, please create a broadcast to WatchDrip+ (like Juggluco does) so I don't have to use xDrip or Juggluco. Thx.

infossk avatar Feb 22 '24 15:02 infossk

I already have checked the Juggluco sources and it seems not a big deal! I have installed version 0.2.6 of WatchDrip+ and it works with Juggluco without having a watch. So I can test my implementation :-)

pachi81 avatar Feb 22 '24 15:02 pachi81

The only problem is, I can not send a graph, yet. So the graph on watch will not work! @infossk Is this ok for you?

pachi81 avatar Feb 22 '24 16:02 pachi81

I will try how it will work without the chart. As far as I know, the graph is drawn directly by the WatchDrip+ application.

infossk avatar Feb 22 '24 18:02 infossk

I don't know, but in Juggluco, there is an extra function for adding the graph to the watchdrip broadcast. But if I'm ready, you can try it...

pachi81 avatar Feb 22 '24 19:02 pachi81

I have created a first version. The values will be received in WatchDrip, but without watch, I cannot say, what is missing: https://onedrive.live.com/?authkey=%21AG8eUfvdnCAQ1G4&id=F01898105C58ADFA%211299367&cid=F01898105C58ADFA @infossk can you test it? Thank you! You have to enable WatchDrip+ in setting in GlucoDataHandler and after that, you have to (re-)enable the service in WatchDrip+.

Regards, Michael

pachi81 avatar Feb 23 '24 14:02 pachi81

Hello thank you. It works without problems. The difference is that the graph, last bolus and IOB are not really displayed.

Marian

IMG_20240223_154637495.jpg

IMG_20240223_154829137.jpg

infossk avatar Feb 23 '24 14:02 infossk

Yes, as I already said, I do not have a graph for sending, yet. And the other parts I have to check. But Juggluco also does not send the IOB and Bolus!? If I find a way, I can include IoB, but I do not support bolus, yet.

pachi81 avatar Feb 23 '24 14:02 pachi81

I understand. Juggluco also does not send this data. I can only send them from xDrip. The graph is only a design problem. 🙂 IOB would be useful though.

infossk avatar Feb 23 '24 15:02 infossk

Just for your interest, I'm sending you a photo of my car radio. 🙂 You can see your floating widget below. It would be great if I could lock his position.

IMG_20240223_160328753.jpg

infossk avatar Feb 23 '24 15:02 infossk

I uploaded a new version with IoB. Not sure, if it is the correct setting. Can you try?

The floating widget position should be locked until you move it. Or what do you mean?

pachi81 avatar Feb 23 '24 15:02 pachi81

The IOB is displayed. 👌

Regarding the position of the floating widget: When I get in the car and turn on the radio, the widget is always in the middle and I have to keep moving it. I don't know if it is possible to save after moving and restore the position after activating (starting) GlocoDataHandler. Maybe it's a problem with the launcher I'm using (FCC launcher).

infossk avatar Feb 23 '24 15:02 infossk

Great! But in the moment, I do not support alarms. I will add, if I have some time.

Normally the position is stored... You can try on phone. Maybe there is any problem on the radio. Which Android version is it? Do you can connect the radio with adb for getting logs?

pachi81 avatar Feb 23 '24 15:02 pachi81

@lostboy86 Do you also have problems with the position of the floating widget on car radio?

pachi81 avatar Feb 23 '24 15:02 pachi81

When i test the widget,

at start seems not mantain last position

Il ven 23 feb 2024, 16:59 pachi81 @.***> ha scritto:

@lostboy86 https://github.com/lostboy86 Do you also have problems with the position of the floating widget on car radio?

— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/136#issuecomment-1961585376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QUOQOFC7Q6BT2C6ODTYVC4FZAVCNFSM6AAAAABDVEAV2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGU4DKMZXGY . You are receiving this because you were mentioned.Message ID: @.***>

lostboy86 avatar Feb 23 '24 16:02 lostboy86

The version in the car is Android 10. Sorry, but I won't be able to connect via adb today. Thank you for your great work.

Regards, Marian.

infossk avatar Feb 23 '24 16:02 infossk

No problems with widget, But i tested only few times. Me and my medical dog , ar 18/02/2024, attacked from a free dog in the night whithout leash, my dog arm was esploded, same my hand etc

@lostboy86 WTF! I wish all the best! Get well soon!

pachi81 avatar Feb 23 '24 18:02 pachi81

@infossk a new version is online, which also sends alarms: Other-alert-type for low and high (yellow) alerts and alert-type for very low and very high (red) alerts. In GlucoDataHandler you can see it, when this sign is set:

Screenshot_20240223_191440_GlucoDataHandler

pachi81 avatar Feb 23 '24 18:02 pachi81

I tested it. Alarms on watches also work.

infossk avatar Feb 23 '24 20:02 infossk

Thank you for testing. 😀👍

pachi81 avatar Feb 23 '24 22:02 pachi81

No problems with widget, But i tested only few times. Me and my medical dog , ar 18/02/2024, attacked from a free dog in the night whithout leash, my dog arm was esploded, same my hand etc

@lostboy86 WTF! I wish all the best! Get well soon!

I reply above for the widget

lostboy86 avatar Feb 24 '24 06:02 lostboy86

Just for your interest, I'm sending you a photo of my car radio. 🙂 You can see your floating widget below. It would be great if I could lock his position.

IMG_20240223_160328753.jpg

How you make the aaps widget, floating? I also have a similar A10 radio, atoto s8 gen2, with agama launcher.

Thanks for the help

lostboy86 avatar Feb 24 '24 06:02 lostboy86

The IOB is displayed. 👌

Regarding the position of the floating widget: When I get in the car and turn on the radio, the widget is always in the middle and I have to keep moving it. I don't know if it is possible to save after moving and restore the position after activating (starting) GlocoDataHandler. Maybe it's a problem with the launcher I'm using (FCC launcher).

Same in my radio, with agama launcher or stock launcher

lostboy86 avatar Feb 24 '24 07:02 lostboy86

Ok, is it possible to attach adb to get the logs?

What happen, if you change the colors, will they stay the same after restart? Either it is a problem with saving the settings or a bug with the floating widget. Will check in emulator.

pachi81 avatar Feb 24 '24 07:02 pachi81

I tried all available launchers (including Agama) and the only one that can work well with widgets for the FCC launcher. As far as I know, Agama doesn't even allow adding active widgets.

Just for your interest, I'm sending you a photo of my car radio. 🙂 You can see your floating widget below. It would be great if I could lock his position.

IMG_20240223_160328753.jpg

How you make the aaps widget, floating? I also have a similar A10 radio, atoto s8 gen2, with agama launcher.

Thanks for the help

infossk avatar Feb 24 '24 14:02 infossk

Ok, is it possible to attach adb to get the logs?

What happen, if you change the colors, will they stay the same after restart? Either it is a problem with saving the settings or a bug with the floating widget. Will check in emulator.

Today, when I got into my car, the floating widget was exactly where I left it yesterday. It's probably fine. Sorry, but I won't have much time to devote to this in the next few days. I'm also going on a long trip and I don't want to run out of battery in the car. 🙂

infossk avatar Feb 24 '24 14:02 infossk

I found one more problem with WatchDrip. No delta is displayed. Zero is still displayed there.

infossk avatar Feb 24 '24 14:02 infossk

I found one more problem with WatchDrip. No delta is displayed. Zero is still displayed there.

I have added a new 0.9.9.4 version. Can you check for delta. Not sure, if I have the correct value, now... (no docu).

I also added a change to the floating widget. If you disable it, it also save the position. So can you try to enable it, move it to the position you want it and disable it. Then re-enable it and it should stay at this position.

pachi81 avatar Feb 24 '24 18:02 pachi81

Unfortunately, the delta is not displayed even in version 0.9.9.4. I will be able to test the widget in the car only tomorrow.

IMG_20240224_202856610.jpg

infossk avatar Feb 24 '24 19:02 infossk

This is what the output from xDrip looks like.

IMG_20240224_203447851.jpg

infossk avatar Feb 24 '24 19:02 infossk

Mmmh, really strange! This was the only value I have found, to put the delta in. Have you tried it for longer time? I have to re-check the xdrip code, if there is anything else...

pachi81 avatar Feb 24 '24 20:02 pachi81