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

18th
Jul 2016
Chris Oattes
@cjo20
Jul 18 2016 00:00
@sarahspins instead of openaps report invoke, you type openaps use <device> <command> <arguments>, like openaps use oref0 meal ...
Terri Lyman
@tatigger
Jul 18 2016 00:01
So what if you have more than one instance of open aps? I don't, nor do I know why one would, but that ^^begs the question, @cjo20
Oh, Ha! You aren't talking to me!
Chris Oattes
@cjo20
Jul 18 2016 00:03
@tatigger cat is usually used to write out the contents of a file to the command line
so cat openaps.ini would write out openaps.ini for you
Terri Lyman
@tatigger
Jul 18 2016 00:03
ok. Thanks. : )
sarahspins
@sarahspins
Jul 18 2016 00:04
@tatigger it's not a problem... maybe you'd create another instance to test something :)
sarahspins
@sarahspins
Jul 18 2016 00:12
@cjo20 same thing
although I did just update my repository, so the output is marginally different
Terri Lyman
@tatigger
Jul 18 2016 00:14
One other thing. I want to create a log of my steps, so you guys can help me find my errors...and eventually I can learn to find them too. So do you run : script <file name> on your mac hard drive using terminal, or within your openaps instance on the pi?
sarahspins
@sarahspins
Jul 18 2016 00:14
}pi@openAPS:~/sarah $openaps use meal shell monitor/pump-history.json oref0-monitor/profile.json monitor/clock.json monitor/glucose.json settings/basal_profile.json
14 0 Sun Jul 17 2016 16:05:45 GMT-0500 (CDT)
!!>++--+-+>++-->+++++-+---++-->>>-+--+--+++>>++-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!+++-+-++--+-+++=+------+-+--+++-+-+>++++-+++=+--=+===++==++-==----++----------+-------===++==-=--+-----+=-+-+---=--=-----++----------=----+-+!!!!!!!!!!!!!!!!!!!+--+-+++-+--+-+=+=+-+->-+-------------+++>>>---+--->>>+=+++ 52% of non-meal deviations negative (target 45%-50%)
Excess insulin sensitivity detected: Ratio limited from 0.6703296703296704 to 0.7
ISF adjusted from 28 to 40
NaN
{
  "boluses": 3.9, 
  "mealCOB": null, 
  "carbs": 14
}
@tatigger you can just save the terminal console output
Terri Lyman
@tatigger
Jul 18 2016 00:15
Wow! The pi can see insulin sensitivity changing?!!! Where do you save it?
@sarahspins where do you save the output, not your magic code there
sarahspins
@sarahspins
Jul 18 2016 00:16
wherever you want... just hit ctrl^s while focused on the terminal window you want to save
Terri Lyman
@tatigger
Jul 18 2016 00:17
Thanks again : )
sarahspins
@sarahspins
Jul 18 2016 00:17
@tatigger this is part of meal-assist, it's supposedly advanced
I'm not using it yet and it's working and I'm trying to figure out why
Terri Lyman
@tatigger
Jul 18 2016 00:17
Woot, I'm so ready for advanced!
sarahspins
@sarahspins
Jul 18 2016 00:18
this all started because I had to stare at a tooltip for too long... just sayin' :P
Dana Lewis
@danamlewis
Jul 18 2016 00:30
Make sure to read all the warnings about regularly entering carbs before using meal assist or advanced meal assist+auto sensitivity
I also recommend running a standard loop for a while first before jumping to those, @tatigger , to make it easier to understand what/how/why it's adjusting differently than standard basic loop
Terri Lyman
@tatigger
Jul 18 2016 00:31
Oh, yes :) I still don't have any clue what I am doing.
sarahspins
@sarahspins
Jul 18 2016 00:37
probably stupid question about battery monitoring in NS... if I add PUMP_WARN_BATT_V to the configuration in azure, does that create an alert that I'd get through pushover if the voltage drops below what I set?
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:40
yes
sarahspins
@sarahspins
Jul 18 2016 00:40
awesome :+1:
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:40
you need to enable alerts for the pump plugin too
the defaults are for lithium batteries
sarahspins
@sarahspins
Jul 18 2016 00:41
how do I do that?
Terri Lyman
@tatigger
Jul 18 2016 00:41
Ok, I have a Dex G4/share, but I do not use SHARE. Does installing the BLE helpers let the Pi talk to the dex via bluetooth, like my Nightscout rig, or is trying to access the glucose data through Dex's server? I want the data to come directly from the receiver because sometimes my Nightscout lags.
sarahspins
@sarahspins
Jul 18 2016 00:43
@tatigger it would pull data off the receiver, it's not going to share unless you're using a phone or xDrip to push it there.
Terri Lyman
@tatigger
Jul 18 2016 00:43
So do I use the BLE helpers in this instance, @sarahspins ?
Bill Stackpole
@billstackpole
Jul 18 2016 00:43
@jasoncalabrese - thanks for the pointer - you are correct, full git directory fails when attempting to run git gc in my openaps directory. What should the path be where I might find the shell script you referenced? (oref0-fix-git-corruption.sh) or is there an extra dash in there? find / -name "oref0-.sh" 2>/dev/null* returns nothing.)
sarahspins
@sarahspins
Jul 18 2016 00:44
yes, BLE is the communication between the Pi and the Receiver so you can get that data without a USB cord
Terri Lyman
@tatigger
Jul 18 2016 00:44
K, thanks : )
sarahspins
@sarahspins
Jul 18 2016 00:45
@jasoncalabrese how do I enable alerts for the pump plugin
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:46
@billstackpole oref0-fix-git-corruption should be on your path
Bill Stackpole
@billstackpole
Jul 18 2016 00:46
whoops - should have been an extra star in there (after the -)
K - I'll check again
sarahspins
@sarahspins
Jul 18 2016 00:47
thanks.. I was searching and searching and just not seeing that :+1:
Dana Lewis
@danamlewis
Jul 18 2016 00:47
@tatigger if you've got a Pi and are worried about reliably getting bgs, might as well plug the receiver into the rig and have it pull that way.
Bill Stackpole
@billstackpole
Jul 18 2016 00:49
no git corruption but still won't run git gc (no space left on device). Working w/my RasPi3 now (and building a second as we speak). Will build two more edisons - one w/microSD daughter card and one w/out (cause I only have one @ this time <smile>). Has anyone else used the sparkfun edison daughter card with a large microSD to resolve this sort of exhaustion issue? Or does having the git gc --auto in place solve the problem "automagically"?
(actually building a third, cause the 2nd's at work <wink>)
and yes, it was in my path (doh)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:51
you can delete the .git dir is you don't need the history
then from a directory up run openaps init <your_dir>
Bill Stackpole
@billstackpole
Jul 18 2016 00:52
K - <crosses fingers>
as in rm -rf .git?
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:56
yeah
Bill Stackpole
@billstackpole
Jul 18 2016 00:56
done and running
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:57
you should also find a time to upgrade openaps, so you don't run into that again
Bill Stackpole
@billstackpole
Jul 18 2016 00:57
agreed.
plan to walk thru the install instructions again with the current raspi3 for similar reasons
Every time I touch the docs, something has improved.
(sometimes hard to keep up!)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 00:59
almost impossible
sarahspins
@sarahspins
Jul 18 2016 00:59
umm.. what's this? :)
You have new mail in /var/mail/pi
pi@openAPS:~/sarah $
Dana Lewis
@danamlewis
Jul 18 2016 01:02
@billstackpole would be great to submit PRs for anything that's unclear from your run through ;)
sarahspins
@sarahspins
Jul 18 2016 01:06
so I forgot I was having this show up before.... I think this is related to my COB not working
Error: date field not found: cannot calculate avgdelta
then this after determine basal
Carb Impact: 3 mg/dL per 5m; CI Duration: NaN hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: NaN hours
I have a feeling those are all related
Terri Lyman
@tatigger
Jul 18 2016 01:07
As I am working through the setup document, I notice that I don't somehow identify my specific dex to openaps. Wouldn't it need a serial number or something to compel the pairing of the pi to the dexcom?
Terri Lyman
@tatigger
Jul 18 2016 01:17
I am pretty sure I added the dexcom incorrectly because I get this for the dexcom when I "cat openaps.ini"

[vendor "openxshareble"]
path = .
module = openxshareble

[device "cgm"]
vendor = openaps.vendors.dexcom
extra = cgm.ini

pi@raspberrypi:~/faith $

Dana Lewis
@danamlewis
Jul 18 2016 01:17
Openxshareble is a bit finicky. I'd recommend setting up your initial rig to first pull BGs from the receiver using a cable.
Get a working loop, then tweak different elements..
Terri Lyman
@tatigger
Jul 18 2016 01:18
ok, I can do that
Dana Lewis
@danamlewis
Jul 18 2016 01:18
(That way you have a working baseline to start with)
Terri Lyman
@tatigger
Jul 18 2016 01:30
So the next step in the guide is to communicate with the pump. But so far I don't think I set up a way for communication to occur (through the carelink) so I must have missed it?
sarahspins
@sarahspins
Jul 18 2016 01:31
that was all before the dexcom section
Chris Oattes
@cjo20
Jul 18 2016 01:31
@sarahspins what sort of CGM do you use?
sarahspins
@sarahspins
Jul 18 2016 01:31
@cjo20 Dexcom G5
I can try pulling data from NS instead and see if that fixes it
Chris Oattes
@cjo20
Jul 18 2016 01:32
It means it can't find a date field in your glucose data
Terri Lyman
@tatigger
Jul 18 2016 01:32
Ah. Backing up
sarahspins
@sarahspins
Jul 18 2016 01:33
this is what the zoned data looks like:
  {
    "trend_arrow": "FLAT", 
    "system_time": "2016-01-04T21:05:22", 
    "display_time": "2016-07-17T20:30:02-05:00", 
    "glucose": 126
  },
Terri Lyman
@tatigger
Jul 18 2016 01:35
Ah. @sarahspins, it assumes you plugged the carelink into the Pi, maybe. Where it also discusses the Mmeowlink stuff.
sarahspins
@sarahspins
Jul 18 2016 01:36
oh, yeah, it does assume that.. it's already in there then and ready to communicate if you added your serial #. mmeowlink is for the TI stick, so don't worry about that if you're not using one
Terri Lyman
@tatigger
Jul 18 2016 01:37
Great. I will try, another day, to add "plug carelink in" by doing a pull request. But my brain hurts now.
Dana Lewis
@danamlewis
Jul 18 2016 01:37
:+1:
sarahspins
@sarahspins
Jul 18 2016 01:37
oh yay.... can I just go change the file myself or do I need to wait for a commit :P
Chris Oattes
@cjo20
Jul 18 2016 01:39
I think it's waiting for some testing before it gets merged to dev
To make sure it works properly with different devices.
sarahspins
@sarahspins
Jul 18 2016 01:42
ok, well I'll edit mine then :)
Terri Lyman
@tatigger
Jul 18 2016 01:43
WAAHHH! Got It!! I think I like it when things work!
sarahspins
@sarahspins
Jul 18 2016 01:46
@cjo20 do I need to do something for those changes to take effect?
ran my loop again and I'm still getting the same
Terri Lyman
@tatigger
Jul 18 2016 01:51
@danamlewis since I am going with the cable for dexcom for now, do I need to remove this?
[vendor "openxshareble"]
path = .
module = openxshareble
Chris Oattes
@cjo20
Jul 18 2016 01:57
Error: date field not found: cannot calculate avgdelta?
sarahspins
@sarahspins
Jul 18 2016 01:59
yes

I even tried changing

    var then_date = then.date || Date.parse(then.display_time);
    var now_date = now.date || Date.parse(now.display_time);

to

    var then_date = Date.parse(then.display_time);
    var now_date = Date.parse(now.display_time);

which didn't work either, nor did removing the Date.parse

wait, I got it :D
sarahspins
@sarahspins
Jul 18 2016 02:04
Avgdelta lookback 25 minutes
I am still getting this:
Carb Impact: -4.9 mg/dL per 5m; CI Duration: NaN hours
Accel. Carb Impact: 10 mg/dL per 5m; ACI Duration: NaN hours
I imagine similar changes need to be made in another file :P
however, before I go through that trouble... is there a way to replace the display_time in the data with date?
that seems like it would be less problematic overall....
Chris Oattes
@cjo20
Jul 18 2016 02:11
Sorry, I've got to get some sleep now
Hope you find a solution soon
sarahspins
@sarahspins
Jul 18 2016 02:12
alright, thanks for your help :+1:
Jason Calabrese
@jasoncalabrese
Jul 18 2016 02:43
@tatigger I added some notes for what I'm doing with openxshareble here https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad
ParkerBenda
@ParkerBenda
Jul 18 2016 02:59
Just reading previous posts. I assumed the ONLY way to get Dex data was by cable. Have people managed to connect it via Bluetooth or RF in openaps?
Scott Leibrand
@scottleibrand
Jul 18 2016 03:01
@sarahspins something like cat file.json | json -e "this.date = this.display_time" > newfile.json
or vice versa: not sure which direction you're trying to go
sarahspins
@sarahspins
Jul 18 2016 03:02
I was trying to go the other way, but that's super helpful, thanks @scottleibrand :)
diabeticgonewild
@diabeticgonewild
Jul 18 2016 03:10
I got Ubilinux on my Edison...via Windows...suprisingly
Jason Calabrese
@jasoncalabrese
Jul 18 2016 03:23
@ParkerBenda BLE to a G4 share reciever works using openxshareble, see link to wiki above
Scott Leibrand
@scottleibrand
Jul 18 2016 03:28
@Spazholio jq -s '.[0] + .[1]|unique|sort_by(.timestamp)|reverse' pumphistory-24h-zoned.json pumphistory-zoned.json > pumphistory-24h-zoned.merged.json
I think this might be a much easier way to merge and deduplicate pumphistory and glucose.json files, so we can have the loop just get the most recent data each time and then append it to a big historical file
@bewest thought there would be a way to do that kind of merging with json, but looks like jq does the trick nicely.
Dana Lewis
@danamlewis
Jul 18 2016 03:59
@ParkerBenda in addition to cable, or openxshareble, you can also pull data from NS via Share severs.
But it's good to design an offline data pull solution in addition to an online one
ParkerBenda
@ParkerBenda
Jul 18 2016 04:17
I'm definitely trying to design an offline solution. Am in no-go cell signal zones a lot duck hunting
Dana Lewis
@danamlewis
Jul 18 2016 04:18
yea. we still highly recommend NS for visualizing for when you’re back online, but having an offline BG pull is great for so many things.
Scott Leibrand
@scottleibrand
Jul 18 2016 04:31
@jasoncalabrese this jq thing also allows us to limit our openxshareble queries to 30m, and append them to a long-running glucose.json for autosens and AMA purposes
Dana Lewis
@danamlewis
Jul 18 2016 04:32
:+1:
ParkerBenda
@ParkerBenda
Jul 18 2016 04:40
If I'm using a G5 but connecting via micro usb to the pi do I use the code for G4 share receiver or the code for the g5
Scott Leibrand
@scottleibrand
Jul 18 2016 04:41
g5 USB to the Pi requires the --g5 flag
ParkerBenda
@ParkerBenda
Jul 18 2016 04:41
Thank you
ParkerBenda
@ParkerBenda
Jul 18 2016 04:51
When we run the CGM CONFIG with --G5 it comes back with usage commands
Like it says invalid choice condit
Config
Scott Leibrand
@scottleibrand
Jul 18 2016 04:52
check the docs for details on how to use --G5
ParkerBenda
@ParkerBenda
Jul 18 2016 04:52
We have been scouring the docs for an hour. No luck.
Aaron Michelson
@Aaybob
Jul 18 2016 04:52
I'm doing that exact thiing right now.....I had the G4 working and just updated to G5
It's a small section of documentation
Scott Leibrand
@scottleibrand
Jul 18 2016 04:53
if you're doing http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/using-openaps-tools.html?highlight=G5#g5-support and it's not working, paste your output here and we might be able to tell what's wrong
Aaron Michelson
@Aaybob
Jul 18 2016 04:54
I had to do the "sudo install openaps first because my openaps was not the current version
Martin Haeberli
@mhaeberli
Jul 18 2016 04:55

@ParkerBenda also recommend you paste your input. I’d love to advise re G5 but we only have G4 at the moment - in my case,

openaps use cgm config -h

succesfully prints some help output

usage: openaps-use cgm config [-h] [-M MODEL] [-5]

optional arguments:
  -h, --help            show this help message and exit
  -M MODEL, --model MODEL
  -5, —G5
ParkerBenda
@ParkerBenda
Jul 18 2016 04:57
We removed the CGM device and added it again
CGM was openxshare for some treason
Aaron Michelson
@Aaybob
Jul 18 2016 04:57
I ran "cat cgm.ini" and got the result "model = G5" after the config
Martin Haeberli
@mhaeberli
Jul 18 2016 04:58
@ParkerBenda sounds like it’s working now? i hope!
ParkerBenda
@ParkerBenda
Jul 18 2016 04:58
Yes
Just pulled my last BS
Martin Haeberli
@mhaeberli
Jul 18 2016 04:59
:+1:
ParkerBenda
@ParkerBenda
Jul 18 2016 05:01
I found out about openaps Friday at 3pm and here I am Sunday after midnight punching away at keys trying to get as far as I can
Dana Lewis
@danamlewis
Jul 18 2016 05:02
:)
If you don't mind me asking, how'd you hear about it?
Aaron Michelson
@Aaybob
Jul 18 2016 05:02
Great idea maybe take the next two weeks off...
ParkerBenda
@ParkerBenda
Jul 18 2016 05:03
BBC article from my college room mate
Aaron Michelson
@Aaybob
Jul 18 2016 05:03
I'm just waiting for the two hour warmup of my G5 to get to see if it worked.
ParkerBenda
@ParkerBenda
Jul 18 2016 05:03
I am having a problem with this command, "openaps use tz rezone --date dateString --date display_time raw-cgm/glucose-raw.json"
sarahspins
@sarahspins
Jul 18 2016 05:04
@ParkerBenda I've known about it for months and months.. I didn't get a pump I could use with it until last Monday, and I've been very very busy since then trying to figure this out :)
@ParkerBenda paste the output/error
ParkerBenda
@ParkerBenda
Jul 18 2016 05:04
I'm overnighting a pump tomorrow
I'm trying to paste as little as possible. One sec
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-armv6l/egg/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv6l/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-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/openapscontrib-0.0.15-py2.7.egg/openapscontrib/timezones/_init.py", line 88, in main
inputs = self.get_program(args)
File "/usr/local/lib/python2.7/dist-packages/openapscontrib-0.0.15-py2.7.egg/openapscontrib/timezones/_init.py", line 60, in get_program
program = json.load(argparse.FileType('r')(params.get('input')))
File "/usr/lib/python2.7/argparse.py", line 1142, in call
raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open 'raw-cgm/glucose-raw.json': [Errno 2] No such file or directory: 'raw-cgm/glucose-raw.json'
Martin Haeberli
@mhaeberli
Jul 18 2016 05:05
@ParkerBenda cool that you were able to find a pump so fast!
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:06
jq sounds like it will be great for openxshareble, pulling 4.5 hours is slow
Scott Leibrand
@scottleibrand
Jul 18 2016 05:06
we've been doing 24. :)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:07
I get the 24h from NS
ParkerBenda
@ParkerBenda
Jul 18 2016 05:07
We get that error when running the first time zone command.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:07
If autosens doesn't work offline it's OK with me
Scott Leibrand
@scottleibrand
Jul 18 2016 05:08
hmm, I just tried uploading some raw data to NS and can't seem to get it to display
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:08
Usually not offline for longer than a flight
Scott Leibrand
@scottleibrand
Jul 18 2016 05:08
I have rawbg enabled, and have the always display radio button selected
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:08
Need to upload a cal too
Check my wiki page
Martin Haeberli
@mhaeberli
Jul 18 2016 05:08
@ParkerBenda : see http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/using-openaps-tools.html - in particular, how to add report for G5 "openaps report add raw-cgm/glucose-raw.json”
Scott Leibrand
@scottleibrand
Jul 18 2016 05:08
bah, k
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:09
There a new use to get the call in the format needed for NS
ParkerBenda
@ParkerBenda
Jul 18 2016 05:09
Thx Martin. We setup as G4 initially. I think some parts are still biting me in the ass
Scott Leibrand
@scottleibrand
Jul 18 2016 05:10
@jasoncalabrese which wiki?
I don't see anything at https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad about uploading it to NS
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:11
It's using the ns device
The uploaded-cals.json report
Scott Leibrand
@scottleibrand
Jul 18 2016 05:11
k
ParkerBenda
@ParkerBenda
Jul 18 2016 05:12
Does it matter what browser we use to view the website? We are getting cut off and corruption in chrome and edge
Jason Calabrese
@jasoncalabrese
Jul 18 2016 05:12
Tried doing that all the new way, aliases are cleaner
Martin Haeberli
@mhaeberli
Jul 18 2016 05:13
@ParkerBenda I’ve been pretty happy with Macintosh chrome ...
ParkerBenda
@ParkerBenda
Jul 18 2016 05:14
Corruption in Mozilla too. Grrr
Scott Leibrand
@scottleibrand
Jul 18 2016 05:14
@ParkerBenda "the website"?
Martin Haeberli
@mhaeberli
Jul 18 2016 05:14
@ParkerBenda just curious - where is your Nightscout deployed?
Dana Lewis
@danamlewis
Jul 18 2016 05:14
@ParkerBenda what site?
Martin Haeberli
@mhaeberli
Jul 18 2016 05:14
@scottleibrand I assume he means nightscout?
ParkerBenda
@ParkerBenda
Jul 18 2016 05:15
No NS deployed
I was trying to do this on a non-Internet required system, so I skipped NS
Mistake?
One Sec. Lemme post a link to corruption in the website
Martin Haeberli
@mhaeberli
Jul 18 2016 05:16
@ParkerBenda sorry - now I’m on the same page w / @danamlewis @scottleibrand - what site?
Bog Dan
@bogdangorescu
Jul 18 2016 05:16
Hello,
ParkerBenda
@ParkerBenda
Jul 18 2016 05:17
It looks like the HTML markup for the page maybe wrong?
Scott Leibrand
@scottleibrand
Jul 18 2016 05:17
what URL?
Bog Dan
@bogdangorescu
Jul 18 2016 05:17
Don't know if this is common, but is there anyone else geting an error when trying to issue commands to the carelink stick --- read rights errors?
ParkerBenda
@ParkerBenda
Jul 18 2016 05:18
in the Add as report section. Notice how there's some garbled data?
Bog Dan
@bogdangorescu
Jul 18 2016 05:18
...like you, as a common pi user, don't have read rights to get the data from a serial device?
Scott Leibrand
@scottleibrand
Jul 18 2016 05:19
@ParkerBenda that garbled data is because someone merged a merge conflict
Aaron Michelson
@Aaybob
Jul 18 2016 05:19
we used to have only glucose.json now there is a glucose-raw.json also there is no raw data available from G5 I'm updating to G5 is glucose-raw.json something I can ignore?
ParkerBenda
@ParkerBenda
Jul 18 2016 05:20
Thanks @scottleibrand
going to github now trying to find what we need in the read e
Readme
Scott Leibrand
@scottleibrand
Jul 18 2016 05:21
@Aaybob if you have an otherwise working config, you can probably ignore the new naming conventions, you'll just have to translate things to yours
Bog Dan
@bogdangorescu
Jul 18 2016 05:23
No one?
Than there's must be something wrong with my pi... :)
sarahspins
@sarahspins
Jul 18 2016 05:24
@Aaybob I am using glucose-raw.json for my unzoned data... monitor/glucose.json is where it goes after tz
Scott Leibrand
@scottleibrand
Jul 18 2016 05:24
@bogdangorescu as a general rule, it's best to paste the exact command you're running and the exact error you're getting, rather than paraphrasing it
Martin Haeberli
@mhaeberli
Jul 18 2016 05:24

ok , I’m asking for a “cheat code” - but:

openaps report invoke oref0-predict/oref0.json

is working; but what report do I invoke to get a recommendation out of oref0?

Bog Dan
@bogdangorescu
Jul 18 2016 05:25
OK, thanks @scottleibrand , I will paste it.
Martin Haeberli
@mhaeberli
Jul 18 2016 05:25
still carefully offline from real insulin
sarahspins
@sarahspins
Jul 18 2016 05:25
@mhaeberli do you mean to set the temp basal on the pump?
Scott Leibrand
@scottleibrand
Jul 18 2016 05:25
@ParkerBenda just pushed an update to https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-1/using-openaps-tools.md#get-cgm-data to fix that merge conflict stuff. readthedocs should update shortly
Martin Haeberli
@mhaeberli
Jul 18 2016 05:25
@sarahspins exactly!
sarahspins
@sarahspins
Jul 18 2016 05:26
that is, well, the "leap" that has been referred to as missing from the docs.. intentionally
ParkerBenda
@ParkerBenda
Jul 18 2016 05:26
Thank you @scottleibrand !
Martin Haeberli
@mhaeberli
Jul 18 2016 05:26
@sarahspins thx -
Aaron Michelson
@Aaybob
Jul 18 2016 05:27
@sarahspins what was the unzoned and tz idea....I set up my working system when tz was just being started to be used
sarahspins
@sarahspins
Jul 18 2016 05:27
it does sort of spell out out for you, just not on a copy/paste kind of capacity ;)
Martin Haeberli
@mhaeberli
Jul 18 2016 05:27
k thx!
I had scrubbed through phase 1 carefully last week, but … now to scrub forward
sarahspins
@sarahspins
Jul 18 2016 05:27
@Aaybob I was running into issues with using unzoned data... everything should be zoned if you want to upload to NS
@mhaeberli I have raced ahead :P
Scott Leibrand
@scottleibrand
Jul 18 2016 05:28
@ParkerBenda good catch. in future, if you see <<<<<<< HEAD, =======, and >>>>>>> like that, it's a git merge conflict. you can delete those lines if you can figure out which of the lines in between them should be kept vs. deleted.
ParkerBenda
@ParkerBenda
Jul 18 2016 05:30
Thanks, I can read the document now. :) But, it still doesn't explain why I'm getting the error when running, "openaps use tz rezone --date dateString --date display_time raw-cgm/glucose-raw.json"
sarahspins
@sarahspins
Jul 18 2016 05:32
did you do openaps report invoke raw-cgm/glucose-raw.json?
the other possibility with the G5, which I ran into, is that the report given in the docs doesn't seem to work
Scott Leibrand
@scottleibrand
Jul 18 2016 05:33
@ParkerBenda I don't think I ever saw what the error actually was
sarahspins
@sarahspins
Jul 18 2016 05:34
@scottleibrand [Errno 2] No such file or directory: 'raw-cgm/glucose-raw.json'
It doesn't exist so I'm guessing she either didn't run that report or didn't create it yet ;)
Scott Leibrand
@scottleibrand
Jul 18 2016 05:34
ah, then do what @sarahspins said
sarahspins
@sarahspins
Jul 18 2016 05:35
or if it's created, it might be having the same issue mine had the other day
ParkerBenda
@ParkerBenda
Jul 18 2016 05:36
The instructions don't tell you to run that command, just set an alias for it. (also after telling you to rezone your data). After running the command and re-running the zone commands, it seems to take.
sarahspins
@sarahspins
Jul 18 2016 05:36
when openaps use cgm oref0_glucose --no-raw --hours 2.0 worked fine to pull data, but openaps report add raw-cgm/glucose-raw.json JSON cgm oref0_glucose –no-raw –hours 2.0 wouldn't work
ParkerBenda
@ParkerBenda
Jul 18 2016 05:36
Thank you!
Scott Leibrand
@scottleibrand
Jul 18 2016 05:36
@ParkerBenda sounds like a good opportunity for a PR to improve the docs. :)
ParkerBenda
@ParkerBenda
Jul 18 2016 05:37
Yes. Yea it does ;)
Dana Lewis
@danamlewis
Jul 18 2016 05:37
:+1:
sarahspins
@sarahspins
Jul 18 2016 05:37
@ParkerBenda there is a point in one of the pages before there, where it tells you to always invoke reports once created - it's not necessary to note that on each instance of a report in the docs :+1:
ParkerBenda
@ParkerBenda
Jul 18 2016 05:37
Ah sarah
sarahspins
@sarahspins
Jul 18 2016 05:38
possibly a reminder at the beginning of each of these "beginning" sections is a good idea though
Dana Lewis
@danamlewis
Jul 18 2016 05:38
Also, be prepared to search Gitter for if the docs are not clear enough to you and if there's a lull in responses - many times the same issue has been discussed in days prior so always worth searching. And then PRing ;)
sarahspins
@sarahspins
Jul 18 2016 05:38
once you get to phase 2 and beyond it is kind of drilled into you :P
ParkerBenda
@ParkerBenda
Jul 18 2016 05:38
Good to know. Sorry. You just get so excited and get in a hurry....
Dana Lewis
@danamlewis
Jul 18 2016 05:39
:) marathon, not a sprint
ParkerBenda
@ParkerBenda
Jul 18 2016 05:42
@danamlewis lil of both;)
In 22 years of diabetes, I've never been 1% as excited as I am with this.
Dana Lewis
@danamlewis
Jul 18 2016 05:44
:)
sarahspins
@sarahspins
Jul 18 2016 05:47
@danamlewis some people marathon faster than others can sprint ;)
Dana Lewis
@danamlewis
Jul 18 2016 05:49
Not about speed either way :)
sarahspins
@sarahspins
Jul 18 2016 05:50
@ParkerBenda I know the feeling.... and @danamlewis yes, but that doesn't make us less anxious to make progress :+1:
the excitement is almost uncontainable :sparkles:
ParkerBenda
@ParkerBenda
Jul 18 2016 05:51
Yes. Yes it is
Dana Lewis
@danamlewis
Jul 18 2016 05:54
:(
Silly Gitter. That was a :)
ParkerBenda
@ParkerBenda
Jul 18 2016 05:55
Is it possible to Bluetooth/wifi to a pebble or androidwear
Without going to data in the floud
Cloud
From
my understanding of NS it's all cloud based
Aaron Michelson
@Aaybob
Jul 18 2016 06:03

cgmbuilding://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pumpbuilding://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pumpbuilding://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pumpbuilding://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
calculate-iob://JSON/shell/monitor/iob.json

module.js:485
throw err;
^
SyntaxError: /home/pi/apg/settings/profile.json: Unexpected end of input
at Object.parse (native)
at Object.Module._extensions..json (module.js:482:27)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js:35:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.3-py2.7.egg/pkgresources/_init.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.3-py2.7.egg/pkgresources/_init.py", line 1504, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, 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-report", line 75, in run
output = app(args, self)
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/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
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
No CGM data.
..

This error after converting to G5. What should I do?
I don't have a iob.json file
sarahspins
@sarahspins
Jul 18 2016 06:07
what is in your monitor/glucose.json?
Aaron Michelson
@Aaybob
Jul 18 2016 06:07
how would i manually run calculate-iob
sarahspins
@sarahspins
Jul 18 2016 06:07
openaps report invoke monitor/iob.json
Aaron Michelson
@Aaybob
Jul 18 2016 06:07
cat monitor/glucose.json
[
{
"trend_arrow": "FLAT",
"system_time": "2016-07-18T05:03:19",
"display_time": "2016-07-17T23:01:30",
"glucose": 237
},
{
"trend_arrow": "FLAT",
"system_time": "2016-07-18T04:58:18",
"display_time": "2016-07-17T22:56:28",
"glucose": 240
},
{
"trend_arrow": "NOT_COMPUTABLE",
"system_time": "2016-07-18T04:56:30",
"display_time": "2016-07-17T22:54:41",
"glucose": 245
},
{
"trend_arrow": "NOT_COMPUTABLE",
"system_time": "2016-07-18T04:55:30",
"display_time": "2016-07-17T22:53:40",
"glucose": 5
},
{
"trend_arrow": "NOT_COMPUTABLE",
"system_time": "2016-07-18T04:53:17",
"display_time": "2016-07-17T22:51:28",
"glucose": 5
}
]
sarahspins
@sarahspins
Jul 18 2016 06:08
k, just checking since it said no CGM data at the end of that
you said it had been working before with the G4?
Aaron Michelson
@Aaybob
Jul 18 2016 06:09
openaps report invoke monitor/iob.json gives that error.....how do I focus in on the problem?
yes the g4 has been working for a long time now......i want to see if g5 will work
calculate-iob is a device
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:13
you should able able to do something like openaps report invoke predict/iob.json just update with the path to your report
Aaron Michelson
@Aaybob
Jul 18 2016 06:15
I also have no settings.json

$ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json

/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8
var basalRate = basalprofile_data[basalprofile_data.length-1].rate
^
TypeError: Cannot read property 'rate' of undefined
at Object.basalLookup (/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8:66)
at generate (/usr/local/lib/node_modules/oref0/lib/profile/index.js:27:33)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:58:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
reporting settings/profile.json

$ openaps report invoke monitor/iob.json
calculate-iob://JSON/shell/monitor/iob.json

module.js:485
throw err;
^
SyntaxError: /home/pi/apg/settings/profile.json: Unexpected end of input
at O...............................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

Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:22
looks like you don't have the basal rates report, probably need to update that first
Aaron Michelson
@Aaybob
Jul 18 2016 06:25
Thanks @jasoncalabrese . I ran the report but it didn't change the error. $ openaps report invoke read_selected_basal_profile.json
pumpbuilding://JSON/read_selected_basal_profile/read_selected_basal_profile.json
reporting read_selected_basal_profile.json
I do have settings.json now though
the error comes on :calculate-iob
I'm not creating a iob.json
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:31
what happens when you run your main alias now? where does it fail?
Aaron Michelson
@Aaybob
Jul 18 2016 06:31
at creating iob.json

$ openaps loop
cgmbuilding://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pumpbuilding://JSON/model/model.json
reporting model.json
PREFLIGHT OK
cgmbuilding://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pumpbuilding://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
pumpbuilding://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pumpbuilding://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
calculate-iob://JSON/shell/monitor/iob.json

module.js:485
throw err;
^
SyntaxError: /home/pi/apg/settings/profile.json: Unexpected end of input
at Object.parse (native)

Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:38
openaps report invoke report invoke settings/profile.json
Aaron Michelson
@Aaybob
Jul 18 2016 06:41
looks like I have to reboot ....lost RPi
Martin Haeberli
@mhaeberli
Jul 18 2016 06:44
openaps report invoke nightscout/recent-missing-entries.json
results in:
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 "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.2-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.2-py2.7.egg/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  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/openapscontrib/timezones/__init__.py", line 298, in main
    if spec.includes(get(elem)):
  File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/__init__.py", line 264, in get
    return parse(item.get(args.date))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 1164, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 552, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 671, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 188, in split
    return list(cls(s))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 184, in next
    return self.__next__()  # Python 2.x support
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 177, in __next__
    token = self.get_token()
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 93, in get_token
    nextchar = self.instream.read(1)
AttributeError: 'NoneType' object has no attribute 'read'
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.2-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.0.2-py2.7.egg/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, 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-report", line 75, in run
    output = app(args, self)
…
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:47
openaps report show nightscout/recent-missing-entries.json --ini
Martin Haeberli
@mhaeberli
Jul 18 2016 06:48
@sarahspins - thx to your reminder to re-read phase 2, I at least can get recommendations out. … now to bridge the “enactment” gap !
@jasoncalabrese
[report "nightscout/recent-missing-entries.json"]
oper = format-recent-type
use = shell
reporter = JSON
device = ns
remainder = tz entries monitor/glucose.json
json_default = True
```
[
  {
    "direction": "FortyFiveDown", 
    "trend": 5, 
    "dateString": "2016-07-18T06:38:40+00:00", 
    "sgv": 196, 
    "date": 1468823920000, 
    "device": "share2", 
    "_id": "578c79dc93a430e19dedee0a", 
    "type": "sgv"
  }, 
…
]
( raw-cgm data from Nightscout via Share, if that makes a difference…)
Aaron Michelson
@Aaybob
Jul 18 2016 06:53

@jasoncalabrese I'm trying to update to G5. I get this error...
$ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json

/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8
var basalRate = basalprofile_data[basalprofile_data.length-1].rate
^
TypeError: Cannot read property 'rate' of undefined
at Object.basalLookup (/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8:66)
at generate (/usr/local/lib/node_modules/oref0/lib/profile/index.js:27:33)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:58:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
reporting settings/profile.json

Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:54
@mhaeberli thats the top of monitor/glucose.json? if that's good it's probably the config of the ns device
Martin Haeberli
@mhaeberli
Jul 18 2016 06:54
yes, that’s the top of monitor/glucose.json
sarahspins
@sarahspins
Jul 18 2016 06:55
@mhaeberli you'll get it :+1:
Martin Haeberli
@mhaeberli
Jul 18 2016 06:55
@jasoncalabrese - if it’s not too burdensome, and you have some ideas, what should I check in the ns device configuration?
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:56
you could try running nightscout autoconfigure-device-crud <https://your-host.com> <yourapisecret> again, I think it's safe to run multiple times
sarahspins
@sarahspins
Jul 18 2016 06:57
since I don't know anywhere else to ask this... I'm trying to install cocoapods via terminal and I'm getting this:
activesupport requires Ruby version >= 2.2.2.
I can't find anything helpful on google to fix that :(
Martin Haeberli
@mhaeberli
Jul 18 2016 06:57
@jasoncalabrese sounds great - I also suspect with you that autoconfigure… is idempotent ...
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:57
@Aaybob try openaps report show settings/profile.json --ini
Aaron Michelson
@Aaybob
Jul 18 2016 06:57
sure i'll try anything
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:58
that needs a newer version of openaps, not sure how current you are
Martin Haeberli
@mhaeberli
Jul 18 2016 06:58
@jasoncalabrese had to remove the ns device before autoconfigure … no problem, though, let’s see if that helps...
Aaron Michelson
@Aaybob
Jul 18 2016 06:58
I did update
$ openaps report show settings/profile.json --ini
[report "settings/profile.json"]
use = shell
bg_targets = settings/bg_targets.json
settings = settings/settings.json
basal_profile = settings/basal_profile.json
reporter = text
json_default = True
max_iob = settings/max_iob.json
device = get-profile
remainder = []
isf = settings/insulin_sensitivities.json
Jason Calabrese
@jasoncalabrese
Jul 18 2016 06:59
now try openaps report invoke settings/basal_profile.json, you can try the others too
Aaron Michelson
@Aaybob
Jul 18 2016 07:00
yes, and look for what?
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:00
if they work try running the profile report again
I think basal_profile.json is empty or corrupt
Martin Haeberli
@mhaeberli
Jul 18 2016 07:00
@jasoncalabrese - ok, re-running autoconfigure … , then I invoked “nightscout/recent-missing-entries.json” again - same errors...
I’ll probably sign off for tonight and swing at this again tomorrow...
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:01
does openaps use ns shell get entries.json 'count=10' work?
Martin Haeberli
@mhaeberli
Jul 18 2016 07:02
@jasoncalabrese hang on
sarahspins
@sarahspins
Jul 18 2016 07:02
nevermind I figured it out :)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:02
I need to shutdown too, alarm goes off in 5.5 hours
Aaron Michelson
@Aaybob
Jul 18 2016 07:02
@jasoncalabrese /basal_profile did not run without error.....was that supposed to be run with the --ini flag?
Martin Haeberli
@mhaeberli
Jul 18 2016 07:02
yes that works
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:02
@Aaybob, no do the report invoke on those
Aaron Michelson
@Aaybob
Jul 18 2016 07:03
thanks, it says allready in use I'll try again
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:03
@mhaeberli so the ns device should be good
you may want to stop the cron while running reports
Martin Haeberli
@mhaeberli
Jul 18 2016 07:03
ok, so not worry about failure in nightscout/update-missing-entries ..
not running cron anyway yet (I think)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:04
that should work, is there data in NS?
Martin Haeberli
@mhaeberli
Jul 18 2016 07:04
just at the advanced “crawl” stage - yes there is data in NS
Jason Calabrese
@jasoncalabrese
Jul 18 2016 07:04
cron was for @Aaybob
Martin Haeberli
@mhaeberli
Jul 18 2016 07:04
no worries - anyway - NS has no gaps in last 8 points, then an hour gap, then a bunch more data - not that this is needed at this point...
Aaron Michelson
@Aaybob
Jul 18 2016 07:06
yea, i'm getting allready in use errors because I'm running openaps every five minutes in a cron file
Martin Haeberli
@mhaeberli
Jul 18 2016 07:07
‘nite all !
Aaron Michelson
@Aaybob
Jul 18 2016 07:16
Fixed @jasoncalabrese thanks. The error from loop showed which file had a syntax error. I ran that file with report invoke....checked with cat.....then loop again.....then new error message.....ran the next file that showed syntax error with report invoke....then loop ran without error
Julie
@julieraines
Jul 18 2016 11:02
Anyone using WebSSH or Serve
Oops - Serverauditor
? I'm thinking of trying on my iPad
Jason Calabrese
@jasoncalabrese
Jul 18 2016 13:20
@Aaybob, glad it worked, check your aliases you may be missing one of those reports
KJSATSTORR
@KJSATSTORR
Jul 18 2016 14:30
I am setting up the raspberry to openaps and depenedncies but , when I go too install I get syntax error. Any suggestions?
David Cintron
@loudestnoise
Jul 18 2016 14:35
@julieraines I use Prompt 2 by Panic on my iPad. It’s awesome
also on my iPhone for that matter
it lets you sync the servers and your SSH keys via their “Panic sync"
Julie
@julieraines
Jul 18 2016 14:39
@loudestnoise that looks very awesome indeed - thanks! It does everything! Hadn't considered all those little extras.
David Cintron
@loudestnoise
Jul 18 2016 14:40
It’s expensive at $15, but I don’t regret buying it. You can even have custom icons for your connections. I have the little Rasperry Pi one for my Pi ;)
Julie
@julieraines
Jul 18 2016 14:42
custom is the way to go for sure and $15 is worth it if it's reliable - I have a feeling that getting this project up and running is only the beginning and I want to be able to fix and trouble-shoot from wherever whenever. Sometimes all I have is my iPhone or my iPad on me.
David Cintron
@loudestnoise
Jul 18 2016 14:42
Yep, and I can somewhat normally get it to let me SSH into my Pi over my iPhone hotspot. Sometimes it doesn’t work
Julie
@julieraines
Jul 18 2016 14:46
a device/software/hardware that sometimes doesn't work? Shocking . . . Lol - I can live with that
😆
Dana Lewis
@danamlewis
Jul 18 2016 14:52
We use server auditor, for anyone looking for a free option
Julie
@julieraines
Jul 18 2016 14:53
Free is good - but are there in-app purchases that are critical?
Dana Lewis
@danamlewis
Jul 18 2016 14:53
Not that I've ever seen
@KJSATSTORR can you copy/paste the command you ran, and the error output? That will help us help you troubleshoot more easily.
David Cintron
@loudestnoise
Jul 18 2016 14:54
IMG_1917.PNG
Yeah, but can you have ICONS!
LOL
Julie
@julieraines
Jul 18 2016 14:54
ICONS with sunglasses even😎
David Cintron
@loudestnoise
Jul 18 2016 14:55
yeah, that’s my OGPi
Julie
@julieraines
Jul 18 2016 14:55
That's worth $15
David Cintron
@loudestnoise
Jul 18 2016 14:55
OG as in Original Gangster
Dana Lewis
@danamlewis
Jul 18 2016 14:55
Lol. Priorities ;)
David Cintron
@loudestnoise
Jul 18 2016 14:55
it’s the original Raspberry Pi model
Julie
@julieraines
Jul 18 2016 14:55
😆😆😆
David Cintron
@loudestnoise
Jul 18 2016 14:55
the Raspberry has a top hat, shades and a cane
Julie
@julieraines
Jul 18 2016 14:56
that's gooch (as my 12 yr old would say)
Julie
@julieraines
Jul 18 2016 15:02
quick question - I'm in the calculate-iob process (I've been redo-ing reports add/invoke/and then cat and it's going well so far). After I add the profile report for iob, do I add an alias? Like in the get-profile part that was previous in the instructions. It seems like there is a structure here and that piece is missing but I'm a newbie so not sure I understand it fully.
David Cintron
@loudestnoise
Jul 18 2016 15:10
openaps alias add blerg “report invoke blergy/calculate-iob.json”
is how you add aliases
Julie
@julieraines
Jul 18 2016 15:13
thanks - I did add an alias or two - I'm sometimes unsure of when to add them even after reading what they are and what they do several times. Any tips on knowing when to add an alias?
sarahspins
@sarahspins
Jul 18 2016 15:14
If you think you need an alias, add one ;)
That's mentioned somewhere in the docs
Julie
@julieraines
Jul 18 2016 15:14
OK - but how do I know whether I need one?
sarahspins
@sarahspins
Jul 18 2016 15:15
Law
Err sorry I'm in my phone and not sure what that was about....
Dana Lewis
@danamlewis
Jul 18 2016 15:16
Lol
sarahspins
@sarahspins
Jul 18 2016 15:16
Anyways, if you find yourself needing to pull the same groups of data over and over again, that gets and alias
Dana Lewis
@danamlewis
Jul 18 2016 15:17
Think about what you might be doing to run a loop in the future. What data will you need to gather from which devices? That will help you think through if something ends up in an alias or not, if you might end up wanting that data regularly
I will also add this - you may end up with some "extra" aliases that aren't necessarily part of your loop, but can be helpful for walking through parts or troubleshooting
Julie
@julieraines
Jul 18 2016 15:22
I've been thinking about that a lot and what info I use to make a decision manually - iob, when the last time she had insulin, her BG, whether a temp basal is running, how long it's been running, whether she's trending up or down, and a lot of this is already in the walkthrough. I'm a little fuzzy I think on how to put the various combos of reports of data together but think I will understand it better after I have it running and see it in action on NS
sarahspins
@sarahspins
Jul 18 2016 15:23
@julieraines there is some trial and error involved, but you can usually work backwards from each step and figure out what you need
Julie
@julieraines
Jul 18 2016 15:27
So far that method has worked well - never give up, never surrender
sarahspins
@sarahspins
Jul 18 2016 15:45
I'm having a NS problem it seems..... my NS stopped showing all temp basal data, it was working before and I didn't change anything....
pi@openAPS:~/sarah $ openaps report invoke nightscout/uploaded.json
ns://JSON/shell/nightscout/uploaded.json
No JSON object could be decoded
nightscout/uploaded.json uses nightscout/recent-treatments.json which does exist on my end and doesn't appear to have any formatting errors. Bridge also seems to have stopped updating about 45 minutes ago, which was about when I got my last openaps update on NS - my loop is still running locally, I'm just not getting visualization
sarahspins
@sarahspins
Jul 18 2016 15:51
I restarted NS on azure and all I'm getting is --- :(
and my other NS site has no bridge data for an hour now
well openaps seems to be updating again now.... but still no bridge data
I guess maybe after I retstarted it, openaps just needed to push newer uploads
G5 mobile app isn't reporting any problems communicating with share
Paul Martin
@Spazholio
Jul 18 2016 16:01
@scottleibrand That jq thing looks really promising. I suppose all we’d need after that is to maybe run a gaps against it periodically to make sure we’re not missing anything, but that’s really cool. Is jq a NPM package, or…?
Hannah Crabtree
@lollydaggle
Jul 18 2016 16:09
@sarahspins I get that error a lot and I'm not sure why. NS upload only works about 50% of the time for me it seems.
sarahspins
@sarahspins
Jul 18 2016 16:10
also openaps use ns shell upload entries.json nightscout/recent-missing-entries.json still doesn't push data to NS.... and there is plenty of it in nightscout/recent-missing-entries.json
Hannah Crabtree
@lollydaggle
Jul 18 2016 16:14
@sarahspins I want to PR when I get home and have access to my documentation. I think I used the "NS-status" device to push one of the reports to Nightscout - my pill wouldn't update until I did that.
sarahspins
@sarahspins
Jul 18 2016 16:15
my pill is updating fine now
what I just pasted should upload CGM values
my bridge isn't working and that's not working either
bridge isn't working on my other NS site either
Martin Haeberli
@mhaeberli
Jul 18 2016 16:48
@sarahspins when you say “my pill is updating fine now” - which pill are you referring to? - I have been trying to get my OpenAPS pill (and pump pill, for that matter) to show anything meaningful, but no luck yet - advice is sought.
sarahspins
@sarahspins
Jul 18 2016 16:48
the openaps pill... and my temp basals reappeared, still no CGM data
Scott Leibrand
@scottleibrand
Jul 18 2016 16:50
@Spazholio I just did sudo apt-get install jq. it even helpfully tells you what to run if you type jq without installing it. :)
sarahspins
@sarahspins
Jul 18 2016 16:59
Screen Shot 2016-07-18 at 11.58.14 AM.png
See pill is updating, CGM data, not there
which make for a fairly comical view of the predictions...
Screen Shot 2016-07-18 at 11.59.38 AM.png
sarahspins
@sarahspins
Jul 18 2016 17:09
It is worth pointing out that my receiver is connected, so I am "getting" CGM data into OpenAPS, it's just not getting to NS
Jason Calabrese
@jasoncalabrese
Jul 18 2016 17:14
that gap in the purple line is the AR2 (cyan dots) lining up at exactly the same points I tried to avoid that but it still happens some times
sarahspins
@sarahspins
Jul 18 2016 17:15
@jasoncalabrese the CGM data is 2 hours old.... purple dots start at "current" time....
what I can't figure out is why bridge isn't pulling anything from share :(
of course I say that..... and guess what just gave me a reading!
Paul Martin
@Spazholio
Jul 18 2016 17:25
@scottleibrand Ah, see, mine just said -bash: jq: command not found. I think I actually heard laughter.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 17:51
I'd never depend on the share service, but I know some people do
sarahspins
@sarahspins
Jul 18 2016 17:57
well until I started the openaps it was the easiest way to get current G5 data to NS
Scott Leibrand
@scottleibrand
Jul 18 2016 18:10
@Spazholio ah, I think that might've been on ubuntu, not ubilinux or raspbian
ParkerBenda
@ParkerBenda
Jul 18 2016 18:12
Hey I have a question. I am not asking this to be rude--I'm trying to figure out where the APS project needs help.
What is the gap we are missing to integrate G5 via BT
Instead of cable (or NS)
Paul Martin
@Spazholio
Jul 18 2016 18:13
@scottleibrand Yeah, I can see that. I haven’t delved into it too deeply, but does jq have limiting features? As in, “only grab the last 288 entries” or something like that? Do we even need that, or can we just let the pumphistory-24h-zoned.merged.json file just grow and grow?
@jasoncalabrese Dare I ask why you wouldn’t depend the Share service? As someone who DOES depend on it, that comment is…worrying.
Scott Leibrand
@scottleibrand
Jul 18 2016 18:18
@Spazholio we use Share as our primary method of getting BG to all of our rigs via NS, but two of our rigs have the ability to get BG from plugged in CGM or over openxshareble
@Spazholio I haven't decided how much history I want, but at least weeks to support oref0#99
jq can handle files GB in size, so it's more of a disk space and speed question
Paul Martin
@Spazholio
Jul 18 2016 18:19
I think my primary rig is NS-only - I don’t think I ever added the CGM fallback stuff in there. And since I’m going to be out of non-expensive-data range in a few days, I really should look into that.
Dana Lewis
@danamlewis
Jul 18 2016 18:19
@ParkerBenda > @Spazholio we use Share as our primary method of getting BG to all of our rigs via NS, but two of our rigs have the ability to get BG from plugged in CGM or over openxshareble
Scott Leibrand
@scottleibrand
Jul 18 2016 18:20
@ParkerBenda someone would need to port @loudnate's https://github.com/loudnate/xDripG5 code over to linux to work something like openxshareble. no small undertaking.
getting oref0 into https://github.com/loudnate/Loop will probably happen first
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:32
I've heard of share going down multiple times for hours at a time, I've never had that with my own self hosted site, but if you have a backup method that you can switch to easily it's not so bad
sarahspins
@sarahspins
Jul 18 2016 18:36
@jasoncalabrese share didn't appear to be down.... my pebble pulls from share and it was getting data throughout, only NS wasn't
ParkerBenda
@ParkerBenda
Jul 18 2016 18:36
@scottleibrand Loop, from the Readme, requires an Internet connection to get glucose readings it says.
To your knowledge is that permanent or possibly offline in the future
Dana Lewis
@danamlewis
Jul 18 2016 18:39
You could ask @loudnate that in the loudnate/LoopKit channel :)
ParkerBenda
@ParkerBenda
Jul 18 2016 18:39
Thank you @danamlewis
Scott Leibrand
@scottleibrand
Jul 18 2016 18:42
@ParkerBenda that is only true for G4
ParkerBenda
@ParkerBenda
Jul 18 2016 18:44
Ahh
David Cintron
@loudestnoise
Jul 18 2016 18:46
I of course would love an option to do G5 over BLE for an OpenAPS rig
sarahspins
@sarahspins
Jul 18 2016 18:46
@ParkerBenda I'm already playing with Loop and it's been reading my G5 just fine... that of course is the ONLY thing it's doing, but it does work ;)
and I'm with @loudestnoise - the inability to get G5 data more conveniently has been one of my biggest stumbling points... I don't usually carry my receiver around
and NS bridge is unreliable for me
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:48
if we could do direct ble to a g5, I'd almost want one
loudestnoise @loudestnoise wishes he could have spoken with 2015 @loudestnoise and convinced him not to upgrade to G5
sarahspins
@sarahspins
Jul 18 2016 18:50
how did you do that... is that like an old school IRC /me command?
Scott Leibrand
@scottleibrand
Jul 18 2016 18:50
Pretty sure /me doesn't allow communicating with your past self. ;-)
but yes. ;-)
sarahspins
@sarahspins
Jul 18 2016 18:51
sweet :)
Lynne Butts
@flutelynne_twitter
Jul 18 2016 18:52
@sarahspins The NS bridge for G5 worked better for me after I changed BRIDGE_INTERVAL to be 45000 and BRIDGE_MINUTES to be 1400. It keeps things closer to the actual G5 app.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:54
how current is your data most of the time with that?
sarahspins
@sarahspins
Jul 18 2016 18:54
@flutelynne_twitter mine seems to fine any time I'm not paying attention to it... this morning "something" happened in NS and my uploads stopped (and I hadn't made any changes to anything for 7+ hours, it was working fine overnight).. I was alerted to it through pushover when my pump data was too old
restarting my NS site fixed the uploading through openAPS, but I didn't get CGM values back for over another hour
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:55
you can get pushovers for stale bg data too
sarahspins
@sarahspins
Jul 18 2016 18:55
yes, but I don't have that enabled because I live in an area (rural) where when I'm out riding my bike, I don't get cell data for long stretches
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:55
sarahspins
@sarahspins
Jul 18 2016 18:55
so that would happen "a lot" and it was annoying ;)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 18:56
but now when it happens your loop will be down
sarahspins
@sarahspins
Jul 18 2016 19:00
yup :(
Martin Haeberli
@mhaeberli
Jul 18 2016 19:02
@Spazholio - at the moment, we do depend on the Share service (although we are building towards loop, not looping yet)… That said, we do have a few issues - as a matter of habit, in our experience, having more or less continuous data from G4 Share depends on the sensor/transmitter, the receiver, and the iPhone all staying relatively close to each other at all relevant times, on the receiver battery and iPhone battery being charged enough, and on a decent data connection (so no camping mode…). In our experience, sometimes the Share app has to be “kicked” to restart data feed after one or the other wanders away too far. I’ll probably call / email Dexcom support about this - they (very pleasantly) surprised me by calling back on a suggestion email the other week...
Paul Martin
@Spazholio
Jul 18 2016 19:03
The worst thing I’ve had to deal with is kicking the Share app on my iPhone. Other than that, it’s been rock solid, both with working, and with NS being able to pull Share info. So when @jasoncalabrese says that he wouldn’t rely on it, I’m curious what he’s seen that would cast doubt on that.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 19:20
the main reason is their down time, they've shut the whole thing down for maintenance several times that I've heard of and probably more that I didn't see people complaining about
I also wouldn't rely on a mlab sandbox for similar reasons
sarahspins
@sarahspins
Jul 18 2016 19:22
@jasoncalabrese yes, when that happens the internet practically blows up with complaints :)
there was a really bad one a few months back where share was down for an entire day, and parents just about lost their minds over it
it was a good opportunity to point out that backup plans are ALWAYS wise
Jason Calabrese
@jasoncalabrese
Jul 18 2016 19:23
yeah, remember watching that and saying I'll never use the service
sarahspins
@sarahspins
Jul 18 2016 19:24
understsandable... but for many it's convenient... other more reliable options require some effort to acheive
so I understand someone not-very-technical not wanting to do it
And nothing is 100% foolproof... internet goes out, cell towers go down for maintenence, etc
generally those outages are not long, but they can be
Martin Haeberli
@mhaeberli
Jul 18 2016 19:30
@ I’ll happily take guidance to take this conversation elsewhere, but… what I’m thinking about on this end is belt + suspenders + superglue :-) - use Share, use xDrip, use RileyLink (and TI Stick) to gather as much data as possible in real-time. -record as much of it as possible as it happens, and try to backfill when re-connected for the rest. THEN run OpenAPS loop on a package that is carried around, as well as a cloud instance or two (the latter tracking, predicting, recommending, alerting, but of course NOT controlling) . Backing everything up meanwhile… I’d also like to minimize the impact on the user - so kicking Share should be eliminated or minimized. Have also sometimes seen RileyLink drop out, but don’t understand why, so same deal. At least with the TI Stick I can escalate on failures to try an mmtune, etc
John Dodds
@johners97
Jul 18 2016 19:34
Newbie here! I use a Medtronic 754 pump; and enlite CGM sensors. I'm ordering a raspberry pi 2 (with all the stuff), a touch screen monitor and hardware to interact with the pi... A Carelink is on delivery and two wee things from Texas Instruments (instructions from NightScout). This sounding on track?
:)) I'm quite anxious/excited about it...I just want to feel ontop of things
sarahspins
@sarahspins
Jul 18 2016 19:38
@johners97 I'd recommend a Pi 3 over a 2 for built-in wifi :) You don't need a touch screen to go with it.. you can plug it into a TV and use any mouse/keyboard to get it set up.
and you really don't even need a mouse unless you wanted to use the GUI
Jason Wittmer
@jbwittmer
Jul 18 2016 19:44
@sarahspins Don't know if it's related but I had very similar behavior with Nightscout this morning about the same time you reported problems. ultimately traced it down to problem with syncing with Nightscout. The rest of my loop was running but hanging up at the Nightscout upload portion every time. Rebooted Azure and all seems to be working now.
Julie
@julieraines
Jul 18 2016 19:45
I'm having a bit of trouble here:
openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Sat Jun 18 2016 15:32:49 GMT-0400 (EDT) vs Mon Jul 18 2016 15:39:45 GMT-0400 (EDT)
reporting enact/suggested.json
I'm 7 minutes off somewhere
John Dodds
@johners97
Jul 18 2016 19:50
@sarahspins thanks, but can i use the touch screen? or does that complicate matters lol
:D
sarahspins
@sarahspins
Jul 18 2016 19:52
@johners97 yes, and no, it's just not necessary :)
you probably won't be using it after setup
John Dodds
@johners97
Jul 18 2016 19:53
Ahhh well:) I have no idea about it. I will just use it as an output device?
sarahspins
@sarahspins
Jul 18 2016 19:54
@jbwittmer I rebooted my site and the uploads stopped hanging, but CGM data didn't come back for quite a while
John Dodds
@johners97
Jul 18 2016 19:54
and use the keyboard etc lolz
sarahspins
@sarahspins
Jul 18 2016 19:54
most people ssh into the pi once it's on the internet (aka local network)
Martin Haeberli
@mhaeberli
Jul 18 2016 19:54
@julieraines with your “7 minutes off somewhere” - I was having this problem yesterday but was asble to solve it by invoking my raw-cgm report first (but note I’m feeding G4->Share->Nightscout->OpenAPS, so your mileage may vary
John Dodds
@johners97
Jul 18 2016 19:54
ssh?
sarahspins
@sarahspins
Jul 18 2016 19:55
except for the pi I have running my 3D printer (which runs a web interface), that's how I interface with most of mine... though ssh
Martin Haeberli
@mhaeberli
Jul 18 2016 19:55
@johners97 ssh stands for “secure shell” - you use it from Terminal / command line to connect to your RPi / edison
Julie
@julieraines
Jul 18 2016 19:55
@johners97 once you set up the Pi then you sign into it securely over your own home network on your regular computer
John Dodds
@johners97
Jul 18 2016 19:55
Really? That sounds amazing
Julie
@julieraines
Jul 18 2016 19:56
so if you need a touchscreen at home because that's what you love working on then that's cool but you can use what you already have for that
unless this was a "shop-portunity"
sarahspins
@sarahspins
Jul 18 2016 19:56
yup, and you really won't be interfacing with the pi directly "most" of the time
it's not even really necessary for initial setup if you plug it into ethernet and do it that way
John Dodds
@johners97
Jul 18 2016 19:56
Is there instructions on how to use ssh ? from my laptop:)
Julie
@julieraines
Jul 18 2016 19:57
@mhaeberli - i am on g5 directly plugged in but need to get the NS thing working because my 12 year old WON'T STAY PUT long enough for me to get this thing working (seriously)
Martin Haeberli
@mhaeberli
Jul 18 2016 19:57
@johners97 what kind of laptop do you have ?
John Dodds
@johners97
Jul 18 2016 19:57
HP pavilion
Martin Haeberli
@mhaeberli
Jul 18 2016 19:58
@julieraines :+1: I can relate although ours is 17 ! - she’s great, but won’t stay put is a problem
@johners97 I assume you’re running some windows flavor
John Dodds
@johners97
Jul 18 2016 19:58
Microsoft/Windows 8
?
Martin Haeberli
@mhaeberli
Jul 18 2016 19:58
are you familiar with “cmd” or “Powershell”?
John Dodds
@johners97
Jul 18 2016 19:58
cmd yes :)
powershell too
Martin Haeberli
@mhaeberli
Jul 18 2016 20:00
@johners97 others here can probably advise better - but try google search: “cmd powershell windows 8 ssh” I understand you may need to install putty, for example
John Dodds
@johners97
Jul 18 2016 20:00
oh yes!
From open APS docs I seen something about putty
Paul Martin
@Spazholio
Jul 18 2016 20:00
@sarahspins Do you have BRIDGE_FIRST_FETCH_COUNT, BRIDGE_INTERVAL, and/or BRIDGE_MAX_COUNT set in your NS? I restart my NS daily (cronjob) and this ensures that I pull everything fairly comprehensively.
Martin Haeberli
@mhaeberli
Jul 18 2016 20:01
(i’m much more of a linux / mac-head tho I can use windows - on the windows side, me, personally, I would first install cygwin, but that’s probably a distraction for you
John Dodds
@johners97
Jul 18 2016 20:01
sorry if im plaguing this with trivial questions. I always ask questions, i have to understand otherwise I mess up lol
sarahspins
@sarahspins
Jul 18 2016 20:01
@Spazholio yes
Paul Martin
@Spazholio
Jul 18 2016 20:02
@sarahspins What are they set to?
John Dodds
@johners97
Jul 18 2016 20:02
It's actually embarrassing... I do so well at university but I can't even work a computer:/
sarahspins
@sarahspins
Jul 18 2016 20:05
first fetch is 3, interval is 150000 and max count is 1
those were all set ages again when I first set it up
I restarted it multiple times (10-15 minutes apart) this morning when it wasn't working and it randomly came up and started working some time later
and by "some time" it was probably 20ish minutes after the last restart
Paul Martin
@Spazholio
Jul 18 2016 20:09
Mine’s set to 288, 140000, 20. I have no idea if that would matter (because I don’t know why you were having such difficulties) but mine’s been pretty rock solid.
sarahspins
@sarahspins
Jul 18 2016 20:09
hmm... I might change those and see what happens
we'll see if it works and pulls the missing data from this morning :+1:
sarahspins
@sarahspins
Jul 18 2016 20:21
doesn't seem like it... weird
also, random question: does anyone know the approximate "age" of a 523/723 pump that has the right firmware? I think I want to start trying to look for one as a backup
Bill Stackpole
@billstackpole
Jul 18 2016 20:22
mine is from 2012
sarahspins
@sarahspins
Jul 18 2016 20:22
I'm pretty sure the one I have is from 2011 based on what the guy I got it from said, with 2.3A
but I don't know from what time frame they would have the right firmware.. some people list when they got their pump and if I know a date range to avoid, that might save some frustration :P
Mine has some fairly major cracks.. and though it works fine (for now) that makes me nervous
what upsets me though, is that I had a 512 ages ago that I traded in back in like 2008 that had a button error...now I ponder if I could have 'fixed' it :)
Paul Martin
@Spazholio
Jul 18 2016 20:30
Flashing rootfs, (it can take up to 10 minutes... Please be patient)
Download    [====                     ]  19%    312455168 bytesdfu-util: Error during download
Rebooting
I’ve had this happen 3-4 times, with different cables. What is this usually indicative of? I have the 2GB swap space set up and enabled, so I’m pretty sure that’s not it.
Hannah Crabtree
@lollydaggle
Jul 18 2016 20:38
@sarahspins I have a big missing chunk in my 523... The battery holder can still twist into it but I'm scared I'm going to drop it and I'll have no way to keep the battery down.
Julie
@julieraines
Jul 18 2016 20:39
@johners97 - i teach criminal justice so i'm in the same boat, my friend. i talk about police shootings not ssh all day at work. dive in and you'll be an expert in no time.
Hannah Crabtree
@lollydaggle
Jul 18 2016 20:47
Okay, so I'm having issues with my settings/ targets. The loop will keep my basal lower but my body is super reactive to the lesser amount of insulin at a delayed rate... I then spike faster than the loop can keep up with. I would notice this too when I'd tweak temp basals on my own.
blob
any thoughts? What target bands do people have success with? Mine's currently at 110-125 and I'm wondering if its too strict
sarahspins
@sarahspins
Jul 18 2016 20:50
@Spazholio maybe my bad edison luck rubbed off on you....
Paul Martin
@Spazholio
Jul 18 2016 20:50
Mine’s set to 100-100, so I’m likely a bad person to ask. However, are you hitting your max basal cap during that time?
@sarahspins Hey, I’ll take it if that’s what it was. This is just my dev rig. Still irritating though. =)
Jason Calabrese
@jasoncalabrese
Jul 18 2016 20:51
I've seen low temps after a meal cause a big spike, and I'm testing a change to go back to the old slower bolus snooze to try preventing those low temps
sarahspins
@sarahspins
Jul 18 2016 20:53
going to go to the mailbox... my RileyLink is here :+1:
Jason Calabrese
@jasoncalabrese
Jul 18 2016 20:53
too early to call it a success, but breakfast was better than it had been in the last 2 weeks and 40m past lunch it's still looking good
Hannah Crabtree
@lollydaggle
Jul 18 2016 20:53
Yep, hitting the cap of 2 (can it go over this?). I'm thinking I could also average what the loop is giving me between where I would expect it to be flat and see if I need to adjust my basal
I would just expect more flatter results when fasting
Julie
@julieraines
Jul 18 2016 20:57
Any reason why I get "false" on this:pi@raspberrypi:~/sasha $ openaps use ns shell preflight
false
Dana Lewis
@danamlewis
Jul 18 2016 20:57
@lollydaggle you set your max iob and max basal etc, so you can tweak and adjust those as needed… you may also need to tweak your DIA or baseline basals as noted
Hannah Crabtree
@lollydaggle
Jul 18 2016 21:00
Good to know the temp basal can go beyond the standard pump setting of 2 units/ hour. I'll try adjusting that up a tiny bit. Formal basal testing is in August but I should try it on my own sooner.
Dana Lewis
@danamlewis
Jul 18 2016 21:00
It’s not a standard pump setting, even. You set your max basal rate on your pump yourself, so it reads whatever you set there
(I would only adjust it, and/or maxiob in the loop, a bit at a time though. don’t go crazy :))
Hannah Crabtree
@lollydaggle
Jul 18 2016 21:03
@danamlewis I always used % basal for temps before this. I've learned a lot of new diabetic things lately :)
Dana Lewis
@danamlewis
Jul 18 2016 21:03
ahh :)
sarahspins
@sarahspins
Jul 18 2016 21:04
@lollydaggle one of the things i hated the most about going from MM to the Ping and then to the t:slim was that there was no option for absolute temps :P
Martin Haeberli
@mhaeberli
Jul 18 2016 21:08

@julieraines have you run:

nightscout autoconfigure-device-crud https://xxxsite.azurewebsites.net/ <api-secret>

?

Julie
@julieraines
Jul 18 2016 21:09
yes i have
Martin Haeberli
@mhaeberli
Jul 18 2016 21:09
if not, that might explain it.. if so, theories would include: - can’t reach nightscout, something else broken, ...
David Cintron
@loudestnoise
Jul 18 2016 21:09
so I wonder has anyone tried some of these fancy pants BG meters like the myDario or plan on ordering the new meter that works with the OneDrop ?
Julie
@julieraines
Jul 18 2016 21:09
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
Dana Lewis
@danamlewis
Jul 18 2016 21:10
ask @channemann that, @loudestnoise , and see what his accuracy findings have been on those ;)
Martin Haeberli
@mhaeberli
Jul 18 2016 21:11
@julieraines https://my.nightscout.host looks suspicious - unless this was edited for security
David Cintron
@loudestnoise
Jul 18 2016 21:11
Yeah, I was wondering about that. FDA approval probably means it’s accurate by + or - 200 mg/dL :laughing:
Julie
@julieraines
Jul 18 2016 21:11
hmmm
nothing i did
Martin Haeberli
@mhaeberli
Jul 18 2016 21:11
@julieraines you can also try this:
curl -v https://xxxsite.azurewebsites.net/api/v1/experiments/test --header "api-secret: <hash-value>”
@julieraines to check that your api secret is correct - I’ll send you a document link in a second
@julieraines IF that works, you should get a bunch of stuff, ending with {"status":"ok”}
Scott Leibrand
@scottleibrand
Jul 18 2016 21:14
@julieraines you're not off by 7 minutes, you're off by a month
Julie
@julieraines
Jul 18 2016 21:14
it's thinking about it - i'm on heroku so i switched it for that
Scott Leibrand
@scottleibrand
Jul 18 2016 21:14
one of your devices thinks it's June. :)
Julie
@julieraines
Jul 18 2016 21:14
holy crap
i think that's a sign
wish it were still june
Paul Martin
@Spazholio
Jul 18 2016 21:14
I hear June is nice this time of year.
Scott Leibrand
@scottleibrand
Jul 18 2016 21:14
lol
Julie
@julieraines
Jul 18 2016 21:15
lol lol lol
Martin Haeberli
@mhaeberli
Jul 18 2016 21:15
@Spazholio :-)
Julie
@julieraines
Jul 18 2016 21:15
@Spazholio - you're a stitch seriously
Scott Leibrand
@scottleibrand
Jul 18 2016 21:15
the loop is perfectly happy with 7 minute old data. 7 minutes into the future it won't like, and of course the wrong date isn't so good either :)
anything 10 minutes old to 5 minutes in future is fine
Julie
@julieraines
Jul 18 2016 21:17
ok - so i need to check the date and time on the cgm and on the pi? is that's what is not jiving?
oh lord
that's what is not jiving?
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 21:24
@julieraines what's the shell command "date" give you?
Julie
@julieraines
Jul 18 2016 21:25
pi@raspberrypi:~/sasha $ date
Mon Jul 18 17:24:46 EDT 2016
so that's correct
Scott Leibrand
@scottleibrand
Jul 18 2016 21:26
and CGM?
Julie
@julieraines
Jul 18 2016 21:26
i can't imagine i have the cgm set to june but sleep deprivation can do wonderful things to the brain - i'll double-check when she gets home
miss social is out and about right now
Scott Leibrand
@scottleibrand
Jul 18 2016 21:26
you can check from the CLI if you want
(if you have remote access to her rig)
Julie
@julieraines
Jul 18 2016 21:27
her rig isn't running yet
Scott Leibrand
@scottleibrand
Jul 18 2016 21:27
k
Julie
@julieraines
Jul 18 2016 21:27
the RPi2 is at home and she's at a party
Scott Leibrand
@scottleibrand
Jul 18 2016 21:27
you can check the glucose.json then
Paul Martin
@Spazholio
Jul 18 2016 21:29
Ok, so anyone have any ideas why I can’t flash my Edison? No matter what I try, it fails at round 14%. Sometimes if I’m lucky, it’ll get to 19%.
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 21:29
via what method?
@Spazholio
Julie
@julieraines
Jul 18 2016 21:30
BINGO - the CGM is the culprit - thanks @scottleibrand
cat monitor/glucose.json
[
{
"trend_arrow": "FLAT",
"system_time": "2016-07-18T19:31:25",
"display_time": "2016-06-18T15:32:49",
"glucose": 228
},
Paul Martin
@Spazholio
Jul 18 2016 21:31
Flashing from either my Mac or my Pi. Switched cables three times, and I’m using ones I know have worked before.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 21:35
you have the swap on? I open a 2nd terminal to the pi to start top first so I can watch the memory grow
Paul Martin
@Spazholio
Jul 18 2016 21:39
I have the swap enabled, yes. Server load is over 10, so it’s a little poky.
Swap is about halfway utilized though.
Not at the last bit where it fails at 14% yet though...
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 21:50
I flashed from my mac osx 10.11 following this; https://learn.sparkfun.com/tutorials/loading-debian-ubilinux-on-the-edison
1/2 of swap used and load @ 10 sound like you'd taxing the poor thing.
Paul Martin
@Spazholio
Jul 18 2016 21:53
10? Hah! That was minutes ago! I’m over 20 now. =)
But it’s up to 33%. We’ll see if it finishes...
sarahspins
@sarahspins
Jul 18 2016 21:56
@jasoncalabrese top was helpful for me when I was doing mine and thinking it "wasn't doing anything" :)
@Spazholio remember I had that one fail at 90% before it worked
Paul Martin
@Spazholio
Jul 18 2016 21:57
Hey.
You.
Shut up.
=)
My stuff is perfect and pristine and would NEVER dream of doing that to me.
(it can hear me, I know it can)
sarahspins
@sarahspins
Jul 18 2016 21:59
well you know my secret (curse at it)
it always seems to work.. earlier I was complaining about my NS site and it magically fixed itself :P
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 22:02
@Spazholio you could try "technical taps" if it fails again
Paul Martin
@Spazholio
Jul 18 2016 22:02
57%. Damn it all.
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 22:04
pi or osx?
Paul Martin
@Spazholio
Jul 18 2016 22:04
Pi.
OSX was no better. Quite a bit worse, actually.
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 22:04
interesting.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 22:04
it must have heard us
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 22:04
I was thinking about that the other day, I like the SD carb backup / replace while the edison is just flahs.
or flash.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 22:05
maybe it's getting hot
or not enough power
Kim St. Dennis
@kimstdennis_twitter
Jul 18 2016 22:06
anything in syslog? OOM or anything?
Paul Martin
@Spazholio
Jul 18 2016 22:07
I’d be surprised if it’s not enough power. I’m using the exact same setup I’ve used numerous times in the past.
No OOM or anything yet in syslog.
Jason Calabrese
@jasoncalabrese
Jul 18 2016 22:10
there's a flash log too
Paul Martin
@Spazholio
Jul 18 2016 22:11
In the toFlash dir?
sarahspins
@sarahspins
Jul 18 2016 22:11
@Spazholio yes
Paul Martin
@Spazholio
Jul 18 2016 22:13
Tailing...
Julie
@julieraines
Jul 18 2016 22:25
... The suspense is killing me 😆
Paul Martin
@Spazholio
Jul 18 2016 22:29
41% and dead.
Nothing in the flash.log.
Nothing in syslog either.
sarahspins
@sarahspins
Jul 18 2016 22:38
@Spazholio yup, my bad edison luck rubbed off on you, sorry! :-1:
Paul Martin
@Spazholio
Jul 18 2016 23:32
40%…again!
Still going!