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

13th
Jul 2016
Jason Calabrese
@jasoncalabrese
Jul 13 2016 00:00
doing that we could even support multiple cgm sources
Scott Leibrand
@scottleibrand
Jul 13 2016 00:01
yeah, that might be good too
Chris Oattes
@cjo20
Jul 13 2016 00:06
@jasoncalabrese What are the fields upbat requires? battery and batteryVoltage?
@scottleibrand sign(x) might not need to be a traditional sign operation though. It might be useful to have a deadzone of 1mg/dl
Scott Leibrand
@scottleibrand
Jul 13 2016 00:11
yeah, it gets complicated the more I think about it. :smile:
Chris Oattes
@cjo20
Jul 13 2016 00:12
function BGDirection(x) {
    if (Math.abs(x) < 1)
    {
           return 0
    }
    else if (x > 0)
   {
        return 1
    }
    else
    {
        return -1
    }
}
where < 1 can be replaced by whichever value you would consider as being "flat" over 5 or 10 minutes
Scott Leibrand
@scottleibrand
Jul 13 2016 00:17
would probably want similar thresholds on BGI (unadjusted expectedDelta) as well
Chris Oattes
@cjo20
Jul 13 2016 00:18
brb, new site hit a vein
Scott Leibrand
@scottleibrand
Jul 13 2016 00:19
ugh
Chris Oattes
@cjo20
Jul 13 2016 00:22
back. That wasn't as bad as it could have been. When I see blood in a cannula, I go and stand in the shower before taking it out again. I've made the mistake of taking it out while sitting at my desk before, which got messy
and yes, given that you're almost never going to consistently get two consecutive equal readings, a dead zone of 1-2 mg/dL in anything that compares blood sugars might be a good idea, apart from maybe absolute low limits
Jason Calabrese
@jasoncalabrese
Jul 13 2016 00:29
@cjo20 only battery is required, but it also uses batteryVoltage if available
Chris Oattes
@cjo20
Jul 13 2016 00:31
thanks
Paul Martin
@Spazholio
Jul 13 2016 01:02
bouncy bouncy bouncy
Martin Haeberli
@mhaeberli
Jul 13 2016 01:02

@bewest @danamlewis trying to follow new nightscout setup script at
https://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-1/openaps-to-nightscout.html

I try to run:

opens do-everything
monitor/glucose.json

seems to be missing -

Paul Martin
@Spazholio
Jul 13 2016 01:02
(new sensor day - readings all OVER the place)
Martin Haeberli
@mhaeberli
Jul 13 2016 01:02
but - monitor/glucose.json is missing
Paul Martin
@Spazholio
Jul 13 2016 01:02
Do you have that report?
Martin Haeberli
@mhaeberli
Jul 13 2016 01:03
@Spazholio no - about to google to look for it ...
that is, for how to define it
openaps report add monitor/glucose.json JSON cgm iter_glucose_5
Paul Martin
@Spazholio
Jul 13 2016 01:04
I just realized - I don’t have a link that shows how to wire an Edison to an ERF. I have the diagram on how to FLASH it, but now how to USE is. Can someone point me in the right direction?
Martin Haeberli
@mhaeberli
Jul 13 2016 01:04
i’m about to try that, but my actual cgm values will flow in through Nightscout, so maybe i’m missing something
of course, iter_glucose_5 is not defined ...
ok, trying:
openaps report add monitor/glucose.json JSON cgm oref0_glucose --hours "25.0" --threshold “100
Martin Haeberli
@mhaeberli
Jul 13 2016 01:09

so do-everything fails on a number of accounts:

TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded

and

KeyError: ‘units’

(the above maybe while running raw-pump/bg-targets-raw.json or the item after that...

Could not require: /home/pi/Documents/edenghOpenAPS/oref0-monitor/iob.json { [Error: Cannot find module '/home/pi/Documents/edenghOpenAPS/oref0-monitor/iob.json'] code: 'MODULE_NOT_FOUND' }
Could not require: /home/pi/Documents/edenghOpenAPS/oref0-predict/oref0.json { [Error: Cannot find module '/home/pi/Documents/edenghOpenAPS/oref0-predict/oref0.json'] code: 'MODULE_NOT_FOUND' }
Could not require: /home/pi/Documents/edenghOpenAPS/oref0-enacted/enacted-temp-basal.json { [Error: Cannot find module '/home/pi/Documents/edenghOpenAPS/oref0-enacted/enacted-temp-basal.json'] code: 'MODULE_NOT_FOUND' }
Martin Haeberli
@mhaeberli
Jul 13 2016 01:46
KeyError: ‘units’

probably resolved by:

openaps device add units units

but now getting:

KeyError: ‘oref0’
Paul Martin
@Spazholio
Jul 13 2016 02:54
Hypothetically speaking, if the sensor I had soaking in my calf all day is now giving me lots of ???, is there a chance that it’ll come back and be reliable, or is that a possible indication that it’s just a bad location for me?
Scott Leibrand
@scottleibrand
Jul 13 2016 02:55
Yes. Could be dehydration, but if not, there may just not be enough fluid in that tissue...
Paul Martin
@Spazholio
Jul 13 2016 02:56
And the really big indication - my calf hurts. Dammit all, I thought I had a good spot, not actually IN the muscle. Grr. It didn’t all day, but it is now.
mariano42
@mariano42
Jul 13 2016 02:59
i know I saw this error somewhere in the documentation, but I can't find it now... "Bg data is too old or clock is set incorrectly".. i believe this is a formatting thing with my pump data, but I am trying to find the spot where I format that again...
thats happening when i invoke enact/suggested.json
Martin Haeberli
@mhaeberli
Jul 13 2016 03:00
@bewest / @danamlewis any suggestions on my questions above?
Scott Leibrand
@scottleibrand
Jul 13 2016 03:04
"Too old" usually either means data isn't being zoned right, or reports aren't being refeshed.
Martin Haeberli
@mhaeberli
Jul 13 2016 03:06

@bewest / @danamlewis / @

TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded

(when openaps do-everything is run)

mariano42
@mariano42
Jul 13 2016 03:11
@scottleibrand it looks like all reports have been refreshed.. what's the best way to tell how the data is being zoned?
Scott Leibrand
@scottleibrand
Jul 13 2016 03:12
Look at it. :-)
should have a timezone at the end matching what is in date
mariano42
@mariano42
Jul 13 2016 03:12
@scottleibrand haha.. is it as simple as looking at clock.json? because that is correct
Scott Leibrand
@scottleibrand
Jul 13 2016 03:13
what is the exact to old error text?
It should tell you which time is wrong.
mariano42
@mariano42
Jul 13 2016 03:14
BG data is too old, or clock set incorrectly Tue Jul 12 2016 21:45:21 GMT-0500 (CDT) vs Tue Jul 12 2016 22:08:54 GMT-0500 (CDT)
reporting enact/suggested.json
hmm maybe something isnt getting refreshed based on that...
Scott Leibrand
@scottleibrand
Jul 13 2016 03:14
That's not zoning: it's only off by 20m
ya
(the problem isn't lack of zoning)
mariano42
@mariano42
Jul 13 2016 03:16
@scottleibrand thanks! I will keep digging to find which report isn't fresh. appreciate the help
Paul Martin
@Spazholio
Jul 13 2016 03:25
The first time is your CGM time. The second is your system time.
Martin Haeberli
@mhaeberli
Jul 13 2016 04:08
'Namespace' object has no attribute ‘bg_targets’ openaps do-everything
Martin Haeberli
@mhaeberli
Jul 13 2016 04:17
openaps report invoke nightscout/recent-missing-entries.json
fails:
AttributeError: 'NoneType' object has no attribute ‘read'
eszcloud
@eszcloud
Jul 13 2016 05:36
For some reason when I try to change from using G4 to G5 on a new SD card (backup image still had G4 settings), I get
pi@pancdev1 ~/myopenaps $ openaps use cgm config --G5
usage: openaps-use cgm [-h] USAGE ...
openaps-use cgm: error: argument USAGE: invalid choice: 'config' (choose from 'G
...
Any ideas?
openaps seems to be the most updated version
berat
@beratkurar
Jul 13 2016 10:19
Hello to everybody. I am new to everything and I want to built openAPS between our pump and CGM.
Julie
@julieraines
Jul 13 2016 10:24
@beratkurar I'm new too : ^). You're not alone. What kind of pump and CGM are you using?
berat
@beratkurar
Jul 13 2016 10:27
Thank you : ) pump is medtronic paradigm 715 and CGM is dexcom G4
Julie
@julieraines
Jul 13 2016 10:29
Have you got all your supplies (RPi, SD card, etc)?
berat
@beratkurar
Jul 13 2016 10:30
I've bought Canakit and carelink USB
Are these enough to built the system?
Julie
@julieraines
Jul 13 2016 10:36
I bought canakit and so far so good and I managed to acquire 2 carelinks. You need USB keyboard and USB mouse and HDMI monitor to get started and I had a little wifi trouble so I had to use an ethernet cable at first with my RPi to get the ball rolling. I work off my MAC mini now instead of plugging into the RPi directly which you will have to do at some point so a computer is necessary that's on your wifi.
berat
@beratkurar
Jul 13 2016 10:42
is 2 carelink usb necessary?
can i use one carelink usb and one normal usb?
I have a laptop with hdmi port, will it work?
Julie
@julieraines
Jul 13 2016 10:47
1 carelink is enough but when I went to get 1 from this group in Facebook that trades diabetes supplies I found 2 people willing to just give them to me. I figured a backup was a good idea since it can stop working and then I'd be stuck. And they only cost me shipping. I haven't worked off a laptop - not sure about that but I imagine it does work and you can go here for more info on that http://www.interlockroc.org/2012/12/06/raspberry-pi-macgyver/
berat
@beratkurar
Jul 13 2016 10:48
@julieraines thank you very very much for your kind helps. Have a nice day.
Julie
@julieraines
Jul 13 2016 10:49
: ^ )
T1D's -PIF is the FB site for trading supplies (FYI)
Julie
@julieraines
Jul 13 2016 12:43
I'm creating my preferences JSON file and I want to use the tool to generate the file so do I click on "copy path" or the following while signed in to github: "Update Oref0-mint-max-iob to use preferences.json" (https://github.com/openaps/oref0/commit/bfbb66351b3c2ea758a16c0348b94ee302f31b33)?
Chris Oattes
@cjo20
Jul 13 2016 14:15
@jasoncalabrese got fed up with my 2000mAh battery never reaching full charge, so I've ordered a 500mA charger so I can charge the battery in 4 hours in the evening
mariano42
@mariano42
Jul 13 2016 14:17
@cjo20 I am about to order a new battery.. any recommendations? can your new charge keep the pi powered while you are charging it?
Chris Oattes
@cjo20
Jul 13 2016 14:27
I use an edison. They're only small batteries, they won't keep the pi alive for long
I've ordered a sparkfun charger, which does have a "SYS out", which I believe can be used to run stuff while charging, I probably won't be using that feature though
I used an Anker 5200mAh battery for my Pi, and I only get about 8 hours from that
same battery with my edison gets over a day
jim-andrews
@jim-andrews
Jul 13 2016 15:26
I run my RPi3 with TeckNet PowerZen G2 9600mAh. It has pass through so I just plug the charger in while leaving it connected to the Pi at night. It powers the Pi and charges the battery (some). This may be the capacity of my charger but it's no worse off in the morning. If I start with a full charge, it's still at full in the AM. Important thing is that I don't have to unplug my Pi from the battery. 2 for 1. I picked it up here: https://www.amazon.com/gp/product/B00FBD3MVA/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1
Dana Lewis
@danamlewis
Jul 13 2016 15:28
@beratkurar @julieraines re: one carelink: it is technically enough to build a working system, but you might find yourself wanting another to help extend the range. But in any case: get one and get one working rig going, then it’s easy to decide if you need/want a second.
David Cintron
@loudestnoise
Jul 13 2016 15:29
or if you want to upgrade to something with a little more range ;)
mariano42
@mariano42
Jul 13 2016 15:35
jim-andrews
@jim-andrews
Jul 13 2016 15:39
@mariano42 I like the smaller form factor but it's about 30% less capacity than the PowerZen. I seem to get about 9 hours of use with 9600mAh, so given your personal preferences and access to a charger, you might want to consider more capacity.
Chris Oattes
@cjo20
Jul 13 2016 16:02
pis guzzle battery like it's going out of style
jim-andrews
@jim-andrews
Jul 13 2016 16:09
@cjo20 true that. so I have two Edison's now flashed. any special considerations that I should know about porting openaps to run from my Pi? wifi is up so I can pull down from github. any gotchas or tutorial websites that I should reference? it's just so cute. I can wait to start using it.
Chris Oattes
@cjo20
Jul 13 2016 16:10
If you're using ubilinux there isn't really a difference in setup
jim-andrews
@jim-andrews
Jul 13 2016 16:10
yup
good to know. thanks!
That might be useful
Martin Haeberli
@mhaeberli
Jul 13 2016 16:41

