These are chat archives for nightscout/intend-to-bolus

23rd
Oct 2017
dmdfreak
@dmdfreak
Oct 23 2017 00:07 UTC
Does cleaning up size on disk in mlab take a while? Been waiting about 30 minutes and it still says I'm at 496mb
cameronrenwick
@cameronrenwick
Oct 23 2017 00:09 UTC
did you refresh your browser? usually it only take ~5min
dmdfreak
@dmdfreak
Oct 23 2017 00:11 UTC
I did and when I try to rerun it says "The repairDatabase command was issued, but the request timed out.",
"Usually this means the command was successfully started in the database,",
"but it will take a while to complete"
katie disimone
@Kdisimone
Oct 23 2017 00:22 UTC
omg…error is back
cameronrenwick
@cameronrenwick
Oct 23 2017 00:30 UTC
@dmdfreak
it may have some system lag...I'd give it a bit and retry. Usually you gain ~10-15% space -- at least when I do it..
LilDucky
@LilDucky
Oct 23 2017 00:32 UTC
@Kdisimone could be the connector - I have seen straaange things with those hirose connectors
katie disimone
@Kdisimone
Oct 23 2017 00:36 UTC
Looks like it is the edison...
LilDucky
@LilDucky
Oct 23 2017 01:01 UTC
have a real close look at the connector
Jacob H
@jdhigh
Oct 23 2017 01:25 UTC
@scottleibrand Would it help speed production of the pi hats if we pre-ordered a la gofundme? Like is there an initial manufacturing run that they need a deposit for?
Dana Lewis
@danamlewis
Oct 23 2017 01:26 UTC
@jdhigh thanks for asking! not this time. (we did that, an initial sign up order for the Edison Explore blocks, last year. but now they know the general demand so that's not an issue for getting the run done once the designs are finalized)
Jacob H
@jdhigh
Oct 23 2017 01:26 UTC
Very cool! Thanks
Dana Lewis
@danamlewis
Oct 23 2017 01:26 UTC
:+1:
(related for anyone who didn't see, just posted htis blog w/ more info about the Pi HATs: https://twitter.com/danamlewis/status/922259101744209921)
Jacob H
@jdhigh
Oct 23 2017 01:32 UTC
Nice to read that. I liked the question: "what’s worthwhile for displaying on the menus by default?"
Dana Lewis
@danamlewis
Oct 23 2017 01:34 UTC
:+1: here's that repo, if you want to poke around more: https://github.com/openaps/openaps-menu/blob/master/config/menus/menu.json
needs more work, of course
Jon Cluck
@cluckj
Oct 23 2017 02:01 UTC
awesome!
Velibor Maric
@vebaba
Oct 23 2017 08:24 UTC
few days ago, someone was asking to buy preinstalled Edison and Explorer: The Hamshield has been restocked
*if someone remembers who it was, give him a nudge ;)
PieterGit
@PieterGit
Oct 23 2017 10:13 UTC
What's the reason that the myopenaps-cgm-loop and the myopenaps use a different directory?
Savek-CC
@savek-cc
Oct 23 2017 10:14 UTC
@danamlewis PM - maybe you have an idea
spaldings
@spaldings
Oct 23 2017 10:37 UTC
Could use a little help. Last 2 days the loop has been hanging with this error: date: invalid date '@'. Restarting the rig has helped sometimes but other times I have had to attach to desktop to reboot. Here is the log error. Suggestions?
Starting supermicrobolus pump-loop at Mon Oct 23 03:47:03 EDT 2017 with 10 second wait_for_silence:
Waiting up to 4 minutes for new BG: date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.date: invalid date ‘@’
.Radio ok. Listening: .No pump comms detected from other rigs
Preflight git.exc.InvalidGitRepositoryError: /root/myopenaps
fail. SMB pump-loop failed. pump_loop_completed more than 15m old; waiting for 30s silence before mmtuning
Radio ok. Listening: .No pump comms detected from other rigs
Listening for 30s silence before mmtuning: .No pump comms detected from other rigs
/usr/local/bin/oref0-pump-loop: line 340: echo: write error: No space left on de
jaylagorio
@jaylagorio
Oct 23 2017 10:42 UTC
@spaldings This is troubling: /usr/local/bin/oref0-pump-loop: line 340: echo: write error: No space left on de
Looks like the disk is full
Type df -h and paste the output here
spaldings
@spaldings
Oct 23 2017 11:04 UTC
found that something was filling up the the kern and auth logs. manually removed those and rotated logs. this happened to us about a month ago as well. have to run my daughter (and her rig) to school. Any thoughts as to how I can tell what is filling up the logs?
jaylagorio
@jaylagorio
Oct 23 2017 11:05 UTC
Good find! I don't have any specific ideas, but next time they start to fill up maybe take a look at them?
spaldings
@spaldings
Oct 23 2017 11:06 UTC
@jaylagorio thanks for the advice. how do I look at them? (btw - there is a great string between @scottleibrand and @cooljoe04 earlier this year where they troubleshoot same issue. i just followed that!)
jaylagorio
@jaylagorio
Oct 23 2017 11:07 UTC
You might try less /var/log/auth.log for the auth log, similar for the kernel log
List of log files that might contain useful info: https://www.eurovps.com/blog/important-linux-log-files-you-must-be-monitoring
Plus the OpenAPS logs of course
Savek-CC
@savek-cc
Oct 23 2017 11:12 UTC
have there been OpenAPS build parties in the US?
jaylagorio
@jaylagorio
Oct 23 2017 11:29 UTC
I haven't heard of one, but I'd participate in a DC-based buildfest
I cannot imagine the RF interference problems with a bunch of loopers all in one place though
Savek-CC
@savek-cc
Oct 23 2017 11:47 UTC
lol... true . maybe opt for aaps with bt
jaylagorio
@jaylagorio
Oct 23 2017 11:49 UTC
You'd still have a comparatively huge increase in 916 MHz traffic between the pumps and boards that translate the BT to Medtronic though. I get the impression they'd step on each other non-stop.
I don't think it'd cause problems other than delays in loops executing since there's the built-in pause to listen for traffic at the beginning of the loops
Savek-CC
@savek-cc
Oct 23 2017 12:03 UTC
if you go with a traditional openaps setup with 916 MHz - I was thinking along Roche Combo or the DanaR - both don't have OpenAPS/Linux drivers (yet?) though
jaylagorio
@jaylagorio
Oct 23 2017 12:03 UTC
Yeah, not sure where those are in the process.
Diadon81
@Diadon81
Oct 23 2017 12:34 UTC
Hi, how long time it usually takes to compact MongoDB using repairDatabase command?
kallnap
@kallnap
Oct 23 2017 13:31 UTC
@Diadon81 on my edison with roughly a year worth of openaps data, I think it was less then 5 mins
nicked22
@nicked22
Oct 23 2017 14:49 UTC
does Loop have similar features as openAPS oref1? I know Loop already has basically the same thing as oref0, but I may want to use the things that oref1 has.
Pete Schwamb
@ps2
Oct 23 2017 15:02 UTC
Loop is not basically the same thing as oref0. There are some similarities, but enough differences that a user experienced on one should not assume those learnings will transfer to the other.
jaylagorio
@jaylagorio
Oct 23 2017 15:13 UTC
Yes, Loop tends to lag OpenAPS, by how much I'm not sure
Pete Schwamb
@ps2
Oct 23 2017 15:15 UTC
@jaylagorio That’s your opinion. A lot of people choose Loop for things that OpenAPS doesn’t have, and I’m not sure will ever have.
jaylagorio
@jaylagorio
Oct 23 2017 15:26 UTC
I was speaking strictly in terms of oref0. oref0 changes, then Loop has to integrate - a short lag. I don't think that's opinion.
philipgo
@philipgo
Oct 23 2017 15:48 UTC
@jaylagorio It is AndroidAPS that is based on the oref0 algorithm. Loop has its own algorithm.
It's not even opinion, it seems to be based on a false premise. Loop isn't based on oref0. As an observer of both projects and user of neither, I see a healthy cross-pollination of ideas (look at recent exponential insulin curves for example). But neither "has to integrate" design decisions made by the other.
kallnap
@kallnap
Oct 23 2017 15:52 UTC
@ecc1 out of curiosity what cloosed loop algo are you using?
Dana Lewis
@danamlewis
Oct 23 2017 15:54 UTC
Hey @nicked22 - as I've been saying, they are different algorithms, features, etc. YDMV, and your preferences for each of those will vary. I'd take a look at Loop's docs and algo, too, to get the level of detail you're interested in. @tim2000s also wrote another post with some clear headers of form, function, etc that might be helpful to read and evaluate what's right for you: http://www.diabettech.com/looping-a-guide/comparing-the-loop-and-openaps-algorithms/
@savek-cc for Roche Combo or DANA*R, you'd want to use AndroidAPS. Those pumps have Bluetooth, so you won't need the separate rig.
Medtronic pumps don't have that, so you need a radio bridge at the very least
@jaylagorio can't remember if they'd had one in a while, but there's a pretty good sized group of folks looping floating around D.C./VA/MD you could nudge for a meetup, or schedule one of your own :smile:
@kallnap I wrote my own in Go. It doesn't have anywhere near the features or "domain expertise" of openaps or Loop; it's just a PID control loop whose main statement is:
output := proportionalGain*bg.delta + integralGain*bg.sum + derivativeGain*bg.slope
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:21 UTC
Well speaking of a fun topic. I seem to remember that the 723 3.x firmware disabled remote temp-basal, is that all or is everything different and we are completely locked out.. Just wondeing if MicroBolus concepts could work in this case? (send a command to pump to micro bolus for the past 5 mins of bg rise)
Dana Lewis
@danamlewis
Oct 23 2017 16:23 UTC
@jlucasvt can't remember if anyone's tried remote bolusing on those firmwares..but even if you could, that becomes a Ping-like situation where you can't set the zero/low temps for safety, so non-optimal for most people.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:24 UTC
true. just looking at futur options. the loopable pumps are getting harder to find
Great point low temping is a critical part of the magic
Scott Leibrand
@scottleibrand
Oct 23 2017 16:27 UTC
@PieterGit the myopenaps-cgm-loop and the myopenaps dirs were separated so that the two loops wouldn't step on each other, particularly with regard to .git. Now that we've gone --nogit, and are starting to make other changes, we need to re-do the g4-upload stuff to be more like @jaylagorio's (much simpler) new g5-upload setup.
@jlucasvt You can't do any remote "write" operations with the later firmware, not even setting the clock.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:30 UTC
:worried:
John Sjolund
@sjolundjohn
Oct 23 2017 16:31 UTC
Hi, is there any consensus on the smallest / strongest 3D printed case for Edison & explorer board?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:31 UTC
I wonder how they do functional fda testing of the assembled unit prior to shipment.
Well, there is the PC mode or whatever, that lasts for a short period. But it's a good point, that would still be very labor intensive for final test. Maybe there's a backdoor we haven't found yet.
Dana Lewis
@danamlewis
Oct 23 2017 16:34 UTC
@sjolundjohn take a look through http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html#hard-cases , but some of them have slots for extra AAA batteries, etc, so smallest will depend on what functionality you want?
also depends on which size battery you have on the rig
John Sjolund
@sjolundjohn
Oct 23 2017 16:35 UTC
I have looked through the list, but hard to really figure which is tried and tested. Was hoping for a personal recommendation.
Dana Lewis
@danamlewis
Oct 23 2017 16:35 UTC
soft case! soft case all the way! <--is my personal recommendation and why I can't help you narrow down the hard case best option ;) :)
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:35 UTC
ToughCase.. Doh.. that’s RileyLink. (ok im going to slink back to RL channel now)
@jlucasvt Hmm, maybe they're initially unlocked and the firmware can shut that door behind it after test.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:37 UTC
wow. neat idea.
if it fails it’s got to be disembowled anyway.
John Sjolund
@sjolundjohn
Oct 23 2017 16:38 UTC
@danamlewis do you put a rubber band around the rig and battery for yours?
Scott Leibrand
@scottleibrand
Oct 23 2017 16:38 UTC
@jaylagorio for the record, @drnoname82 and @ps2 are correct. AndroidAPS is the phone-based system based on oref0 that usually integrates oref0 changes after they're merged to master. Loop is a completely independent iOS-based system that shares some similarities (as do all DIY closed looping systems), but does not use oref0 and doesn't try to integrate new features from OpenAPS. There are some parallel features on both systems that have benefited from cross-pollination, and most recently the exponential curves that were designed and architected jointly (and then independently implemented in both Loop and OpenAPS) but neither Loop nor OpenAPS copies the other in any direct way.
Dana Lewis
@danamlewis
Oct 23 2017 16:38 UTC
@sjolundjohn nope
Only if it's not in a case
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:39 UTC
@scottleibrand (very diplomatic sir)
Velibor Maric
@vebaba
Oct 23 2017 16:45 UTC
For that unsolvable pump firmwares all you need to do is to develop robot arm and robot eye. Robot arm pushes buttons, robot eye recognizes visual output. Then you can sold rights to the movie of robot arms conquering the world by pushing right buttons. Instead of 'hasta la vista', the robot could printout: 'enact/smb-enacted.json, baby'
Dana Lewis
@danamlewis
Oct 23 2017 16:48 UTC
...lol
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Oct 23 2017 16:49 UTC
nice. Automation to rule the world.
Dana Lewis
@danamlewis
Oct 23 2017 16:50 UTC
@sjolundjohn the one thing I do is a business card around the battery
cameronrenwick
@cameronrenwick
Oct 23 2017 16:53 UTC
@sjolundjohn I've built a few and my "go to" case is the one by Rob that allows for a 2500mAh battery, along with a pocket for a spare AAA battery. The spare battery duty is 2-fold. It helps to hold the lid of the case onto the body and also provides for the back up battery for your pump. A 2500 mAh lipo for powering the edison/EB is a must in my opinion, as it allows for a usual day for me (6:30 am unplug from charger till a 9pm replug). A smaller lipo, in my experience, doesn't last. I also work in a somewhat physical environment and if I used Dana's soft sided case I'd be buying way more rigs as I know mine would be trashed. FWIW, my 2 cents
Velibor Maric
@vebaba
Oct 23 2017 16:54 UTC
For protection? That silver duct tape is excellent for preventing battery punctures. One should check for radio blocking though @danamlewis
John Sjolund
@sjolundjohn
Oct 23 2017 16:54 UTC
@danamlewis @cameronrenwick thanks for the feedback. I was just about to checkout on the soft case, but I stopped when I considered the environments I am planning to have them in (and the fact that I have twin threenagers).
Dana Lewis
@danamlewis
Oct 23 2017 16:55 UTC
@sjolundjohn yea. I am not nice to mine - they get thrown in my bag and stuck in plane overheads and squished around a lot. But I have not teen-tested or stomped on them. Only thrown them across the room :smile:
@vebaba yea, card around it for a nod to protection of the battery
Velibor Maric
@vebaba
Oct 23 2017 16:57 UTC
I was wondering, how do you solve heat issues? I got battery input fried on explorer and it heats a lot when I power Rig via 5V battery pack
I hope that it will heat less on fixed 3,7V input (wait for electronic parts to come from UK)
Dana Lewis
@danamlewis
Oct 23 2017 16:58 UTC
Another perk of soft case: I have never had a heat issue on any of mine in soft cases
Only seen heat issue when I wrapped it in the hotel comforter in my sleep by accident (vs laying on top)
Velibor Maric
@vebaba
Oct 23 2017 17:00 UTC
So, you use soft case which is outside of another bag?
I put mine in tictac case but when in my crossbody bag, it gets hot
Dana Lewis
@danamlewis
Oct 23 2017 17:04 UTC
yep. soft case, nothing else
Scott Leibrand
@scottleibrand
Oct 23 2017 17:14 UTC
we have another larger bag for the offline rig that happens to have a water-resistant liner inside it, and that tends to be the one that overheats under the comforter or in a backpack in the overhead bin. I don't think the ones in the breathable soft cases have ever overheated even in those conditions.
but just in case, oref0 dev now has the ability to stop non-essential oref0-ns-loop functions if it gets too hot, and even temporarily pause the pump-loop completely until the rig cools down enough. that worked well in the overhead-bin situation. :)
cameronrenwick
@cameronrenwick
Oct 23 2017 17:35 UTC
@scottleibrand now that's a "cool" feature (wah wahh waaahh)... :smile: couldn't resist
Dana Lewis
@danamlewis
Oct 23 2017 17:36 UTC
:fire: :cool:
nicked22
@nicked22
Oct 23 2017 17:41 UTC
@danamlewis
Velibor Maric
@vebaba
Oct 23 2017 17:41 UTC
So, breathable is the key. I made grill openings on my tictac. It's ~40C on power section as well as around Edison radio section
nicked22
@nicked22
Oct 23 2017 17:42 UTC
Will this Intel Edison version work? Are there any newer versions? https://www.sparkfun.com/products/13024
Velibor Maric
@vebaba
Oct 23 2017 17:44 UTC
that one you've linked is out of stock. I have both low power and standard power and both work
nicked22
@nicked22
Oct 23 2017 17:46 UTC
@vebaba Do you think you could link me to an Intel Edison for the cheapest price possible? It doesn't matter to me whether it's pre-flashed or not.
Velibor Maric
@vebaba
Oct 23 2017 17:48 UTC
are you in USA or Europe?
nicked22
@nicked22
Oct 23 2017 17:48 UTC
USA
Velibor Maric
@vebaba
Oct 23 2017 17:53 UTC
Adafruit doesn't have it in stock so I know only for https://enhanced-radio-devices.myshopify.com/products/intel-edison-w-jubilinux
Brian Rabinovitz
@bdr1177
Oct 23 2017 17:54 UTC
This is probably a strange question, but does autosens require some additional port to be open other than what is normally required for NS and OpenAPS operation? Our ISF seems to get "stuck" at certain times. One time seems to be when my daughter is on the school wifi. NS and OpenAPS otherwise operate fine when at school. The only other thing that doesn't work at school is papertrail and I understand it uses a specific port.
nicked22
@nicked22
Oct 23 2017 17:58 UTC
I take it that I can't use the Arduino board?
Velibor Maric
@vebaba
Oct 23 2017 18:01 UTC
It's kit from two pieces. Arduino BB and Edison IoT
You take Edison and put it on Explorer Breakoutboard
Scott Leibrand
@scottleibrand
Oct 23 2017 18:09 UTC
@bdr1177 ISF won't change if there's meal activity going on, which would be most of the school day
Would either of these work?
Brian Rabinovitz
@bdr1177
Oct 23 2017 18:19 UTC
@scottleibrand Is meal activity any time there are COB? Or does it also include the 5 hours of DIA if a bolus is carb-related?
Velibor Maric
@vebaba
Oct 23 2017 18:22 UTC
@nicked22 Yes. With cheaper options you will get Intel BB extra
You will not use Intel BB with this project but you might find some usage for it...
nicked22
@nicked22
Oct 23 2017 18:23 UTC
Okay, thank you. So the explorer board is needed because it has the 915 mHz signal correct?
Dana Lewis
@danamlewis
Oct 23 2017 18:25 UTC
because it has the built in radio stick you need. you can use other breakout boards, but then have to add a larger radio stick (and flash it)
nicked22
@nicked22
Oct 23 2017 18:25 UTC
Okay, thanks all!
Velibor Maric
@vebaba
Oct 23 2017 18:30 UTC
I took a look at noticed that low power actually doesn't have internal antenna while standard power has it
I'd like to try this Standard power one. Can I easily clone one Edison to another?
Dana Lewis
@danamlewis
Oct 23 2017 18:31 UTC
all Edison's are essentially the same for looping purpose
dan lightner
@danimaniac
Oct 23 2017 18:32 UTC
They both have internal antenna. edi2.spon is Standard power ON board antenna and edi2.lpon is Low power ON board antenna. @danamlewis is, of course, correct that both are equally good for looping.
Brian Rabinovitz
@bdr1177
Oct 23 2017 18:39 UTC
It looks like we're having some phantom carbs appearing. Had 20g at 1:26 pm. COB at 1:38 pm was 19. But then COB at 1:47 pm was 37.
Capture2.JPG
Capture.JPG
nicked22
@nicked22
Oct 23 2017 18:41 UTC
How do I go about setting up the Nightscout website? Is that another tool that I will have to pay for on a monthly basis?
you don't have to pay for it, free tier of Heroku works just great.
Scott Leibrand
@scottleibrand
Oct 23 2017 18:43 UTC
@bdr1177 autosens excludes any time period where there's COB, plus any time after COB=0 that carb absorption is still observed (until deviations first go negative). plus, there is a UAM exclusion for when IOB is too high.
Velibor Maric
@vebaba
Oct 23 2017 18:44 UTC
@danimaniac Then I have low power off board antenna
version of Edison
nicked22
@nicked22
Oct 23 2017 18:45 UTC
@danamlewis With the free tier of Heroku it says that it sleeps after 30 minutes of inactivity. Would that not cause an issue with any part of the loop?
Scott Leibrand
@scottleibrand
Oct 23 2017 18:48 UTC
@bdr1177 do you have exercise mode enabled?
it appears not, but just checking
Brian Rabinovitz
@bdr1177
Oct 23 2017 18:49 UTC
@scottleibrand There was an activity temp target during this time, but I didn't enable any exercise mode in preferences.
Scott Leibrand
@scottleibrand
Oct 23 2017 18:52 UTC
ok. I think what's happening here is it took a few loops for the 20g to show up in OpenAPS. before that, the 22g was leftover from the 56g earlier
you'll have to check pump-loop.log to confirm how many total carbs it was using to calculate mealCOB
Brian Rabinovitz
@bdr1177
Oct 23 2017 18:55 UTC
@scottleibrand Yes, I think you're probably right. She just got home from school so I can see the papertrail logs now. It was looping infrequently during this time, so I think it was just an issue with the rig catching up. Sorry for the false alarm. I just saw a bunch of SMBs so I wanted to confirm the carbs were getting factored in correctly.
Velibor Maric
@vebaba
Oct 23 2017 18:57 UTC
@danamlewis any advice on cloning edisons?
Scott Leibrand
@scottleibrand
Oct 23 2017 19:04 UTC
@bdr1177 :+1: it looked sketchy enough I had to go check out your NS, so thx for flagging it.
@vebaba don't bother
it's easier to flash and install them from scratch
Velibor Maric
@vebaba
Oct 23 2017 19:16 UTC
what about data?
Scott Leibrand
@scottleibrand
Oct 23 2017 19:17 UTC
scp or rsync over your autotune directory
the rest gets read from your pump or NS (or CGM, if plugged in)
jaylagorio
@jaylagorio
Oct 23 2017 19:18 UTC
@scottleibrand I must have mixed up who subsumes what, sorry!
Scott Leibrand
@scottleibrand
Oct 23 2017 19:21 UTC
np
garykidd
@garykidd
Oct 23 2017 20:27 UTC
what would make openAPS prediction lines begin in a historical period?
cameronrenwick
@cameronrenwick
Oct 23 2017 20:28 UTC
update lag or incomplete loop... time will solve that, along with browser refresh
garykidd
@garykidd
Oct 23 2017 20:29 UTC
looks like I'm looping....and browser refresh hasnt helped...hmmm
Scott Leibrand
@scottleibrand
Oct 23 2017 20:30 UTC
check ns-loop.log to see if the rig is successfully updating ns-status info to NS devicestatus
garykidd
@garykidd
Oct 23 2017 20:38 UTC
zero values to unpack error
but setting temps
currently
Paul Dickens
@thebookins
Oct 23 2017 20:39 UTC
I'm trying to understand the reasoning behind the 90 min zero temp when microbolusing, and whether there are any alternatives to make the algorithm more fault-tolerant. Son on school camp and the rig lost connectivity to the pump not far into a 90 min zero temp. The 90 mins of no insulin was no match for two microboluses of 0.3 and he went high. Is this an unavoidable risk when using oref1 features? Pic below:
Screen Shot 2017-10-24 at 07.27.20.png
Dana Lewis
@danamlewis
Oct 23 2017 20:40 UTC
@thebookins what version of oref0 are you running?
dev, master, and when did you last update?
garykidd
@garykidd
Oct 23 2017 20:42 UTC
pumphistory-24hr Refresherror zero ...to unpack..
other than that looks like it's working
Dana Lewis
@danamlewis
Oct 23 2017 20:42 UTC
@garykidd self resolves with a better read of history
garykidd
@garykidd
Oct 23 2017 20:43 UTC
is there an easy alias that I can invoke to force the resolution...quicker?
Paul Dickens
@thebookins
Oct 23 2017 20:43 UTC
@danamlewis dev, updated just a few days ago
garykidd
@garykidd
Oct 23 2017 20:50 UTC
openaps pill is 2 hours stale
Dana Lewis
@danamlewis
Oct 23 2017 20:55 UTC
@garykidd yes, you can drill down and run the relevant command
garykidd
@garykidd
Oct 23 2017 20:56 UTC
just having trouble reading it on darn phone screen ...
Scott Leibrand
@scottleibrand
Oct 23 2017 21:07 UTC
@thebookins oref0 SMB is designed to fail safe, with a long enough zero temp to avoid life-threatening hypoglycemia if not all the entered carbs kick in. if you are in a situation where you might lose connectivity and aren't able/willing to take over manually if so, you might want to set a >100 temp target in advance to disable SMB and fall back to AMA
garykidd
@garykidd
Oct 23 2017 21:07 UTC
somewhat interesting observation...looks like refresh 24h history gets cut off by SMB delivery if its needed...understanding that it should work when SMB is not needed...if this is nt an isolated incident wondering if timing should be altered....
Scott Leibrand
@scottleibrand
Oct 23 2017 21:08 UTC
@garykidd no, 24h history refresh doesn't get cut off by SMB delivery (from the same rig)
sometimes the 24h refresh fails, and it just retries the next loop, as that's not urgent
garykidd
@garykidd
Oct 23 2017 21:09 UTC
is there a delay than in tailing pump lopp log...becuase it time it rolls around during l
the last few times it fails because it's delivering an SMB....I dont think it can obtain a refreshed history when those values would be changing during an SMB..right?
what's the frequency of repeat refresh for 24h history?
Scott Leibrand
@scottleibrand
Oct 23 2017 21:14 UTC
your interpretation isn't specific enough for me to know what you're describing. you'll have to actually paste the logs you're talking about
if Edison is not on battery it starts trying after 15m. on battery it waits until 30m
and if it gets to 120m old, it forces a refresh before the loop can continue
the 24h pumphistory gets merged with the 2h one, so it doesn't matter when during those 2h it gets refreshed.
garykidd
@garykidd
Oct 23 2017 21:17 UTC
in watching the pump-loop log output via '1' it appears that each of the last few attempts to Refresh-pumphistory-24h have resulted in the Zero value sot unpack error......the log output suggests that while the 24h refresh has been attempted..the pump...coincidentally--happens to be delivering a bolus at that time......
Scott Leibrand
@scottleibrand
Oct 23 2017 21:17 UTC
that could be: i'll keep an eye on it. won't hurt anything, though: just gives it something to try to do until the bolus finishes and it can refresh normal pumphistory
garykidd
@garykidd
Oct 23 2017 21:18 UTC
my openAPS pill indicates 2hour stale....still looping though
Scott Leibrand
@scottleibrand
Oct 23 2017 21:18 UTC
that's not your problem there
FWIW the regular pumphistory has a bolusing check and will retry if the bolus is still ongoing when it tries
if you're troubleshooting NS uploads, stay out of pump-loop.log and look at ns-loop.log
garykidd
@garykidd
Oct 23 2017 21:18 UTC
interesting....and cool
will do..thanks
Travis Cannell
@diabeticpilot
Oct 23 2017 21:20 UTC
quick question - I'm upgrading to Dev branch now and copied by old openaps directory with cd && mv myopenaps/ backupmyopenaps/ - do I need to copy my autotune directory over to the new myopenaps folder so the history is there?
Dana Lewis
@danamlewis
Oct 23 2017 21:21 UTC
if you want it, yup. @diabeticpilot
Travis Cannell
@diabeticpilot
Oct 23 2017 21:21 UTC
thank you. that would be the whole autotune folder?
Scott Leibrand
@scottleibrand
Oct 23 2017 21:22 UTC
yeah, that's easiest
Velibor Maric
@vebaba
Oct 23 2017 21:39 UTC
@scottleibrand OK, I reinstall new Edison (instead of old one), copy/paste autotune folder. How do I make new connection to NS? Just point me, please...
Scott Leibrand
@scottleibrand
Oct 23 2017 21:43 UTC
Just copy and paste the contents of your oref0-runagain.sh
That has your NS and pump info.
Velibor Maric
@vebaba
Oct 23 2017 21:46 UTC
It's offline now :(
I got lost but openaps is running. I can see on my pump but NS is without update...
Martin Haeberli
@mhaeberli
Oct 23 2017 21:56 UTC
@danamlewis thx
does there exist an easy way (IFTTT) to do zero-temp/suspend (as in before shower), and reverse after?
Scott Leibrand
@scottleibrand
Oct 23 2017 22:06 UTC
you can't directly control temps/suspends from NS. you could set a 30m high target to 200 mg/dL, though.
Martin Haeberli
@mhaeberli
Oct 23 2017 22:07 UTC
@scottleibrand thx
Scott Leibrand
@scottleibrand
Oct 23 2017 22:07 UTC
if you have exercise mode enabled, that will almost guarantee a zero temp. without that, it will still run a normal temp if BG is rising enough
Velibor Maric
@vebaba
Oct 23 2017 22:14 UTC
@scottleibrand I'm looping but mine NS isn't updated. How it can be? Should I refresh or restart it somehow?
to be more precise, it seems like OAPS pill as well as Pump pill aren't updated
philipgo
@philipgo
Oct 23 2017 22:20 UTC
Probably your Heroku database is full. You can try to "repair" the database or you can delete documents from it.
But do not forget to donate your data to the OpenAPS data commons before deleting anything 😉
Velibor Maric
@vebaba
Oct 23 2017 22:24 UTC
no, it was 37MB only :(
Marco
@CaptainBalou
Oct 23 2017 22:31 UTC

I am living in Germany. We have summer and winter time zone. What happens in OpenAPS-rig with Medtronic setup at time change? I think I’ll get lost in the middle of the night if I don’t do things manually isn’t it?

A lot of conversation here and I possibly missed an answer to this question. If so - sorry for double posting. Any hints would be very appreciated.

Scott Leibrand
@scottleibrand
Oct 23 2017 22:33 UTC
the rig should keep working ok, but NS will be a bit messed up. what I do is change my rig in advance to a non-summer timezone that matches the one I'm in, so it won't change on me until I'm ready to change it
Marco
@CaptainBalou
Oct 23 2017 22:36 UTC
Hey Scott. This is weird but probably the only way it would work.
Would be nice to have something like a „keep clock in sync“ way inside OpenAPS. ;-)
Scott Leibrand
@scottleibrand
Oct 23 2017 22:37 UTC
oh, that exists
but we only get to test it twice a year, so it's probably broken since 6m ago
Marco
@CaptainBalou
Oct 23 2017 22:38 UTC
But let’s stop dreaming and finding a way to get through the night where time goes back one hour.
Oh really, something exists?
6m ago?
Scott Leibrand
@scottleibrand
Oct 23 2017 22:38 UTC
you can sorta test it by changing the timezone on your rig
6 months ago
not minutes. :)
really more like 8 months now that DST lasts most of the year
Marco
@CaptainBalou
Oct 23 2017 22:40 UTC
So there is a way to keep time sync? So I could take my pump one hour away and it should set it back to normal then? Is that the way it would work if it works?
Scott Leibrand
@scottleibrand
Oct 23 2017 22:40 UTC
yeah, you can test that
or change the rig TZ to a neighboring one
Marco
@CaptainBalou
Oct 23 2017 22:42 UTC
Ok. Do you know if there is a documentation for that? Or is it just one Parameter to set and let it going?
If there is a documentation I search for it.
Scott Leibrand
@scottleibrand
Oct 23 2017 22:42 UTC
it's just something that oref0-pump-loop.sh does
you can read the code if you want to see exactly how
Marco
@CaptainBalou
Oct 23 2017 22:42 UTC
Ok I look into the script.
Perfect hint to learn more about it.
Thanks
Paul Dickens
@thebookins
Oct 23 2017 22:43 UTC
@scottleibrand Thanks for the tip about a temp > 100 to disable SMB. I still feel like I'm missing something. I understand the bias to avoid hypoglycemia, but at a basal rate of 1.1, two microboluses of 0.3 each would be balanced by a zero temp of just over 30 mins, not 90 mins. I will read the code more closely tonight to get more insight, but oref1 appears to be more conservative in the face of disconnects, not less.
Marco
@CaptainBalou
Oct 23 2017 22:49 UTC
As I understand oref0-pump-loop setting the time on devices is not paramater dependent. I gets done as soon the device is more than 1 minute away. So that would begreat for me. I give it a try if it works or not. Thanks again @scottleibrand
Dave Acklam
@dcacklam
Oct 23 2017 22:50 UTC
So, further investigation into my issues with the explorer/712 combo:
I am using dev branch, as set up by oref0-setup
1) Even though mmtune reports 0,-99, I can control the pump (eg, pump_suspend, pump_resume & various reports work)
2) What does not work (and brings the loop crashing down) is 'openaps invoke monitor/status.json'
This fails as follows, from both the loop and the command line:
monitor/status.json raised bytearray index out of range
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 239, in main
return self.pump.model.read_status( )
File "/root/src/decocare/decocare/models/init.py", line 26, in call
self.validate( )
File "/root/src/decocare/decocare/models/init.py", line 17, in validate
data = self.response.getData( )
File "/root/src/decocare/decocare/commands.py", line 1404, in getData
status = { 'status': normal.get(data[0], 'error'),
IndexError: bytearray index out of range
Dana Lewis
@danamlewis
Oct 23 2017 22:51 UTC
@dcacklam yea, 512 doesn't have the same structures as everything else
did you say yes to 512 in the setup script?
Dave Acklam
@dcacklam
Oct 23 2017 22:51 UTC
Yes, I did
Dana Lewis
@danamlewis
Oct 23 2017 22:51 UTC
k ,and I think you said you edited the other files, correct?
Dave Acklam
@dcacklam
Oct 23 2017 22:52 UTC
And I edited the reqd files
Dana Lewis
@danamlewis
Oct 23 2017 22:52 UTC
per https://github.com/openaps/docs/pull/1047/files? can't remember if I had shared that
Dave Acklam
@dcacklam
Oct 23 2017 22:52 UTC
I did not run the 'alias changes' from the documentation, since I figured that would be built into the setup script
Dana Lewis
@danamlewis
Oct 23 2017 22:52 UTC
did you also set targets?
yea, if you did it in dev, it should have done it for you
Dave Acklam
@dcacklam
Oct 23 2017 22:53 UTC
Now that it is asking about x12 pumps
Dana Lewis
@danamlewis
Oct 23 2017 22:53 UTC
but, we might have missed something. i got it up an running on a 12 with following the dev and these instructions, but something else after that could have borked it
Dave Acklam
@dcacklam
Oct 23 2017 22:57 UTC
As far as I can tell, everything else works... I've gone through the oref0-pump-loop script & ran the various reports manually, and they work as described... but that monitor/status.json one does not, and it breaks the 'stock' loop.
Or at least, that's what 'run everything except the status logic manually' got me...
Scott Leibrand
@scottleibrand
Oct 23 2017 23:08 UTC
@thebookins the zero temp length is long enough to counteract all of your IOB and bring BG back to safe levels if you end up with no further carb absorption
(limited to 120m)
Dave Acklam
@dcacklam
Oct 23 2017 23:08 UTC
@danamlewis
After reviewing what you posted, yes, I did all of that.
The issue is that trying to get the pump status (used, as far as I can tell, to figure out if the pump is suspended/bolusing/etc) fails.
(And my ability to debug starts to fall off once things get beyond bash scripts & system-ops type logic)....
Paul Dickens
@thebookins
Oct 23 2017 23:12 UTC
Thanks @scottleibrand I'll read the code closely so that my comments (if any) are better informed. In the meantime I'll use the trick of temp > 100 to switch off SMB due to the vagaries of being on camp
Velibor Maric
@vebaba
Oct 23 2017 23:18 UTC
@scottleibrand I put old Edison and NS OAPS pill is working again. I'm too tired for today
If anyone has some idea what might be wrong, please, write. I made new installation of Jubilinux on new Edison. I installed oref0, then oref0-0.6.0-dev2. Everything was working but OAPS pill and Pump pill on NS. Pump was getting BG and all other data from NS. I redeployed Herouku, rerun setup scrip of oref0 and nothing had helped. Installing back old Edison, both pump and OAPS pills started to work again. Thanks!
spaldings
@spaldings
Oct 23 2017 23:29 UTC
Hi all - spent some more time trying to figure out why loop was hanging. Was getting device out of memory message and saw that kernel and auth logs were 'filled.' Manually removed those and loop restarted briefly then received the loop failure with Preflight git.exc.InvalidGitRepositoryError: /root/myopenaps message. Currently in process of re-running oref0-setup but this is 2nd time this has happened to us in the last 4-5 weeks. I am wondering if there is a way to prevent this or what we might be doing to cause the error?
Travis Cannell
@diabeticpilot
Oct 23 2017 23:32 UTC
I'm having NS issues with the new Dev version .6 too. For some reason my bg won't update. If I hover over the pill, it does contain the right info. And my ns-loop has conflicting data. My BG was 158 from about two hours ago where as 215 is current. I'm using x-drip+ to push values into the rig which then uploads to NS.
Oct 23 16:28:03 bearpanks autosens-loop.log:  Mon Oct 23 16:28:02 PDT 2017
Oct 23 16:28:03 bearpanks autosens-loop.log:  settings/autosens.json
Oct 23 16:28:10 bearpanks ns-loop.log:  No recent valid BG found. Most recent:
Oct 23 16:28:10 bearpanks ns-loop.log:  {"glucose":158,"dateString":"2017-10-23T14:11:05.715000-07:00"}
Oct 23 16:28:16 bearpanks ns-loop.log:  Refreshed temptargets: {"target":null,"duration":0}
Oct 23 16:28:23 bearpanks ns-loop.log:  Refreshed carbhistory; COB: 42
Oct 23 16:28:23 bearpanks ns-loop.log:  {"batteryVoltage":3592,"battery":37}
Oct 23 16:28:26 bearpanks ns-loop.log:  {"BG":215,"IOB":4.138,"rate":0,"duration":60,"units":0.2}
Oct 23 16:28:32 bearpanks ns-loop.log: No new treatments to upload
Oct 23 16:28:32 bearpanks ns-loop.log: Completed oref0-ns-loop at Mon Oct 23 16:28:31 PDT 2017