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

16th
Mar 2017
garykidd
@garykidd
Mar 16 2017 00:00
http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/edison-explorer-board-Mac.html?highlight=password/
Scott Leibrand
@scottleibrand
Mar 16 2017 00:01
That is the quick Mac walkthrough. The one I linked is the full version.
You might want to PR in a note to the Mac one to go look at the full one if you get stuck...
Sgoldberg89
@Sgoldberg89
Mar 16 2017 00:03
hey @scottleibrand I vaguely recall that you used a different port when trying to screen into an edison from a raspi. Right now the docs say: sudo screen /dev/ttyUSB0 115200 but I think you changed a number last time. If that's true, wanna tell me what it should be and I'll edit the docs? If not, then I'm just not able to replicate what we did a week ago
Scott Leibrand
@scottleibrand
Mar 16 2017 00:04
I don't think I changed that particular number...
Sgoldberg89
@Sgoldberg89
Mar 16 2017 00:05
bummer
Scott Leibrand
@scottleibrand
Mar 16 2017 00:06
You have a data USB cable plugged into the Pi and the Edison's UART port?
What do you get when you try that command?
Sgoldberg89
@Sgoldberg89
Mar 16 2017 00:06
yes, I was getting lots of questionmark symbols, now I get nothing
jk
feraridurango
@feraridurango
Mar 16 2017 00:07
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 606, in send_force_read self.link.write(reader.format( )) File "/usr/local/lib/python2.7/dist-packages/decocare/link.py", line 47, in write r = self.serial.write( string ) File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 528, in write raise portNotOpenError serial.serialutil.SerialException: Attempting to use a port that is not open Starting pump-loop at Thu 16 Mar 00:05:11 UTC 2017: Radio ok, Listening: . No pump comms detected from other rigs Old pumphistory: Error, retrying Starting pump-loop at Thu 16 Mar 00:06:16 UTC 2017: Radio ok, Listening: .No pump comms detected from other rigs Old pumphistory: Error, retrying Starting pump-loop at Thu 16 Mar 00:07:21 UTC 2017: Radio ok, Listening: .
Sgoldberg89
@Sgoldberg89
Mar 16 2017 00:08
It stopped working because I turned it off, now it's fine
Power button is literally magic
feraridurango
@feraridurango
Mar 16 2017 00:08
@danamlewis
Dana Lewis
@danamlewis
Mar 16 2017 00:09
@feraridurango looks like it’s working to me. if it’s a re-do with the setup script, give it the usual 15-20 minutes to do a full read
garykidd
@garykidd
Mar 16 2017 00:14
@scottleibrand was making such excellent progress..what am I missing...
"/etc/wpa_supplicant/wpa_supplicant.conf" 9L, 167C written
root@purplehost:~# ifup wlan0
Ignoring unknown interface wlan0=wlan0.
root@purplehost:~#
feraridurango
@feraridurango
Mar 16 2017 00:15
ok awesome I have been having issues with the ti stick like at 3am it quit working and I have to reinsert it is there something i can do to prevent this? @danamlewis
Dana Lewis
@danamlewis
Mar 16 2017 00:15
@feraridurango if you look at the logs from that time & share those, we might be able to help troubleshoot
feraridurango
@feraridurango
Mar 16 2017 00:18
ok how can I go back to look ?
katie disimone
@Kdisimone
Mar 16 2017 00:48
@garykidd can you cat /etc/wpa_supplicant/wpa_supplicant.conf?
Actually probably cat /etc/network/interfaces
garykidd
@garykidd
Mar 16 2017 01:01
root@purplehost:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
iface lo inet loopback

auto usb0
iface usb0 inet static
    address 192.168.2.15
    netmask 255.255.255.0

auto wlan0
iface wlan-1 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
root@purplehost:~# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="XXXXXXXXX"
    psk="XXXXXXX"
}
network={
    ssid="GKPHONE"
    psk="XXXXXXXXXXXXX"
}
thoughts?
ssid for home network is 'GK NETWORK DS' if that matters
peterfulvi
@peterfulvi
Mar 16 2017 01:18
Does openaps calculate the insulin when you use the easy bolus button. I was wondering how the openaps works with the principal of micro bolusing. Or is that along
Dana Lewis
@danamlewis
Mar 16 2017 01:18
yes, it calculates IOB based on any insulin you manually do on the pump, regardless of the mechanism of providing it.
peterfulvi
@peterfulvi
Mar 16 2017 01:18
The line of eating soon mode
peterfulvi
@peterfulvi
Mar 16 2017 01:26
I just learned a out sugar surfing. I'm pretty regimented with eating but once it seems like a good tool far as handling a heavy carb load I just. Wonder if implementing it with looping will work. Or does looping already implement those principals already through temp basals.
Dana Lewis
@danamlewis
Mar 16 2017 01:27
the latter. especially with AMA configured.
peterfulvi
@peterfulvi
Mar 16 2017 01:36
Thanks that's what I thought. The loop handle the peaks pretty well. I am thankful for the research you are doing about having enough IOB to lessen the spikes. That there has to be enough active IOB.
feraridurango
@feraridurango
Mar 16 2017 01:46
Old pumphistory: Error, retrying Starting pump-loop at Thu 16 Mar 01:42:02 UTC 2017: Radio ok, Listening: .No pump comms detected from other rigs Old pumphistory: Refresh Error, retrying Listening: .No pump comms detected from other rigs mmtune: pump://JSON/mmtune/monitor/mmtune.json reporting monitor/mmtune.json "916.564", 5, -80 Starting pump-loop at Thu 16 Mar 01:44:13 UTC 2017: Radio ok, Listening: .No pump comms detected from other rigs Profile less than 60m old glucose.json newer than temp_basal.json Temp refreshError, retrying Listening: .
this time does not match our current time how can I change it ? or should I?
Scott Leibrand
@scottleibrand
Mar 16 2017 02:09
@garykidd your error message explains the problem: iface wlan-1 inet dhcp
garykidd
@garykidd
Mar 16 2017 02:11
hmmmm.
dont understand still...sorry
garykidd
@garykidd
Mar 16 2017 02:18
maybe add iface wlan0 inet dhcp?
garykidd
@garykidd
Mar 16 2017 02:34
root@purplehost:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
iface lo inet loopback

auto usb0
iface usb0 inet static
    address 192.168.2.15
    netmask 255.255.255.0

auto wlan0
iface wlan-0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
is that right?
Scott Leibrand
@scottleibrand
Mar 16 2017 02:47
no, look at the example in the docs again
garykidd
@garykidd
Mar 16 2017 03:09
root@purplebird:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto usb0
iface usb0 inet static
    address 192.168.2.15
    netmask 255.255.255.0

auto wlan0
iface wlan-0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
right?
need sanity check here...thx
RedCyclist1
@RedCyclist1
Mar 16 2017 03:11
I am getting a PuTTy error that says "Network error: Connection timed out." Googled it but nothing sounded like this issue...Both my husband and myself are getting it on separate systems... Any suggestions?
katie disimone
@Kdisimone
Mar 16 2017 03:53
@garykidd close. no dash iface wlan0 inet dhcp
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 05:15
IMG_0444.PNG
IMG_0442.PNG
IMG_0443.PNG
@scottleibrand - Ok - some weird COB stuff again - see photos... DS is sleeping, sudden appearance of 42 COB. BG line is flat. Last food was at 7pm (it is now 11pm in photos). Openaps is not low temping thought he is dropping, presumably because it sees COB that isn't there and there was no rise in BG to suggest it was there... thoughts?? Photos are in reverse sequence. BG dropping. last (first in list) photo includes Openaps info...
ok - looking more closely photos did not come in in sequence at all - first photo bg 5.3.. 2nd 5.1, 3rd w/openaps data showing
IMG_0445.PNG
I just did a manual temp basal of zero and suspended the pump to try and stop the drop to low...
Dana Lewis
@danamlewis
Mar 16 2017 05:21
(You may also want to set a higher temp target for now)
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 05:22
had tried a manual temp target also, but was not quick enough to catch (jinx to you @danamlewis!)
Scott Leibrand
@scottleibrand
Mar 16 2017 05:30
Sounds like this is the same thing I've observed, of carbs "coming back" after 4h or so. I'll have to do some more digging to see why that happens. In the mean time, what I've observed is that it usually happens when there is no actual carb absorption remaining, so it doesn't end up high temping, but as you saw it would inhibit low temping.
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 05:36
yes. I feel like we have seen this far less since the sorting, but evidently it is not completely gone. We've seen it perhaps a couple of times since mid Feb. More of a pain b/c it seems always when he is sleeping and when we are starting to wind down. Full on low now, but we saw it coming. Let us know if you need anything from us to support sorting it or where you want us to dig... absolutely no entry except through pump today (No carb entry into NS) except for the carb I just gave for correction...
Scott Leibrand
@scottleibrand
Mar 16 2017 05:41
I'm guessing this has something to do with the rig "forgetting" old boluses too soon, but that is just a hunch.
To test that we could run it on the pumphistory-24h and see if it calculates the correct COB.
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 05:44
Ok.... walk through with me what you want us to do....
@danamlewis - btw - I finally found some time to set up IFTTT - awesome. Thanks to you and @Kdisimone for the documentation. :)
jmcrawford
@jmcrawford
Mar 16 2017 05:46
And for Papertrail too
Dana Lewis
@danamlewis
Mar 16 2017 05:48
:+1: yay! Ifttt is awesome.
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 05:48
I'm afraid I might become addicted to the power of pushing a button :) I'm still thinking what else I can automate with that handy feature!
Sacha M
@coolestkidsever
Mar 16 2017 06:12
Hi all, just starting my edison setup but stuck at the early stages, sorry... trying to find which port in the device manager my card is on, but I have no ports in my device manager?? Any ideas please?
I do see an "other device" FT230X Basic UART though
Matthias
@ceben80
Mar 16 2017 06:20
did you tried different USB micro cables?
Sacha M
@coolestkidsever
Mar 16 2017 06:21
no but they're both brand new today, and I made sure (to ask) if they were data cables - and he assured me that's all they stocked
when i do plug it in though, it makes a funny noise (3 short beeps instead of the normal)
ah, which (upon googling) might be the issue.. will go down this path
Tim Street
@tim2000s
Mar 16 2017 06:25
@scottleibrand , the timing logic for pulling pump history is based on DIA isn't it? Could we have it dynamically adjust the period back it pulls history based on any extended absorption time it creates using dynamic absorption?
Scott Leibrand
@scottleibrand
Mar 16 2017 06:48
Maybe. The challenge will be figuring out how much we need before we actually pull the history.
I still need to characterize the problem before I'll be able to think usefully about solutions.
Sacha M
@coolestkidsever
Mar 16 2017 06:54
How do you "wake" up the com port if hitting enter a few times does nothing? (phase-0 of setting up your intel Edison / explorer)
actually at the risk of sounding silly, and maybe i missed a step.. but should i "attach" the edison to the explorer board before starting this path?
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 07:08
@scottleibrand - are there others having this same problem? We are due for an update to the new dev once we have another explorer board (still waiting for more, and with only 1 rig since our other one got fried with re-charging, we are loath to do much by way of changes... ) just thinking if it's a limited problem, it may not make sense to put a lot of time into it... lots of other places to put time...
Dana Lewis
@danamlewis
Mar 16 2017 07:16
@coolestkidsever yes. Attach edison and start back over.
@JELCRAWFORD I have seen it a very few times. Definitely something I want us to figure out before the next series of features roll out.
And fwiw your next one can probably be on master unless there's a fix in dev at that point in time
JELCRAWFORD
@JELCRAWFORD
Mar 16 2017 07:18
I think some features in dev still that interest me - are the new features for unannounced cob in master yet?
Lorenzo Sandini
@lsandini
Mar 16 2017 12:43
Hi Matthias, I noticed your cell Phone screenshot on Twitter... what app is that on your phone, that displays openaps/NS data ?
@ceben80 Hi Matthias, I noticed your cell Phone screenshot on Twitter... what app is that on your phone, that displays openaps/NS data ?
oh, found it, the http-widget :)
Matthias
@ceben80
Mar 16 2017 12:57
@lsandini I do have a repo "http-widget", you'll find further instructions there :wink:
Lorenzo Sandini
@lsandini
Mar 16 2017 13:04
@ceben80 Very nice, I must give it a try !
Matthias
@ceben80
Mar 16 2017 13:12
:+1:
Lynne Butts
@flutelynne_twitter
Mar 16 2017 14:14
Good morning. In theory, is it possible to have my RPi2 with receiver attached (updated oref0) AND my edison/explorer board (no receiver attach, but mifi running) near each other and working? I believe only one will be working at a time?
I may need to be offline a bit today, and just want something going.
Matthias
@ceben80
Mar 16 2017 14:27
@flutelynne_twitter with the oref0-setup multiple rig operating is supported and works well :wink:
Lynne Butts
@flutelynne_twitter
Mar 16 2017 14:28
@ceben80 thank you. Last minute gig, and Loop is acting up, so OpenAPS will be my hero today.
They will be fairly close to each other.
Scott Leibrand
@scottleibrand
Mar 16 2017 15:52
@JELCRAWFORD we did a release to master this last weekend. I think the only unannounced COB thing in dev is the new code to make autotune ignore unannounced meals when you have more than 1h of basal worth of IOB. I wouldn't encourage anyone to stop entering carbs to test that, although if you already don't enter some of them, it might improve your autotune results slightly.
Diabetic_Dude
@diabetic_dude_twitter
Mar 16 2017 17:52
Is there any benefit to getting an apple watch aside from using the IFTTT quick buttons (eating soon, workout mode, cancel temp basil, quick carb entry)
Dana Lewis
@danamlewis
Mar 16 2017 17:57
Ifttt is most often used with pebble, FYI. Most of us are not using Apple Watch.
@ceben80 time to pr into the main docs?
Matthias
@ceben80
Mar 16 2017 17:58
@danamlewis again, extra work :stuck_out_tongue_winking_eye:
yes will do....but need some time :smile:
Diabetic_Dude
@diabetic_dude_twitter
Mar 16 2017 17:59
thanks just figured that now would not be a great time to buy a pebble
(please tell me I am wrong so I can save a load of cash)
Dana Lewis
@danamlewis
Mar 16 2017 18:00
Why not get a pebble? Way cheaper than Apple Watch. Does all the functionality you'd need. Ifttt. Displays real time OpenAPS data. Great options for Watch faces.
Matthias
@ceben80
Mar 16 2017 18:01
@danamlewis just tweaking my http-widgetalias .....
Dana Lewis
@danamlewis
Mar 16 2017 18:01
@ceben80 ok. Maybe I'll start the pr and let you just make any edits needed (or +1 it)? How's that sound?
Ah, k. Or tell me whenever you're ready.
Matthias
@ceben80
Mar 16 2017 18:01
sounds great :star2:
Matthias
@ceben80
Mar 16 2017 18:20

