j-kaltes / Juggluco

Android app for Freestyle Libre 1,2 and 3 and Chinese Sibionics sensors
GNU General Public License v3.0
225 stars 59 forks source link

Receiving data in multiple devices #18

Open zibra opened 1 year ago

zibra commented 1 year ago

Is it technically possible with Libre to receive data on multiple devices? The usecase I'm refering to is as follows: small kid is wearing a sensor and one device is not covering whole House, so we constantly need to change phone locaction to keep it in range. It will be great to be able to use 2 or more devices placed in different locations to extend the covered area.

Additional question is it possible to switch sensor between different devices easily (multiple times during the day) with current version of Juggluco? I mean switching to smartwatch/small smartphone (that kid can carry in thw pocket) when going out for example.

j-kaltes commented 1 year ago

You can't connect two devices via Bluetooth with the same sensor at the same time and there will always be a region of overlap between two devices and that causes interference. But, you can switch between devices. The easiest way is to wear a WearOS watch that is directly connected with the sensor. You can switch between the phone and the connected watch by setting Left menu->Watch->WearOS config->"Direct sensor-watch connection" on or off. You can also connect two phones via a mirror connection and turn Stream on a second phone and turn it off in the first phone and turn on Receive from in the first phone (Left middle menu->Mirror->Add Connection). https://www.juggluco.nl/Juggluco/mmol.html#mirror You also have to turn off Use Bluetooth in the first phone and turn it on in the second phone.

zibra commented 1 year ago

Thanks Jaap

zibra commented 1 year ago

@j-kaltes I've started to configure Watch4 with Juggluco but I can't find Uploader option on wearOS version. Is it possible to upload readings from wearOS Juggluco over WiFi/LTE directly to Nightscout (with direct sensor-watch connection)?

j-kaltes commented 1 year ago

No, you have to use a phone as an intermediary, or you can send it directly via mirror connection to a computer running https://www.juggluco.nl/Juggluco/cmdline/index.html, which can function as a Nightscout server for everything except AAPS. A phone or tablet running Juggluco can have the same function.

zibra commented 1 year ago

Oh, that's sad ;(

j-kaltes commented 1 year ago

I didn't put Libreview, Nightscout server and uploader in WearOS version because it increases app size, eats battery power and is unnecessary. Very few have a SIM card in the watch and you can also connect, over the internet, to a phone or tablet running Juggluco or a computer running Juggluco server.

zibra commented 1 year ago

My use case is to give just watch (with eSim) to my 5yo kid so he won't need to carry phone and I will still be able to monitor his BG over the Nightscout. In this scenario having uploader on watch seems simpler setup than introducing additional proxy device. I agree that uploader is unnecessary in local network at home, but not outside. Pushing data to Nightscout eats more battery than mirror over TCP?

To setup alternative options you've mentioned I need static, public IP + ports forwarding on the phone or tablet running Juggluco or a computer running Juggluco server, right?

For parents with small kids, ability to monitor BG with just sensor + watch will be a "gamechanger", so if you are able to build wearOS APK with uploader for testing that will be really appreciated.

j-kaltes commented 1 year ago

Setting up https://github.com/nightscout/cgm-remote-monitor is not easy. Except when you already have a Nightscout server, is it easier to keep a Android tablet or phone running Juggluco at home or to put Juggluco server on Amazon AWS.

zibra commented 1 year ago

I have nightscout server already

zibra commented 1 year ago

So I can confirm now that it work :D I was able to set it up. Galaxy Wear 4 connected directly to sensor, clones data (over LTE) to tablet with Juggluco (with port forwarding, by public, static IP) and Uploader on tablet pushes is to Nightscout.

Thanks for your help @j-kaltes. Great work with Juggluco! 🏅 🙏

I still think direct upload from the watch to Nightscout will be much simpler setup and less error prone. Hope Uploader module will be available in the WearOS app soon.

signal-2023-04-15-184125_002

ghino18 commented 3 months ago

Hi, i have a same problem with an old man that often leave phone at home and goes outdoor with Lost connection. I see on market smartwatch with sim and full android 8.1 ,some of them state to have NFC. Could a juggluco android app installed on One of them and works as on smartphone?

j-kaltes commented 3 months ago

NFC on WearOS watches can only be used by Google Pay. Sensors need to be scanned by Juggluco on a phone and the phone sends the data to Juggluco under WearOS. Thereafter the WearOS version can receive glucose values directly from the sensor via Bluetooth. See https://www.juggluco.nl/JugglucoWearOS/install/manual.html

ghino18 commented 3 months ago

NFC on WearOS watches can only be used by Google Pay. Sensors need to be scanned by Juggluco on a phone and the phone sends the data to Juggluco under WearOS. Thereafter the WearOS version can receive glucose values directly from the sensor via Bluetooth. See https://www.juggluco.nl/JugglucoWearOS/install/manual.html

I did not talk about wearOS smartwatches but Watches that use full android 8.1

j-kaltes commented 3 months ago

WearOS is just Android with some functions missing that are useless on a watch and a lot of functions added that are useful for watches. Android Wear was a better name than WearOS. Like nearly all other smartwatches they have monopolized the use of NFC. When you use a non-WearOS Android watch, you have to configure the connection between phone and watch yourself, the same way as when you want to use a sensor with a phone without NFC (see https://www.juggluco.nl/Juggluco/mirror/index.html) and every time when you switch the sensor from phone to watch or back, you have to reverse the mirror direction for Stream values and switch “Sensor via Bluetooth” on phone and watch. That is not suitable for people who forget their phone. What Android watches are you talking about? Harmony or ColorOS watches?

ghino18 commented 3 months ago

I talk about china/AliExpress Watch that are sell with android 8.1 with sim and some of them with NFC and working with PlayStore that seems as little smartphone .

j-kaltes commented 3 months ago

I don't know anything about those watches. Maybe some of them can be used completely independently of a phone; making use of the NFC of the watch. Some of them have an even more restricted NFC than WearOS: https://www.aliexpress.com/item/1005007446422609.html : "The NFC of this watch only supports unlocking the electronic lock, and does not support the payment function." https://www.aliexpress.com/item/1005007166280686.html : "NFC: only Access Control"

ghino18 commented 3 months ago

Ok, so the NCF seems to be a type that does not activate sensor