Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/idea: Passthrough of cloud connection status to AAPS/xDrip etc? #7

Open
ogsadmin opened this issue Jun 14, 2023 · 3 comments

Comments

@ogsadmin
Copy link

Hi,

without any knowledge about the inner workings of nightscout, would it in general be possible to pass some (status) information from the cloud provider connection to the "end device" (like xDrip, AAPS)?

My use case is: From time to time, the LibreLinkUp site requires accepting new EULAs. Without this, no access to the readings is possible (see timoschlueter/nightscout-librelink-up#100). So far, this is indicated in xDrip/AAPS as no readings available for the last x minutes. In my setup (currently running nightscout-librelink-up, not nightscout-connect), I'll have to dig through the server logs and find the error message...

As I am considering testing/switching to nightscout-connect, I wonder how this and similar cases are handled - it would be very helpful to see some more detailed status message on the end device, e.g. Cloud EULA changed, please acknowledge...

Thanks!

@bewest
Copy link
Member

bewest commented Jun 14, 2023

Good idea! There is a clear message that comes back from Libre and Carelink that denotes when some kind of account maintenance/EULA is needed. This message could be integrated into Nightscout in a few different ways. One way would be to add an announcement/note type of event to Nightscout, so it shows up in the UI. How often would you expect to see the announcement? If a new announcement is created every 5 minutes, it might fill Nightscout with many such announcements, is that a problem?

@bewest
Copy link
Member

bewest commented Jun 14, 2023

In case you are interested, here's how carelink summarizes the information to create an additional devicestatus record.
https://github.com/nightscout/nightscout-connect/blob/main/lib/sources/minimedcarelink/index.js#L531-L532
I think an approachable technique would be similar to catch the eula_updates_require=true scenario and insert a similar treatment record with a note to log into libre.

@ogsadmin
Copy link
Author

Thanks for the quick feedback!

And yes, this sounds like a good way to implement it - I actually don't care (or after thinking twice, it would actually be good), if the message is repeated every 5 minutes. In this case, no more readings are available, so one needs to take some action quickly anyway...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants