Skip to content
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

Dev - planning #34

Open
wants to merge 158 commits into
base: master
Choose a base branch
from
Open

Dev - planning #34

wants to merge 158 commits into from

Conversation

bewest
Copy link
Member

@bewest bewest commented Sep 27, 2015

planning next version

pull master commits into new-loop
Conflicts:
	bin/loop.sh
audiefile and others added 30 commits October 6, 2015 17:53
…tform/soc/3f980000.usb/buspower and use whichever exists
Eliminate illegal js, break keyword is not allowed outside of loops/switches.

Cause process to error out in case of mmol.
Prevent errors like this:

foo$ oref0-get-profile monitor/pump-history.json tagrgets-mm
ol.json

/usr/local/lib/node_modules/openaps-js/bin/oref0-get-profile.js:50
        break;
        ^^^^^
SyntaxError: Illegal break statement
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
bewest@hither:~/Documents/foo$

In favor of errors like this:

o$ oref0-get-profile monitor/pump-history.json tagrgets-mmol.json monitor/insulin-sensitivities.json monitor/active-basal-profile.json monitor/carb-ratios.json max_iob.json
BG Target data is expected to be expressed in mg/dL. Found mmol/L in tagrgets-mmol.json .
bewest@hither:~/Documents/foo$
If the file names don't match, the package will refuse to install.
Make simpler modules that can be require'd, tested, and re-used with ease.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants