forked from openaps/oref0
-
Notifications
You must be signed in to change notification settings - Fork 0
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
update #2
Merged
Merged
update #2
Conversation
This file contains 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
* fix remaining reference to half_basal_target * fix remaining reference to half_basal_target
* Update packages.json Add the new script * oref0-upload-entries.json This script uploads new CGM entries to Nightscout. If the network connection is lost for a period of time the entries from the last time the upload was successful (stored in ``entries-last-date.json``) buffer in ``entries-upload.json`` until the next successful upload, at which point the file is deleted. This allows the device to be offline for any number of days and you get all the entries, not just the last 288, once it comes back online. * Rename oref0-upload-entries.json to oref0-upload-entries.sh * Update oref0-setup.sh to support "g5-upload" CGM type * Add the Bash indicator
* remove all explicit references to basaliob * add enableSMB_always preference, but don't add to displayedDefaults yet * comment out all bolus snooze code * comment out bolus snooze / IOB code * comment out bolus snooze code * comment out bolus snooze code * comment out bolus snooze code * remove bolus snooze code * comment out bolus snooze code * comment out bolus snooze test * uncomment eventualBG < max_bg code and remove snoozeBG * comment out bolus snooze tests * rate <=0 * no more need to track hightempinsulin * no more need to track netbasalinsulin * no more need to track microBolus(IOB|Insulin) * remove one more bolus snooze reference * re-add basaliob and netbasalinsulin etc.
* use IPv4 only to wget * add package-lock.json to .gitignore * match on spidev0.0 already in use too for Pi with Explorer HAT * first untested attempt at moving ns-loop aliases into oref0-ns-loop.sh * add oref0-ns-loop * syntax * fix get_ns_bg * change ns_temptargets back for now * improve logging * improve logging * return not exit * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * improve logging * install new oref0-ns-loop * revert to settings/temptargets.json for now * improve logging * don't wait for 40s twice on random failures * consistent messaging regardless of mmeowlink version * syntax * fix comment
* apply carbAbsorptionRate to COB not total carbs * round allDeviations array for readability * change initial carbAbsorptionRate assumption to 20g/h
* consolidate down to a single pump-loop type * touch /tmp/pump_loop_completed even w/o SMB * in two more places * replace chained && with || fail * syntax * syntax
* install SMB aliases regardless for pump-loop to work * remove no-longer-applicable comments * chmod +x bin/*.sh
* remove all explicit references to basaliob * add enableSMB_always preference, but don't add to displayedDefaults yet * comment out all bolus snooze code * comment out bolus snooze / IOB code * comment out bolus snooze code * comment out bolus snooze code * comment out bolus snooze code * remove bolus snooze code * comment out bolus snooze code * comment out bolus snooze test * uncomment eventualBG < max_bg code and remove snoozeBG * comment out bolus snooze tests * rate <=0 * no more need to track hightempinsulin * no more need to track netbasalinsulin * no more need to track microBolus(IOB|Insulin) * remove one more bolus snooze reference * re-add basaliob and netbasalinsulin etc. * add IOBWithZeroTemps * calculate iobWithZeroTemp * include the entire iobWithZeroTemp array * calculate ZTpredBGs * show all ZTpredBGs for now * use predZTBGI for ZTpredBGs * stop displaying ZTpredBGs once they're rising and above target * calculate and log minZTUAMPredBG * use minZTUAMPredBG to adjust dosing * debugging output * only show 30m of ZTpredBGs if rising above target * disable aCOB for now * use >= to make it more clear when ZTpredBGs have flattened out * fix logic Conflicts: lib/determine-basal/determine-basal.js * if avgPredBG is below minZTGuardBG, bring it up to that level * start the zero temp 1m in the future to avoid clock skew * if minZTGuardBG is between threshold and target, blend in the averaging * move minZTUAMPredBG outside of if (meal_data.carbs) * round minZTUAMPredBG for readability * round predCIs for readability * round remainingCIs for readability * align predCIs and remainingCIs * fix comment * copy old_preferences.json for reference * disable adv_target_adjustments and enableUAM by default
* set exercise mode basal and ISF based on temptarget * adjust slightly less, and only if temptarget > 110 * for temptargets > 110, adjust sensitivityRatio and IOB * don't set neutral temp if carbsReq * make sure autosens doesn't use temptarget-adjusted insulin calculations * define var sensitivityRatio * define basal before bg < 39 check * allow exercise mode to be disabled in preferences.json * flag autosens IOB calculations to avoid feedback loops * make temptarget that generates 50% basal configurable * pass optional autosens data for IOB recalculation * pass optional autosens data for IOB recalculation * use new formula in calculating IOB too * actually update basal before calculating IOB * use autosens_data if defined * make it work * turns out we don't need this * pass autosens.json to calculate-iob * disable autosens_adjust_targets by default now * don't adjust carb_ratio with autosens * adjust remainingCATime (instead of CR) for autosens * stop excluding positive deviations as soon as mealCOB=0 if meal has been absorbing for >5h * add one neutral deviation per hour to help decay over long exclusion periods * use 0.5 cutoff for rounding * no more need for a gap now that we're paddng with hourly 0 deviations * clearer reporting of % negative vs. positive deviations * only add one neutral deviation every 2 hours * add negative deviations for high temp targets
* add EdisonVoltage upload back in * no more need for edisonbattery aliases now that they're in oref0-ns-loop.sh * jq pretty colors * jq pretty colors * clarity
…y1-dev Conflicts: bin/oref0-setup.sh
* check preferences.json is valid json * please go correct your typo
* only SMB every 3m now that we retry * retry SMB if for up to 2m if waiting
* adding cron stop/start aliases * typo fix
* limit Carb Impact to 12 mg/dL per 5m * limit Carb Impact to 12 mg/dL per 5m before calculating CATime * limit carb impact based on maxCarbAbsorptionRate = 30 g/h * allow use of 39 (LOW) to calculate currentDeviation
Add carelink to pump.ini automatically for carelink installs
I was getting syntax errors running `openaps-setup` and I putting this `fi` back fixed it: f92a01e#diff-704a2fd9a43fd79bf52037b1668c146d
* adding duty cycle feature for carelink + mdt users * replace tab with 4 space * minor tweaks, mostly for clarity
* Update index.js Fix to warning message indicating Xdrip+ version is handling noisy data appropriately. * clarify
This reverts commit f92a01e. Conflicts: bin/oref0-setup.sh
Fixes an issue where openaps-install.sh cannot find packages on the pi after running a dist-upgrade.
Prep for 0.6.2 dev release to master
The latest node-js for raspbian deprecates the use of nodejs-legacy, which breaks this script on new pi installs. This will make it so that nodejs-legacy is only installed on the edison.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.