2016-06-07 21:48:17 +02:00
|
|
|
package info.nightscout.androidaps;
|
|
|
|
|
2016-06-26 11:43:26 +02:00
|
|
|
import com.j256.ormlite.stmt.query.In;
|
|
|
|
|
2016-06-07 21:48:17 +02:00
|
|
|
/**
|
|
|
|
* Created by mike on 07.06.2016.
|
|
|
|
*/
|
|
|
|
public class Constants {
|
2017-01-06 22:42:37 +01:00
|
|
|
public static final String MGDL = "mg/dl"; // This is Nightscout's representation
|
2016-06-07 21:48:17 +02:00
|
|
|
public static final String MMOL = "mmol";
|
|
|
|
|
2016-06-24 17:16:17 +02:00
|
|
|
public static final double MMOLL_TO_MGDL = 18; // 18.0182;
|
2016-06-07 21:48:17 +02:00
|
|
|
public static final double MGDL_TO_MMOLL = 1 / MMOLL_TO_MGDL;
|
|
|
|
|
2016-06-24 17:16:17 +02:00
|
|
|
public static final double basalAbsoluteOnlyForCheckLimit = 10101010d;
|
|
|
|
public static final Integer basalPercentOnlyForCheckLimit = 10101010;
|
2016-06-28 11:19:27 +02:00
|
|
|
public static final double bolusOnlyForCheckLimit = 10101010d;
|
|
|
|
public static final Integer carbsOnlyForCheckLimit = 10101010;
|
2016-06-24 17:16:17 +02:00
|
|
|
|
2016-06-26 11:43:26 +02:00
|
|
|
public static final Integer notificationID = 556677;
|
|
|
|
|
2016-07-15 20:36:45 +02:00
|
|
|
public static final int hoursToKeepInDatabase = 72;
|
2016-07-21 15:10:42 +02:00
|
|
|
public static final int daysToKeepHistoryInDatabase = 30;
|
2016-07-07 00:56:31 +02:00
|
|
|
|
2016-08-02 15:43:21 +02:00
|
|
|
public static final long keepAliveMsecs = 5 * 60 * 1000L;
|
2016-07-14 23:29:21 +02:00
|
|
|
|
2017-01-06 22:42:37 +01:00
|
|
|
// SMS COMMUNICATOR
|
2016-07-14 23:29:21 +02:00
|
|
|
public static final long remoteBolusMinDistance = 15 * 60 * 1000L;
|
2017-01-06 22:42:37 +01:00
|
|
|
|
2017-01-09 02:28:27 +01:00
|
|
|
// Circadian Percentage Profile
|
|
|
|
public static final int CPP_MIN_PERCENTAGE = 50;
|
|
|
|
public static final int CPP_MAX_PERCENTAGE = 200;
|
2017-01-17 21:28:57 +01:00
|
|
|
|
2017-01-21 01:35:15 +01:00
|
|
|
// Defaults for settings
|
2017-01-17 21:28:57 +01:00
|
|
|
public static final String MAX_BG_DEFAULT_MGDL = "180";
|
|
|
|
public static final String MAX_BG_DEFAULT_MMOL = "10";
|
|
|
|
public static final String MIN_BG_DEFAULT_MGDL = "100";
|
|
|
|
public static final String MIN_BG_DEFAULT_MMOL = "5";
|
|
|
|
public static final String TARGET_BG_DEFAULT_MGDL = "150";
|
|
|
|
public static final String TARGET_BG_DEFAULT_MMOL = "7";
|
|
|
|
|
2017-01-19 20:36:19 +01:00
|
|
|
// Very Hard Limits Ranges
|
|
|
|
// First value is the Lowest and second value is the Highest a Limit can define
|
|
|
|
public static final int[] VERY_HARD_LIMIT_MIN_BG = {72,180};
|
2017-01-24 10:28:42 +01:00
|
|
|
public static final int[] VERY_HARD_LIMIT_MAX_BG = {90,270};
|
2017-01-19 20:36:19 +01:00
|
|
|
public static final int[] VERY_HARD_LIMIT_TARGET_BG = {80,200};
|
|
|
|
|
|
|
|
// Very Hard Limits Ranges for Temp Targets
|
|
|
|
public static final int[] VERY_HARD_LIMIT_TEMP_MIN_BG = {72,180};
|
|
|
|
public static final int[] VERY_HARD_LIMIT_TEMP_MAX_BG = {72,270};
|
|
|
|
public static final int[] VERY_HARD_LIMIT_TEMP_TARGET_BG = {72,200};
|
2016-06-07 21:48:17 +02:00
|
|
|
}
|