@danamlewis @scottleibrand @tim2000s @colinlennon @lukas-ondriga

I have created a new alias using headto detemine the last BG read from xdrip, have attached this to ~/myopenaps/enact/index.html
xdrip-bg = ! bash -c "head -6 ~/myopenaps/xdrip/glucose.json | awk '{print $2}' | while read line; do echo -n $line; done | awk -F '(,)' '{print \"xdrip: \" substr($3,13,5) \"\t bg: \"$4 }'"

blob
Matthias
@ceben80
Mar 16 2017 18:35
@danamlewis don't know to mention this new xdrip-bg alias for the http-widget setup, due to the fact it's xdrip-offline related, for me important to see xdrip bg is up to date (not older than 5 min)
as you see in my screenshot, eating-soon is running and I'm hungry......dinner :smile:
fezulin
@fezulin
Mar 16 2017 18:43
,
RawJa777
@RawJa777
Mar 16 2017 19:40

This morning I started getting the following error message -
Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refresh
Error, retrying

Just learning about OpenAps and I have hit a dead end...cannot resolve...
any thoughts?

Dana Lewis
@danamlewis
Mar 16 2017 19:40
@RawJa777 what type of setup are you using? how long has your rig been running?
RawJa777
@RawJa777
Mar 16 2017 19:41
Explorer Board / Edison, total uptime ~ 2 weeks, current uptime 30 minutes or so (I went through the whole turn it off/on procedure)
Dana Lewis
@danamlewis
Mar 16 2017 19:43
So is it not currently looping? (That’s a common set of messages, so unless something changed and it’s stuck on the error, retrying or repeating that error over and over again for a long time, it’s not a big deal to see that occasionally)
RawJa777
@RawJa777
Mar 16 2017 19:45
@danamlewis It seems to be stuck on that error...hasn't been updating temp basal rates for a couple of hours and I haven't seen a successful loop since I've been actively watching it - going on an hour or so
chookchook1
@chookchook1
Mar 16 2017 19:46
This message was deleted
Scott Leibrand
@scottleibrand
Mar 16 2017 19:46
@chookchook1 the error logging is better with oref0-pump-loop in dev, if that's what you mean...
Dana Lewis
@danamlewis
Mar 16 2017 19:47
@RawJa777 k. what’s changed? do you have a square/dual bolus going on, etc.?
RawJa777
@RawJa777
Mar 16 2017 19:50
@danamlewis I ate a couple of hours ago, dual-wave (:30) bolused and verified temp-basal before eating at the time. Pump (722 - 2.4A) shows last bolus at 12:46 (current time is 2:49 on the pump, 2:50 on the Edison)
chookchook1
@chookchook1
Mar 16 2017 19:54
Sorry, got part way on a seperate thing and couldn't paste in the screenshot from my phone, but wondering if I should log the error I got . Edison was running fine but then got papertrail that said autosens-loop.log: Not an openaps environment, run: openaps.
RawJa777
@RawJa777
Mar 16 2017 19:54
@danamlewis I checked about an hour and a half ago to see if I was looping again and found that I wasn't. Since then I've rebooted through the console, powered off and on (pump and rig)...same error
peterfulvi
@peterfulvi
Mar 16 2017 19:57
@danimaniac does your case have holes for the screws I didn't see any in the design
Dana Lewis
@danamlewis
Mar 16 2017 19:58
@RawJa777 can you paste more of your logs? I’m wondering if that dual wave history record is throwing things off, or if it’s something else
RawJa777
@RawJa777
Mar 16 2017 20:04
@danamlewis You bet...hang on
RawJa777
@RawJa777
Mar 16 2017 20:12
@danamlewis http://pastebin.com/YRj6JimG - This seems to be the last successful loop - Every log after that is virtually identical to what I posted previously
Starting pump-loop at Thu Mar 16 14:58:36 CDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refresh
@danamlewis
Error, retrying
Listening: .No pump comms detected from other rigs
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.756", 5, -61 Starting pump-loop at Thu Mar 16 15:01:05 CDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refresh
Error, retrying
Listening: .No pump comms detected from other rigs
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.756", 5, -75 Starting pump-loop at Thu Mar 16 15:03:39 CDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refresh
Error, retrying
Dana Lewis
@danamlewis
Mar 16 2017 20:22
@RawJa777 have you done any boluses since then? wondering if a .1u bolus would make it work
RawJa777
@RawJa777
Mar 16 2017 20:22
lemme try!
Scott Leibrand
@scottleibrand
Mar 16 2017 20:33
the fact that it's saying "Refresh" and then "Error, retrying", and never getting to "Refreshed", indicates there's some problem pulling pumphistory. you might want to try doing that part manually...
probably by doing openaps monitor-pump in your myopenaps directory
RawJa777
@RawJa777
Mar 16 2017 20:35
@scottleibrand I'll try that now...
Scott Leibrand
@scottleibrand
Mar 16 2017 20:36
you'll need to kill off anything being run by the loop first though
killall -g openaps; openaps monitor-pump should work
RawJa777
@RawJa777
Mar 16 2017 20:36
k, thanks
Here's the output: http://pastebin.com/0NDtpVCa
IndexError: bytearray index out of range
Dana Lewis
@danamlewis
Mar 16 2017 20:40
are you using explorer board or Ti stick or ?
RawJa777
@RawJa777
Mar 16 2017 20:40
Explorer board
Scott Leibrand
@scottleibrand
Mar 16 2017 20:41
that one is odd. have you tried completely powering down the Edison (to turn off power to the radio chip in the Explorer board) and powering back on?
RawJa777
@RawJa777
Mar 16 2017 20:42
I have...unplugged the battery and everything
Scott Leibrand
@scottleibrand
Mar 16 2017 20:42
normally I'd expect to see that kind of low-level mmeowlink radio error much earlier on, not after it successfully did a bunch of other stuff
you could try re-flashing the cc1110 using ccprog...
maybe we should also try a shorter pumphistory pull
something like killall -g openaps; openaps use pump iter_pump 5
RawJa777
@RawJa777
Mar 16 2017 20:48