trying to follow new nightscout setup script at
https://openaps.readthedocs.io/en/dev/docs/walkthrough/phase-1/openaps-to-nightscout.html
I try to run:

opens do-everything

monitor/glucose.json
seems to be missing -

how to define: monitor/glucose.json : ? maybe:
openaps report add monitor/glucose.json JSON cgm iter_glucose_5
Chris Oattes
@cjo20
Jul 13 2016 16:43
what happens if you run that?
Martin Haeberli
@mhaeberli
Jul 13 2016 16:43

then also get

TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded

(when openaps do-everything is run)

Chris Oattes
@cjo20
Jul 13 2016 16:44
the tz device is used to fix that issue
Martin Haeberli
@mhaeberli
Jul 13 2016 16:45

@mhaeberli

'Namespace' object has no attribute ‘bg_targets’

openaps do-everything
@mhaeberli

openaps report invoke nightscout/recent-missing-entries.json

fails:

AttributeError: 'NoneType' object has no attribute ‘read'
@cjo20 at the moment, I can’t talk to the OpenAPS instance until later, plus live Share => Nightscout CGM feed just failed because sensor came out. But I’d like to tee up guidance so i can fix it tonight
Julie
@julieraines
Jul 13 2016 16:47
@danamlewis thanks - I forget that ya'll use it 24/7. My daughter will be night only so I can plug in the RPi2 (no battery issues) and probably just use the 1 carelink with the rig on the nightstand. Daytime will be swapped out to her TSlim until that can be swapped for the MM.
Martin Haeberli
@mhaeberli
Jul 13 2016 16:47
i also needed guidance on defining report: oref0-monitor/profile.json , oref0-monitor/iob.json , bg_targets , read_bg_targets , monitor/glucose.json
reports ...
Dana Lewis
@danamlewis
Jul 13 2016 16:48
@julieraines :+1: I had issues getting coverage in the bed with one carelink, so very early on we set up a second Pi & Carelink to put in the middle of the bed to get better coverage. (Might’ve just been my pump - some people can get full bed coverage with one rig, others can’t.)
David Cintron
@loudestnoise
Jul 13 2016 16:49
@CrushingT1D said he used a USB extension cable and actually put the CL stick under his mattress, which I thought was pretty smart
Julie
@julieraines
Jul 13 2016 16:49
@loudestnoise that's what I saw somewhere so I figured I'd go with that. I think I have an extension cable lying around here somewhere
Dana Lewis
@danamlewis
Jul 13 2016 16:49
still depends on the pump, I believe. that wouldn’t get full coverage for me. Trust me, we tried everything :)
David Cintron
@loudestnoise
Jul 13 2016 16:49
Yeah, or Amazon has them for pretty cheap
Julie
@julieraines
Jul 13 2016 16:50
exactly
Scott Leibrand
@scottleibrand
Jul 13 2016 16:50
Even with one Carelink under the mattress we needed one on the headboard too. TI stick is much better: single rig covers a small room easily.
David Cintron
@loudestnoise
Jul 13 2016 16:50
Yep
Julie
@julieraines
Jul 13 2016 16:52
I need help with my preferences. I don't know how to create a JSON file so do I click on "Update Oref0-mint-max-iob to use preferences.json" in github?
jwedding
@jwedding
Jul 13 2016 17:11
Pardon the interruption. The Nightscout Foundation has been generously offered a pass to the Wonder Women Tech conference this weekend in Long Beach, CA. Wonder Women Tech (WWT) is a nonprofit that highlights, educates, and celebrates women and diversity in STEAM (Science, Technology, Engineering, Arts & Mathematics) innovation and entrepreneurialism. You can read more about the conference here: https://wonderwomentech.com/
If you are interested, please PM me to discuss.
Sarah Hodson Grady
@shgrady
Jul 13 2016 17:12
@julieraines you can, but alternatively just $nano preferences.json
Creates the file, opens in a nano editor
Then type in {"max_iob":2} or whatever number you are choosing
Ctrl + X to exit
Julie
@julieraines
Jul 13 2016 17:14
I figured that part - just didn't know how to get the ball rolling. Not a coder - THANKS!
Dana Lewis
@danamlewis
Jul 13 2016 17:14
might be a good place to stick a PR in with more clear instructions ;)
Julie
@julieraines
Jul 13 2016 17:15
exactly - I have a list of little things like that so I need to stop and do a few little PRs. Since I'm not a coder I can speak to that here and there
Dana Lewis
@danamlewis
Jul 13 2016 17:16
yup, do them now so a) others can benefit from them immediately and b) then no one duplicates your work unnecessarily :)
(now = sooner rather than later, I mean! :))
Julie
@julieraines
Jul 13 2016 17:21
I have a minute to do one so I'll do it now since it's my first official one (I don't count the adding my name to the list : ^ )
Dana Lewis
@danamlewis
Jul 13 2016 17:21
:)
Hannah Crabtree
@lollydaggle
Jul 13 2016 17:22
I've got a few things as well. @julieraines you go first and I'll see if you've caught what I have. Sounds like we're at similar spots in this process
Dana Lewis
@danamlewis
Jul 13 2016 17:23
:+1: after @julieraines PR gets merged, you’ll want to make sure you pull a fresh copy of openaps master before doing your PR, @lollydaggle
Chris Oattes
@cjo20
Jul 13 2016 17:33
@danamlewis might need to talk to you or scott about enacting basal rates later
Dana Lewis
@danamlewis
Jul 13 2016 17:33
:+1: @cjo20
Dana Lewis
@danamlewis
Jul 13 2016 17:38
:confetti_ball: happy first PR @julieraines!
Julie
@julieraines
Jul 13 2016 17:38
OK - done. let me know how it did
lol
Dana Lewis
@danamlewis
Jul 13 2016 17:39
:+1: made a comment which you should get an email notification about
Julie
@julieraines
Jul 13 2016 17:42
ok - let me make the changes (I need the practice!)
Dana Lewis
@danamlewis
Jul 13 2016 17:42
:) k
Julie
@julieraines
Jul 13 2016 17:47
i just went into the request and changed that instead of starting over - is that what i'm supposed to do?
Dana Lewis
@danamlewis
Jul 13 2016 17:48
yup, exactly!
Julie
@julieraines
Jul 13 2016 17:48
woohoo!
Dana Lewis
@danamlewis
Jul 13 2016 17:48
merged! :confetti_ball:
Julie
@julieraines
Jul 13 2016 17:49
wow - that's cool. so i will go back tonight and see if there are other little things like that. i had trouble in a couple spots that everyone helped me out with.
Dana Lewis
@danamlewis
Jul 13 2016 17:50
perfect! and what I’d say is PR your changes as you make them - you can change multiple files in your setup and do a PR, but if it’s going to be more than a day or so before you come back to make more, go ahead and PR that batch
Julie
@julieraines
Jul 13 2016 17:51
i agree - i just figured since i'm not a coder that i would mess it up but now i see that i can contribute in clarifying stuff for non-coders like me
Dana Lewis
@danamlewis
Jul 13 2016 17:52
yea. but you’ll need to stop saying “not a coder” because you’re learning ;)
Julie
@julieraines
Jul 13 2016 17:52
lol
Dana Lewis
@danamlewis
Jul 13 2016 17:52
but yes, great to contribute and make everything more plain language, regardless of level of technical expertise :)
Julie
@julieraines
Jul 13 2016 17:54
i guess it's more accurate to say not a developer of code . . . i'm great at copy and paste lol
^ going to paste that everytime someone says “I’m not an _(imaginary label)_” ;p
Julie
@julieraines
Jul 13 2016 17:58
exactly - love the link. thanks for your support and obviously having little experience with this hasn't stopped me yet with this or home improvement for that matter. DIY is my mantra ; ^ )
Dana Lewis
@danamlewis
Jul 13 2016 17:58
:)
Julie
@julieraines
Jul 13 2016 18:00
gotta go meet with my boss right now - thanks again!
Dana Lewis
@danamlewis
Jul 13 2016 18:01
:+1:
David Cintron
@loudestnoise
Jul 13 2016 19:11
So just learned if you have two Raspberry Pis on the same network you can’t try and SSH into them both using raspberrypi.local
guess I need to change the hostname on one ;)
Chris Oattes
@cjo20
Jul 13 2016 19:12
Yeah, conflicting hostnames isn't a good idea :P
Dana Lewis
@danamlewis
Jul 13 2016 19:12
rpi1, rpi2 etc ;)
David Cintron
@loudestnoise
Jul 13 2016 19:12
well I have wanted to rename my rig Pi to something fun
Pete Schwamb
@ps2
Jul 13 2016 19:15
I think your Loop name, “Skadoosh”, is awesome. :)
You should name your rpis after other kung fu panda characters.
live4sw
@live4sw
Jul 13 2016 19:21
Hi all, I am getting a recurring error every so often on pumphistory.json, I've noticed that @loudestnoise and @ddaniels1 have grappled with this as well. Loop will work for several hours, then it will get caught on this error several times in a row. Running Edison w/TI Stick
Jul 13 15:13:25 localhost openaps: Traceback (most recent call last):
Jul 13 15:13:25 localhost openaps:   File "/usr/local/bin/openaps-report", line 82, in <module>
Jul 13 15:13:25 localhost openaps:     app( )
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
Jul 13 15:13:25 localhost openaps:     self.run(self.args)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/bin/openaps-report", line 75, in run
Jul 13 15:13:25 localhost openaps:     output = app(args, self)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
Jul 13 15:13:25 localhost openaps:     return self.method.main(args, app)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
Jul 13 15:13:25 localhost openaps:     output = task.method(args, app)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
Jul 13 15:13:25 localhost openaps:     output = self.main(args, app)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 639, in main
Jul 13 15:13:25 localhost openaps:     for rec in self.range( ):
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 67, in __call__
Jul 13 15:13:25 localhost openaps:     for record in page:
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 46, in download_page
Jul 13 15:13:25 localhost openaps:     for record in self.find_records(page):
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare/models/__init__.py", line 157, in find_records
Jul 13 15:13:25 localhost openaps:     decoder = history.HistoryPage(response.data, self.inst)
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare/history.py", line 777, in __init__
Jul 13 15:13:25 localhost openaps:     if lib.BangInt(crc) != computed:
Jul 13 15:13:25 localhost openaps:   File "/usr/local/lib/python2.7/dist-packages/decocare/lib.py", line 235, in BangInt
Jul 13 15:13:25 localhost openaps:     ( x, y ) = ints
Jul 13 15:13:25 localhost openaps: ValueError: need more than 0 values to unpack
Jul 13 15:13:26 localhost openaps: No CGM data.
A reboot seems to get it working again for a while, generally.
David Cintron
@loudestnoise
Jul 13 2016 19:23
Hmm, I vaguely recall this
live4sw
@live4sw
Jul 13 2016 19:24
Yep, I found your msg when I searched for unpack
David Cintron
@loudestnoise
Jul 13 2016 19:24
I think I assumed this was my CareLink stick not being able to communicate with the pump
I see it says No CGM data at the end
but I’m thinking that’s just what your loop says if it fails maybe?
live4sw
@live4sw
Jul 13 2016 19:25
Yeah, it must be something else since I've been running TI stick for a couple of months now. The No CGM data. is kind of misleading since it just says that when there is a failure for any reason.
David Cintron
@loudestnoise
Jul 13 2016 19:25
Yeah, I think ValueError: need more than 0 values to unpack is the real error
live4sw
@live4sw
Jul 13 2016 19:25
It is weird, because it will throw that error a few times, then start working again, or sometimes just stop working entirely. In any situation, it will start working again post-reboot
David Cintron
@loudestnoise
Jul 13 2016 19:27
Well that’s built into computers. Rebooting fixes everything
:laughing:
live4sw
@live4sw
Jul 13 2016 19:27
This is my pumphistory.json report:
[report "monitor/pumphistory.json"]
device = pump
hours = 4.0
use = iter_pump_hours
reporter = JSON
David Cintron
@loudestnoise
Jul 13 2016 19:27
looks pretty standard
I think it’s a communication issue
are you using TI over USB?
live4sw
@live4sw
Jul 13 2016 19:28
yep
David Cintron
@loudestnoise
Jul 13 2016 19:28
extension cable?
live4sw
@live4sw
Jul 13 2016 19:28
yep, a short one
otherwise it won't fit on the breakout board i don't think
have people had issues with an extension cable?
David Cintron
@loudestnoise
Jul 13 2016 19:32
no, but it might be worth ruling out if you have another one
I mean idk if other people have had issues
GabeA23
@GabeA23
Jul 13 2016 19:32

Hey guys and gals. I had to flash my edison and after cloning my backup from Bitbucket and re-installing all of my vendors and devices, I'm having trouble with the ns-status device.

Whenever I initialize a report that uses the ns-status device, I get a "namespace" error as follows:

AttributeError: 'Namespace' object has no attribute 'clock'

It's referring to the clock argument in the ns-status.ini config file but I can't figure out what's wrong with it. I checked the output of monitor/clock.json and that report is working.

Here is my ns-status.ini config file:

[device "ns-status"]
fields = clock suggested enacted battery reservoir status
cmd = ns-status
args =
Scott Leibrand
@scottleibrand
Jul 13 2016 19:33
you can try running the ns-status command on its own (without openaps in front) to drill down...
GabeA23
@GabeA23
Jul 13 2016 19:34
so just type in ns-status?
Scott Leibrand
@scottleibrand
Jul 13 2016 19:34

yeah, or:
edison@edison-rl ~ $ ns-status --help
/usr/local/bin/ns-status <clock.json> <iob.json> <suggested.json> <enacted.json>

<battery.json> <reservoir.json> <status.json> [--uploader uploader.json]
[mmtune.json]

GabeA23
@GabeA23
Jul 13 2016 19:34
here's the output:
usage:  [ 'node', '/usr/local/bin/ns-status' ] <clock.json> <iob.json> <suggested.json> <enacted.json> <battery.json> <reservoir.json> <status.json> [mmtune.json]
Scott Leibrand
@scottleibrand
Jul 13 2016 19:35
then you'll need to add all those arguments to get it to do anything
so ns-status monitor/clock.json monitor/iob.json ...
GabeA23
@GabeA23
Jul 13 2016 19:36

