forked from SandraK82/deploy-ns-local-raspi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_nightscout.sh
113 lines (89 loc) · 3.09 KB
/
start_nightscout.sh
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/sh
cd /home/pi/cgm-remote-monitor
# See https://github.com/nightscout/cgm-remote-monitor#environment for a description of the fields
# Required by Nightscout, please edit
export CUSTOM_TITLE="viderehh"
export API_SECRET=my_12_characters_or_more_password
#
# Required by Nightscout
# Used for building links to your sites api, ie pushover callbacks, usually the URL of your Nightscout site
# TODO: get the FQDN here
BASE_URL="http://`hostname`:1337/"
# Required by Nightscout
# Your mongo uri, for example: mongodb://sally:[email protected]:99999/nightscout
# TODO: secure mongo collection with generated username / password
export MONGO_CONNECTION=mongodb://localhost:27017/nightscout
# DISPLAY_UNITS. Choices: mg/dl and mmol. Setting to mmol puts the entire server into mmol mode by default, no further settings needed
#export DISPLAY_UNITS=mmol
export DISPLAY_UNITS=mg/dl
export ENABLE="delta direction timeago devicestatus ar2 profile careportal boluscalc food rawbg iob cob bwp cage sage iage treatmentnotify basal pump mmconnect openaps"
export DISABLE="upbat errorcodes simplealarms bridge loop"
export TIME_FORMAT=24
export NIGHT_MODE=off
export SHOW_RAWBG=always
export THEME=colors
export ALARM_TIMEAGO_WARN=on
export ALARM_TIMEAGO_WARN_MINS=15
export ALARM_TIMEAGO_URGENT=on
export ALARM_TIMEAGO_URGENT_MINS=30
export PROFILE_HISTORY=off
export PROFILE_MULTIPLE=off
export BWP_WARN=0.50
export BWP_URGENT=1.00
export BWP_SNOOZE_MINS=10
export BWP_SNOOZE=0.10
export CAGE_ENABLE_ALERTS=true
export export CAGE_INFO=44
export CAGE_WARN=48
export CAGE_URGENT=72
export CAGE_DISPLAY=hours
export SAGE_ENABLE_ALERTS=false
export SAGE_INFO=144
export SAGE_WARN=164
export SAGE_URGENT=166
export IAGE_ENABLE_ALERTS=false
export IAGE_INFO=44
export IAGE_WARN=48
export IAGE_URGENT=72
export TREATMENTNOTIFY_SNOOZE_MINS=10
export BASAL_RENDER=default
export BRIDGE_USER_NAME=
export BRIDGE_PASSWORD=
export BRIDGE_INTERVAL=150000
export BRIDGE_MAX_COUNT=1
export BRIDGE_FIRST_FETCH_COUNT=3
export BRIDGE_MAX_FAILURES=3
export BRIDGE_MINUTES=1400
export MMCONNECT_USER_NAME=
export MMCONNECT_PASSWORD=
export MMCONNECT_INTERVAL=60000
export MMCONNECT_MAX_RETRY_DURATION=32
export MMCONNECT_SGV_LIMIT=24
export MMCONNECT_VERBOSE=false
export MMCONNECT_STORE_RAW_DATA=false
export DEVICESTATUS_ADVANCED="true"
export PUMP_ENABLE_ALERTS=true
export PUMP_FIELDS="reservoir battery clock status"
export PUMP_RETRO_FIELDS="reservoir battery clock"
export PUMP_WARN_CLOCK=30
export PUMP_URGENT_CLOCK=60
export PUMP_WARN_RES=50
export PUMP_URGENT_RES=10
export PUMP_WARN_BATT_P=30
export PUMP_URGENT_BATT_P=20
export PUMP_WARN_BATT_V=1.35
export PUMP_URGENT_BATT_V=1.30
export OPENAPS_ENABLE_ALERTS=false
export OPENAPS_WARN=30
export OPENAPS_URGENT=60
export OPENAPS_FIELDS="status-symbol status-label iob meal-assist rssi freq"
export OPENAPS_RETRO_FIELDS="status-symbol status-label iob meal-assist rssi"
export LOOP_ENABLE_ALERTS=false
export LOOP_WARN=30
export LOOP_URGENT=60
export SHOW_PLUGINS=careportal
export SHOW_FORECAST="ar2 openaps"
export LANGUAGE=en
export SCALE_Y=log
export EDIT_MODE=on
npm start bundle