j-kaltes / Juggluco

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

[Feature] Filtering and slower broadcast #77

Open CeDoMain opened 1 year ago

CeDoMain commented 1 year ago

Hello, i am using juggluco, xdrip+ and aaps for looping with my libre 3 sensor. All apps are up to date.

While fiddling around with all the settings i see, that it is possible to send bg values with juggluco directly to aaps without using the xdrip app. I tried this and it works. Also the upload to nightscout works. so there is technically no need to use the xdrip+ app.

Now the problem with this approach: Juggluco seems to send every minute the raw bg value to aaps. this leads to: 1) aaps recalculates every minute the control and possibly makes changes. this leads to more power usage, more data which needs to be stored and more data which needs to be transmitted to my pump. 2) because there is no filtering applied the bg values are jumping more or less and leads to different calculations every minute. this makes 1) even more worse.

What i have tried: Aaps provides a setting to calculate the delta over more than one value. This stabilizes the control outcomes a bit. so 2) is fighten more or less. But i cannot find any setting to stop aaps from recalculating every minute or juggluco from sending every minute a new value.

Is it possible to add a filtering to juggluco? maybe a moving average over the last x values and also a setting that values are only broadcasted every y minutes?

Thank you very much for your work till now! Its beatiful to have these possibilities!

blaqone commented 1 year ago

You need to use aaps 3.2 or a version with filtering.