Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
705 commits
Select commit Hold shift + click to select a range
6ce5ea0
Merge branch 'dev' into 0.7.0-dev
scottleibrand Jun 26, 2018
8ae6557
run backgrounded
scottleibrand Jul 4, 2018
6e7d575
attempt to dedupe PATH (variable-passing untested)
scottleibrand Jul 4, 2018
f754421
cd back
scottleibrand Jul 4, 2018
856e70e
if mmtune.json is empty, re-run it and display output
scottleibrand Jul 5, 2018
a51ef82
chmod +x
scottleibrand Jul 5, 2018
84fbd98
double negative
scottleibrand Jul 5, 2018
0898c94
Go doesn't say already
scottleibrand Jul 5, 2018
08d550d
fix comment
scottleibrand Jul 16, 2018
9dcc9a3
test all files at once first to avoid CI timeouts except on failure
scottleibrand Jul 18, 2018
218c0c0
print hint for getting more info on Bash unit test failures
scottleibrand Jul 18, 2018
e9d6710
Update duty cycling code (#1059)
juehv Jul 18, 2018
78ca93b
Merge remote-tracking branch 'origin/0.7.0-dev' into misc-stuff
scottleibrand Jul 18, 2018
97bc47d
advanced BT tethering pref to 0.7.0-dev (#1048)
scottleibrand Jul 18, 2018
cb754de
Update history.js (#1060)
philipgo Jul 18, 2018
16af12e
Merge pull request #973 from openaps/0.7.0-dev
scottleibrand Jul 18, 2018
498c1b9
Update oref0-log-shortcuts.sh (#1065)
tim2000s Jul 22, 2018
1f1fe4a
fix wait_for_bg with mdt (#1073)
juehv Jul 28, 2018
1087752
suppress cgm update if mdt is configured (#1074)
juehv Jul 28, 2018
e507428
homogenize date format in pump time update log message (#1075)
juehv Jul 28, 2018
f43db5e
update duty cycling code (#1068)
juehv Jul 30, 2018
1fe944c
Fix not getting an IP on BT connection (#1071)
TwistaTim Jul 31, 2018
a029c89
Pump specific SMB size (#1052)
MarkMpn Jul 31, 2018
80c14a1
Merge branch 'dev' into misc-stuff
scottleibrand Jul 31, 2018
71a171e
flash the radio LEDs during wait_for_bg so we know the rig is alive
scottleibrand Jul 31, 2018
234072b
display merged BG in ns-loop.log
scottleibrand Jul 31, 2018
dc8a8cd
syntax
scottleibrand Jul 31, 2018
a880c4f
listen silently
scottleibrand Jul 31, 2018
ed671c1
Autosens-history & other autosens tweaks (#1061)
danamlewis Aug 1, 2018
2a878c2
Merge branch 'dev' into misc-stuff
scottleibrand Aug 1, 2018
6607839
don't check validity of json files in node_modules
scottleibrand Aug 1, 2018
e1e5790
Option to select a pre-release go lib version
alimhass Jul 27, 2018
761027d
Variable name typo'd in declaration
edwingustafson Aug 4, 2018
4126447
capitalization
scottleibrand Aug 5, 2018
11be5bf
Merge branch 'dev' into misc-stuff
scottleibrand Aug 5, 2018
c05916e
Merge branch 'patch-1' of https://github.com/jaylagorio/oref0 into ja…
scottleibrand Aug 5, 2018
2416069
Merge branch 'jaylagorio-patch-1' into misc-stuff
scottleibrand Aug 5, 2018
81dc01a
Add tags select for radio type (#1077)
szymjaw Aug 5, 2018
ab9a08e
Merge branch 'dev' into pre-release-go-libs-option
scottleibrand Aug 5, 2018
6b75999
Merge pull request #1070 from alimhassam/pre-release-go-libs-option
scottleibrand Aug 5, 2018
6e870bc
re-apply #1054
scottleibrand Aug 7, 2018
e6d39fc
remove duplicate lines
scottleibrand Aug 8, 2018
f60f3ef
set timestamp appropriately for sorting AndroidAPS records
scottleibrand Aug 8, 2018
76f43cb
use AndroidAPS meal bolus records
scottleibrand Aug 8, 2018
d7d3b8f
use temp.timestamp consistently
scottleibrand Aug 8, 2018
79f835f
Merge branch 'dev' into misc-stuff
scottleibrand Aug 15, 2018
57b5349
Reduce onbattery threshold, refresh data faster (#1050)
jaylagorio Aug 15, 2018
d4e61d0
Full pumphistory refresh after bolus/enact if no new BG yet (#1082)
scottleibrand Aug 15, 2018
47a8e07
Use endsWith from Lodash (#1080)
edwingustafson Aug 15, 2018
a34d0be
Merge pull request #1029 from openaps/misc-stuff
scottleibrand Aug 15, 2018
6d5aaa0
Fix cob.js Crash (#1083)
jpcunningh Aug 15, 2018
1fb2ed3
retry read_full_pumphistory when >33h long
scottleibrand Aug 16, 2018
b21d15e
run oref0-version more frequently to avoid confusing people
scottleibrand Aug 16, 2018
5478add
Added token support for oref0-upload-profile.js (#1084)
jpcunningh Aug 19, 2018
eaba7ec
Removed unused oref0-dexusb-cgm-loop script. (#1086)
jpcunningh Aug 20, 2018
59fd516
Independent mmtune script (#1085)
jpcunningh Aug 20, 2018
a5a96af
fix date on Macs (functions don't inherit aliases)
scottleibrand Aug 20, 2018
74f2626
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Aug 20, 2018
d6bf57d
use a default insulinPeakTime of 75 for non-Fiasp
scottleibrand Aug 21, 2018
4dfc4b5
honor incorrectly-documented enableSMB_with_carbs
scottleibrand Aug 22, 2018
0f05188
syntax
scottleibrand Aug 22, 2018
3c27e4a
explicitly check that booleans are true; 75m peak for rapid-acting
scottleibrand Aug 22, 2018
f7b53ee
re-create monitor and settings directories if needed
scottleibrand Aug 23, 2018
cab5fb0
Pump read error checking (#1088)
jpcunningh Aug 23, 2018
3bc2eb6
Remove startsWith and use indexOf instead. (#1094)
jpcunningh Aug 27, 2018
a98f7e9
Allow specifying another branch on the command line to openaps-instal…
alimhassam Aug 29, 2018
7ecf0d9
Update Enlite CGM to use Go code (#1081)
juehv Aug 29, 2018
50db225
Add requirement for 4 non-hyphenated arguments in oref0-get-profile (…
jpcunningh Aug 30, 2018
08ebed7
Split the pre-bolus ESC key presses in two commands. (#1100)
alimhassam Aug 30, 2018
1ab70b9
revert change that broke --exportDefaults and --updatePreferences
scottleibrand Aug 30, 2018
cda5c9d
Add missing execute flag to oref0-mdt-update.sh (#1108)
alimhassam Aug 31, 2018
2077825
Don't perform radio reboot checks right after a restart. (#1109)
alimhassam Aug 31, 2018
75e2f49
Fix Logger integration for oref0 interactive install script. (#1091)
Jonathan-Cole Aug 31, 2018
a5be95d
don't tune CR out of bounds
scottleibrand Sep 3, 2018
0d0c759
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Sep 3, 2018
64bb6be
Fix min/max typo
scottleibrand Sep 3, 2018
127e235
Add oref0-mdt-update to package.json (#1110)
juehv Sep 5, 2018
8509c7f
Update duty cycle code (#1112)
juehv Sep 13, 2018
1eb3b76
Force settings refresh on next loop if get_settings had a failure (#1…
jpcunningh Sep 15, 2018
0cf3d96
Oref0 get profile arg parsing (#1102)
jpcunningh Sep 24, 2018
613ff9c
Consolidate ns-status.js usage string and clean up arg parsing. (#1103)
jpcunningh Sep 24, 2018
1b78c61
Migrate oref0-autosens-history to yargs argument processing. (#1104)
jpcunningh Sep 24, 2018
9de66be
oref0-autotune-core arg processing (#1106)
jpcunningh Sep 24, 2018
5cf6090
oref0-autotune-prep arg processing (#1114)
jpcunningh Sep 24, 2018
5869a52
Migrated oref0-calculate-iob.js to yargs argument processing. (#1115)
jpcunningh Sep 24, 2018
6c42d99
Migrated oref0-detect-sensitivity.js to yargs argument processing. (#…
jpcunningh Sep 24, 2018
6bc21cf
Migrate oref0-find-insulin-uses.js to yargs argument processing. (#1120)
jpcunningh Sep 24, 2018
eccedd8
Migrate oref0-html.js to yargs argument processing (#1121)
jpcunningh Sep 24, 2018
d215e04
Migrate oref0-meal to yargs argument processing. (#1122)
jpcunningh Sep 24, 2018
2a12f59
Migrate oref0-normalize-temps.js to yargs argument processing. (#1123)
jpcunningh Sep 24, 2018
1803c09
Migrate oref0-raw.js to yargs argument processing. (#1124)
jpcunningh Sep 24, 2018
f90f51f
Migrate oref0-set-local-temptarget to yargs argument processing. (#1125)
jpcunningh Sep 24, 2018
288343c
Validate pump settings (#1129)
jpcunningh Sep 24, 2018
15c89d1
Initial version of command-behavior.tests.sh (#1126)
jpcunningh Sep 25, 2018
47bccb3
Improved incremental pump history update. (#1090)
alimhassam Sep 25, 2018
f69668d
Delete oref0-mdt-trend.js (#1113)
juehv Sep 25, 2018
da4ab87
Use status.sh instead of status.js, if possible (#1130)
cluckj Sep 25, 2018
ed4e3c4
Update existing preferences rather than re-create.
alimhass Sep 26, 2018
d05e63b
Consider suggested.json recent for 10 minutes (#1132)
ivalkou Sep 28, 2018
492121e
Fix Stale Autotune Profile (#1101)
jpcunningh Sep 29, 2018
4a2845f
Merge branch 'keep-existing-prefs' of https://github.com/alimhassam/o…
scottleibrand Oct 7, 2018
acc2beb
fix dupe detect key for oref0-cron-nightly
scottleibrand Oct 7, 2018
cc886e8
don't add disabled optional stuff to preferences.json
scottleibrand Oct 7, 2018
b29e55d
use oref0-bash-common wait_for_silence in oref0-pump-loop (#1097)
scottleibrand Oct 7, 2018
26b9b8f
Oref0 determine basal arg parsing cleanup (#1119)
jpcunningh Oct 7, 2018
7d0f13f
Include number of days autotuned basals were interpolated from surrou…
MarkMpn Oct 7, 2018
5f28f31
Stop local go binaries before overwriting. Fixes #1049. (#1134)
larryprice Oct 7, 2018
4af43fa
Allow case-insensitive default display in prompt_yn common function (…
larryprice Oct 7, 2018
ff91bb7
don't display debug output on wait_for_silence
scottleibrand Oct 8, 2018
d236908
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Oct 8, 2018
d7dc080
remove duplicate logging
scottleibrand Oct 8, 2018
959d5da
don't allow partial pumphistory to be used
scottleibrand Oct 8, 2018
8fdfbcd
Added additional falsy check for sensitivityRatio (#1137)
chesnerPro Oct 12, 2018
c16f4a8
various fixes (#1136)
scottleibrand Oct 14, 2018
a102cb7
Fix oref0 setup existing prefs (#1141)
jpcunningh Oct 18, 2018
5320a0b
Return function results directly, without assigning to trivial local …
edwingustafson Oct 27, 2018
7f3526e
Missed this instance of a function returning a trivial local variable…
edwingustafson Oct 29, 2018
800bcfe
#1022 - check status_ESC prior to set_clock (#1140)
jmcrawford Nov 18, 2018
0fb6109
Consolidate duplicated percentile(); remove unused percentRank(); ret…
edwingustafson Nov 18, 2018
a156832
basalGlucose spelling (#1148)
edwingustafson Nov 18, 2018
1e5ef5b
remote timerun and use mdt instead of openaps use (#1151)
substars Nov 25, 2018
331e538
ESLint configured for JavaScript 5 on Node (#1152)
edwingustafson Nov 25, 2018
933ab23
Revert "ESLint configured for JavaScript 5 on Node (#1152)" (#1154)
scottleibrand Nov 26, 2018
77d3d83
ESLint configuration files (for editor hints, without installing esli…
edwingustafson Nov 26, 2018
4279923
Use var (not const) for ES5 compatibility (#1156)
edwingustafson Nov 29, 2018
1638416
Malformed typeof expressions (#1158)
edwingustafson Nov 30, 2018
305e9aa
Non-breaking spaces (#1159)
edwingustafson Dec 1, 2018
a9ae942
Redundant semicolons (#1160)
edwingustafson Dec 1, 2018
85bc323
Checkout correct branch after clone (#1161)
alimhassam Dec 1, 2018
a5f368b
Unnecessary escape characters in regular expressions (#1163)
edwingustafson Dec 3, 2018
bf2e857
Fix ns-loop for default NS auth denied (#1165)
jpcunningh Dec 8, 2018
e782ecc
Triple equals (#1164)
edwingustafson Dec 10, 2018
d961c84
Make it possible to run on OpenBSD (#1146)
viq Dec 10, 2018
3a241a8
Fix npm install/link, xdrip cgm sets bt_offline, file tests to preven…
rkresha Dec 10, 2018
136eb38
Unused imports (#1166)
edwingustafson Dec 11, 2018
4311176
Unused callback parameter "index" (#1167)
edwingustafson Dec 11, 2018
4906729
Don't redeclare function parameter when providing default value (#1168)
edwingustafson Dec 11, 2018
8e6c467
Fix oref0-upload-profile when NS default auth role denies read (#1169)
jpcunningh Dec 12, 2018
eebf24a
Declare loop variables once and only once (#1170)
edwingustafson Dec 13, 2018
dff8c75
Fix a typo introduced at d961c841a7fe1d5f2c341b5f10d33dff9497c345. (#…
tzachi-dar Dec 14, 2018
526b01f
Fix for loss of wifi issue on Raspbian (#1175)
cluckj Dec 25, 2018
4127cdc
Re-adding bnep0 check into oref0-setup.sh (#1179)
rkresha Dec 30, 2018
53e49fa
Script to create local symlinks (#1181)
viq Jan 6, 2019
5129454
Apache chainsaw log (#1188)
tzachi-dar Feb 6, 2019
9bd4fb7
Merge branch 'master' into dev
scottleibrand Feb 10, 2019
ea95003
Missing and redundant variable declarations (#1172)
edwingustafson Feb 10, 2019
65b97d9
Update oref0-setup.sh (#1187)
jaylagorio Feb 10, 2019
8030327
Use print() function in both Python 2 and Python 3 (#1191)
cclauss Feb 10, 2019
d0494b7
Always keep insulin curve value up to date in autotune profile. (#1174)
jpcunningh Feb 10, 2019
4a54f2a
hotfix mdt not syncing bug (#1197)
juehv Feb 10, 2019
44cdd68
Declaration of UAMpredBG breaks determine-basal.js (#1198)
cluckj Feb 11, 2019
f1e8a61
Declaration of COBpredBG breaks determine-basal.js (#1199)
cluckj Feb 11, 2019
27f862f
Bypass smb_verify_status with x12 pumps (#1200)
cluckj Feb 11, 2019
7112431
Support for pi-buttons (#1201)
cluckj Feb 13, 2019
3df7d57
(c) 2015-2019
scottleibrand Feb 15, 2019
f1d25bc
Travis CI: Add current Node.js and Python 2.7, 3.7 (#1196)
cclauss Feb 17, 2019
5489732
Travis CI: Run node_js tests on "8", "10", and "node" (#1203)
cclauss Feb 17, 2019
a85727c
Uncolor fix (#1204)
tzachi-dar Feb 18, 2019
a6cf250
Error message should refer to property tested above (#1206)
edwingustafson Feb 19, 2019
34cd4dc
don't reduce CR for low temptargets (#1194)
scottleibrand Feb 20, 2019
fd53d84
categorize UAM as basal if at least 1h of carb absorption observed (#…
scottleibrand Feb 20, 2019
2f742c6
Webpack (#1213)
TebbeUbben Feb 27, 2019
5cb8f92
Convert json to jq (#1202)
jpcunningh Feb 27, 2019
220adcf
Fix latest-ns-treatment to return an object instead of array (#1214)
jpcunningh Feb 28, 2019
53aa46b
fix undefined variable reference in commented-out debug line
scottleibrand Mar 1, 2019
4ccbd0a
Explicit error messages in oref0-meal (#1216)
jaylagorio Mar 1, 2019
a2f3713
Revert "Webpack (#1213)"
scottleibrand Mar 1, 2019
ce1e867
fix syntax error in nightscout.sh (#1221)
jpcunningh Mar 5, 2019
36467cc
Move sshd_config mod to after apt update (#1222)
jpcunningh Mar 9, 2019
850545b
restore ww pumps for 0.7.0-dev (#1176)
PieterGit Mar 10, 2019
044b74a
Fix pattern match in nightscout.sh (#1223)
jpcunningh Mar 10, 2019
fed527f
Set cgm_loop_path for plugged-in G5 receiver (#1211)
cluckj Mar 10, 2019
82508cc
ability to add script plugins to oref0-pump-loop (#1212)
efidoman Mar 10, 2019
8c1c980
Support Low Battery File (#1215)
jpcunningh Mar 10, 2019
dcb5cfd
Add support for touchscreen receivers, fix CGM loop bug for connected…
jaylagorio Mar 11, 2019
da57f41
#853: Improve SMB disabled message when no criteria are met (#1227)
cascer1 Mar 11, 2019
e3744f5
Fix check for WW pumps (#1229)
cluckj Mar 12, 2019
d64c154
Update oref0-setup.sh (#1210)
renegadeandy Mar 12, 2019
b75c282
Inverted logic fix for oref0-mmtune.sh, and bug fix for oref0-pump-lo…
cluckj Mar 16, 2019
19b6094
Move updating jq earlier in the install script (#1234)
cluckj Mar 21, 2019
ec4899a
Remove manual x12 setup (#1225)
cluckj Mar 21, 2019
2220a56
Update oref0-bluetooth for pi (#1218)
jpcunningh Mar 22, 2019
e6ef8d9
Apply default limits to autosens if none provided. (#1240)
viq Apr 13, 2019
c68c55d
use existing var (#1239)
tynbendad Apr 15, 2019
df72a4b
Support for jubilinux 0.2.0 (debian jessie) in dev (#1243)
scottleibrand Apr 16, 2019
2192d39
Improved oref0-setup (#1244)
danamlewis Apr 16, 2019
ab7e83e
Add support to identify which bluetooth adapter to use (#1224)
jpcunningh Apr 16, 2019
a41fb60
Sort treatments before autotune (#1231)
jpcunningh Apr 17, 2019
bdb4228
Setup improvements (#1245)
scottleibrand Apr 21, 2019
2dff99e
Use nodesource on the Edison
cluckj Apr 1, 2019
2f69ad0
Turn off screen only after 5 minutes. (#1246)
tzachi-dar Apr 22, 2019
2b4d7ea
Merge branch 'master' into dev
scottleibrand Apr 22, 2019
f416061
install node 8 if not already installed, before node packages
scottleibrand Apr 22, 2019
18f694e
Fixes for openaps-packages.sh in dev (#1247)
cluckj Apr 23, 2019
5ab3b19
Remove binary download options (#1252)
cluckj May 3, 2019
df538da
Use Edison's FAT32 Partition (#1253)
cluckj May 14, 2019
c6de584
Radiotags in oref0-runagain.sh (#1254)
cluckj May 14, 2019
00168be
Reboot rig after a kernel panic. (#1262)
alimhassam May 23, 2019
8783c06
Add support for bgproxy. (#1260)
alimhassam May 23, 2019
8299010
install flask-cors - enable in www/app.py (#1266)
efidoman Jun 4, 2019
89adc9b
add bluez-tools install for xdrip-js CGM type (#1267)
efidoman Jun 7, 2019
e1d7bfe
PedanticAvenger patch Stretch BT (#1269)
PedanticAvenger Jun 18, 2019
a8d5533
null check on peakDeviations[2]
scottleibrand Jun 24, 2019
a4d7cdd
ignore temp targets without min/max values
scottleibrand Jun 24, 2019
c2e85b9
don't loop on too-flat CGM data (#1258)
scottleibrand Jun 24, 2019
29f6b99
Remove old golang install before reinstalling. (#1256)
alimhassam Jun 24, 2019
482dc6b
Merge remote-tracking branch 'origin/dev' into empty-target-fix
scottleibrand Jun 24, 2019
d45140a
Merge pull request #1272 from openaps/empty-target-fix
scottleibrand Jun 24, 2019
706ffee
Debian Buster compatibility (#1275)
cluckj Jun 24, 2019
fc3d2ee
fix systemctl syntax
scottleibrand Jun 28, 2019
3486d5e
fix systemctl syntax (#1277)
scottleibrand Jul 2, 2019
969ce8a
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Jul 4, 2019
7bdab77
skip bgproxy if we already have a new glucose value and it's time for…
scottleibrand Jul 4, 2019
e383d5b
checkip.amazonaws.com now puts spaces after commas
scottleibrand Jul 6, 2019
82edf07
Allow oref0-upload-profile to also switch to new profile (#1285)
viq Aug 9, 2019
a025ef0
Unused local variables (#1284)
edwingustafson Aug 13, 2019
ff3ce7e
raspbian password checking adjustment (#1282)
rkresha Aug 13, 2019
faba8e3
fix wrong interface choose (#1286)
kurbezz Aug 13, 2019
8bf5503
fix bootstrap to put tune-dia-and-peak argument on openaps-install, n…
scottleibrand Aug 14, 2019
32e403c
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Aug 14, 2019
d36b1df
Allow G4 Share serial to be blank (#1268)
jimrandomh Sep 16, 2019
e53241b
Categorize improvements for libre 1 minute data (#1238)
rob-andy Sep 16, 2019
8ab5b2b
refactoring: round_basal (#1294)
jirihofman Sep 25, 2019
9a6cc42
Improved rounding of mmol/L units in oref0-upload-profile (#1295)
p5nbTgip0r Sep 25, 2019
040bea4
Reestablish bluetooth connection after failure to set bluetooth hci n…
rebecca-draben Sep 26, 2019
82e7c4b
per #1288, only use minZTUAMPredBG if enableUAM, and use minGuardBG o…
scottleibrand Sep 26, 2019
5a969a9
run oref0-set-system-clock after oref0-set-device-clocks in case rig …
scottleibrand Sep 29, 2019
1888666
Fix case mismatch that causes values in mg/dl to be multiplied by 18 …
rebecca-draben Oct 1, 2019
c6e599c
Add checks to make sure variables are defined. (#1297)
rebecca-draben Oct 1, 2019
ce0a95a
Update bin/all-autosens-history.sh
scottleibrand Oct 7, 2019
acad5d6
lodash 4.17.15 per npm audit fix
scottleibrand Oct 7, 2019
75d08e1
Have autotune sync to NS nightly after autotune runs (#1098)
danamlewis Oct 8, 2019
9b50667
Standalone MRAA installer for OpenAPS v0.7.0 (#1302)
cluckj Oct 15, 2019
84e6736
Unused local variables (#1301)
edwingustafson Oct 20, 2019
8fddb0d
Upload preferences.json and oref0 version to devicestatus (#1300)
scottleibrand Oct 20, 2019
a10e76d
remove old commented-out code
scottleibrand Oct 20, 2019
cf1603f
remove old commented and deprecated code
scottleibrand Oct 20, 2019
e2712b5
Refactor enable smb in determine-basal.js (#1299)
Oct 20, 2019
d5772be
don't let kill the script if oref0 already exists
scottleibrand Oct 21, 2019
5650809
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Oct 21, 2019
edc506b
Travis CI: Upgrade to Python 3.8 and add more flake8 tests (#1304)
cclauss Oct 21, 2019
11c4312
Non-breaking space (#1305)
edwingustafson Oct 23, 2019
7396534
killall-g for bash scripts (#1306)
scottleibrand Oct 29, 2019
ae17b9d
Offline xdrip (#1248)
scottleibrand Oct 29, 2019
6c5ffea
Call pumphistory_daily_refresh also in the case of a failure. (#1313)
tzachi-dar Nov 7, 2019
da535bf
Bluetooth delay check hci name (#1312)
rebecca-draben Nov 7, 2019
c21bc2d
Create a status file when public ip found (#1314)
juehv Nov 8, 2019
cfa8452
Fix/update comments (#1315)
rebecca-draben Nov 9, 2019
2309958
resolve TODO for release
scottleibrand Nov 10, 2019
1e4ce3f
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Nov 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/tests
/www
259 changes: 259 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
module.exports = {
"env": {
"commonjs": true,
"node": true,
},
"extends": "eslint:recommended",
"globals": {
},
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "off",
"array-bracket-spacing": "off",
"array-callback-return": "off",
"array-element-newline": "off",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-scoped-var": "off",
"block-spacing": "off",
"brace-style": "off",
"callback-return": "error",
"camelcase": "off",
"capitalized-comments": "off",
"class-methods-use-this": "error",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "off",
"complexity": "off",
"computed-property-spacing": [
"error",
"never"
],
"consistent-return": "off",
"consistent-this": "off",
"curly": "off",
"default-case": "off",
"dot-location": [
"error",
"property"
],
"dot-notation": "off",
"eol-last": "off",
"eqeqeq": "error",
"func-call-spacing": "off",
"func-name-matching": "error",
"func-names": "off",
"func-style": "off",
"function-paren-newline": "off",
"generator-star-spacing": "error",
"global-require": "off",
"guard-for-in": "off",
"handle-callback-err": "error",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"implicit-arrow-linebreak": "error",
"indent": "off",
"indent-legacy": "off",
"init-declarations": "off",
"jsx-quotes": "error",
"key-spacing": "off",
"keyword-spacing": "off",
"line-comment-position": "off",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": "off",
"lines-around-directive": "off",
"lines-between-class-members": "error",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "off",
"multiline-comment-style": "off",
"multiline-ternary": "off",
"new-parens": "off",
"newline-after-var": "off",
"newline-before-return": "off",
"newline-per-chained-call": "off",
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-bitwise": "off",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-catch-shadow": "off",
"no-confusing-arrow": "error",
"no-console":"off",
"no-continue": "off",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "off",
"no-empty-function": "off",
"no-eq-null": "off",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-parens": "off",
"no-floating-decimal": "off",
"no-implicit-coercion": [
"error",
{
"boolean": false,
"number": false,
"string": false
}
],
"no-implicit-globals": "off",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "off",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-mixed-requires": "error",
"no-multi-assign": "off",
"no-multi-spaces": "off",
"no-multi-str": "error",
"no-multiple-empty-lines": "off",
"no-native-reassign": "error",
"no-negated-condition": "off",
"no-negated-in-lhs": "error",
"no-nested-ternary": "off",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "off",
"no-path-concat": "error",
"no-plusplus": "off",
"no-process-env": "error",
"no-process-exit": "off",
"no-proto": "off",
"no-prototype-builtins": "off",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-assign": "off",
"no-return-await": "error",
"no-script-url": "error",
"no-self-assign": [
"error",
{
"props": false
}
],
"no-self-compare": "off",
"no-sequences": "off",
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-spaced-func": "off",
"no-sync": "off",
"no-tabs": "off",
"no-template-curly-in-string": "error",
"no-ternary": "off",
"no-throw-literal": "off",
"no-trailing-spaces": "off",
"no-undef-init": "error",
"no-undefined": "off",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "off",
"no-unneeded-ternary": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-computed-key": "error",
"no-useless-concat": "off",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "off",
"no-var": "off",
"no-void": "off",
"no-warning-comments": "off",
"no-whitespace-before-property": "error",
"no-with": "error",
"nonblock-statement-body-position": [
"error",
"any"
],
"object-curly-newline": "off",
"object-curly-spacing": "off",
"object-property-newline": "off",
"object-shorthand": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"operator-assignment": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"padding-line-between-statements": "error",
"prefer-arrow-callback": "off",
"prefer-const": "error",
"prefer-destructuring": "off",
"prefer-numeric-literals": "error",
"prefer-object-spread": "off",
"prefer-promise-reject-errors": "error",
"prefer-reflect": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "off",
"require-await": "error",
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"rest-spread-spacing": "error",
"semi": "off",
"semi-spacing": "off",
"semi-style": "off",
"sort-imports": "error",
"sort-keys": "off",
"sort-vars": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"spaced-comment": "off",
"strict": "off",
"switch-colon-spacing": "off",
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": [
"error",
"never"
],
"valid-jsdoc": "off",
"valid-typeof": [
"error",
{
"requireStringLiterals": false
}
],
"vars-on-top": "off",
"wrap-iife": "off",
"wrap-regex": "off",
"yield-star-spacing": "error",
"yoda": "off"
}
};
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
sudo: false
node_js:
- "0.10"
- "0.12"
- "8.11.1"
script: make travis
after_script: make report
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Valid commands:
oref0 ifttt-notify
oref0 get-profile
oref0 calculate-iob
oref0 determine-basal
oref0 help - this message
```

Expand Down
82 changes: 82 additions & 0 deletions bin/all-autosens-history.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash

oref0_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
interval=${1:-96}
allowedload=${2:-5}

main() {
ls | while read participant; do
(
echo "Processing participant $participant"
cd $participant/direct-sharing-31/ || die "$participant/direct-sharing-31/ not found"
gunzip *.gz 2>/dev/null
mkdir -p parts || die "Couldn't mkdir parts"
rm parts/treatments*.json 2>/dev/null
echo Checking / waiting for system load to be below $allowedload before continuing
while highload; do
sleep 30
done
# this assumes that there are always fewer treatment records than entries, so the treatments will finish first
# (or at least finish before the oref0-autosens-history.js job for that month starts)
cat treatments*.json | jq -cn --stream 'fromstream(1|truncate_stream(inputs))' | while read line; do
date=$(echo $line | jq .created_at)
year=$(echo $date | cut -b 2,3,4,5)
month=$(echo $date | cut -b 7,8)
echo "Processing participant $participant treatments for $year $month"
echo $line >> parts/treatments-$year-$month.json
done | uniq &
rm parts/entries*.json
cat entries*.json | jq -cn --stream 'fromstream(1|truncate_stream(inputs))' | while read line; do
date=$(echo $line | jq .dateString)
year=$(echo $date | cut -b 2,3,4,5)
month=$(echo $date | cut -b 7,8)
if [[ $year =~ 201. ]]; then
echo "Processing participant $participant entries for $year $month"
echo $line >> parts/entries-$year-$month.json
fi
done | uniq
for year in 2018 2017 2016; do
for month in 12 11 10 09 08 07 06 05 04 03 02 01; do
if [ -f parts/entries-$year-$month.json ]; then
cat parts/entries-$year-$month.json | jq -s . > $year-$month-entries.json
if [ -f parts/treatments-$year-$month.json ]; then
cat parts/treatments-$year-$month.json | jq -s . > $year-$month-treatments.json
echo Checking / waiting for system load to be below $allowedload before continuing
while highload; do
sleep 30
done
echo "running $oref0_dir/bin/oref0-autosens-history.js $year-$month-entries.json $year-$month-treatments.json profile*.json 12 isf-$year-$month.json 2> $year-$month.out &"
$oref0_dir/oref0-autosens-history.js $year-$month-entries.json $year-$month-treatments.json profile*.json 12 isf-$year-$month.json 2> $year-$month.out &
sleep 5
fi
fi
done # for month
done # for year
cd ../../
) &
echo Checking / waiting for system load to be below $allowedload before continuing
while highload; do
sleep 30
done
echo "Waiting 10 seconds before processing next participant"
sleep 10
done # while read participant

# tailing the .out to help see that the script is done
sleep 30
tail */direct-sharing-31/*.out
echo "All participants have now been started. Above is the output generated so far. Review for any errors - if errors exist...there's an error. Remaining participants may still be running."

}

function highload {
# check whether system load average is high
uptime | tr -d ',' | awk "\$(NF-2) > $allowedload" | grep load
}

die() {
echo "$@"
exit 1
}

main "$@"
18 changes: 18 additions & 0 deletions bin/create_symlinks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

grep bin ../package.json |\
grep : |\
cut -d\" -f2,4 |\
sed s/\"/\ / |\
grep -v -E '(^(bt-pan|l||wifi)\s|^bin$)' |\
grep -E '\.(js|sh|py)$' |\
sed s#./bin/## |\
while read -r link script ; do
# Only if the link doesn't have the suffix
if [ "${link}" == "${link%%.??}" ] ; then
# Don't try to create existing links
if [ ! -L "${link}" ] ; then
ln -s "${script}" "${link}"
fi
fi
done
Loading