• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openaps / oref0 / 2727
11%
master: 10%

Build:
Build:
LAST BUILD BRANCH: replace-git
DEFAULT BRANCH: master
Ran 21 May 2017 04:32AM UTC
Jobs 2
Files 43
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2727

push

travis-ci

danamlewis
<a href="https://github.com/openaps/oref0/commit/<a class=hub.com/openaps/oref0/commit/<a class="double-link" href="https://git"><a class=hub.com/openaps/oref0/commit/<a class="double-link" href="https://git"><a class=hub.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c">76ff2147e<a href="https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c">&lt;a href=&quot;https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c&quot;&gt;&amp;lt;a href=&amp;quot;https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c&amp;quot;&amp;gt;&amp;amp;quot;&amp;amp;gt;Pushover support for carbsReq and insulinReq notifications (#458)

* stop adding remainingCI after 4h

* if UAM is enabled, use the higher of minCOBPredBG or minUAMPredBG

* need to allow negative CI to get good downward predictions

* truncate all BG predictions at 3 hours

* don&amp;amp;amp;#39;t allow negative durations

* don&amp;amp;amp;#39;t allow negative ci to mess up predCI

* don&amp;amp;amp;#39;t use long_avgdelta for minDelta, to respond more quickly to upticks

* if naive_eventualBG &amp;amp;amp;lt; 40, set a 30m zero temp

* only use maxUAMPredBG if enableUAM; otherwise it&amp;amp;amp;#39;s current bg

We don&amp;amp;amp;#39;t need maxCOBPredBG here, because that is always &amp;amp;amp;gt;= minCOBPredBG, which we just used

* don&amp;amp;amp;#39;t let maxUAMPredBG prevent high-temping for carbs

* cap remainingCarbs at 90g

* include 0m-ago data points in now

