loopandlearn / LoopFollow

A general Follow app for parents of T1D Loop Users
GNU Affero General Public License v3.0
99 stars 494 forks source link

Implement customizable BG speech alerts based on user-defined conditions #276

Closed bjorkert closed 3 months ago

bjorkert commented 3 months ago

Advanced Customization in Speech Announcements for BG Levels

This PR enhances the speech announcement functionality for monitoring blood glucose (BG) levels with advanced customization options, giving users precise control over the conditions that trigger verbal alerts. These improvements aim to support diverse user needs for BG monitoring and alerts.

Enhancements include:

Implementation Details:

The evaluateSpeakConditions function centralizes the logic for these enhancements, checking against user preferences and current BG conditions to determine the necessity and type of announcement. This approach ensures a modular and easily adaptable system for future refinements or additions to speech alerts.

These updates aim to empower users with more nuanced control over BG alerts, supporting proactive management of glucose levels with timely and relevant information.

marionbarker commented 3 months ago

Tested using mg/dL.

Enable Always: the speak BG low and high limits can be modified Disable Always: additional settings are available

I see the words above: "announcements when transitioning from low/high conditions back to normal levels,"

I was thinking that was a logic error when I was testing - but it sounds like that is by design.

marionbarker commented 3 months ago

Going to merge to dev to make it easy for people to build and test. We made a new PR for further improvements.