Overview Program Structure
Checkmate is using a simple program flow which is always re-run when the app is opened or resumed from the background.
- Try to read local copy of dataset (Speed up)
- Read in data from Nightscout (.csv) (On a separate thread to avoid lag in main thread as it takes time until Nightscout provides the data)
- Calculate the GMI and InRange Values (CalcHba1c.java)
- Draw the graphs for GMI, InRange and the DailyGraph
- Save local copy to reduce loadup time during next startup (On a separate thread to avoid lag in main thread)
Program features
GMI/HbA1C Estimation
hba1c = ((SumOfAllGlucoseValues/NumberOfGlucoseValues) + 46.7) / 28.7
Source: https://pubmed.ncbi.nlm.nih.gov/18540046/