@scottleibrand Results in this:
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 222, in power_control
raise CommsException("No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?")
mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?

Battery on pump is full...no comm issues with the CGM. Battery on rig should be fine...I'll plug it in just to be sure. Before I try rebooting again, is there anything else that you'd like me to try?

Plugged rig into charger, retried command and got this:

ValueError: need more than 0 values to unpack

dan lightner
@danimaniac
Mar 16 2017 20:54
@peterfulvi Yes / no? Not sure where you mean...Here is a link to 3 pictures. Once you place the Board / Edison in the case like the first picture, screws represented by the red circles are inserted through the vents represented by the white circles in the second picture, the screws are screwed into the bosses circled in the third picture (and corresponding bosses in the case body). So, yes, there are vent holes through which to place the screws and driver. No, there are no pilot holes in the bosses. I assume the screws will self tap into the printed material. https://goo.gl/photos/ydtLLS9AZb63KUDt7 Make sense?
RawJa777
@RawJa777
Mar 16 2017 20:57
Ran openaps monitor-pump and got this:
pump://JSON/iter_pump_hours/monitor/pumphistory.json
monitor/pumphistory.json  raised  need more than 1 value to unpack
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 640, in main
    for rec in self.range( ):
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 67, in __call__
    for record in page:
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 46, in download_page
    for record in self.find_records(page):
  File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 158, in find_records
    records = decoder.decode( )
  File "/usr/local/lib/python2.7/dist-packages/decocare/history.py", line 823, in decode
    record = parse_record(self.stream, B, larger=larger, model=self.model)
  File "/usr/local/lib/python2.7/dist-packages/decocare/history.py", line 755, in parse_record
    record.parse( head + date + body )
  File "/usr/local/lib/python2.7/dist-packages/decocare/records/base.py", line 66, in parse
    return self.decode( )
  File "/usr/local/lib/python2.7/dist-packages/decocare/history.py", line 128, in decode
    (offset, rate, q) = self.body[start:end]