* chmod +x ./bin/*.py

* Allow wider BG target adjustment for autosens

* fix minPredBG logic for high-temping based on minIOBPredBG

* set minPredBG etc. regardless of ci

* re-add reset_spi_serial.py until oref0_init_pump_comms.py is fixed

* kill pump-loop after 5 minutes of not writing to pump-loop.log

* exclude the last 1/3 of carbs from remainingCarbs

* skip SMB stuff if No bolus needed (yet)

* syntax

* don&amp;amp;amp;#39;t return false (it forces a retry)

* squelch stdout from enact/smb-suggested.json

* debugging

* newlines etc.

* newlines etc.

* wait on glucose data that is newer than last action

* spacing

* truncate all BG predictions at 3.5 hours

* only use data from the same device as the most recent BG data point

* set &amp;amp;amp;quot;charging&amp;amp;amp;quot; voltage at 58-68%

* only wait 4 minutes for new BG (pump-loop takes at least 1 minute)

* only wait 3 minutes for new BG (pump-loop takes at least 1 minute)

* require enableUAM: true in preferences.json to enable UAM

* go back to using minDeviationSlope to decay UAM CI

* adjust target BG if needed to safely bring down high BG faster without causing lows

* start at 85 for safety, which implies 100-&amp;amp;amp;gt;130

* don&amp;amp;amp;#39;t use adjustedTargetBG if it&amp;amp;amp;#39;s above target_bg

* add adjust_targets_when_high preference (default true)

* fix variable name

* revert move of timestamp updating outside of oref0-pump-loop

* fix variable name

* fix variable name

* formula fix

* formula fix

* adjust min_bg and max_bg too

* adjust min_bg and max_bg too

* consolidate output onto single lines

* consolidate output onto single lines

* consolidate output onto single lines

* consolidate output onto single lines

* debugging

* debugging

* debugging

* debugging

* syntax

* debugging

* debugging

* debugging

* test 80 for minimum adjustedTargetBG

* debugging

* debugging

* debugging

* debugging

* debugging

* debugging

* debugging

* debugging

* wait 90m before setting minIOBPredBG and 60m before setting COB and UAM

* disable SMB/UAM except after a manual bolus for now

* only lower adjustedTarget to 80 when BG &amp;amp;amp;gt;~ 160, not &amp;amp;amp;gt;~140

* add preferences.json settings for enableSMB with bolus, COB, or temp targets

* revert autosens target range to 93-117 (for 100)

* Change name of preference value to adv_target_adjustments

* test 80 for minimum adjustedTargetBG

* only lower adjustedTarget to 80 when BG &amp;amp;amp;gt;~ 160, not &amp;amp;amp;gt;~140

* default adv_target_adjustments: false

* Call maxCOB var

* create maxCOB and defaults to 120 

create maxCOB and defaults to 120 because that&amp;amp;amp;#39;s the most a typical body can absorb over 4 hours. (If someone enters more carbs or stacks more; OpenAPS will just truncate dosing based on 120. Essentially, this just limits AMA as a safety cap against weird COB calculations)

* comment

* un-revert the change that actually checks pump_loop_completed

* break if monitor/pump_loop_completed doesn&amp;amp;amp;#39;t yet exist

* narrow the ranges for charged/charging

* consider pump_loop_completed even if no bolus needed

* wait 4 minutes for new BG now that we&amp;amp;amp;#39;re doing it right

* always wait_for_bg regardless of battery level

* echo truthfully

* syntax

* comment out minutes_running code now that we&amp;amp;amp;#39;re not incorporating future temps into eventualBG

* try also waiting for upto30s after radio reset before mmtuning

* whitespace

* grammar

* disable SMB when a high temptarget is set

* if both minUAMPredBG or minCOBPredBG are set, average them for now

* weighed average minUAMPredBG and minCOBPredBG based on how many carbs remain as COB

* wait for longer silence the weaker mmtune RSSI is

* grammar

* rounding and debugging

* grammar

* calculate minCOBPredBG if remainingCI &amp;amp;gt; 0

* make sure minIOBPredBG is at least 40

* average the minIOBPredBG and minUAMPredBG for minPredBG

* we don&amp;amp;#39;t need to ignore low minPredBGs any more

* print basal and sens when unchanged

* include minPredBG in rT object

* update to smb_enact_temp based on pump_loop_completed

* add minPredBG to rT object

* syntax

* simplify and linearize rssi_wait

* comment

* remove unused code from autotune debugging

(https://github.com/openaps/oref0/commit/&amp;lt;/a&amp;gt;&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/openaps/oref0/commit/&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/openaps/oref0/commit/3c34aa09f3e1c231fc97fdaa6aaced7ccf3d7c1a&amp;quot;&amp;gt;3c34aa09f&amp;lt;/a&amp;gt;&amp;quot;&amp;gt;3c34aa09f&amp;lt;/a&amp;gt;&amp;lt;a href=&amp;quot;https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c&amp;quot;&amp;gt;)

* #447: if rewind_resets_autosens, use BG data since lastSiteChange

* only do padding in autosens mode, not COB calc mode

* cap all minPredBGs at 39 to avoid biasing averages

* differentiate autosens adjustments from adjust_targets_when_high ones

* allow temp rate within 0.025U/hr for decocare floating point math

* profile.adjust_targets_when_high renamed to adv_target_adjustments

* log when not Adjusting targets for high BG

* whitespace

* without COB, use max of minIOBPredBG,minUAMPredBG

* if carb_ratio is null buy we have a valid carb_ratios object, use that

* move carb_ratio null check to oref0-autotune-prep.js

* variable name

* if carb_ratio is null buy we have a valid carb_ratios object, use that

* if carb_ratio is null buy we have a valid carb_ratios object, use that

* if profile.json contains null carb_ratio use profile.pump.json

* Revert &amp;quot;if carb_ratio is null buy we have a valid carb_ratios object, use that&amp;quot;

This reverts commit &lt;/a&gt;&lt;a class=&quot;double-link" href="https://github.com/openaps/oref0/commit/<a class="double-link" href="https://github.com/openaps/oref0/commit/687edb89430af3f335623b92f3917102b0966ace">687edb894</a>">687edb894</a><a href="https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c">.

* Revert &quot;if carb_ratio is null buy we have a valid carb_ratios object, use that&quot;

This reverts commit </a><a class="double-link" href="https://github.com/openaps/oref0/commit/<a class="double-link" href="https://github.com/openaps/oref0/commit/35d506e93faeb9887d17ed4098b9c2172d9c75eb">35d506e93</a>">35d506e93</a><a href="https://github.com/openaps/oref0/commit/76ff2147eb9e15f7b46ba025fb1c5080042e872c">.

* check for carb_ratio==null if oref0-autotune-core fails

* don&#39;t do lastSiteChange stuff for oref0-meal

* wait for a full 30s silence before mmtuning

* grammar

* wait for a full 30s silence before mmtuning

* adv_target_adjustments comment

* allow setting of adjustmentFraction via preferences.json

* add remainingCarbsCap to preferences.json, defaulting to zero

* always run mocha in color mode

* don&#39;t set snoozeBG if minPredBG &gt;= 400

* fix some tests; disable others

* use average of naive_eventualBG and minIOBPredBG to calculate worstCaseInsulinReq

this will allow it to stop zero temping sooner when it&#39;s not longer really needed.

* only mmtune 20% of the time now that we&#39;re waiting longer

* set zero temps long enough to eventually correct back up to target

* grammar

* increase default min_5m_carbimpact to help avoid overestimating COB

* increase default min_5m_carbimpact to help avoid overestimating COB

* grammar

* support 515/715 for SMB as well

* support 515/715 for SMB as well

* use lower of minUAMPredBG or avgPredBG instead of avgMinPredBG in mixed COB+UAM mode

* add minPredBG to reason field

* grammar

* use higher of minIOBPredBG, minUAMPredBG

* if we have COB, use max(minCOBPredBG,blendedMinPredBG), or avgPredBG if lower

* grammar

* grammar

* grammar

* ordering

* define IOBpredBG to make tests happier

* default IOBpredBG to eventualBG for tests

* comment out overly prescriptive text regex checks

* calcualte and display carbsReq

* debug and fix carbsReq calculation

* grammar

* grammar

* grammar

* use only naive_eventualBG to avoid overreacting to downticks

* grammar

* grammar

* add maxBolus to reason when it&#39;s active

* populate rT.carbsReq too

* script to send pushover alerts for carbsReq/insulinReq (w/ maxBolus)

* usage

* syntax

* exit

* syntax, and output when no action required

* add oref0-pushover

* don&#39;t use old suggested.json files

* debugging

* debugging

* print date for logs

* add pushover to oref0-setup

* cd $directory

* carbsReq for low glucose suspend mode

* don&#39;t display Eventual BG 68 &gt;= 80 in SMB mode

* fix maxBolus check

* compare maxBolus to microBolus, not insulinReq

* move add&#39;l carbs req up before first return

* remove second now-duplicate carbsReq stanza

* clarify action = temp, not SMB

* round maxBolus

* only recommend carbsReq if really needed

* add hostname to message

* enact long temps even if a &gt; 20m one is running

* don&#39;t mmtune if Pump suspended

* logic is hard

* only pushover for microBolus &gt;= maxBolus

* actually set durationReq m zero temp.

* re-check pump status if suspended

* don&#39;t set 0-minute temps (cancels)

* a zero temp request gets misinterpreted as 1270m - don&#39;t allow that

* oref0-set-system-clock for smb_enact_temp too

* move &quot;incorrectly&quot; check to smb_verify_suggested above deliverAt check

* that&#39;s smb-suggested.json

* update tests to allow &gt;30m temps

* disconnect any previous connection attempts before connecting

* disable networking restart dhclient kill to see if that&#39;s more stable

* deal with icanhazip.com proxy format (172.19.131.138, 10.36.65.138,12.130.117.68)

* don&#39;t print minCOBPredBG or minUAMPredBG if they&#39;re 999

* only microbolus if 0.1U SMB represents 20m or less of basal (0.3U/hr or higher)

* enable bolus snooze when COB will eventually get BG above target

* if no microBolus required, and lastCOBpredBG &gt; target_bg, don&#39;t set a zero temp

* if no microBolus required, snoozeBG &gt; target_bg, and lastCOBpredBG &gt; target_bg, don&#39;t set a zero temp

* print wlan0 SSID properly

* renew wlan0 IP if wifi is connected w/o an IP

* don&#39;t print SSID when checking it

* comment

* allow high temps or SMBs when bg &lt; threshold if IOB is highly negative

* if pump clock is more than 1m off, attempt to reset it

* don&#39;t renew wlan0 if it has no SSID

* sleep 120 after releasing wifi IP

* update tests

* newline

* install jq with SMB to fix #469

* capture stderr too

* regex update; if we still can't get online, try cycling networking as a last resort

442 of 1515 branches covered (29.17%)

886 of 2736 relevant lines covered (32.38%)

220.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2727.1 21 May 2017 04:32AM UTC 0
32.38
Travis Job 2727.1
2 2727.2 21 May 2017 04:32AM UTC 0
32.38
Travis Job 2727.2
Source Files on build 2727
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2727
  • 76ff2147 on github
  • Prev Build on dev (#2726)
  • Next Build on dev (#2747)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc