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

21st
Jul 2016
Martin Haeberli
@mhaeberli
Jul 21 2016 00:48
@bewest (or maybe just the group at large) - trying to crawl / walk / then maybe run - I’d like to initially run openaps / oref0 purely on Nightscout inputs - Nightscout for CGM and Nightscout pump data (which is coming in through RileyLink) in lieu of local pump data … Also trying to get the OpenAPS pill to work - my goal for now is to try to get predictions and recommendations out of it. I may be re- crossing old territory - I know @bewest was very helpful some weeks ago but I didn’t then speak as much of the language as I do now...
Julie
@julieraines
Jul 21 2016 00:48
thanks @danamlewis @Spazholio @dm61 @scottleibrand this morning - I got yanked into being a chauffeur and working so only just now trying to fix my NS preflight issues (I took out my api secret for privacy but I’ve typed this one in many times and usually get the error below)
nightscout autoconfigure-device-crud https://sarahraines.herokuapp.com <apisecret>
Traceback (most recent call last):
File "/usr/local/bin/openaps-device", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-device')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-device", line 35, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-device", line 29, in run
self.commandsargs.command
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/devices/add.py", line 23, in main
app.config.add_device(device)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/config.py", line 43, in add_device
self.add_section(section)
File "/usr/lib/python2.7/ConfigParser.py", line 264, in add_section
raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'device "ns"' already exists
process://ns/nightscout/ns https://my.nightscout.host e6fc892e8e88235a476d197de3dfbef3f2db53d0
Paul Martin
@Spazholio
Jul 21 2016 00:49
You’ve already got a ns device added. Get rid of that and try the command again? I think it’ll work then.
Martin Haeberli
@mhaeberli
Jul 21 2016 00:50

@julieraines have you had a chance to try the equivalent of:

curl -v https://xxxcgmsite.azurewebsites.net/api/v1/experiments/test --header "api-secret: <api-secret>“

against your nightscout heroku site ? it should return something like :

{"status":"ok"}

at the end

@julieraines what @Spazholio said
Paul Martin
@Spazholio
Jul 21 2016 00:53
Also, might want to edit the bottom of that paste. I think your API secret snuck in.
Martin Haeberli
@mhaeberli
Jul 21 2016 00:53
the above hint just checks that the api secret is working (but needs a hashed api secret)
@bewest - I haven’t installed it yet, but I just purchased a tiny RTC for RPi 2 / 3 that just pops on to the header pins - should be helpful for those people when their RPi can’t reach a Network Time server “ JBtek DS3231 RTC Real Time Clock Module for Raspberry Pi
Julie
@julieraines
Jul 21 2016 00:59
@mhaeberli - I haven’t tried it - trying now and it’s hanging
Scott Leibrand
@scottleibrand
Jul 21 2016 00:59
@mhaeberli not sure if anyone is doing any looping on pumphistory data downloaded from NS. it might work ok, though: I can't think of anything we don't upload as a treatment.
Martin Haeberli
@mhaeberli
Jul 21 2016 00:59
@scottleibrand thx … I’ll have to get my head around the reports …
@julieraines - the other hint is that the api secret on autoconfigure-device-crud is cleartext, not hashed, at least in my experience
whereas the one on the “experiments” url I just sent is hashed
Martin Haeberli
@mhaeberli
Jul 21 2016 01:05
@julieraines there’s a bit more information at: https://github.com/nightscout/cgm-remote-monitor/wiki/API-v1.0.0-beta-Security
Julie
@julieraines
Jul 21 2016 01:29
I deleted the device ns and then redid my autoconfigure-device-crud which seemed to work much better but still getting a false and my NS is up and running right now so I’ll just keep hammering at it until something breaks. THANKS!
Paul Martin
@Spazholio
Jul 21 2016 01:30
Check to see if you’re using your API secret, or your hashed API secret.
Julie
@julieraines
Jul 21 2016 01:32
here’s what I’m doing - and I’ve taken out my real api secret - so I thought this was what was correct based on hashed/plainnightscout autoconfigure-device-crud https://sarahraines.herokuapp.com plainapisecret
oops
nightscout autoconfigure-device-crud https://sarahraines.herokuapp.com plainapisecret
Paul Martin
@Spazholio
Jul 21 2016 01:33
Try with the hashed? Did the curl command work?
Dragan Maksimovic
@dm61
Jul 21 2016 01:33
looks good; no errors when you do that? (no need to hash api_secret there)
Martin Haeberli
@mhaeberli
Jul 21 2016 01:35
:+1: @julieraines
Julie
@julieraines
Jul 21 2016 01:40
no errors when I do that - it adds the ns process piece. now I’m curling (no need to hash when my BRAIN is clearly hash right now : ^ )
japrobo
@japrobo
Jul 21 2016 01:50

Good evening everyone. Trying to troubleshoot an error in my loop.

I can successfully invoke all of the reports that go into ns-upload.

pi@raspberrypi:~/myopenaps $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
{"delta":-7,"glucose":72,"avgdelta":-6.333}
{"duration":0,"rate":2.875,"temp":"absolute"}
{"iob":0.205,"activity":0.0099,"bolussnooze":0,"basaliob":0,"netbasalinsulin":0,"hightempinsulin":0}
{"max_iob":3,"type":"current","dia":3,"skip_neutral_temps":false,"current_basal":0.95,"max_daily_basal":1.4,"max_basal":2.9,"min_bg":140,"max_bg":150,"sens":36}
reporting enact/suggested.json
pi@raspberrypi:~/myopenaps $ openaps report invoke enact/enacted.json
pump://JSON/set_temp_basal/enact/enacted.json
reporting enact/enacted.json
pi@raspberrypi:~/myopenaps $ openaps report invoke monitor/battery.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pi@raspberrypi:~/myopenaps $ openaps report invoke monitor/reservoir.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pi@raspberrypi:~/myopenaps $ openaps report invoke monitor/status.json
pump://JSON/read_status/monitor/status.json
reporting monitor/status.json

But when I got to use ns-status device, I get this same error every time. Same error as if I try to invoke monitor/upload-status.json report. Any ideas what I should try next?

pi@raspberrypi:~/myopenaps $ openaps use ns-status shell JSON monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/battery.json monitor/reservoir.json monitor/status.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 90, in main
    command.extend(info.get('args').split(' '))
AttributeError: 'NoneType' object has no attribute 'split'
Dragan Maksimovic
@dm61
Jul 21 2016 02:06
how does your ns-status.ini look like?
Ben West
@bewest
Jul 21 2016 02:06
@mhaeberli currently, running openaps purely off of NS data is going to be hard and require lots of custom/special stuff as well as new development
the treatments data is different, so something special is needed
Martin Haeberli
@mhaeberli
Jul 21 2016 02:08
@bewest thx. - if it helped any (assuming that NS has the underlying data), I could write a piece of python code to reformat treatments ...
Ben West
@bewest
Jul 21 2016 02:08
sure, it does have all the data, it's just re-organized a bit
Martin Haeberli
@mhaeberli
Jul 21 2016 02:08
@bewest - but it sounds like I should try to get night - time (local) loops running first
japrobo
@japrobo
Jul 21 2016 02:09
@dm61 like this:
[device "ns-status"]
fields = clock iob suggested enacted battery reservoir status
cmd = ns-status
Ben West
@bewest
Jul 21 2016 02:09
yeah, using mmeowlink or the builtin carelink support will go easiest, since everything was built assuming the output from that
Martin Haeberli
@mhaeberli
Jul 21 2016 02:10
ok - I’m using mmeowlink as its range seems happier than carelink ...
Ben West
@bewest
Jul 21 2016 02:10
you shouldn't need the ns-status device, it's built-in to the ns device
japrobo
@japrobo
Jul 21 2016 02:16

@bewest that file might be left over from earlier tries, we had a lot of trouble getting this to work in the first place. My ns.ini file looks like this:

[device "ns"]
fields = oper
cmd = nightscout
args = ns $NIGHTSCOUT_HOST $API_SECRET

But our openaps.ini file says we are using ns-status device in this report. And it is working fine in another loop that is running. Should we change this?

[report "monitor/upload-status.json"]
suggested = enact/suggested.json
status = monitor/status.json
use = shell
reservoir = monitor/reservoir.json
reporter = JSON
battery = monitor/battery.json
clock = monitor/clock-zoned.json
json_default = True
device = ns-status
remainder = 
iob = monitor/iob.json
enacted = enact/enacted.json
Martin Haeberli
@mhaeberli
Jul 21 2016 02:17
@bewest -is the major part reformatting treatments ? (for using NS as the data source for pump info, etc?) or can you remind me what other pitfalls I should plan to fall into?
Paul Martin
@Spazholio
Jul 21 2016 02:42
When using wpa_supplicant.conf what is the range for the priority field? 0-100? 0-1000?
Dragan Maksimovic
@dm61
Jul 21 2016 02:45
@japrobo what happens if you do:
openaps use ns shell status monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/battery.json monitor/reservoir.json monitor/status.json
japrobo
@japrobo
Jul 21 2016 02:48
@dm61 On my way to bed. I'll try that tomorrow and let you know how it goes. Thanks for your support!
Dragan Maksimovic
@dm61
Jul 21 2016 02:49
:+1:
Scott Leibrand
@scottleibrand
Jul 21 2016 04:02
@Spazholio I have a -999 for priority in my wpa_supplicant
so it's probably any signed integer I'd guess
Martin Haeberli
@mhaeberli
Jul 21 2016 04:44
trying to rezone a json file - where can I find the list of valid TIMEZONES ? Also, what is a good incantation style?
Ben West
@bewest
Jul 21 2016 06:01
best practice for tz rezone is to provide a --date spec, which names the field containing the date to rezone
--timezone is not needed, but is fed to dateutil.tz.gettz
by default, it's not set, which causes it to look at the system's timezone
assuming your system time is correct (see sudo dpkg-reconfigure tzdata to set it), this will cause it to float over daylight savings time correctly
Ben West
@bewest
Jul 21 2016 06:37
that's assuming system time is correct and tracked by ntp
John Dodds
@johners97
Jul 21 2016 11:56
Got my raspberry pi 3 today, and it connects to wifi automatically...so I skipped some steps. I used PuTTy to open the terminal. It surely works! Says logged in (ip address etc) So I am installing openaps on it through that
Does this sound ok?
How do I know if my raspberry pi is actually having files being uploaded
Ed Nykaza
@ed-nykaza
Jul 21 2016 12:52
Hello everyone...I am happy to report that I have had the closed loop running for the past 3 days and have had some great results! Thank you!
On an unrelated topic, I recently upgraded my macbook pro to el capitan, and am no longer able to upload the medtronic pump because it doesn't recognize the White USB Carelink. Has anyone else run into this issue and if so, do you know of a solution?
John Dodds
@johners97
Jul 21 2016 13:20
got it working! just learning how to use openaps..
Paul Martin
@Spazholio
Jul 21 2016 13:24
@scottleibrand Thanks. That's your "wildcard" one? Also...what's the format for your wildcard one again? =)
Paul Martin
@Spazholio
Jul 21 2016 13:31
Also, has anyone set up ethernet over usb0 on the Edison? I'd love it if I could get a static IP on there that I can reach from my Pi3. So instead of having to use screen (which has a problem with the proper display of...everything) I'd be able to SSH into the usb0 IP address. I've got it set up on the Edison fine, and can communicate OUT from the Edison, but I can't get to that IP from the Pi3. I don't know how to set up a USB->ethernet interface on it.
Paul Martin
@Spazholio
Jul 21 2016 13:42
Oh wait. Most of you are still asleep. Now I know how @CrushingT1D probably feels. =)
Jim is CrushingT1D
@CrushingT1D
Jul 21 2016 14:00
Haha. Trying to sleep...
Martin Haeberli
@mhaeberli
Jul 21 2016 14:26

@ed-nykaza re el-capitan and White USB Carelink - I have had exactly the same experience and frustration. In my case, I have merely been trying to use the Carelink with the Mac as Medtronic intended - to upload data to the CareLInk Portal. My non-solution for that has been in three parts: a) Use the Bayer Link Meter that is also compatible with the Medtronic pumps; b) use Macintosh Safari; c) very carefully and persistenly configure Safari to allow the Medtronic CareLink Portal Java code to run. The Medtronic instructions on this are somewhat helpful, but imperfect; however, I have nothing more to add here besides: “be patient and persistent". Even so, sometimes I have to refresh the browser page, even after successful data upload, to get another upload to work - in my case, i often upload the pump and the Bayer Link Meter in the same session

all that said, if your purpose is to use CareLink USB with OpenAPS on El Capitan, I believe yesterday I saw a suggestion from @bewest that the TI Stick with mmeowlink can work, but I haven’t tried that myself.

@johners97 - congratulations on getting as far as you have !
John Dodds
@johners97
Jul 21 2016 14:29
I think theres something wrong with the documentation
pi@raspberrypi:~/Documents/tutorial-hello $ openaps use  fake-cgm shell
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 97, in main
    command = shlex.split(' '.join(command))
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 172, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation
"openaps use fake-cgm shell"
Is the tutorial wrong in telling me that
Martin Haeberli
@mhaeberli
Jul 21 2016 14:32
@johners97 sorry, at the moment I don’t have enough experience with the fake devices ...
John Dodds
@johners97
Jul 21 2016 14:38
It's ok I found the problem:D
I put quotation marks in the wrong place back in command line
Martin Haeberli
@mhaeberli
Jul 21 2016 14:47
:+1:
Paul Martin
@Spazholio
Jul 21 2016 15:03
HAH! USB->ethernet working finally. I can use my freaking Pi as a portable development jumping-off point for working on the Edisons without having to rely on screen. Is there a way in the /etc/network/interfaces file to basically try DHCP, but to fail back to a specified static IP if DHCP isn't available?
Ed Nykaza
@ed-nykaza
Jul 21 2016 15:11
Yes, @mhaeberli this is very frustrating, as all I want to do is upload the data into the Medtronic site. I believe the root cause has something to do with the way El Capitan handles USB devices and Medtronic has not adapted to this change. Nonetheless, thanks for the information.
Martin Haeberli
@mhaeberli
Jul 21 2016 15:37
@ed-nykaza your analysis of root cause is correct, to my best understanding, with respect to the CareLink stick proper. Separately, the only problems I have seen using a Bayer Link as a proxy for the CareLink have been getting the java runtime security magic right.
John Dodds
@johners97
Jul 21 2016 16:22
I use the Medtronic Veo insulin pump. At the moment I have no CGMS records because the sensors haven't arrived. I have declared my insulin_pump as a device, however, since I use medtronic CGM, it is not necessary to declare a cgm as a device. So, how do I get my pump to communicate with my device. I have my Carelink. What do I do next?

In order to

openaps use insulin_pump model

do things like that^
Hannah Crabtree
@lollydaggle
Jul 21 2016 16:35
@johners97 have you configured it with it's serial number? The carelink should auto communicate once you plug it in (at least mine did)
^ configured the pump with its serial number
John Dodds
@johners97
Jul 21 2016 16:37
omg that is amazing
L:DDDD
bparrish0
@bparrish0
Jul 21 2016 16:39
Hi everyone, my 722 is giving A33 errors when priming so it looks like I have to go back to my 530G for now. What's the best/newest pump that I should be looking for as a replacement? A 723? I'm in the US
John Dodds
@johners97
Jul 21 2016 16:39
thank you:)
Paul Martin
@Spazholio
Jul 21 2016 17:00
@sarahspins Question for you - I think you were the one that was saying that you were able to get close to 5 days out of your Pebble Time. Do you have notifications/vibration disabled?
sarahspins
@sarahspins
Jul 21 2016 17:01
@Spazholio no, but I do have the vibe set on the lowest setting
Paul Martin
@Spazholio
Jul 21 2016 17:01
Do you have email and text notifications? That sort of thing?
I'd love it if I could choose the type of notification/vibration on a per-app basis. Maybe later on. As in, I don't care if I get a FB message - don't vibrate. But when my rig goes down? Freaking vibrate!
sarahspins
@sarahspins
Jul 21 2016 17:03
@Spazholio you can "mute" notifications from specific apps
they're still going to the pebble, you just don't get alerted
sort of like when you have them "off" - they're still there
Pebble markets the Time as having a 7 day battery life, FWIW.. I've never gotten that long
and I normally wear my round, which is much shorter (but still two full days for me)
Paul Martin
@Spazholio
Jul 21 2016 17:04
Oh yeah, but I'd rather it let me customize a bit further. 7 days, HAH! I'm going through their suggestions on how to optimize battery life. So when I have to complain to them, I can already say I've done everything they've suggested. Their "Don't use data-driven watchfaces" is gonna be a problem though. =)
sarahspins
@sarahspins
Jul 21 2016 17:05
HOWEVER, I have to say, the watchface can make a difference... I'm currently trying out CGM Skyline and I personally cannot stand the vibration it does, I may edit the code and rebuild it, because it's WAY over the top and unnecessary IMO
@Spazholio yeah... but considering plenty of people do without experiencing huge problems...
I still got two days out of it, but I disabled all alarms in the watchface :P
Paul Martin
@Spazholio
Jul 21 2016 17:06
Well, CGM Skyline has proven to be NO better than Nightscout in terms of battery life, so I'm likely going to switch back. Either to Nightscout, or Urchin. Or both - I like the easy readibility of Nightscout, but the info overload of Urchin. =)
sarahspins
@sarahspins
Jul 21 2016 17:06
Urchin doesn't work on round :(
and I haven't felt like setting it up on my time yet... as I mentioned before it's my "kayaking" pebble :)
and I haven't been out in over a month
(I was out of town for most of that)
Paul Martin
@Spazholio
Jul 21 2016 17:07
Ever thought of giving that a go? I know that @mddub has a "wishlist" issue on GitHub that several people have been contributing to.
"Giving that a go" == "making Urchin work for Round"
sarahspins
@sarahspins
Jul 21 2016 17:08
Um.... thought about, sure, have ability to do so, don't know :P
Paul Martin
@Spazholio
Jul 21 2016 17:09
You seem to know your way around stuff, I'll bet you could. =)
sarahspins
@sarahspins
Jul 21 2016 17:10
possibly.. there's this issue of spare time though :+1:
3 kids, summer... lots of things are on the "I'll get to that later" pile
Paul Martin
@Spazholio
Jul 21 2016 17:11
Yep. Know how that goes. =)
Bog Dan
@bogdangorescu
Jul 21 2016 17:53
Hello
I have everything setup for a open loop...except for the NS part: is there any documentation that explains how to do it correctly?
Dana Lewis
@danamlewis
Jul 21 2016 17:57
@bogdangorescu have you read through this part of the OpenAPS docs yet? https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/index.html
Bog Dan
@bogdangorescu
Jul 21 2016 18:05
Yes, I did, but I don't know what to do to obtain recently/combined-treatments.json .
Julie
@julieraines
Jul 21 2016 18:33
i’m struggling with this same part
pi@raspberrypi:~/sasha $ openaps use ns shell preflight
falsepi@raspberrypi:~/sasha $ curl -sg https://gist.githubusercontent.com/bewest9ca1c144b845382c885138a8f66e/raw/181c5d6f29cd6489ecc9630786cf2c4937ddde79/bewest-aliases.json | openaps import
Traceback (most recent call last):
File "/usr/local/bin/openaps-import", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-import')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-import", line 89, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-import", line 77, in run
candidates = json.load(args.input)
File "/usr/lib/python2.7/json/init.py", line 290, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
when I openaps use ns shell preflight I get false
when I curl I get the error messages
I’ve added the ns device and my apisecret and that seems fine
Julie
@julieraines
Jul 21 2016 18:38
and I think a JSON report or something is missing but can’t tell what
Pretty sure that's why your second command isn't working.
(I tried the curl command as well and got the same thing)
Julie
@julieraines
Jul 21 2016 18:57
400: Invalid request
how rude - i am never invalid 🤓
Dragan Maksimovic
@dm61
Jul 21 2016 18:57
@julieraines that curl above would I think load a bunch of alias examples from Ben West; something is wrong with the link, which is why it gives you an error. I would not try to correct that curl, because that would possibly overwrite stuff you have already done, possibly creating more problems. I'd focus on why ns preflight is returning false. That's a relatively isolated problem
Julie
@julieraines
Jul 21 2016 18:58
ok - my nightscout is running and i’ve upgraded it per the walkthrough
Dragan Maksimovic
@dm61
Jul 21 2016 18:58
do you have API_SECRET defined on heroku?
Julie
@julieraines
Jul 21 2016 18:59
yes and i was able to autoconfigure that ns device so it’s there and there was no error message once i deleted the old ns and added the correct one
process://ns/nightscout/ns https://sarahraines.herokuapp.com fe19322e…..(deleted for safety)
Dragan Maksimovic
@dm61
Jul 21 2016 19:02
that all should be fine; hmm, I've got to go now - hope you get this sorted out - will check later today
Julie
@julieraines
Jul 21 2016 19:02
thanks - fingers crossed!
Scott Leibrand
@scottleibrand
Jul 21 2016 19:07
@Spazholio
network={
        key_mgmt=NONE
        priority=-999
}
Ben West
@bewest
Jul 21 2016 19:11
I keep lots of notes in my gist area https://gist.github.com/bewest
Julie
@julieraines
Jul 21 2016 19:36
thanks @bewest - nice octopus cat - i’m adding and invoking reports manually to see if i can get this ball rolling (and fighting to get my daughter to keep her phone sending data to nightscout - seriously!)
Paul Martin
@Spazholio
Jul 21 2016 19:37
@scottleibrand Thanks. Wrote it down this time. =)
There needs to be some sort of script that gets invoked with that usage to handle captive portals. =)
Lynne Butts
@flutelynne_twitter
Jul 21 2016 20:18
@ed-nykaza To get just the Carelink to read from the pump (not OpenAPS-wise, but just for pump info), you would need to use InternetExplorer. Ugh. But to just use the Carelink for OpenAPS, plug it into the RPi. I don't know if you were looking to just be able to use Carelink for general pump reports on its own.
Ed Nykaza
@ed-nykaza
Jul 21 2016 20:27
@flutelynne_twitter thanks. Yes, I am able to get the pump data through the RPi, and able to run openAPS. However, I want to be able to upload the data to the care link database so that I can view the data in Blip (Tidepools viewing data tool), and so that I can share with our endocrinologist. I, unfortunately, only have a MacBook Pro (which I just upgraded to El Capitan) and a chrome book, and therefore cannot upload with internet explorer.
Martin Haeberli
@mhaeberli
Jul 21 2016 20:31
@ed-nykaza can you get a Bayer Link Meter that can be linked to your pump? If so, as I suggested earlier, it can likely be made to work with Safari on your MacBook Pro. There is also a separate discussion going on about the possibility of uploading pump data from Nightscout or some other way into Tidepool using their API, although that is not happening yet ...
Lynne Butts
@flutelynne_twitter
Jul 21 2016 20:32
@ed-nykaza I have an old Lenovo Notebook that works for this. If you set up Nightscout, your openaps info will go to NS, and you can view many different reports from there. My endo is very happy with NS reports. Pump profile info will be entered by you to match in the NS profile area, which can be printed, too.
Ed Nykaza
@ed-nykaza
Jul 21 2016 20:35
@mhaeberli yes, getting the Bayor link is on my short list, and @flutelynne_twitter @mhaeberli yes, I'll probably go down the road of getting nightscout setup. Thank you both for the reply!
Lynne Butts
@flutelynne_twitter
Jul 21 2016 20:38
You're welcome.
Dana Lewis
@danamlewis
Jul 21 2016 20:42
@ed-nykaza NS is also great for visualizing loop activity
Julie
@julieraines
Jul 21 2016 20:46
pi@raspberrypi:~/sasha $ openaps use ns shell preflight
false
and i’ve added my api secret correctly
and i’ve got nightscout data on the website
any other things that can cause this?
Kim St. Dennis
@kimstdennis_twitter
Jul 21 2016 21:08
@danamlewis got a question about this PR, openaps/docs#317 ; does read_bg_targets have the capability to read from NS as well as the pump? and if so, how does it select which targets to use?
Dana Lewis
@danamlewis
Jul 21 2016 21:18
@kimstdennis_twitter You’ll need dev branch of oref0 for temp targets, and will need to download the temp targets from NS and add that file as an input to the profile.json report, i.e.: https://github.com/scottleibrand/openaps-sh/blob/refresh-loops/setup.sh#L133
Kim St. Dennis
@kimstdennis_twitter
Jul 21 2016 21:18
@danamlewis Ahhh, I knew I was missing something there. thanks! :)
Dana Lewis
@danamlewis
Jul 21 2016 21:18
:+1:
since AMA is now in dev of oref0, may be time to revisit this (openaps/docs#288) and update the instructions for showing people how to get on AMA and auto-sensitivity, with additions on how to adjust auto-sensitivity settings and also how to add temp target capabilities
just added a note there along those lines. so if someone’s looking for a way to contribute, tackling some of those would be good :)
dougtakeuti
@dougtakeuti
Jul 21 2016 22:10
Hey there, we were offline for 12 hours. When I restarted the loop, it started to report iob=0 when it shouldn't. All the reports required for the calculate-iob process exist and look ok. pump-history-zoned.json in particular contains all the bolus info that would generate nonzero iob. What is the oref0 syntax to check this? oref0 calculate-iob monitor/pumphistory-zoned.json monitor/profile.json monitor/clock.json?
Scott Leibrand
@scottleibrand
Jul 21 2016 22:21
yeah, that looks right. does it report zero too?
John Dodds
@johners97
Jul 21 2016 23:06
How do you issue a bolus command? openaps use <insulin_pump> bolus ? I'm sure something else has to be done
danamlewis @danamlewis gives the usual warnings about being super careful doing boluses, and in fact doesn’t recommend doing boluses this way
John Dodds
@johners97
Jul 21 2016 23:11
I have max set bolus at 10 units anyway... :)
I just wanna see if it works
Scott Leibrand
@scottleibrand
Jul 21 2016 23:30
10 units is crazy high for most PWDs. :-)
to answer your question, you have to give the openaps use pump bolus command a valid json file as input
sarahspins
@sarahspins
Jul 21 2016 23:33
MM doesn't have a max delivery option like Animas does, do they? Animas had a 2 hour "limit" that you could set, rather than just a max bolus
Scott Leibrand
@scottleibrand
Jul 21 2016 23:33
unfortunately not. one more reason we never bolus remotely.
sarahspins
@sarahspins
Jul 21 2016 23:34
yeah, that IMO seems like a huge oversight on MM's part
and not even with the more recent pumps... I had a remote for my 512
I never really used it, but I am sure I still have it somewhere
Jason Calabrese
@jasoncalabrese
Jul 21 2016 23:39
with temp targets and adjustable limits theres really no reason to bolus remotely
at one point I thought I needed it, but it's just too hard to make safe
Scott Leibrand
@scottleibrand
Jul 21 2016 23:41
:+1:
John Dodds
@johners97
Jul 21 2016 23:41
Yeah, fair enough. Better safe than sorry!
a idea I wrote up for unannounced meal testing. obviously if you're willing to do announcements you could do better, even without boluses
John Dodds
@johners97
Jul 21 2016 23:45
However, I would like to (experimentally may I add) command my pump to do a temporary basal. Firstly, my question, how do I create the json file with the code; and what do I need to enter in the terminal to do it (before I continue to the next step with NightScout setup)
Dana Lewis
@danamlewis
Jul 21 2016 23:45
have you learned how to do -h yet?
John Dodds
@johners97
Jul 21 2016 23:45
I have:)
Dana Lewis
@danamlewis
Jul 21 2016 23:46
ok :) I would start -h’ing for some of your exploration to see some of the different things you can do at various levels
Scott Leibrand
@scottleibrand
Jul 21 2016 23:46
specifically openaps use pump bolus -h
Jason Calabrese
@jasoncalabrese
Jul 21 2016 23:46
why start with unannounced, could start with announcing but not bolusing
Dana Lewis
@danamlewis
Jul 21 2016 23:46
also, @bewest has written up some good stuff here to help you as you’re exploring: http://openaps.readthedocs.io/en/latest/docs/openaps-guide/core/medtronic.html#openaps-use-pump
Scott Leibrand
@scottleibrand
Jul 21 2016 23:47
@jasoncalabrese how would you structure the announcement exactly?
Jason Calabrese
@jasoncalabrese
Jul 21 2016 23:47
but I still haven't see ama keep up with a partial bolus without the faster bolus snooze
enter carbs via NS, but no bolus
could even add the carbs field with eating soon
Scott Leibrand
@scottleibrand
Jul 21 2016 23:48
so similar to phase 2, but more precision on the carb estimate?
Jason Calabrese
@jasoncalabrese
Jul 21 2016 23:49
yeah I guess
Scott Leibrand
@scottleibrand
Jul 21 2016 23:50
certainly wouldn't hurt to do a phase 0 (or renumber them all) where you enter a best-guess carb estimate at/before the meal
Jason Calabrese
@jasoncalabrese
Jul 21 2016 23:51
yeah, if that doesn't work, phase 1 isn't going to work
Scott Leibrand
@scottleibrand
Jul 21 2016 23:52
well, "work" isn't a binary thing: it's a question of how big a meal you can do without going too high
even with no meal assist, you can probably do a 10g snack and it'll not go too high and eventually bring BG back down
Dana Lewis
@danamlewis
Jul 21 2016 23:52
and each person’s “too high” is going to be individualized
Scott Leibrand
@scottleibrand
Jul 21 2016 23:53
exactly