okay I'll make sure all those arguments are legit.

It's weird that I don't have to specify the path of the arguments, just one word like "clock." Why is that?

Scott Leibrand
@scottleibrand
Jul 13 2016 19:37
those are specified in the report that calls the ns-status device
the device just has placeholder names
GabeA23
@GabeA23
Jul 13 2016 19:39
@scottleibrand I see. And what if my "enacted.json" file is actually called "enacted_temp_basal.json"? Can I account for that somehow?
live4sw
@live4sw
Jul 13 2016 19:40
@loudestnoise Interesting. Some more searching shows that many others have dealt with this error, which @spazholio referred to as the BangInt error, and that it is probably comms or parsing-related. It looks like there is a pending fix at openaps/decocare#1
Scott Leibrand
@scottleibrand
Jul 13 2016 19:40
@GabeA23 yeah, you'll want to pass all the correct file names in both your report config and here on the command line for testing
Paul Martin
@Spazholio
Jul 13 2016 19:46
@live4sw There's a fix for that in the works? I hadn't seen that.
GabeA23
@GabeA23
Jul 13 2016 19:48
Hmmm. I still can't figure it out. This is what my report looks like (my "suggested" file is called oref0.json, and my enacted file is called "enacted_temp_basal.json"):
[report "nightscout/openaps_status.json"]
device = ns-status
remainder =  monitor/clock.json monitor/iob.json predict/oref0.json enact/enacted_temp_basal.json monitor/battery.json monitor/reservoir.json monitor/status.json
use = shell
json_default = True
reporter = JSON
And this is what my ns-status.ini file looks like:
[device "ns-status"]
fields = clock oref0 enacted_temp_basal battery reservoir status
cmd = ns-status
args =
What else would I have to change?
I'm still getting the same "namespace object clock has no attribute" error
live4sw
@live4sw
Jul 13 2016 19:55
@Spazholio I thought that was what @bewest was referring to but not sure. How have you dealt with that? It has gradually become almost crippling to my 2 rigs
Jason Calabrese
@jasoncalabrese
Jul 13 2016 19:58
I think it's mostly a range/interference issue, I have some retries
live4sw
@live4sw
Jul 13 2016 20:00
Must be interference of some sort, it's a TI stick only about 5 feet from me...I do have an android phone in between acting as a hotspot and my NS rig, but nothing else seemingly crazy
hm
Jason Calabrese
@jasoncalabrese
Jul 13 2016 20:01
only 1 TI stick is in use?
so other pump comms
live4sw
@live4sw
Jul 13 2016 20:02
yep, just 1 here. i have 2 at home but they play nice
since i use wait-for-silence
live4sw
@live4sw
Jul 13 2016 20:09
gotta be some interference issue. it was throwing the error for about 20 minutes, now just worked, had been doing that intermittently for a while. it's just odd as the problem seems to have worsened over time
Jason Calabrese
@jasoncalabrese
Jul 13 2016 20:12
we get some weird interference sometime, where the RileyLink needs to be almost touching the pump, someday I'll get setup with SDR so I can see the interference
live4sw
@live4sw
Jul 13 2016 20:14
fair enough, kind of a bummer that there doesn't seem to be a clear solution, but at least not something specifically wrong with my installation it sounds like
Neal
@tnharvey
Jul 13 2016 20:16
Hi, anyone have a diagram for programming an XRF for a mmeowlink? Putting together an edison/breakout board/ XRF. Programming with the TI ccdebugger
Dana Lewis
@danamlewis
Jul 13 2016 20:18
@tnharvey might want to ask over in the mmeowlink channel
Neal
@tnharvey
Jul 13 2016 20:18
k, thanks Dana =]
eszcloud
@eszcloud
Jul 13 2016 21:01
Updating to G5 on an SD card with a new image (backup image hasn't been updated yet).
For some reason I'm seeing
pi@pancdev1 ~/myopenaps $ openaps use cgm config -G5
usage: openaps-use cgm [-h] USAGE ...
openaps-use cgm: error: argument USAGE: invalid choice: 'config' (choose from 'GetFirmwareHeader', 'ReadBatteryLevel', 'ReadBatteryState', 'ReadManufacturingData', 'ReadTransmitterId', 'battery', 'calibrations', 'glucose', 'insertion_time', 'iter_calibrations', 'iter_calibrations_hours', 'iter_glucose', 'iter_glucose_hours', 'iter_insertion_time', 'iter_insertion_time_hours', 'iter_meter_data', 'iter_meter_data_hours', 'iter_sensor', 'iter_sensor_hours', 'iter_sensor_insertions', 'iter_sensor_insertions_hours', 'iter_user_event_data', 'iter_user_event_data_hours', 'meter_data', 'scan', 'sensor', 'sensor_insertions', 'user_event_data')
Any ideas?
eszcloud
@eszcloud
Jul 13 2016 21:07
Also, for some reason sudo easy_install -ZU openaps isn't updating openaps
Scott Leibrand
@scottleibrand
Jul 13 2016 21:12
@GabeA23 did you run ns-status monitor/clock.json monitor/iob.json predict/oref0.json enact/enacted_temp_basal.json monitor/battery.json monitor/reservoir.json monitor/status.json ?
David Cintron
@loudestnoise
Jul 13 2016 21:13
also depending on when @GabeA23 looked at the docs, ns-status and ns were mixed in as a device, so I wonder if that could be it
Martin Haeberli
@mhaeberli
Jul 13 2016 21:49
@eszcloud - what version of openaps would you expect to be installed by easy_install ?
Lynne Butts
@flutelynne_twitter
Jul 13 2016 22:13
@eszcloud Try openaps use cgm config --G5
Two dashes
Jason Calabrese
@jasoncalabrese
Jul 13 2016 22:41
the --G5 option might not be on master
mariano42
@mariano42
Jul 13 2016 22:56
hey all... trying to get the visualization stuff setup on my nightscout site... in my azure app settings i have... Enable = bridge careportal iob basal cob bwp cage openaps pump , I confirmed that the API_SECRET is good, and DEVICESTATUS_ADVANCED = true. When I go into Nightscout settings I still do not see the openaps or pump plug ins. Can anyone tell if I am missing anything else? My NS version is 0.8.4
Jason Calabrese
@jasoncalabrese
Jul 13 2016 22:57
you'll need the Nightscout dev branch
mariano42
@mariano42
Jul 13 2016 22:59
ah.. for some reason I thought that branch just added Meal Assist.. didn't realize it had the other stuff too. Thanks @jasoncalabrese
Jason Calabrese
@jasoncalabrese
Jul 13 2016 23:00
getting closer to a NS release
lots of releases almost ready
Celia
@celia_hunko_twitter
Jul 13 2016 23:12
Hi. I'm new to this and just starting to do my research. I have a Medtronic Paradigm pump that I currently use. Would you all recommend getting a second pump to work with the APS, or OK to use the main device? I feel like a backup would be a good idea, but not sure where to get one since they are expensive. :) Thanks so much. Also, thanks for all you do. This is changing lives! <3
Scott Leibrand
@scottleibrand
Jul 13 2016 23:47
does your existing pump have loopable firmware? (see the hardware page) If so, you can use it. most people do try to find a backup pump, even if it's a non-loopable one, as the loopable pumps are all out of warranty.