ValueError: need more than 1 value to unpack
yay for markdown!
Tim Street
@tim2000s
Mar 16 2017 21:21
@ceben80 - I'm not sure why you do this in aliases? I'd be tempted to set them up as a shell script with callable procedures in line with the remodelling that @scottleibrand is doing. Do you think that makes sense?
Scott Leibrand
@scottleibrand
Mar 16 2017 21:32
@RawJa777 not sure what that is, but I'm starting to wonder if there's some data in the pump's history that is screwing you up because decocare can't decode it properly...
one workaround you could try is setting the same temp basal over and over in an attempt to age the offending record out of the first page of the pumphistory, so it can read again...
gregtcm
@gregtcm
Mar 16 2017 21:39
Now that I'm looping, I'm going through batteries quickly. What have people found to be the most cost effective battery for a looping medtronic pump? Thanks!
jmcrawford
@jmcrawford
Mar 16 2017 21:58
@gregtcm buy shares in duracell
sorry, not that helpful
ejoe132
@ejoe132
Mar 16 2017 22:00
@scottleibrand Hey Scott, Im back to try to figure out whats stopping me from getting my edison working again after it got filled with memory and we deleted it then it wouldnt take again. So just tried to reflash jubilinux, got to a point of saying in cmd prompt window and it said " u-boot kernel system flash success... Your board needs to reboot to complete the flashing procedure, please do not unplug it for 2 minutes. Then it went back to the string I used to run flashall. That should mean that jubilinux was successfully installed?
Dana Lewis
@danamlewis
Mar 16 2017 22:00
@gregtcm are you using lithium or alkaline?
ejoe132
@ejoe132
Mar 16 2017 22:02
@gregtcm Ive found Duracell Quantums last much longer than normal copper tops. Normally was getting 4-5days with quantum vs 2-3days with copper tops
Scott Leibrand
@scottleibrand
Mar 16 2017 22:05
@ejoe132 at that point you're done with the flashing window. sounds like you need to follow the directions for setting up your console screen window, and see what's happening over there.
ejoe132
@ejoe132
Mar 16 2017 22:06
@scottleibrand Ok awesome, farther than we got before. Thanks
RawJa777
@RawJa777
Mar 16 2017 22:22
@scottleibrand Progress. I followed your suggestion and got the following output. Once it hits the pumphistory-24h error, it goes back into the error loop as shown before. Any additional thoughts?
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refreshed pumphistory
{"ratio":1}
{"iob":0.024,"activity":0.0007,"bolussnooze":0,"basaliob":0.024,"netbasalinsulin":0.1,"hightempinsulin":0.1,"time":"2017-03-16T22:13:26.000Z"}
{"delta":2,"glucose":120,"short_avgdelta":2.22,"long_avgdelta":1.79}
{"duration":0,"rate":0,"temp":"absolute"}
target_bg unchanged: 95
Carb Impact: 1.8 mg/dL per 5m; CI Duration: NaN hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: NaN hours
Setting neutral temp basal of 1.35U/hr
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
{"temp":"absolute","bg":120,"tick":"+2","eventualBG":131,"snoozeBG":131,"predBGs":{"IOB":[120,122,123,124,126,127,127,128,129,129,129,130,130]},"IOB":0.024,"reason":"COB: undefined, Dev: 11, BGI: -0.05, ISF: 15, Target: 95; Eventual BG 131 >= 105, basaliob 0.02 > max_iob 0; setting current basal of 1.35 as temp. Setting neutral temp basal of 1.35U/hr","duration":30,"rate":1.35}
pump://JSON/set_temp_basal/enact/enacted.json
reporting enact/enacted.json
{"bg":120,"temp":"absolute","snoozeBG":131,"recieved":true,"predBGs":{"IOB":[120,122,123,124,126,127,127,128,129,129,129,130,130]},"rate":1.35,"reason":"COB: undefined, Dev: 11, BGI: -0.05, ISF: 15, Target: 95; Eventual BG 131 >= 105, basaliob 0.02 > max_iob 0; setting current basal of 1.35 as temp. Setting neutral temp basal of 1.35U/hr","eventualBG":131,"timestamp":"2017-03-16T17:20:13.807436","duration":30,"tick":"+2","IOB":0.024}
Old pumphistory-24h refreshError, retrying
Listening: .No pump comms detected from other rigs
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.708", 5, -75 Starting pump-loop at Thu Mar 16 17:25:03 CDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory-24h refreshError, retrying
PieterGit
@PieterGit
Mar 16 2017 22:25
@RawJa777 : you can check the different parts of the alias and execute them one at the time. I had a similar error on rpi3/ti which i'll debug tommorow
Scott Leibrand
@scottleibrand
Mar 16 2017 22:31
@RawJa777 looks like it's looping now, and setting temps?
RawJa777
@RawJa777
Mar 16 2017 22:33
@scottleibrand Initial loop was successful, but it fails at Old pumphistory-24h refresh and goes into an error loop. I'll let it sit for an hour or so to see if it recovers...but I don't think it will
Scott Leibrand
@scottleibrand
Mar 16 2017 22:33
it will likely recover after 24h from the initial failure then
in the mean time, you could modify the pumphistory-24h alias to be a shorter duration that doesn't cover the time when the offending record was written to the pump history
RawJa777
@RawJa777
Mar 16 2017 22:34
@scottleibrand Ok, I'll keep an eye on it. You've been a huge help. My knowledge of the inner workings has gone up tremendously in the last two hours. Big thanks to you and @danamlewis
PieterGit
@PieterGit
Mar 16 2017 22:35
@scottleibrand : do you know how offending records occur?
Scott Leibrand
@scottleibrand
Mar 16 2017 22:35
nope. we need someone to go pull the raw pump history and do some decoding work
that's the kind of stuff Ben used to do
I think @cjo20 may have done it recently, and might be able to point us to how
PieterGit
@PieterGit
Mar 16 2017 22:40
does ben still do openaps/oref0 work? i haven't seen him here for quite a long time
Scott Leibrand
@scottleibrand
Mar 16 2017 22:40
not much since he started at Dexcom
PieterGit
@PieterGit
Mar 16 2017 22:41
hope he surprises us with nice new hardware soon
Tim Street
@tim2000s
Mar 16 2017 22:43
@gregtcm - you need lithiums. 5-7 days out of them. Alkalines are 3 days at best, and I had one lot that lasted 8 hours.
gregtcm
@gregtcm
Mar 16 2017 22:43
@danamlewis Kirkland alkaline right now
@ejoe132 Thanks
@jmcrawford Funny!
Dana Lewis
@danamlewis
Mar 16 2017 22:44
@gregtcm definitely switch to lithium of some sort.
gregtcm
@gregtcm
Mar 16 2017 22:45
@tim2000s @danamlewis Thanks. I figured I needed to go down the Lithium route. Just wasn't sure if people had better luck with one particular type over another.
Dana Lewis
@danamlewis
Mar 16 2017 22:48
Nope. I would definitely add battery alerts to Nightscout and pushover when you switch, too
gregtcm
@gregtcm
Mar 16 2017 22:50
@danamlewis I have the alerts on in Nightscout. I need to investigate pushover. I remember reading about it in the docs, but don't remember what it does, though.
Dana Lewis
@danamlewis
Mar 16 2017 22:51
@rawja777 glad you're making progress! Have you done dual or squares on previous days, or is this the first day after looping you've used it? (Wondering what error or record caused the bad record)
Paul Dickens
@thebookins
Mar 16 2017 23:48
Hi All, our rig stopped working last night with Not an openaps environment, run: openaps init errors. I ran oref0-runagain.sh and it's back up. Is this a git corruption issue? Is it likely to be fixed by the latest git PRs, or does it need further investigation?
Scott Leibrand
@scottleibrand
Mar 16 2017 23:49
that error usually comes from when you aren't in the myopenaps directory
if you are, and it's giving you that, oref0-reset-git might fix it
Paul Dickens
@thebookins
Mar 16 2017 23:50
I know. But this was on the Papertrail logs, running from cron, which always does a cd into the myopenaps directory.
Scott Leibrand
@scottleibrand
Mar 16 2017 23:50
which probably means that directory got hosed somehow. I'd have to have seen it before you re-ran setup to know how exactly
Paul Dickens
@thebookins
Mar 16 2017 23:51
By 'hosed' you mean nonexistent?
It was def there
Scott Leibrand
@scottleibrand
Mar 16 2017 23:51
~/myopenaps/ could have been deleted, or more likely ~/myopenaps/.git/
or something else could've been screwed up with .git, dunno
Paul Dickens
@thebookins
Mar 16 2017 23:52
OK, maybe just a one-off then.
Scott Leibrand
@scottleibrand
Mar 16 2017 23:52
Pi or Edison?
Paul Dickens
@thebookins
Mar 16 2017 23:52
Edison
Scott Leibrand
@scottleibrand
Mar 16 2017 23:52
definitely haven't seen a pattern of anything like that there
on Pi I'd blame SD card corruption
Paul Dickens
@thebookins
Mar 16 2017 23:54
mmm, perhaps I should have investigated more at the time
but it was 3 am :smile:
Scott Leibrand
@scottleibrand
Mar 16 2017 23:54
no worries. if anyone else sees it, please take a poke around in myopenaps
unless it's your only rig and it's 3am :)
Paul Dickens
@thebookins
Mar 16 2017 23:55
:smile: