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

5th
Feb 2017
John Benjamin
@Bender1061
Feb 05 2017 00:49
does anyone know how to put a backtick in an Alias, so that the command does not run during making the alias?
I want to put
openaps alias add ns-check "! bash -c \"echo -n Check NS BG && cat nightscout/uploaded-entries.json | grepjq '.[0].dateString' nightscout/glucose.json&& echo -n No Need to Upload || openaps upload-bg \""
but this happens
root@ED209:~/johnopenaps# openaps alias add ns-check "! bash -c \"echo -n Check NS BG && cat nightscout/uploaded-entries.json | grep `jq '.[0].dateString' nightscout/glucose.json` && echo -n No Need to Upload || openaps upload-bg \""
added ns-check ! bash -c "echo -n Check NS BG && cat nightscout/uploaded-entries.json | grep "2017-02-04T19:41:00-05:00" && echo -n No Need to Upload || openaps upload-bg "
@scottleibrand ?
@logichammer That is Awesome!
Matt Pressnall
@logichammer
Feb 05 2017 00:54
Up and running with brand new rig in about an hour? So fast! I'm buying another ExplorerBoard (first board is doing a fast red blinking light forever...closest to UART input) and I want to hook this up to xdrip and see how local / non internet dependency works. Going to look into autotune now, too! You folks have been BUSY!!!!
Dana Lewis
@danamlewis
Feb 05 2017 01:00
;) yup!
dougtakeuti
@dougtakeuti
Feb 05 2017 01:02
When running the setup script, what is [--bleserial=SM123456] [--blemac=FE:DC:BA:98:76:54] for?
Matt Pressnall
@logichammer
Feb 05 2017 01:04
@dougtakeuti, I believe for connecting to your dexcom directly if you have a G5 ...G4 with Share hasn't been fully stable it sounds like. Best guess on this.
@scottleibrand and @danamlewis , AUTOTUNE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DEAR GOD IN HEAVEN YOU ARE AMAZING!!!!
Going to show Carlin and she is going to lose her mind
Lynne Butts
@flutelynne_twitter
Feb 05 2017 01:14
This is the problem I have been running into Successfully installed openaps Cleaning up... Removing any existing pump device: removed medtronic://pump usage: openaps-device [-h] {add,remove,show} ... openaps-device: error: unrecognized arguments: xxxxxx US Can't add pump
Paul Delano
@spike1197
Feb 05 2017 01:21
@scottleibrand I believe the only thing I did to fix it was change from azure to heroku. but then it was only fixed for a few days. I just deleted the devicestatus collection. I"ll give it a few minutes to see if things come back around
Lynne Butts
@flutelynne_twitter
Feb 05 2017 01:22
I guess I am not really sure how to enter mmeowlink part. I did /dev/tty/ACM0 12345 but put my pump serial number in for the ‘12345'
Dana Lewis
@danamlewis
Feb 05 2017 01:23
@flutelynne_twitter do you have explorer board or something else?
Lynne Butts
@flutelynne_twitter
Feb 05 2017 01:24
TI stick and RPi2
Dana Lewis
@danamlewis
Feb 05 2017 01:24
(What's your radio stick)
Ok. Click that link to the mmeowlink docs to find out about the port for that
@logichammer :smile:
Scott Leibrand
@scottleibrand
Feb 05 2017 01:24
@Bender1061 I would use $(command) syntax instead of backticks.
Lynne Butts
@flutelynne_twitter
Feb 05 2017 01:24
It seems right by looking at that, but I will search further.
Paul Delano
@spike1197
Feb 05 2017 02:45
Screen Shot 2017-02-04 at 6.43.41 PM.png
I am having this issue still. everything was working fine. Prior to trying to fix it the last few days we didn't change anything on our nightscout site or openaps rigs.
Paul Delano
@spike1197
Feb 05 2017 02:53
i switched over to heroku from azure and the openaps and pump information was getting updated again but that only lasted a day. In the pumploop log It seems that things are wokring as expected. the only error I see is a syntax error: ...monitor/iob.json: Unexpected end of input]
Matt Pressnall
@logichammer
Feb 05 2017 03:27

Hmmmm....so I upgraded one of my pis to use the dev branch and it looks like things are working but I'm getting this error back a lot:

AttributeError: 'NoneType' object has no attribute 'iter_records'
139 2017-02-04T19:20:40.606000-08:00

So it is pulling BG numbers just fine. Ideas to troubleshoot / fix this? TIA!

