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

FAX complication does not show BG level value #198

Open
becksen opened this issue Jul 6, 2022 · 2 comments
Open

FAX complication does not show BG level value #198

becksen opened this issue Jul 6, 2022 · 2 comments

Comments

@becksen
Copy link

becksen commented Jul 6, 2022

I'd like to change the FAX complication that it will show the BG level value on the watch face like the Dexcom watch app or nightguard.
image

@becksen
Copy link
Author

becksen commented Jul 6, 2022

I think I found the place where to add it in the ComplicationController.swift.
case .modularSmall: let template = CLKComplicationTemplateModularSmallRingText( textProvider: CLKTextProvider(format: "%@", "FAX"), //textProvider: <#T##CLKTextProvider#> (format: "%@", state.glucose), fillFraction: 1, ringStyle: .closed

What is best practice to access the BG value variable state.glucose defined in MainView.swift. Currently it is not available in the ComplicationController.swift.

Thanks.

@scrappy
Copy link

scrappy commented Nov 8, 2023

Just as an FYI, but this code base has been dead / unmaintained for over a year now ... this project was forked to, and renamed as, iAPS, where all current development is being done.

I heavily recommend to anyone still using FreeAPS X, migrate to the maintained code base, where features are being constantly added, and bugs are constantly being fixed.

High probabillity that the bug / issue reported above has long been fixed.

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