Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1cb2a8a
comment out shared-node cp to avoid full disk
scottleibrand Dec 21, 2021
fd11713
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Dec 21, 2021
487c385
Merge branch 'dev' of github.com:openaps/oref0 into dev
scottleibrand Jan 15, 2022
627045d
don't send carbsReq alerts if COB is zero due to clock data parsing e…
scottleibrand Jan 15, 2022
255ee9b
run pushover in pump-loop
scottleibrand Jan 15, 2022
c14d655
run pushover in pump-loop
scottleibrand Jan 15, 2022
f3f288c
check pushover_snooze immediately before sending a pushover
scottleibrand Jan 15, 2022
8212690
pathfix
scottleibrand Jan 15, 2022
b374277
run pushover in pump-loop instead of cron-every-minute
scottleibrand Jan 15, 2022
99fb042
don't background pushover for now
scottleibrand Jan 15, 2022
2a32aad
uncomment debug line
scottleibrand Jan 15, 2022
87a991d
debugging
scottleibrand Jan 15, 2022
2d1b32f
debugging
scottleibrand Jan 15, 2022
d504e5d
debugging
scottleibrand Jan 15, 2022
b2fea0f
-e to make jq return non-zero if no snooze found
scottleibrand Jan 15, 2022
1823b2e
apparently this line never worked
scottleibrand Jan 15, 2022
641372f
comment out debug line
scottleibrand Jan 15, 2022
4a0f2f0
no newline
scottleibrand Jan 15, 2022
f9f680e
don't print date
scottleibrand Jan 15, 2022
2c31224
remove extra logging
scottleibrand Jan 15, 2022
67f6999
fix check for empty MAKER_KEY
scottleibrand Jan 15, 2022
76ee85a
only print snooze message if there's something to snooze
scottleibrand Jan 15, 2022
8d6cf9c
don't print contents of file
scottleibrand Jan 15, 2022
4d950eb
update Pushover Glances to include temp basal rate*duration
scottleibrand Jan 15, 2022
4acab54
direction arrows
scottleibrand Jan 15, 2022
dcb26f3
U/h
scottleibrand Jan 15, 2022
343f52c
use NS to coordinate glances snoozes between rigs
scottleibrand Jan 15, 2022
c90904e
more compact carbsreq string
scottleibrand Jan 15, 2022
964e2dd
make glanceDelay configurable
scottleibrand Jan 15, 2022
cf7e13f
better check of whether pushoverGlances is a number
scottleibrand Jan 15, 2022
53b55c5
fix glanceDelay=pushoverGlances if numeric check
scottleibrand Jan 15, 2022
aa306d1
wait_for_silence before refreshing profile and pumphistory
scottleibrand Jan 15, 2022
1fa6ff0
fix glanceDelay=pushoverGlances if numeric check
scottleibrand Jan 15, 2022
5bccf8d
fix carbhistory egrep syntax
scottleibrand Jan 16, 2022
188d841
ls profile.json.new if invalid
scottleibrand Jan 16, 2022
1fb87c1
Invalid profile.json.new debugging
scottleibrand Jan 16, 2022
8af80d2
Invalid profile.json.new debugging
scottleibrand Jan 16, 2022
54f496f
Invalid profile.json.new debugging
scottleibrand Jan 16, 2022
e9f8810
NS uses UTC now
scottleibrand Jan 16, 2022
2e521bb
grep -q exits early w/ 141 in some race conditions: use grep >/dev/nu…
scottleibrand Jan 16, 2022
01ca53d
remove debug lines
scottleibrand Jan 16, 2022
a755e09
Revert "NS uses UTC now"
scottleibrand Jan 16, 2022
f1944bf
convert NS UTC date into local time
scottleibrand Jan 16, 2022
116197a
don't print
scottleibrand Jan 16, 2022
51fd708
comment out debug lines
scottleibrand Jan 16, 2022
38b72e5
don't print snooze.json, just the fact we uploaded one
scottleibrand Jan 16, 2022
cff7baf
check that glance api returns status: 1
scottleibrand Jan 16, 2022
060f1ac
don't print snooze.json
scottleibrand Jan 16, 2022
2a282db
just print the fact we sent a carbsReq pushover
scottleibrand Jan 16, 2022
5b832da
don't print meal.json (twice)
scottleibrand Jan 16, 2022
51f85c8
less verbose logging after wait_for_silence
scottleibrand Jan 16, 2022
549f49a
don't print
scottleibrand Jan 16, 2022
3e47ba9
check that pushover api returns status: 1
scottleibrand Jan 16, 2022
3ae2348
spacing
scottleibrand Jan 16, 2022
bcac13f
just print COB after refreshing meal.json
scottleibrand Jan 16, 2022
62557b3
less verbose logging
scottleibrand Jan 16, 2022
952e024
print entirer meal.json, colorized
scottleibrand Jan 16, 2022
48c4d0e
remove duplicate cat of meal.json
scottleibrand Jan 16, 2022
7469243
add delta to glance title
scottleibrand Jan 16, 2022
bcbdfb1
print last_glance time inline
scottleibrand Jan 16, 2022
1938971
display tick instead of delta
scottleibrand Jan 16, 2022
4ef34aa
tick before arrow
scottleibrand Jan 16, 2022
8e7d712
remove quotes
scottleibrand Jan 16, 2022
5c894e2
retry w/o new BG after failure to parse clock data
scottleibrand Jan 17, 2022
6219216
don't use grep -q to avoid return code 141 race condition
scottleibrand Jan 17, 2022
11d9cd8
don't use grep -q to avoid return code 141 race condition
scottleibrand Jan 17, 2022
5c913a3
don't use grep -q to avoid return code 141 race condition
scottleibrand Jan 17, 2022
8ce1f26
don't mkdir: directory entries eventually fill up the disk
scottleibrand Feb 16, 2022
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
Prev Previous commit
Next Next commit
don't use grep -q to avoid return code 141 race condition
  • Loading branch information
scottleibrand committed Jan 17, 2022
commit 11d9cd8e2399061091bf433e92009fb4a4b1f280
2 changes: 1 addition & 1 deletion bin/oref0-pump-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function refresh_after_bolus_or_enact {

function unsuspend_if_no_temp {
# If temp basal duration is zero, unsuspend pump
if (cat monitor/temp_basal.json | jq '. | select(.duration == 0)' | grep -q duration); then
if (cat monitor/temp_basal.json | jq '. | select(.duration == 0)' | grep duration); then
if check_pref_bool .unsuspend_if_no_temp false; then
echo Temp basal has ended: unsuspending pump
mdt resume 2>&3
Expand Down