Dana Lewis
@danamlewis
Feb 05 2017 03:35
That records is it trying to pull from plugged in CGM
So if you're intentionally pulling from NS , that's why and you can ignore it. Or plug in a CGM.
Also dev and master are almost identical so master is pretty much latest state right now
(You can keep running Dev, that's just a general note.)
Matt Pressnall
@logichammer
Feb 05 2017 03:37
Gotcha and nice to know! Yeah, I see it setting things just fine...Weird that I don't get this on the Edison but on the Pi I do...will do a little more poking to see why. Set ups look almost identical.
Dana Lewis
@danamlewis
Feb 05 2017 03:38
@spike1197 that error usually breaks the loop. It's successfully setting temps?
You can run that report manually to see what's going on - usually it's something with the profile..
John Benjamin
@Bender1061
Feb 05 2017 03:45
@scottleibrand I figured it out, either by editing the openaps.ini or putting it in the json and loading that.
what I was trying to do, the $() would not work for me
Paul Delano
@spike1197
Feb 05 2017 03:49
@danamlewis it isn't setting temps. I'll run that report manually and see.
Paul Delano
@spike1197
Feb 05 2017 04:05
@danamlewis so I ran
openaps report invoke monitor/iob.json
and got back
...settings/profile.json: Unexpected end of input
I probably ran the wrong thing. the file profile.json is empty but I see on old setup directories it is populated.
Dana Lewis
@danamlewis
Feb 05 2017 04:10
Cp your pumpprofile over to profile.json
And I wonder if autotune is causing this - so if you want to help us troubleshoot, after you do that, run autotune on yesterday's data and see if that re-causes an empty profile...
andyhandy
@andyhandy
Feb 05 2017 04:23
is this my Edison UART serial number?
Paul Delano
@spike1197
Feb 05 2017 04:29
@danamlewis Where would I find the pumpprofile? sorry if that is something I should already know.
peterfulvi
@peterfulvi
Feb 05 2017 05:18
image.png
Ok im back atit reran the setup diasled the aliases for the 512. this is what im getting
I will be in and out from my desk, im working 3rd
Scott Leibrand
@scottleibrand
Feb 05 2017 05:33
You'll need to keep your pump close until it gets the old settings data.
@spike1197 did you enable autotune when you ran oref0-setup?
Paul Dickens
@thebookins
Feb 05 2017 05:34
hey all, last time I set up an openaps rig it was before the awesomeness of oref0-setup.sh. I want to set up a rig that pulls the bgl from nightscout (i.e. there won't be a receiver attached). Doesn't seem to be an option in oref0-setup.sh, and I can't seem to find those instructions in the new docs. Am I missing something? Happy to PR a section if it's not there...
Scott Leibrand
@scottleibrand
Feb 05 2017 05:34
It always does that no matter what other method you choose.
Dana Lewis
@danamlewis
Feb 05 2017 05:34
@thebookins just select the type of CGM you have
Scott Leibrand
@scottleibrand
Feb 05 2017 05:34
Assuming you provide your NS URL of course.
Paul Dickens
@thebookins
Feb 05 2017 05:35
ah ha. Must be some other problem I'm having then. Maybe an old openaps install hanging around thx
Dana Lewis
@danamlewis
Feb 05 2017 05:40
@thebookins check your cron file - sometimes it adds duplicates if you rerun setup script multiple times
Scott Leibrand
@scottleibrand
Feb 05 2017 05:44
See also openaps/oref0#377
Paul Dickens
@thebookins
Feb 05 2017 05:47
ok thanks. By the way, is autotune in master yet? or should i install oref0 dev?
Scott Leibrand
@scottleibrand
Feb 05 2017 05:55
It's in master.
Dev only has a few minor fixes that master doesn't.
Paul Tinson
@ptinson
Feb 05 2017 05:56
@scottleibrand I have tested open vpn with my edison and my laptop, running the server on digital ocean and it works well, setting it up is really simple for the client.
let me know if you want to use and ill generate a config, all i will need is a unique name for any clients
happy to host the server for the community
Scott Leibrand
@scottleibrand
Feb 05 2017 05:57
How would people use it exactly?
Paul Tinson
@ptinson
Feb 05 2017 05:58
If it has value ill also add web page to generate the client certs.
you run the client on your edison, when it has a network connection it will stand up a tunnel
you can ssh between any client
so if you want to make a change on a remote edison, or help someone out its easier
Scott Leibrand
@scottleibrand
Feb 05 2017 05:59
So no exposed endpoints: you have to have your laptop be a VPN client too?
Paul Tinson
@ptinson
Feb 05 2017 05:59
yep
Scott Leibrand
@scottleibrand
Feb 05 2017 06:00
But anyone who sets up their own VPN client can try to ssh to your rig...
Paul Tinson
@ptinson
Feb 05 2017 06:00
all are in a secure vpn
they can try.
Scott Leibrand
@scottleibrand
Feb 05 2017 06:00
So we'd need to make everyone set up a really secure password, since we can't vet everyone using the service.
Unless we can stand up a different VPN per person.
Paul Tinson
@ptinson
Feb 05 2017 06:01
that is easy as well, could do that.
Scott Leibrand
@scottleibrand
Feb 05 2017 06:01
So only they (and anyone they let connect to their VPN) can access.
That seems safer
If it's feasible
Paul Tinson
@ptinson
Feb 05 2017 06:01
or you stop telling people to set root passwords
and ony have non priviledged accounts
Scott Leibrand
@scottleibrand
Feb 05 2017 06:02
Doesn't matter if it's root or edison, since edison can sudo
Wonder if we could allow ssh key access only over vpn?
So you can only use password locally
Paul Tinson
@ptinson
Feb 05 2017 06:03
that is likly possible with some pam config
likely
Scott Leibrand
@scottleibrand
Feb 05 2017 06:03
Challenge will be that people using this won't know how to secure things, so we need it secure by default
Paul Tinson
@ptinson
Feb 05 2017 06:04
could also setup a simple set of iptables rules for people and an opensaps script to allow another client in
have to remember to close it or restart the edison
could run a subnet per person, they can give you access to thier network
assign each a /28 range maybe
then they have 14 usable addresses
Scott Leibrand
@scottleibrand
Feb 05 2017 06:06
Or use IPv6, since it's all private anyway.
Paul Tinson
@ptinson
Feb 05 2017 06:06
possible.
Scott Leibrand
@scottleibrand
Feb 05 2017 06:07
Although that makes typing it hard
Unless we do some sort of DNS too
Paul Tinson
@ptinson
Feb 05 2017 06:08
ipv4 is easier for people to troubleshoot as well
seems less mystical
Scott Leibrand
@scottleibrand
Feb 05 2017 06:08
Heh. Want to write up the config etc. so I can test it out on my own droplet, and we can both experiment with figuring out a config that will work for general use?
peterfulvi
@peterfulvi
Feb 05 2017 06:09
image.png
@scottleibrand .So does it looks like i can go forward and start workingon the cgm aspect. Im getting an enlite transmitter this week. I heard it works with the 512 even though i dont see any documentation in the manual,i know it has a remote glucometer so i figure it connects to the transmitter the same way
Paul Tinson
@ptinson
Feb 05 2017 06:09
yeah i write it up tonight
may just put all the server side in a script
Scott Leibrand
@scottleibrand
Feb 05 2017 06:09
@peterfulvi -99 is bad
That means your rig can't talk to your pump at all.
I doubt Enlite works with 512. Don't think it even works with 515.
Thx @ptinson
Paul Tinson
@ptinson
Feb 05 2017 06:11
oh, i may just have a play with using a google pam module for two factor auth, then the person would have to be given a one time token
might work
Scott Leibrand
@scottleibrand
Feb 05 2017 06:11
Heh that could be interesting.
Paul Tinson
@ptinson
Feb 05 2017 06:12
possible wise regardless as some people will have the edison set to join any available wifi network
peterfulvi
@peterfulvi
Feb 05 2017 06:12
Ok. That stinks. Is it mechachanical or a compatability issue with the 512 -99.
Scott Leibrand
@scottleibrand
Feb 05 2017 06:12
What model number of 512?
Paul Delano
@spike1197
Feb 05 2017 06:12
Screen Shot 2017-02-04 at 10.03.48 PM.png
@scottleibrand @danamlewis back in business. we did a pull/clone on each device and ran oref0-setup. the only change we made was g4-raw for type of cgm. all very bizarre as to why it happened inthe first place but I am glad to get it back up and running. thanks for your help and patience.
Scott Leibrand
@scottleibrand
Feb 05 2017 06:13
@peterfulvi and how far away is the pump from the rig?
peterfulvi
@peterfulvi
Feb 05 2017 06:14
next to it
Scott Leibrand
@scottleibrand
Feb 05 2017 06:14
I think you showed output earlier showing it talking ok...
peterfulvi
@peterfulvi
Feb 05 2017 06:14
yes
Scott Leibrand
@scottleibrand
Feb 05 2017 06:14
Try a few more mmtunes and see if it gets something better.
peterfulvi
@peterfulvi
Feb 05 2017 06:14
ok
mmt-512lnab thats the model number. Im rebooting and tailing the logs again
Dana Lewis
@danamlewis
Feb 05 2017 06:20
@spike1197 glad it's working again. Can you confirm if you are running with autotune? Or not?
peterfulvi
@peterfulvi
Feb 05 2017 06:23
image.png
That -99 still pops up.
peterfulvi
@peterfulvi
Feb 05 2017 06:32
now its saying"916.516", 2, -81 Starting pump-loop at Sun Feb 5 01:31:20 EST 2017:
Radio ok, Listening: ."916.516", 2, -81 Starting pump-loop at Sun Feb 5 01:31:20 EST 2017:
peterfulvi
@peterfulvi
Feb 05 2017 06:41
image.png
More of this stuff
Ed Raskin
@msrcgm
Feb 05 2017 06:47

Hi, trying to run autotune using the easy version. I am getting through the entire process through phase 4. However, at phase 4 I am getting some sort of error. I have verified my profile.json. Everything looks right. Is anyone able to take a look at the output and advise?ebacha@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://maxdex.azurewebsites.net --start-date=2017-02-01
Running oref0-autotune --dir=/home/ebacha/myopenaps --ns-host=https://maxdex.azurewebsites.net --start-date=2017-02-01 --runs=1 --end-date=2017-02-03
json: error: input is not JSON: Unexpected '.' at line 8, column 15:
"rate": .8
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://maxdex.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-31T20:00-0800&find\[created_at\]\[$lte\]=2017-02-04T00:00-0800
-rw-r--r-- 1 ebacha ebacha 95550 Feb 4 22:44 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://maxdex.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485936000000&find\[date\]\[$lte\]=1486022400000&count=1000
-rw-r--r-- 1 ebacha ebacha 44220 Feb 4 22:44 ns-entries.2017-02-01.json
https://maxdex.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1486022400000&find\[date\]\[$lte\]=1486108800000&count=1000
-rw-r--r-- 1 ebacha ebacha 44789 Feb 4 22:44 ns-entries.2017-02-02.json
https://maxdex.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1486108800000&find\[date\]\[$lte\]=1486195200000&count=1000
-rw-r--r-- 1 ebacha ebacha 45344 Feb 4 22:44 ns-entries.2017-02-03.json
Running 1 runs from 2017-02-01 to 2017-02-03
oref0-autotune-prep ns-treatments.json profile.json ns-entries.2017-02-01.json > autotune.1.2017-02-01.json
Could not parse input data: [SyntaxError: Unexpected token .]
oref0-autotune-core autotune.1.2017-02-01.json profile.json profile.pump.json > newprofile.1.2017-02-01.json
Could not parse input data: [SyntaxError: Unexpected token .]
oref0-autotune-prep ns-treatments.json profile.json ns-entries.2017-02-02.json > autotune.1.2017-02-02.json
Error: carb_ratio undefined out of bounds
oref0-autotune-core autotune.1.2017-02-02.json profile.json profile.pump.json > newprofile.1.2017-02-02.json
Could not parse input data: [SyntaxError: Unexpected token .]
oref0-autotune-prep ns-treatments.json profile.json ns-entries.2017-02-03.json > autotune.1.2017-02-03.json
Error: carb_ratio undefined out of bounds
oref0-autotune-core autotune.1.2017-02-03.json profile.json profile.pump.json > newprofile.1.2017-02-03.json
Could not parse input data: [SyntaxError: Unexpected token .]

Autotune pump profile recommendations:

Recommendations Log File: /home/ebacha/myopenaps/autotune/autotune_recommendations.log

jq: error: Cannot iterate over null
jq: error: Cannot iterate over null
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 25.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.8 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | 0.9 |
07:30 | |
08:00 | |
08:30 |

Scott Leibrand
@scottleibrand
Feb 05 2017 06:53
@msrcgm it's pointing you right at the location of the problem. JavaScript doesn't allow decimals put in without a leading zero. So change .8 to 0.8.
@peterfulvi did you paste in the alias with the curly quote again somehow?
peterfulvi
@peterfulvi
Feb 05 2017 06:57
I pasted directlyfrom the revised alias killall -g openaps
openaps alias remove gather
openaps alias add gather '! bash -c "(openaps monitor-pump || openaps monitor-pump) 2>/dev/null >/dev/null && echo refreshed pumphistory || (echo unable to refresh pumphistory; exit 1) 2>/dev/null"'. I moved the pump to a new loacation on an elevated surface
image.png
peterfulvi
@peterfulvi
Feb 05 2017 07:05
image.png
Going crazy again
image.png
I'll probably look for a new pump. This one i found on the slack channel an a compatible pump for openaps.
Ed Raskin
@msrcgm
Feb 05 2017 07:09
@scottleibrand I changed to 0.8 (no ".") at the end, but still giving me the following output error:bacha@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://maxdex.azurewebsites.net --start-date=2017-02-01
Running oref0-autotune --dir=/home/ebacha/myopenaps --ns-host=https://maxdex.azurewebsites.net --start-date=2017-02-01 --runs=1 --end-date=20
17-02-03
json: error: input is not JSON: Unexpected '.' at line 8, column 15:
"rate": .8
Dana Lewis
@danamlewis
Feb 05 2017 07:10
@msrcgm did you re- cp the file twice again? After you changed it?
Ed Raskin
@msrcgm
Feb 05 2017 07:11
my profile looks like this:
"min_5m_carbimpact": 3,
"dia": 4.5,
"basalprofile": [
{
"start": "00:00:00",
"minutes": 0,
"rate": 0.8
},
{
"start": "07:00:00",
"minutes": 420,
"rate": 0.9
},
{
"start": "19:30:00",
"minutes": 1170,
"rate": 0.8
},
{
"start": "20:30:00",
"minutes": 1230,
"rate": 0.7
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 25,
"offset": 0,
"x": 0,
"endOffset": 1440
}
Ah! @danamlewis let me try that
Dana Lewis
@danamlewis
Feb 05 2017 07:12
@peterfulvi you may want to copy and paste any error messages you're getting, it's very hard to read the images. And a 512 is technically compatible, but it sounds like you really want a 522 or 523 if you want to loop with a Medtronic CGM?
Paul Delano
@spike1197
Feb 05 2017 07:12
@danamlewis We answered yes to autotune, I can run it in manual mode from command line. Does that answer your question? I have not run through the multiple phases of setting it up yet.
Dana Lewis
@danamlewis
Feb 05 2017 07:13
@spike1197 yes, thanks. Let me know if it happens again (blanked out profile.json) - if so we may need to improve the autotune error checking against dud files if so.
Paul Delano
@spike1197
Feb 05 2017 07:14
@danamlewis OK. will do.
Dana Lewis
@danamlewis
Feb 05 2017 07:15
@msrcgm :+1: (and if you have further errors/that doesn't fix it, let's hop over to https://gitter.im/openaps/autotune for further troubleshooting - we created a separate channel for autotune)
Ed Raskin
@msrcgm
Feb 05 2017 07:17
Got it -- output success. Very cool.
peterfulvi
@peterfulvi
Feb 05 2017 07:17
I think thats what im going to do look for a 522. Heres my last output: Listening: ........................No pump comms detected from other rigs
mmtune: monitor/mmtune.json raised /dev/spidev5.1 already in use
pump://JSON/mmtune/monitor/mmtune.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 44, in call
self.before_main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 62, in before_main
self.setup_medtronic( )
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/mmeowlink.py", line 92, in setup_medtronic
setup_medtronic_link(self)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/mmeowlink.py", line 75, in setup_medtronic_link
link = builder.build(radio_type, port)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/link_builder.py", line 16, in build
return SubgRfspyLink(port)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 55, in init
self.open()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 23, in open
raise AlreadyInUseException("%s already in use" % self.device)
Dana Lewis
@danamlewis
Feb 05 2017 07:20
@peterfulvi triple check everything on this list, particularly the 512 notes toward the end: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/troubleshoot-oref0-setup.html#it-s-not-working-yet
@msrcgm awesome! Glad it worked.
Paul Dickens
@thebookins
Feb 05 2017 07:20
Now oref0-setup.sh is failing with ImportError: No module named timezones
Anyone seen that before?
peterfulvi
@peterfulvi
Feb 05 2017 07:22
@danamlewis Should i disable cron while i dothe remove alias commands forthe 512
Dana Lewis
@danamlewis
Feb 05 2017 07:23
@peterfulvi I don't think it should matter - the killall is what's key for halting any processes at the moment.
@thebookins yep but don't remember what the resolution was off the top of my head - try searching for that error message here in channel.
Easy check should also be to make sure your CGM is reasonably timed, but I think this timezone error comes from something else obvious
peterfulvi
@peterfulvi
Feb 05 2017 07:33
I removed the aliases as it said in the trouble shooting and rebooted and this is th latest: tail -F /var/log/openaps/pump-loop.log
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interfac e.py", line 28, in open
self.check_setup()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link .py", line 76, in check_setup
version = self.serial_rf_spy.get_response(timeout=1).split(' ')[1]
IndexError: list index out of range
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.636", 0, -99 Listening: .Starting pump-loop at Sun Feb 5 02:28:14 EST 2017 :
Radio ok, Listening: .No pump comms detected from other rigs
Old pumphistory: refreshed pumphistory
Could not parse input data: [SyntaxError: /root/myopenaps/monitor/iob.json: Unexpected end of input]
determine-basal://text/shell/enact/suggested.json
reporting enact/suggested.json
cat: enact/enacted.json: No such file or directory
Old settings refreshError, retrying
Listening: .No pump comms detected from other rigs
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
"916.588", 1, -91 Starting pump-loop at Sun Feb 5 02:30:56 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs
Old settings refreshError, retrying
Starting pump-loop at Sun Feb 5 02:31:43 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs
Old settings refreshError, retrying
David
@dakago
Feb 05 2017 07:34
Hey @danamlewis @peterfulvi I added that last part in the docs about the 512 (sorry about the curly quote!) and I have to say that even though I was able to get everything working without any errors, there was something about the 512 that messed with the radio signal. I would also continually get -99 or maybe slightly better sometimes. I thought it might be the explorer board but the problem went away when I connected Sara's 515 to it. Don't know if anyone else has gotten it to work correctly. Maybe should add a note about 512 compatibility?
Dana Lewis
@danamlewis
Feb 05 2017 07:35
Now follow the instructions that say give it 10 minutes :smile: to give it a chance to read
Hm. Interesting - Peter may be able to confirm this, or maybe someone else w a 512 will be able to confirm this behavior.
Haven't heard of this being an issue w range on 512 pre-explorer boards, but it may be no one w a 512 tried a TI stick and just chalked it up to carelink range limitations?
@audiefile can you remind me if one of yours was a 512 or a 515? (And anyone else please chime in if they can help test and validate this - would be helpful for someone else w a working explorer board setup w another pump test it with a 512)
peterfulvi
@peterfulvi
Feb 05 2017 07:38
What should i do now. Does that mean its a compatability issue?
Dana Lewis
@danamlewis
Feb 05 2017 07:40
@peterfulvi give it 10-15 minutes to do a full history read
It always takes a bit the first time around. Then since we know you have a 512 we'll want to triple check all your files were set up correctly, etc.
@peterfulvi where do you live? One thing that could help simplify testing range of 512 is if you live in same town/nearby someone you could meetup with and test your pump with a known working rig..
peterfulvi
@peterfulvi
Feb 05 2017 07:42
so i'll just let it run the loop for 10-15 minutes. I noticed changing numbers a little bit. I live in Plymouth,Ma
Im running tail command right now
Dana Lewis
@danamlewis
Feb 05 2017 07:44
K. Keep watching it and we'll go from there. The changing mmeowlink values is good sign - rest is probably a question of making sure all the static files are correct.
Heading to bed here, but fingers crossed it works and if not, keep posting and someone else can probably help pick up troubleshooting w/ you. Night!
peterfulvi
@peterfulvi
Feb 05 2017 07:47
its 2:45 im running it until 3:00. I made a BG_target.json file and a pump_settings.json and placed them in the myopenaps directory
Paul Dickens
@thebookins
Feb 05 2017 07:47
thanks @danamlewis someone had the same issue in June last year - looks like a packaging issue with openapscontrib and conflict with openapscontrib.mmhistorytools. Uninstalled and reinstalled all openapscontrib stuff and back in business.
peterfulvi
@peterfulvi
Feb 05 2017 07:49
Its dow to -77
Paul Tinson
@ptinson
Feb 05 2017 08:06
@scottleibrand the first cut at the openvpn script is ready
ill pm it incase you dont see it in here
peterfulvi
@peterfulvi
Feb 05 2017 09:45
@danamlewis Im going to PM my static files for you to checkiput them in the myopenaps directory and also the /settings subdirectory to see if that would work, thanks for your help. Im signing off. i'll be on tomorrow sometime.
Tim Street
@tim2000s
Feb 05 2017 11:06
Stupid things not to do in crontab. Accidentally Add a # to the end of a line changing the file name so it doesn't work...
zekeat09
@zekeat09
Feb 05 2017 13:01
Hi, my son having 640g with enlite sensor. I intend to start openAPS with 522 pump. I just found out the 522 pump hv its own transmittal and I can't use 640g cgm transmittal.
Any solution? In my country, very few ppl use cgm. If i continue OpenAPS with 522 pump, then i need to buy new transmittal.
Aaron Michelson
@Aaybob
Feb 05 2017 14:08
@woodtrevor Great! But a lot of people would prefer an example they could use directly or with slight modifications. This reminds me of Pancreabble, not a low hanging fruit.
Aaron Michelson
@Aaybob
Feb 05 2017 14:19
@peterfulvi I've seen this error. "9919", 0 (this should be 5 I think that means all five things are working),-99. That's all I know. I have recovered, fixed this error I remember by putting the pump next to the explorer board and/or removing power after a shutdown and then rebooting, and by making sure the pump battery was strong enough (not nearly expended). There may be other fixes I've forgotten.
@thebookins I don't remember seeing that error. The *setup.sh only depends on the two previous commands and the edison initial setup. I'd rerun those. There is a timezone command in initial setup in which a screen opens and you select your timezone.
PieterGit
@PieterGit
Feb 05 2017 14:54
i now am trying the new release with G4-raw option. is there anything I must enable to use raw values? raw-cgm directory is empty
PieterGit
@PieterGit
Feb 05 2017 15:09
when i use openaps invoke raw-cgm/raw-entries.json is see the new glucose entries. The openaps-cgm-loop doesn't read recent entries (sensor is overaged now). The cgm-loop has:
first://JSON/shell/monitor/glucose-zoned-first.json
reporting monitor/glucose-zoned-first.json
ns://JSON/shell/nightscout/uploaded-first.json
reporting nightscout/uploaded-first.json
ns://JSON/shell/nightscout/recent-missing-entries.json
reporting nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
reporting nightscout/uploaded-entries.json
CGM Data 26.56 mins ago is old (>=3)
Glucose is not fresh, not pulling extra data
Sun  5 Feb 16:08:01 CET 2017
CGM Data 27.11 mins ago is old (>=5.1), not waiting
cgm://JSON/oref0_glucose/monitor/glucose-oref0.json
reporting monitor/glucose-oref0.json
tz://JSON/rezone/monitor/glucose-zoned.json
reporting monitor/glucose-zoned.json
merge://JSON/shell/monitor/glucose-zoned-merge.json
reporting monitor/glucose-zoned-merge.json
raw://JSON/shell/monitor/glucose-raw-merge.json
reporting monitor/glucose-raw-merge.json
>>>>RESULTS<<<<
140  2017-02-05T15:40:56+01:00
137  2017-02-05T15:35:55+01:00
136  2017-02-05T15:30:55+01:00
PieterGit
@PieterGit
Feb 05 2017 15:17
my bad... raw-cgm/raw-entries.json has same time values. I thought a sensor bg from yesterday was current, but didn't look good enough at the date part of the timestamp
jburke41
@jburke41
Feb 05 2017 15:37
The edison is set to the correct timezone, but displays the wrong time and date---any advice? https://scontent-iad3-1.xx.fbcdn.net/v/t35.0-12/16522499_695440377331208_2028693880_o.jpg?oh=0d5dee72b733697e16e03c24442968da&oe=58991FB2
kws1969
@kws1969
Feb 05 2017 16:24
Good morning, has anyone ever had an Edison while flashing hang up and disappear? Two times in a row on two different edisons while doing the "./flashall.sh" command it started running then hung up and stoped. Now my Mac can't see the explorer anymore. I've tried switching cables, powering down, restarting my computer and resetting my smc.
I even tried hooking to windows computer and it can't see the Edison either Please help. 😞😞😞
JustineAnne
@MicheleJustine
Feb 05 2017 17:03
Hi everyone, I have used terminal and written rasbian jessie to my SD card but I'm not sure how to tell when it has successfully finished writing. I tried using the command CTRL+T but I'm don't know what the information it is showing means or how to tell if it has completed the process.
Scott Leibrand
@scottleibrand
Feb 05 2017 17:46

It'll be obvious when it's done: you'll get your prompt back. 😀

The Ctrl-T output shows the number of bytes written. You can compare that to the size of your image file in bytes to see how much is done/left.

@kws1969 what does the console (screen) window show? Not sure why everyone pays so much attention to the finder window and completely ignores the console, but apparently we need some docs clarification on that...
@jburke41 your time will be wrong until you get online and can sync it with the network time servers. Looks like your wpa_supplicant.conf has some sort of error that is blocking that.
@zekeat09 you will need to get an older Enlite transmitter if you want to use it with the 522 directly.
Scott Leibrand
@scottleibrand
Feb 05 2017 17:52
@peterfulvi it looks like you never completely fixed the curly quote issue. You might need to delete your myopenaps directory (rm -rf ~/myopenaps) and re-run oref0-setup from scratch. But you'll also still need a newer pump that can talk to the Enlite, or a standalone CGM.
@ptinson nice, thanks. I'll test it out later and let you know.
kws1969
@kws1969
Feb 05 2017 17:55
Scott when I got to terminal and type
sudo screen /dev/tty.usbserial-* 115200 the screen goes blank with curser but it's like it won't wake up ?
Just blank screen with curser
kws1969
@kws1969
Feb 05 2017 18:07
This is an Edison 1 would this make a difference?
Scott Leibrand
@scottleibrand
Feb 05 2017 18:13
Hitting enter does nothing? In that case, try unplugging the cable from the UART, plugging it back in, and relaunching screen in a new Terminal window/tab.
If it's still non-responsive after that, reboot the Edison by holding down the black power button for 10 seconds to turn it off, and 2 seconds to turn it back on. It should show a boot sequence on console.
kws1969
@kws1969
Feb 05 2017 18:33
Ok now started doing something. It's going so fast I can't read the error
John Benjamin
@Bender1061
Feb 05 2017 18:33
I have found, that I need to have the edison on first, before i plug into the UART. So I will plug power into the battery or the OTG first, otherwise the putty won't connect
kws1969
@kws1969
Feb 05 2017 18:34
It stopped let me try and post a pic
John Benjamin
@Bender1061
Feb 05 2017 18:34
for serial
kws1969
@kws1969
Feb 05 2017 18:36
    Starting Create Volatile Files and Directories...
[ OK ] Started Load/Save RF Kill Switch Status of rfkill2.
[ OK ] Started Load/Save RF Kill Switch Status of rfkill1.
[ OK ] Started Load/Save RF Kill Switch Status of rfkill0.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Trigger Flushing of Journal to Persistent Storage.
[ OK ] Found device /dev/disk/by-partlabel/home.
[ OK ] Reached target Sound Card.
Starting File System Check on /dev/disk/by-partlabel/home...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Network Time Synchronization.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ 18.734713] systemd-fsck[156]: /dev/mmcblk0p10: recovering journal
[ 18.755043] systemd-fsck[156]: /dev/mmcblk0p10: clean, 11/87120 files, 14181/348155 blocks
[ OK ] Started File System Check on /dev/disk/by-partlabel/home.
Mounting /home...
[ OK ] Mounted /home.
Starting Rescue Shell...
[ OK ] Started Rescue Shell.
[ OK ] Reached target Rescue Mode.
now its stuck again
kws1969
@kws1969
Feb 05 2017 18:46
does this mean its in some sort of rescue mode????
i tried holding down the power key and restarting and same thing. it just hangs at this point
woodtrevor
@woodtrevor
Feb 05 2017 18:50
@Aaybob Yeah, good point. I'm working on a few small changes to what I'm doing to keep my Carelink running. I'll PR a more concrete example to that section once I get it finished.
peterfulvi
@peterfulvi
Feb 05 2017 20:02
@scottleibrand . Im back the drawing board. I actually found a 523 at areasonable price im looking into. Hopefully by the end of the week i'll have the transmitter and the pump. Im also drafting a case for the explore and edison that will be able to slide on my belt. so i will be back in touch. Im not giving up.
Scott Leibrand
@scottleibrand
Feb 05 2017 20:08
@kws1969 there is an entire section of the docs for rescue mode.
Matt Pressnall
@logichammer
Feb 05 2017 20:12
!(https://content.screencast.com/users/loki_mdog/folders/Snagit/media/eb74cca7-98c0-45af-8503-6f9e92cf73f2/02.05.2017-12.10.png)
Crazy simple question: I thought that the new Explorer boards had a reset button...button when I quick press or long press this button, nothing happens. Am I crazy? Many thanks!
Matt Pressnall
@logichammer
Feb 05 2017 20:30
Also, if you shutdown the edison / explorerboard, the only way I can power it up is by unplugging the battery and plugging it back in? I am doing something wrong.
jburke41
@jburke41
Feb 05 2017 20:32
@logichammer that's really the only way to do it
Matt Pressnall
@logichammer
Feb 05 2017 20:32
thanks, @jburke41 ! Nice to have confirmation...does that button do anything for you?
jburke41
@jburke41
Feb 05 2017 20:44
@logichammer I have honestly never tried the button
Scott Leibrand
@scottleibrand
Feb 05 2017 20:47
That is incorrect. The black button works the same as he white one on the Intel mini breakout board.
Holding it for 10s powers down the rig hard. A shorter press triggers a halt if you have acpid installed properly per the docs. A 2s or so press turns it back on.
Scott Leibrand
@scottleibrand
Feb 05 2017 20:56
You should never have to unplug the battery.
joannestevens
@joannestevens
Feb 05 2017 21:06
Evening all, I am trying to tether my phone to my pi and I notice the docs have been updated for the explorer board. Should I follow these instructions or follow the ones in the general set up section? Thanks
jburke41
@jburke41
Feb 05 2017 21:11
For the intel edison set up, does the dexcom have to be plugged into the explorer board? if so, which port?
Dana Lewis
@danamlewis
Feb 05 2017 21:14
Have to? No. But if you want to plug it in in general, use otg
You need 2 cords to the explorer during setup so you probably won't want Dexcom plugged in then anyway
@joannestevens I would follow anything marked for the Pi. Not sure the explorer board tethering is relevant, although someone recently remarked they might have some additions to the docs to improve Pi tethering , so maybe they'll chime in with some tips.
@logichammer did you see the "that is incorrect" response?
jburke41
@jburke41
Feb 05 2017 21:17
I am trying the intel edison for the first time. I am running the log and I keep getting the error "Attemping to use a port that is not open. ANy insight?
@danamlewis Does the explorer just get bg data from nightscout? With my rasp pi, I always had the dexcom plugged in
Dana Lewis
@danamlewis
Feb 05 2017 21:19
By default, yes, unless you plug CGM in.
joannestevens
@joannestevens
Feb 05 2017 21:20
@danamlewis thanks, I will follow the instructions in the general set up then
jburke41
@jburke41
Feb 05 2017 21:20
@danamlewis have you seen the error attemping to use a port that is not open?
Dana Lewis
@danamlewis
Feb 05 2017 21:20
@jburke41 check to make sure you entered the correct port for explorer board
jburke41
@jburke41
Feb 05 2017 21:21
@danamlewis I am not sure what you mean exactly---I am running the edison through a rasp pi
Dana Lewis
@danamlewis
Feb 05 2017 21:22
Ok you need to put the Edison on the explorer board
jburke41
@jburke41
Feb 05 2017 21:22
yes it is on the exploer board
Dana Lewis
@danamlewis
Feb 05 2017 21:23
I'm confused. You say you're running Edison through a raspberry Pi but it's on the board?
You should be ssh into the Edison
And follow the instructions for the explorer board. Ie for setup script, it says "be prepared to enter"..and in that list explicitly tells you the port for explorer board for mmeowlink
So go check and make sure you did that correctly
jburke41
@jburke41
Feb 05 2017 21:25
Missed that step! Thanks!
glenrob1940
@glenrob1940
Feb 05 2017 21:49
I believe that should be a small 'f' /tail -f /var/log/openaps/pump-loop.log
disregard the forward slash before tail in my post
Another point, you probably shouldn't post the website you are using for NS
jburke41
@jburke41
Feb 05 2017 21:54
Good point
will delete
Dana Lewis
@danamlewis
Feb 05 2017 21:59
(Tip: copy/paste error messages instead of screenshots or links)
jburke41
@jburke41
Feb 05 2017 22:01
root@jburke41:~# tail -f /var/log/openaps/pump-loop.log
tail: cannot open �/var/log/openaps/pump-loop.log� for reading: No such file or directory
tail: no files remaining
glenrob1940
@glenrob1940
Feb 05 2017 22:01
try an 'ls -al /var/log/openaps' and see who owns it and permissions. Your prompt indicates you are logged in as root, so that shouldn't be an issue, but it wouldn't hurt to see owershippermissions
jburke41
@jburke41
Feb 05 2017 22:02
root@jburke41:~# ls -al /var/log/openaps
total 8
drwxr-xr-x 2 root root 4096 Feb 5 16:03 .
drwxr-xr-x 9 root root 4096 Feb 5 16:03 ..
Scorponok
@Scorponok
Feb 05 2017 22:02
@jburke41 When you ran the oref0-setup script, did you tell it to install the cron jobs at the very end?
glenrob1940
@glenrob1940
Feb 05 2017 22:04
Adding to @jburke41's note, if you didn't the easiest step is to just rerun the oref0-setup script and enable cron
jburke41
@jburke41
Feb 05 2017 22:04
How do I enable cron? I was not prompted for that?
glenrob1940
@glenrob1940
Feb 05 2017 22:05
It should have been about the last step in oref0-setup
jburke41
@jburke41
Feb 05 2017 22:05
Did I have to say yes to advanded features?
glenrob1940
@glenrob1940
Feb 05 2017 22:05
no
Scorponok
@Scorponok
Feb 05 2017 22:05
No, it happens even if you say no
If you didn't enable the cron stuff, that means openaps is installed, but not running
jburke41
@jburke41
Feb 05 2017 22:06
ok Im just going to try the setup again
Scorponok
@Scorponok
Feb 05 2017 22:06
cron runs it every minute or something, which causes it to generate log files - there are no log files because it isn't running
jburke41
@jburke41
Feb 05 2017 22:09

To run again with these same options, use:

oref0-setup --dir=/root/jburke41 --serial=514359 --cgm=G5 --ns-host=https://XXX --api-secret=XXX--tty=/dev/spidev5.1 --radio_locale='US'

Do I say Y to this?

Tim Howard
@tghoward
Feb 05 2017 22:12
@scottleibrand about acpid - I have it installed and just checked using jounalctl -f that pressing the power button does register, but I can't get a soft shutdown with a brief press (or couple second press). I do get a hard shutdown with the approx. ten second press. I found /etc/acpi/powerbtn-acpi-support.sh and it seems to call for the soft shutdown. Good to know it is supposed to work ...
And, thanks for clarifying my comment about the led going off when finished charging! :+1:
Dana Lewis
@danamlewis
Feb 05 2017 22:14
@jburke41 yes. You will still get the prompt for cron.
jburke41
@jburke41
Feb 05 2017 22:25
Thank you SO much to everyone! Finally up and running!
Dana Lewis
@danamlewis
Feb 05 2017 22:26
PRs welcome to improve the docs - there's several places where you missed things, PRs would be great to help improve things for the next person.
jburke41
@jburke41
Feb 05 2017 22:28
For sure!
Scott Leibrand
@scottleibrand
Feb 05 2017 23:11
@glenrob1940 that was incorrect about tail -F. That is capitalized on purpose: you can do man tail to see the difference.
kws1969
@kws1969
Feb 05 2017 23:11
no offense scott but i read all the troublshooting stuff and if im reading it right you have to login to edison to run those commands correct? I also tried to reflash from the edisons flash utiility, but the intel flash program keeps saying to plug in and power on even though it is..so frustrating…
Scott Leibrand
@scottleibrand
Feb 05 2017 23:12
@kws1969 I forgot the context: remind me where you are in setup?
kws1969
@kws1969
Feb 05 2017 23:14
i was using katies cheat sheet to set up brand new edison… when i got to the flash edison part it froze up and now when i try to wake up the edison it wont wake up
the screen is blank and ive tried to hit enter end everything
Scott Leibrand
@scottleibrand
Feb 05 2017 23:16
Did you try rebooting the edison once you get the blank console screen up?
It should show you a boot sequence.
kws1969
@kws1969
Feb 05 2017 23:16
yes i did what you told me to and it started running again but it hangs up
Scott Leibrand
@scottleibrand
Feb 05 2017 23:17
And, did you follow the directions for that?
kws1969
@kws1969
Feb 05 2017 23:17
[ OK ] Started Load/Save RF Kill Switch Status of rfkill2.
[ OK ] Started Load/Save RF Kill Switch Status of rfkill1.
[ OK ] Started Load/Save RF Kill Switch Status of rfkill0.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Trigger Flushing of Journal to Persistent Storage.
[ OK ] Found device /dev/disk/by-partlabel/home.
[ OK ] Reached target Sound Card.
Starting File System Check on /dev/disk/by-partlabel/home...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Network Time Synchronization.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ 18.734713] systemd-fsck[156]: /dev/mmcblk0p10: recovering journal
[ 18.755043] systemd-fsck[156]: /dev/mmcblk0p10: clean, 11/87120 files, 14181/348155 blocks
[ OK ] Started File System Check on /dev/disk/by-partlabel/home.
Mounting /home...
[ OK ] Mounted /home.
Starting Rescue Shell...
[ OK ] Started Rescue Shell.
[ OK ] Reached target Rescue Mode.
this is where it hangs
Scott Leibrand
@scottleibrand
Feb 05 2017 23:20
Go RTD about rescue mode please.
kws1969
@kws1969
Feb 05 2017 23:21
what does rtd mean?
Dana Lewis
@danamlewis
Feb 05 2017 23:23
RTD = read the docs. (Also because the tool we use for making docs easy to read is actually called RTD)
kws1969
@kws1969
Feb 05 2017 23:23
ok
Dana Lewis
@danamlewis
Feb 05 2017 23:23
There's a note at top of the Mac cheat sheet page about going to the regular Edison page for a more in depth troubleshooting section
kws1969
@kws1969
Feb 05 2017 23:24
ok
Dana Lewis
@danamlewis
Feb 05 2017 23:44
@apabari per your q about ns cob, likely it’s a duplicate entry somewhere…but check and see what openaps says your cob is for comparison
apabari
@apabari
Feb 05 2017 23:46
@danamlewis hmm, OpenAPS says 130, which also seems high
Dana Lewis
@danamlewis
Feb 05 2017 23:51
probably duplicate entries then?
leighkdavis
@leighkdavis
Feb 05 2017 23:59
Hi, I am running into a bit of a problem with 1-10 in the set up guide. I am getting an error about something wicked and it appears to be hung on 17%Err http://security.debian.org jessie/updates/non-free Translation-en_IE
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org jessie/updates/non-free Translation-en
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org jessie/updates/main i386 Packages
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org jessie/updates/contrib i386 Packages
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
Err http://security.debian.org jessie/updates/non-free i386 Packages
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
17% [Connecting to http.debian.net]