-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fmegen/3.3.0.0 - Adding VeryHigh Overview Display Option #3678
base: dev
Are you sure you want to change the base?
Conversation
I kept it without "very high" to match dexcom setting |
I prefer keeping red color for lows. But, default value is set to 400 mg/dl which translates to about 22 mmol/l so I think this is a win / win for everyone. This new setting can be set so high that it won't have affect on the visuals in most cases as we rarely go above 13 mmol\l. Then I can just set it to e.g. 20 mmol/l and it will display like before. Or if users want it lower they have the freedom to do so. So I think this will be a good change, regardless if you prefer it like before, or want red color for very high. |
|
Hum, if we want to be fully consistant, we should also review Watch graph (to include the "Very High color") and watchfaces colors for Very High BG... |
If this proposal is merged, maybe it's better to manage Watch update for color consistancy in a different PR 🤔 |
As @olorinmaia already mentioned, setting the "Very High" threshold to a very high value is basically allowing you to disable it would in my opinion, not bother me to implement this. |
Hi @Philoul
|
Hi @koelewij,
|
@vanmegen I will manage watch update (with Phone app impact for data communication) on my side.
|
Hi @Philoul
@MilosKozak kind regards, |
Hi @Philoul @koelewij, @MilosKozak , In particular, who would need to approve the PR? kind regards, |
@MilosKozak approves all PR, and all else who can try to test. I don't think it's likely for more changes to get merged for 3.3 right now. But that's up to Milos to decide. |
Would it make sense to add threshold for very low also? To align it completely with NS. Low is yellow color and very low is red. |
# Conflicts: # core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt
|
I'm testing this now and seem to be working good. I also tested it on AAPSClient. I can confirm that the "Range of visualization" set on AAPS syncs to AAPSClient for the new parameters also. Thumbs up from me. |
@Philoul here are some screenshots: |
@vanmegen I made a quick analysis only, and current proposal within your latest commit will break some feature within CustomWatchface v1 and v2 (dynData and dynPref). You should keep sgvLevel and manage color within watchfaces with this value (extend with -2 and +2 for veryLow and veryHigh). CWF code should also be adapted to keep compatibility with all previous CWF (including advanced feature like dynData and dynPref where sgvLevel is also managed, with new min/max values). |
Wear In screenshots VeryHigh and VeryLow horizontal lines are missing (I only see one yellow line on the top and one red line on the bottom of the graphs) |
@@ -1481,8 +1485,10 @@ class DataHandlerMobile @Inject constructor( | |||
avgDeltaDetailed = glucoseStatus?.let { deltaStringDetailed(it.shortAvgDelta, it.shortAvgDelta * Constants.MGDL_TO_MMOLL, units) } ?: "--", | |||
sgvLevel = if (glucoseValue.recalculated > highLine) 1L else if (glucoseValue.recalculated < lowLine) -1L else 0L, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgvLevel should be updated to return values from 2L (veryHigh) to -2L (VeryLow)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did that
|
Hi @Philoul,
as for this comment:
hope that catched all comments |
Sorry, previous comment deleted by mistake |
@vanmegen I just made a PR on your working branch with my proposal for CustomWatchface: vanmegen#1
Don't forget to test my proposal (of course I know very well CWF code so it should work fine, but didn't test anything because watch is connected to my loop phone only, and didn't install your PR...) |
This is analog to the nightscout Very High setting which displays bg values higher than a configurable value in a different color.
I did set the default to 400, but it can be set to 240 to be a similar threshold as nightscout uses.
(in the following screenshot red dots mark values higher than 240)

I have added this to the overview settings

as well as to the onboarding wizzard
