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