-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.py
67 lines (55 loc) · 2.31 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# coding=utf-8
"""
System settings:
Please note that Filenames containing report data are relative to the openaps path
"""
class Settings(object):
# What glucose measurement scale should we use. Use 'mg/dL' for most of the world, 'mmol/L' for the UK and
# ex-UK colonies (e.g. South Africa, Australia).
#
# - If your pump displays units like '100' and '110', this should be 'mg/dL'
# - If your pump displays units like '5.5' and '7', this should be 'mmol/L'
#
DISPLAY_UNIT = 'mg/dL'
# A report containing glucose data in reverse-chronological order. Each entry should contain both a local timestamp
# and a glucose value:
# {
# "date" | "display_time" : "<ISO date string>",
# "sgv" | "amount" | "glucose" : 100
# }
CLEAN_GLUCOSE = 'clean_glucose.json'
# A report containing COB levels in chronological order. Each entry should contain a local timestamp and a COB value:
# {
# "date": "<ISO date string>",
# "amount": 12.0
# "unit": "g"
# }
COB = 'cob.json'
# A report containing IOB levels in chronological order. Each entry should contain a local timestamp and an IOB value:
# {
# "date": "<ISO date string>",
# "amount": 1.0
# "unit": "U"
# }
IOB = 'iob.json'
# A report containing history data in reverse-chronological order. Each entry should be in the dictionary format as
# defined by openapscontrib.mmhistorytools, and should be fully munged by those steps for best display.
NORMALIZE_HISTORY = 'normalize_history.json'
# A report containing predicted glucose values in chronological order. Each entry should contain a local timestamp
# and a glucose value:
# {
# "date": "<ISO date string>",
# "ammount": 100,
# "unit": "mg/dL"
# }
PREDICT_GLUCOSE = 'predict_glucose.json'
# A report containing predicted glucose values prior to added dose in chronological order. Each entry should contain a local timestamp
# and a glucose value:
# {
# "date": "<ISO date string>",
# "ammount": 100,
# "unit": "mg/dL"
# }
PREDICT_GLUCOSE_WITHOUT_DOSE = 'predict_glucose_without_future_basal.json'
# A report containing the output of the openaps medtronic vendor command "read_bg_targets".
READ_BG_TARGETS = 'read_bg_targets.json'