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

9th
Feb 2017
Barrel900
@Barrel900
Feb 09 2017 00:01
@danamlewis oh right, I skipped the bluetooth stuff before the first setup script and now simply re-ran the script with same setting. So I now re-ran the script interactively and things look like I expected. Crontab is now present and pump goes looping. Thanks guys
Dana Lewis
@danamlewis
Feb 09 2017 00:02
@Barrel900 woohoo! happy looping :)
Barrel900
@Barrel900
Feb 09 2017 00:02
Yippy!
So I can finally go to bed now...(1.00 AM over here...)
kws1969
@kws1969
Feb 09 2017 00:09

inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr 02:00:86:b3:f7:10
inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:427 errors:0 dropped:154 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:59491 (58.0 KiB) TX bytes:21040 (20.5 KiB)

wlan0 Link encap:Ethernet HWaddr 90:b6:86:13:23:a9
inet addr:192.168.0.15 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:593 errors:0 dropped:0 overruns:0 frame:0
TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:106685 (104.1 KiB) TX bytes:16657 (16.2 KiB)

@danamlewis is this better?
i switched to 3-g wifi
Scott Leibrand
@scottleibrand
Feb 09 2017 00:18
@kws1969 the ifup thing is just a shortcut. if you want to reconfigure wifi, you can always just reboot after. that ifconfig output looks good: 192.168.0.15 looks like the kind of IP a mifi type device would give you.
you can also run oref0-online to check
kws1969
@kws1969
Feb 09 2017 00:19
ok great ill proceed to setting up ssh
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 00:38
Hello, おはようございます♪
My name is Lumi, and I'm looking first information about openAPS with Libre
Looking for, that is
Scott Leibrand
@scottleibrand
Feb 09 2017 00:43
you'll probably want to look separately for information about uploading Libre data to Nightscout (for example using Glimp), and then you can use OpenAPS with glucose data from NS
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 00:44
I suppose my number one question is, assuming a setup where openaps pulls data from nightscout, would I have to have the Libre in real time cgm mode, or can I just have openaps taking action whenever I scan?
I'm already on nightscout via glimp.
And hello Scott!
Scott Leibrand
@scottleibrand
Feb 09 2017 00:46
OpenAPS will loop when data is less than 10 minutes old. if you haven't scanned in longer than that, it will wait for new data to come in
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 00:47
So that's no privilege with having the system based on frequent scanning?
Sorry
I meant there's no problem with it?
Scott Leibrand
@scottleibrand
Feb 09 2017 00:47
I think that should work, but it will require testing
it will be kinda like being in open loop mode
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 00:48
Thank you!
kws1969
@kws1969
Feb 09 2017 00:51
@scottleibrand trying to setup ssh
root@kellyedison:~# dpkg -P nodejs nodejs-dev
dpkg: error: parsing file '/var/lib/dpkg/status' near line 0:
EOF after field name `'
root@kellyedison:~#
katie disimone
@Kdisimone
Feb 09 2017 00:57
error in starting first looping…pump logs are showing a
could not parse input data: [Syntax Error: /root/myopenaps/monitor/iob.json: unexpected end of input]
any suggestions for where to go with this error?
Dana Lewis
@danamlewis
Feb 09 2017 01:00
did it loop prior to that error? or that’s preventing looping?
katie disimone
@Kdisimone
Feb 09 2017 01:00
preventing
and some weird glitch in NS…possibly related
katie disimone
@Kdisimone
Feb 09 2017 01:17
@scottleibrand Ideas?
RedCyclist1
@RedCyclist1
Feb 09 2017 01:22
I am trying to flash the edison module but I can't see the serial port in the device manager. I see FT230X Basic UART under "other devices". Has anyone seen this before?
Scott Leibrand
@scottleibrand
Feb 09 2017 01:23
@Kdisimone need to do openaps report invoke monitor/iob.json to see why that is empty
katie disimone
@Kdisimone
Feb 09 2017 01:25
thank you will do now
i need to shut down cron for that? @scottleibrand
Scott Leibrand
@scottleibrand
Feb 09 2017 01:26
no, it's not pulling from the pump
katie disimone
@Kdisimone
Feb 09 2017 01:26
ok
Scott Leibrand
@scottleibrand
Feb 09 2017 01:26
@kws1969 that is a weird error, and might prevent other things from working, but the dpkg -P is usually not needed on a newly flashed rig, so try continuing
kws1969
@kws1969
Feb 09 2017 01:28
ok
wierd things are happening…when i do the ping test it keeps going, all these readings non-stop
Scott Leibrand
@scottleibrand
Feb 09 2017 01:30
that is normal if you don't specify a -c option to limit the count
just Ctrl-C
kws1969
@kws1969
Feb 09 2017 01:32
root@kellyedison:~# apt-get update && apt-get -y dist-upgrade && apt-get -y autoremove
-bash: /usr/bin/apt-get: cannot execute binary file: Exec format error
root@kellyedison:~#
this is next line
i feel like im cursed or this board is cursed
Scott Leibrand
@scottleibrand
Feb 09 2017 01:33
something is corrupted. time to re-flash
kws1969
@kws1969
Feb 09 2017 01:34
oh boy…..lol
Scott Leibrand
@scottleibrand
Feb 09 2017 01:34
at least you know how to do that part now :)
katie disimone
@Kdisimone
Feb 09 2017 01:35
iob://text/shell/monitor/iob.json



module.js:485

    throw err;

          ^

SyntaxError: /root/myopenaps/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> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js:43:22)

    at Module._compile (module.js:456:26)

    at Object.Module._extensions..js (module.js:474:10)

    at Module.load (module.js:356:32)

reporting monitor/iob.json
Scott Leibrand
@scottleibrand
Feb 09 2017 01:35
so settings/profile.json is empty: do the same thing for it.
katie disimone
@Kdisimone
Feb 09 2017 01:35
ok
What populates those @scottleibrand ? Is this an issue that is just a bad install? Better to redo an install?
seems easier just to delete myopenaps dir and rerun setup script
katie disimone
@Kdisimone
Feb 09 2017 01:40
IF that would solve problem
Scott Leibrand
@scottleibrand
Feb 09 2017 01:44
we probably need to see why they're empty first
kws1969
@kws1969
Feb 09 2017 01:57
Not bragging but katies flash worked again…..im doing happy dance
peterfulvi
@peterfulvi
Feb 09 2017 01:59
@ceben80 I will read those tonight now I'm becoming familiar with aliases
RedCyclist1
@RedCyclist1
Feb 09 2017 01:59
So I changed computer and got the flash to complete but now I'm not sure how to change my login. Anyone have any clearer directions than the one in the readthedocs instructions?
katie disimone
@Kdisimone
Feb 09 2017 02:15
@scottleibrand went ahead and ran again. Worked like a charm. NS glitch was devicestatus records. Deleted and came around. Thanks guys. @danamlewis You've made it easier to delete and reinstall rather than fix
Scott Leibrand
@scottleibrand
Feb 09 2017 02:17
heh
katie disimone
@Kdisimone
Feb 09 2017 02:30
@kws1969 Awesome job!
@RedCyclist1 what do you mean by change your login?
RedCyclist1
@RedCyclist1
Feb 09 2017 02:34
@Kdisimone I just flashed for the first time and can't figure out how to change the login in the console window in the initial Edison Setup. I login in as root and not sure where to go from here because the lingo is foreign to me.
Aaron Michelson
@Aaybob
Feb 09 2017 02:36
Okay @RedCyclist1 first you log in as root....you power up you connect usb cable to UART you ssh serial Login: root, then password: edison
next you
myedisonhostname=<thehostname-you-want>
for example

myedisonhostname=rorschack

RedCyclist1
@RedCyclist1
Feb 09 2017 02:38
@Aaybob ok got it
so far sooo good
Aaron Michelson
@Aaybob
Feb 09 2017 02:38
:+1:
RedCyclist1
@RedCyclist1
Feb 09 2017 02:42
@Aaybob That is where I was at, but I was putting in the < > signs around my login because I don't know whether to include or not. In the next section with the Echo part, do I need to replace everywhere it says hostname with my login name now?
Aaron Michelson
@Aaybob
Feb 09 2017 02:42
that's for sure one of the tricks
That next line is pure copy it and paste it
There is so much to learn to understand that.
RedCyclist1
@RedCyclist1
Feb 09 2017 02:45
@Aaybob you mean to copy the line that starts with: echo $myedisonhostname > /etc/hostname
sed -i"" "s/localhost$/localhost $myedisonhostname/" /etc/hosts, but don't replace where it says hostname with my login name?
Aaron Michelson
@Aaybob
Feb 09 2017 02:46
Read the first paragraph of this page. Maybe take notes from it or print it: http://openaps.readthedocs.io/en/latest/docs/introduction/understand-this-guide.html
do it like this
echo $myedisonhostname > /etc/hostname
then:
sed -i"" "s/localhost$/localhost $myedisonhostname/" /etc/hosts
RedCyclist1
@RedCyclist1
Feb 09 2017 02:49
@Aaybob ok just to be sure I understand, I don't have to create a hostname = Redcyclist, but I am to use the word "hostname" within the code?
Aaron Michelson
@Aaybob
Feb 09 2017 02:49
On most but not all lines of code you can tripple left click then right click and select copy, then left click in the ssh window right click. That will put the text on the line
Alrighjt that's a great question. hostname....
when I wrote an example for you "Rorschack" is the name... sounds like you want to use the name RedCyclist1. is that correct?
In that case type:
myedisonhostname=RedCyclist1
I used the name "red" so you can't use that one.
No,, you could because these systems are not at all connected!
kenstack
@kenstack
Feb 09 2017 02:57
@scottleibrand @ecc1 update on getting BT tethering to work - I found at least what was causing my issues before - I was missing the following in my rc.local : screen -S "brcm_patchram_plus" -d -m /usr/local/sbin/bluetooth_patchram.sh
RedCyclist1
@RedCyclist1
Feb 09 2017 02:57
@Aaybob ok so host name is set, now I copy and paste: echo $myedisonhostname > /etc/redcyclist1???
Aaron Michelson
@Aaybob
Feb 09 2017 02:58
nope
RedCyclist1
@RedCyclist1
Feb 09 2017 02:59
@Aaybob then copy and paste: echo $myedisonhostname > /etc/hostname
Aaron Michelson
@Aaybob
Feb 09 2017 02:59
What does echo $myedisonhostname cause to happen?
kenstack
@kenstack
Feb 09 2017 02:59
@scottleibrand now that I have that running tethering is working well - but my syslog is getting filled with the following when tethering isnt running : Feb 8 21:59:01 localhost bluetoothd[1253]: Bluetooth daemon 5.37
Feb 8 21:59:01 localhost bluetoothd[1253]: Starting SDP server
Feb 8 21:59:01 localhost dbus[365]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Feb 8 21:59:01 localhost bluetoothd[1253]: Bluetooth management interface 1.3 initialized
Feb 8 21:59:01 localhost bluetoothd[1253]: Failed to obtain handles for "Service Changed" characteristic
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Error adding Link Loss service
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Current Time Service could not be registered
Feb 8 21:59:01 localhost bluetoothd[1253]: gatt-time-server: Input/output error (5)
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Not enough free handles to register service
Feb 8 21:59:01 localhost bluetoothd[1253]: Sap driver initialization failed.
Feb 8 21:59:01 localhost bluetoothd[1253]: sap-server: Operation not permitted (1)
Feb 8 21:59:01 localhost bluetoothd[1253]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
Feb 8 21:59:01 localhost systemd1: Starting Hostname Service...
Feb 8 21:59:01 localhost systemd[1255]: Failed at step NAMESPACE spawning /lib/systemd/systemd-hostnamed: No such file or directory
Feb 8 21:59:01 localhost systemd1: systemd-hostnamed.service: main process exited, code=exited, status=226/NAMESPACE
Feb 8 21:59:01 localhost systemd1: Failed to start Hostname Service.
Feb 8 21:59:01 localhost systemd1: Unit systemd-hostnamed.service entered failed state.
Feb 8 21:59:07 localhost CRON[1215]: (CRON) info (No MTA installed, discarding output)
RedCyclist1
@RedCyclist1
Feb 09 2017 03:01
@Aaybob It goes to the next line
Aaron Michelson
@Aaybob
Feb 09 2017 03:01
yeah @RedCyclist1 that'll work. The documents tries to make the work easy. Try reading that first introduction paragraph. http://openaps.readthedocs.io/en/latest/docs/introduction/understand-this-guide.html
RedCyclist1
@RedCyclist1
Feb 09 2017 03:03
@Aaybob I see, I kept going back to the original doc, sorry... :/. I see this link is different
Aaron Michelson
@Aaybob
Feb 09 2017 03:04
The documentation definatley needs to be made more clear....
Dana Lewis
@danamlewis
Feb 09 2017 03:04
PRs welcome!
Aaron Michelson
@Aaybob
Feb 09 2017 03:05
I"m not sure the introduction guide is allways followed...
Dana Lewis
@danamlewis
Feb 09 2017 03:05
I have an update to that page pending a review via this PR: https://github.com/openaps/docs/pull/639/files
(cc @Kdisimone ) ^
but other edits/improvements welcome, too
Aaron Michelson
@Aaybob
Feb 09 2017 03:06
Oh yeah @RedCyclist1 you can PR by clicking the little box at bottome right and selecting edit, then change the text and select PR or something like that. Its super easy to do.
katie disimone
@Kdisimone
Feb 09 2017 03:07
@danamlewis I swear you read my mind
Aaron Michelson
@Aaybob
Feb 09 2017 03:07
Its hard to PR if you try to understand all the technical jargon about pulls, repositories, git, and stuff
RedCyclist1
@RedCyclist1
Feb 09 2017 03:08
I rebooted and am at edison@redcyclist. Is that where I am supposed to be?
Aaron Michelson
@Aaybob
Feb 09 2017 03:09
Are you at this line now?
From a new terminal or PuTTY window, ssh myedisonhostname.local.
RedCyclist1
@RedCyclist1
Feb 09 2017 03:10
Yes in the putty window
Aaron Michelson
@Aaybob
Feb 09 2017 03:11
so you finished the wifi setup?
RedCyclist1
@RedCyclist1
Feb 09 2017 03:14
What does it mean to Uncomment ‘auto wlan0’
Aaron Michelson
@Aaybob
Feb 09 2017 03:15
Don't wory there's a lot to learn:
uncomment means delete the #
RedCyclist1
@RedCyclist1
Feb 09 2017 03:16
I see ‘auto wlan0’ twice. Which one do I edit?
Aaron Michelson
@Aaybob
Feb 09 2017 03:18
I"m not logged in so it's hard to remember....what about just making the file look like the example?
every line starting with # is the same as not being ther
RedCyclist1
@RedCyclist1
Feb 09 2017 03:19
Ok, working on it and it seems to make sense
Aaron Michelson
@Aaybob
Feb 09 2017 03:19
you're doing great, you were really confused at first
Paul Dickens
@thebookins
Feb 09 2017 03:19
Can anyone help me (or point to a guide) to use NS Pushover messaging with iOS? It's set up fine and I'm receiving messages, just want to work out how to silence everything except NS Pushover. Handy for sleeping.
RedCyclist1
@RedCyclist1
Feb 09 2017 03:26
@Aaybob I am having a hard time figuring out how to delete letters in the wifi setup
Scott Leibrand
@scottleibrand
Feb 09 2017 03:28
Hit i to go into insert mode, and backspace will work like you expect. Then hit Esc when done.
RedCyclist1
@RedCyclist1
Feb 09 2017 03:30
@scottleibrand That helped - Thks
Aaron Michelson
@Aaybob
Feb 09 2017 03:31
Thanks @scottleibrand I don't use vi. @RedCyclist1 is selected option two and use nano.
Scott Leibrand
@scottleibrand
Feb 09 2017 03:36
That part of the docs uses vi specifically for a reason.
But after you get wifi up, nano is easier.
With nano over console, people were always getting weird line wrapping issues we don't see with vi.
So we figured out that it was easier to tell people exactly what keys to press to get into insert mode etc. than troubleshoot the weird files that resulted from what you see not being what you get.
RedCyclist1
@RedCyclist1
Feb 09 2017 03:47
@Aaybob I am not sure of the difference but I am now getting : " etc/network/interfaces" E212: Can't open files for writing when I try to hit esc and enter :wp
Scott Leibrand
@scottleibrand
Feb 09 2017 03:49
did you miss the / in front of etc?
it should be /etc/network/interfaces
also, it's :wq (write, quit)
RedCyclist1
@RedCyclist1
Feb 09 2017 03:59
I am getting E13: File exists. Does that mean I am ready to go on to the next step?
Aaron Michelson
@Aaybob
Feb 09 2017 04:08
I would type:
cat /etc/network/interfaces
and see if what it prints on the screen is what its supposed to
unless you are still in text edit. You must be at the command prompt to type cat /etc/network/interfaces
RedCyclist1
@RedCyclist1
Feb 09 2017 04:17
Thanks Aaron for all your help! I'm not getting anywhere and I need to shutdown for the night. Can I just close the window or what do I need to do to shutdown?
Aaron Michelson
@Aaybob
Feb 09 2017 04:18
if you are removing power then you should run: shutdown -h now
and wait for about a minute before shutting of power to the edison
reading a little intro primer on unix would help,,, esential commands,,,,file structure tutorials.
the documents often expect users to know some of that stuff, unintentionally
RedCyclist1
@RedCyclist1
Feb 09 2017 04:22
@Aaybob Yeah, LOL, can't even power down...Oy
Aaron Michelson
@Aaybob
Feb 09 2017 04:31
you power down by removing the plug from edison or just turn off computer if that's what is powering it.....or leave power on
if you find the tiny button you can press that for 10 seconds
kws1969
@kws1969
Feb 09 2017 04:42
emulator/hciemu.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
Makefile:4943: recipe for target 'tools/smp-tester' failed
make1: [tools/smp-tester] Error 1
Makefile:3126: recipe for target 'all' failed
make:
[all] Error 2
Couldn't make bluez
trying to run oref and keep geting this error??
tried 4 times and also tried to reinstall oref
Scott Leibrand
@scottleibrand
Feb 09 2017 04:56
you should probably stop trying to do bluetooth until you have the rig otherwise working
kws1969
@kws1969
Feb 09 2017 04:58
Ok I tried running the line without the Bluetooth I'll try again
Scott Leibrand
@scottleibrand
Feb 09 2017 05:09
it could also be you have an Edison with a defective file system, or you downloaded a corrupted jubilinux image somehow
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 05:53
I'm looking at DS's data and wondering why OpenAPS is considering him in range and not low temping. As you can see from image, we have mixed mmol and mg/dl data - we have never worried to much about this - we just divide when we need to. I see in his data though that OpenAPS is indicating his target is 6.1 so he is in range of 6.7 - 5.0 However, his indicated BG is 84 - which by my calculations is 4.6 - which in fact is not in range. Am I seeing something off or is this within expected parameters..... See image.
BG error?.PNG
Scott Leibrand
@scottleibrand
Feb 09 2017 05:55
that doesn't say he's in range, it says his eventualBG and snoozeBG are in/overlapping the target range
probably due to the +15 deviation, and the 8 COB
or at the time the temp was started, +19 and 9g
or possibly due to bolus snooze, although I think that would be in the reason if so
do you have AMA enabled? if so, you might want to turn on your purple line in NS by clicking the ... below 24HR
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 06:09
yes, AMA is on, yes, Don't use prediction lines on phone b/c it then takes up half of the graph. So had I let OpenAPS go without forcing a higher target by using temp target in NS, he would have gone low. I forced a higher target and gave 5 carbs of juice - otherwise would have gone below 4.0 without a low temp. As an aside (or perhaps not)the only carbs given were at 7pm - now 11:10pm here in Calgary. Added 5 carbs of juice were after this photo. This drifting low is common for us even many hours after eating. Trying to determine what we are doing wrong... Current NS shot w/o OpenAPS data interfering below.....
IMG_0341.PNG
should add - predictions lines also have him going low (use them on computer screen)
Scott Leibrand
@scottleibrand
Feb 09 2017 06:12
do you have autotune running? is it trying to lower basals or raise ISF?
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 06:13
No, not running on this rig at this time.
Scott Leibrand
@scottleibrand
Feb 09 2017 06:13
have you run it retrospectively? does it want to move things in that direction?
I wonder if some of the COB decay stuff you're seeing is a mmol / mg/dL thing. your COB should've decayed to zero by 11pm I'd think
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 06:15
We have only run it 1 time several weeks ago - too many data and hardware troubles to get back to setting it up, so really don't have enough data to answer that question.
Scott Leibrand
@scottleibrand
Feb 09 2017 06:15
k
those would be my intuitions as to what it'll find (slightly more likely than not)
what do you have for min_5m_carbimpact in your preferences.json / profile.json ?
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 06:17
Agreed that the COB should have decayed by now. I've also noticed that sometimes we have more mg/dL in our info than other times. Don't know what the pattern is for that happening. Shall I add this info to the open problem?
Scott Leibrand
@scottleibrand
Feb 09 2017 06:17
or PM me your NS URL and I'll see if there's anything other than COB that might be involved...
JELCRAWFORD
@JELCRAWFORD
Feb 09 2017 06:18
Thx. sent. the drifting low is less of an annoyance at 3pm than 3am :)
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 06:24
Hi! こんにちは!I have a question. Is there any hardware alternative to the carelink dongle for openaps?
Aaron Michelson
@Aaybob
Feb 09 2017 06:25
yes @LuminaryXion_twitter its the Texas Instruments c1110. It requires the programmer to set it up.
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 06:26
Thanks!
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 06:28
Super handy! I can't get the dongle here in Japan. So that's very helpful. ^^
Aaron Michelson
@Aaybob
Feb 09 2017 06:33
The edison board is available so you don't need a seperate cc1110
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 06:35
That's curious! So it would be an Edison board instead of raspberry pi, or raspberry pi and Edison board?
Aaron Michelson
@Aaybob
Feb 09 2017 06:40
An edison compute module and an addon board called the 915MHz Explorer
The explorer board will supply the battery charger, the connection ports, the wifi, and the radio link (carelink).
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 06:42
That sounds awesome!
And I can program it on a Windows computer?
My intention is to use Libre via nightscout and a 722 pump
Aaron Michelson
@Aaybob
Feb 09 2017 06:43
That's right it has a connection port made for that.
it's late night here....good luck
R. Dennis Steed
@rdsteed
Feb 09 2017 07:23
@LuminaryXion_twitter One problem with using the Libre via Nightscout is that the Libre reader only reads on demand. Closed loop really needs continuous readings. One of the people active in this group @SandraK82 has developed a Libre to Bluetooth bridge that can connect to the Edison continuously. You can read about her progress on her blog https://unendlichkeit.net/wordpress/?lang=en
Scott Leibrand
@scottleibrand
Feb 09 2017 07:29
@rdsteed she mentioned that yesterday. my thought was that if she uses Glimp during the day, it would function a lot like an open loop, setting temps whenever she scans. obviously full CGM functionality is more important overnight, but it's probably also easier to wear a BlueReader type device then...
R. Dennis Steed
@rdsteed
Feb 09 2017 07:45
OK. Hadn't been on for a couple days. But it does sound like bluereader is getting close to shipping, so getting a bluereader as well as an explorer order might be good.
Dana Lewis
@danamlewis
Feb 09 2017 08:21
remember the Libre is not a CGM, so keep that in mind…some good background reading/implications for looping off of such a device, especially the note in the comments about algorithmic lag: http://type1tennis.blogspot.com/2017/02/libre-clinical-study-and-discussion.html
Sandra Keßler
@SandraK82
Feb 09 2017 08:27
But everyone willing to do calibrations like with the dexcom can use it as cgm
Dana Lewis
@danamlewis
Feb 09 2017 08:28
(People can do what they want - but I do wish for an informed discussion around the limitations of alternative solutions, and as a result any additional safety mechanisms that need to be added or adapted)
Sandra Keßler
@SandraK82
Feb 09 2017 08:30
The limitations are the same with gX sensors. With the main difference that a good calibrated libre reacts faster
Paul Tinson
@ptinson
Feb 09 2017 08:31
@danamlewis if you are reading values of the Libre every x period, where x is less than 10 minutes does that not aproximate what you get from CGM
Sandra Keßler
@SandraK82
Feb 09 2017 08:31
Without calibration, the usage that Abbott intends, the results are very mixed and dependent on to many parameters
Paul Tinson
@ptinson
Feb 09 2017 08:32
My experience so far with the Libre is that when you have rapid shifts either up or down in BG then its hit an miss, most other times it has been reasonable
Sandra Keßler
@SandraK82
Feb 09 2017 08:34
@ptinson that's true when you use the original meter or app from Abbott. They do a lot of calculations on the measured values and the predictive Modell does not react very good to rapid changes
Paul Tinson
@ptinson
Feb 09 2017 08:34
What is bluereader, I havent come across that. I was looking at Ambrosia Systems but that looks like its a fraud trying to rip people off.
Dana Lewis
@danamlewis
Feb 09 2017 08:34
The Dex 505 algorithm is very good. Not sure the Libre algorithm is on the same scale.
I don't have a Libre so I can't compare personal experiences; but I thought the data and linked pieces presented in Pierre's blog post are worth taking a look at for any active Libre users.
Sandra Keßler
@SandraK82
Feb 09 2017 08:35
I'm developing the blueReader ( http://Unendlichkeit.net ) its like the bluecon but I started nearly a year ago and it will be complete open source
Dana Lewis
@danamlewis
Feb 09 2017 08:35
/me heads to bed
Paul Tinson
@ptinson
Feb 09 2017 08:35
I am using glimp, the reader i had failed, and given i am in a country they dont sell in they wont support it
so i just ditched it
Ill have to find that blog, thanks @danamlewis
Sandra Keßler
@SandraK82
Feb 09 2017 08:36
Pierre is in close contact to most open source devs which are doing thinks with the libre as open source
Paul Tinson
@ptinson
Feb 09 2017 08:37
Oh, ill take a look @SandraK82. For me BluCon feels like a Con
Sandra Keßler
@SandraK82
Feb 09 2017 08:39
There is also the limitter project https://github.com/JoernL/LimiTTer it's different hardware then blueReader but currently we are using more or less the same algorithms for analysis
I won't comment on bluecon until they prolong the delivery times again or ship the things
Paul Tinson
@ptinson
Feb 09 2017 08:39
parts of that project are now hard to find
Sandra Keßler
@SandraK82
Feb 09 2017 08:40
Which parts
Pierres blog can be found here: http://type1tennis.blogspot.de/?m=1
Paul Tinson
@ptinson
Feb 09 2017 08:40
ffair enough, however the site looks dodgy, the images are rip offs of stock abbott images. the use poor language for hypo events and they are taking credit card details on a non protected site
they dodge questions as well
Matthias
@ceben80
Feb 09 2017 08:41
I know people using LimiTTer with Libre running successfully OpenAPS loop......
Sandra Keßler
@SandraK82
Feb 09 2017 08:41
Yeah that they do. I did request a lot of informations regarding eu regulations ( ce, battery, waste...) got no answers
Paul Tinson
@ptinson
Feb 09 2017 08:41
We had our endo meeting today for my daughter
used the reports from nightscout and he was happy
still need to get looping so we can sleep again
Sandra Keßler
@SandraK82
Feb 09 2017 08:42
Soon I loop 5 months on blueReader and Raspi2 rig
Paul Tinson
@ptinson
Feb 09 2017 08:43
@SandraK82 that is very cool
will you switch to an edison?
Sandra Keßler
@SandraK82
Feb 09 2017 08:44
No want to use another pump. Hopefully be able to ditch the rig soon and use only my mobile
Paul Tinson
@ptinson
Feb 09 2017 08:44
Which pump are you thinking of switching to
Sandra Keßler
@SandraK82
Feb 09 2017 08:45
Roche combo hopefully
Paul Tinson
@ptinson
Feb 09 2017 08:47
I havent come across those. we tend to only have a very limited set her unless you import it
How long before you think you would be producing batches of your device?
Sandra Keßler
@SandraK82
Feb 09 2017 08:52
The production has started. We are still waiting on some parts but we hope to ship the first units next week
Paul Tinson
@ptinson
Feb 09 2017 08:52
How much are you charging for them?
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 08:55
I'm not so much worried about the Libre reader, it's the medtronic pump dongle that's a problem for me
Paul Tinson
@ptinson
Feb 09 2017 08:56
Is that not helped when using an explorer board and an edison?
#DiabeticinJapan
@LuminaryXion_twitter
Feb 09 2017 08:56
Just learned about it tonight. Gonna have to try it.
I'm in Japan, so everything takes forever
Paul Tinson
@ptinson
Feb 09 2017 09:00
Yeah i get that, I am based in NZ, takes a while here as well
you dont really appreciate the tiny size of the edison rig until you have it. its seriously small
Sandra Keßler
@SandraK82
Feb 09 2017 09:04
The first series will be 225EUR with worldwide shipping but there will be only limited devices available. As soon as they have shipped we will wait a short time for feedback and then starting the production of the freely buyable model
This series device will cost approximately 185 EUR
Paul Tinson
@ptinson
Feb 09 2017 09:06
hmm thats nearly $300 here
are you doing it as an opensource project as well?
Sandra Keßler
@SandraK82
Feb 09 2017 09:09
Yeah the promise of the crowdfunding is that everything will be OpenSource
Paul Tinson
@ptinson
Feb 09 2017 09:10
I hope the first round goes well
Sandra Keßler
@SandraK82
Feb 09 2017 09:12
:+1:
Tim Street
@tim2000s
Feb 09 2017 09:14
Been seeing a curious happening with the loop. It's been hitting a spidev5.1 interface is use error, and rather than dropping to mmtune, the rig just hangs. Nothing showing in syslog. I'm running with the @cjo20 improvements. Anyone else seen this?
Sandra Keßler
@SandraK82
Feb 09 2017 09:16
However it will be very costly to built the blueReader on your own. The pcb is a custom designed multilayer board. To cast it into silicone you need a lot of equipment and just the parts are about 60 EUR and needs lots of experience to solder
Paul Tinson
@ptinson
Feb 09 2017 09:19
@SandraK82 I was more interested from an observer POV around open source, I would like just buy one, i am much more a software/networking geek than a hardware hacker
Sandra Keßler
@SandraK82
Feb 09 2017 09:22
:+1: it will all be put online step by step when I feel I have a certain and needed quality reached
Paul Tinson
@ptinson
Feb 09 2017 09:25
:+1:
Sacha M
@coolestkidsever
Feb 09 2017 11:48
Hey all. Middle of the night here and all was running but Now it's not. Log saying "invalid git repository error"
Rebooted but not resolved. Any ideas please?
Scorponok
@Scorponok
Feb 09 2017 12:44
@tim2000s We ran into that last night - rebooting fixed it, but I'm not sure if there's a better way of doing it
Tim Street
@tim2000s
Feb 09 2017 12:57
Interesting. I had to reboot on the two occasions in the past 24 hours that it's happened to me.
Tim Street
@tim2000s
Feb 09 2017 13:58

I'm also consistently getting this error `ploaded
Starting ns-loop at Thu Feb 9 13:50:02 GMT 2017:
ns://JSON/shell/cgm/ns-glucose.json
No JSON object could be decoded

Refreshed temptargets and meal-carbs
{"batteryVoltage":3714, "battery":53}`

It seems to occur after a an attempt to choose a network.
It clears on a reboot though.
peterfulvi
@peterfulvi
Feb 09 2017 14:01

@scottleibrand I evaluated the loop last night .I ran the aliases on the loop. Didn't any errors. when i ran openaps mmtune i got a -99 as usual. The one thing i notced though is when i ran commands to the pump itself (openaps use pump) i got that annoying error on a few of them which i've posted here. this leads me to believe like you said @ceben80 that it has to do with certain reports the 512 cant generate. I've done the turn off alias commands and made the static files i was supposed to make. root@petersedison:~/myopenaps# openaps use pump read_bg_targets
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 63, 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-use", line 58, in run
reporter(output)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/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/reports/reporters/JSON.py", line 8, in serialize
return json.dumps(blob, indent=2, default=date_handler)
File "/usr/lib/python2.7/json/init.py", line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 209, in encode
chunks = list(chunks)
File "/usr/lib/python2.7/json/encoder.py", line 443, in _iterencode
for chunk in _iterencode(o, _current_indent_level):
File "/usr/lib/python2.7/json/encoder.py", line 440, in _iterencode
raise ValueError("Circular reference detected")
ValueError: Circular reference detected

openaps use pump set_clock
Bad input
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 63, 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-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 432, in main
results = self.upload_program(program)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 484, in upload_program
raise Exception("Bad input, missing clock definition: {0}".format(program.get('clock')))
Exception: Bad input, missing clock definition: None

Iget these for most of the commads i send to the pump which makes me believe the pump is hving a hard time communicating to the explorer board

Scorponok
@Scorponok
Feb 09 2017 14:06

@tim2000s I'm setting up a script to reboot automatically when that happens, but if you google:

"spidev5.1 already in use" site:https://gitter.im/nightscout/intend-to-bolus

There are other suggestions

@peterfulvi Are you using a carelink stick? I'm not sure, but I'm surprised you're getting errors in medtronic.py unless you're using a carelink stick
Tim Street
@tim2000s
Feb 09 2017 14:09
I'm aware of it @Scorponok @cjo20 did a ton of work to improve things.
peterfulvi
@peterfulvi
Feb 09 2017 14:18
@Scorponok I have an Edison with an explorer board
Matthias
@ceben80
Feb 09 2017 14:33

@peterfulvi that's what I mean, the x12 pump to have restrictions when openaps use pump read_bg_targetsfor example, this fits to the output above.
I would be happy if you are using the ``` for better reading of your postings.

You must ``` in the first line, then press shift+enter (for line break)

Next line: your output you want to post, again shift+enter

Last line, again ```

blob
Matthias
@ceben80
Feb 09 2017 14:39
@peterfulvi openaps use pump set_clockis wrong, please try several commands while using --hfor more information
edison@eddie:~/myopenaps$ openaps use pump set_clock --help
usage: openaps-use pump set_clock [-h] [--to TO] [input]

 Set clock.

positional arguments:
  input

optional arguments:
  -h, --help  show this help message and exit
  --to TO

  -------------------
  input should be the name of a json file, or `-` for stdin.
  The json file should contain a key named `clock` with the new
  requested value formatted as ISO 8601 including seconds.
      { "clock": "2016-03-14T14:23:40" }
  -------------------
  `--to` switch
  -------------------
  Alternatively, the `--to` switch maybe used:
  The keyword `now` may be given to automatically generate a request
  using the system's current time.  Otherwise, the value must be
  something that can be parsed as an ISO 8601 formatted time including
  the seconds.
      --to now
      --to $(date -Iseconds)
      --to 2016-03-14T14:29:41-0700
I think you'll need more time to get familiar with the openaps basics, you'll see it's not so difficult :wink:
Chris Oattes
@cjo20
Feb 09 2017 15:29
@tim2000s The "no JSON object decoded" errors seem to be when the pump doesn't respond to a request. If you look at syslog, it usually complains that pump comms timed out at that time
Tim Street
@tim2000s
Feb 09 2017 15:40
I'll have to dig into that again. I didn't notice it when I was digging earlier.
Scott Leibrand
@scottleibrand
Feb 09 2017 15:40
@coolestkidsever normally oref0-reset-git fixes that, but if not you may need to figure out what git commands fail so we can have it check those too.
Matthias
@ceben80
Feb 09 2017 15:56

@peterfulvi ......example for openaps use pump read_bg_targetswhich is not working on a x12 pump:

  • you'll need a valid json file, here bg_targets.json
  • copy bg_targets.json to /settings(now this file is static, if you want to change your targets, you must change it in the file not in the pump
  • search for the corresponding alias in your openaps.ini
  • due to the fact, the pump is not able to create this json file, you must delete settings/bg_targets.jsonfrom the alias (e.g. get-settings)

example of settings/bg_targets.json

{
  "units": "mg/dL", 
  "raw": "0x01 0x00 0x5a 0x5a 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00", 
  "user_preferred_units": "mg/dL", 
  "targets": [
    {
      "i": 0, 
      "high": 90, 
      "start": "00:00:00", 
      "low": 90, 
      "offset": 0, 
      "x": 0
    }
  ], 
  "first": 1
}

HTH :wink:

kws1969
@kws1969
Feb 09 2017 17:02
Scott after having so many problems in the last 6 days with flashing and getting open to work----is it possible my explorer board would be bad? Any way to test the board?
I deleted openaps from the Edison and redid oref without Bluetooth and still get same error "couldn't make bluez"
Also reinstalled oref to
kws1969
@kws1969
Feb 09 2017 17:08
I think I've broke the world record for having most problems. Lol
kws1969
@kws1969
Feb 09 2017 17:18
Could I possibly take the Edison chip out of explorer board and plug into intel arduino to test ???
Chris Oattes
@cjo20
Feb 09 2017 17:23
kws1969: are you sure you're running it as root?
ig888ack
@ig888ack
Feb 09 2017 17:27
@Scorponok @jyaw thanks guys, yeah I got it working. Oddly enough it wasn't the "wait longer" part. I rebooted the edison, waited up to 3 min between steps and still got that message. but then i just skipped that command and moved on and it worked like a charm. weird.
kws1969
@kws1969
Feb 09 2017 17:32
Yes as root
Scott Leibrand
@scottleibrand
Feb 09 2017 17:49
@kws1969 yes, you can try the Edison on another base board. Another thing to try would be re-downloading jubilinux.
kws1969
@kws1969
Feb 09 2017 17:58
Ok I'll try jubilinux first. 👍
Didn't y'all originally use the arduino board at first ?? I looked in docs but couldn't find any pics of it?
Dana Lewis
@danamlewis
Feb 09 2017 18:03
Most people used the Intel or sparkfun breakout boards
No built in radio, though, so we mostly added TI sticks to those rigs
kws1969
@kws1969
Feb 09 2017 18:06
Ok I have a TI stick already. I also went ahead and ordered another explorer board. I just find it hard to believe I could be having this many problems as I'm copy and pasting step by step 😟😞
kws1969
@kws1969
Feb 09 2017 18:16
I thought about re-flashing again but feel like this flash took as I have no trouble connecting to wifi, running pings, and no problem ssh into it. 😞
Scott Leibrand
@scottleibrand
Feb 09 2017 18:17
@kws1969 I don't think this is an Explorer board problem. did you order a new Edison too?
that's the part I would suspect if it's hardware
kws1969
@kws1969
Feb 09 2017 18:18
I ordered one from sparkfun Monday and had it overnighted.
I tried to flash and it did what my other 3 edisons did hung up and now Mac nor windows sees it
It started flashing and just hung. I left it plugged up for 2 hours to make sure
Scott Leibrand
@scottleibrand
Feb 09 2017 18:20
you should be able to get console connected and see something when rebooting, no matter what state the Edison's onboard storage is in
kws1969
@kws1969
Feb 09 2017 18:21
Yes I can do that and it starts looping where you add ok ok ok
Then it just freezes.
I have 3 that do this
Scott Leibrand
@scottleibrand
Feb 09 2017 18:22
you should be able to re-flash it by interrupting the boot before it gets to that point
kws1969
@kws1969
Feb 09 2017 18:22
How? The stuff goes by so fast I can't read what it's saying?
Scott Leibrand
@scottleibrand
Feb 09 2017 18:23
hit enter a bunch of times?
I think it's a "press any key to interrupt boot sequence"
kws1969
@kws1969
Feb 09 2017 18:23
Ok haven't tried that yet. 👍
Scott Leibrand
@scottleibrand
Feb 09 2017 18:23
read through the troubleshooting section of the docs again too
kws1969
@kws1969
Feb 09 2017 18:23
When it stops do you know what I do next.
Scott Leibrand
@scottleibrand
Feb 09 2017 18:23
the stuff about rescue mode is in there
John Benjamin
@Bender1061
Feb 09 2017 18:41
So I had my foot amputation yesterday. the Nurse practitioner for the Endo team was familiar with OpenAPS and they let me keep my rig running while they did the surgery! how cool is that!
Eric
@ecc1
Feb 09 2017 18:41
@ceben80 @scottleibrand Just getting back, sorry -- it looks like the 6.4U/hr fix was merged a while ago: openaps/decocare@985f037 so I'm not sure what the current issue is
@kenstack Thanks for the patchram tip, will try it. What does /usr/local/sbin/bluetooth_patchram.sh contain?
Dana Lewis
@danamlewis
Feb 09 2017 18:45
@Bender1061 nice! Hope all went as well as possible.
John Benjamin
@Bender1061
Feb 09 2017 18:47
it hurts, if only I had OpenAPS 15 years ago, I would not have needed the surgery. But the fact the nurse knew about it, and was perfectly good with it running while I was out, was awesome.
I've been a diabetic for 30 years this year. When they talk about long term complications, yeah it happens.
scottleibrand @scottleibrand is so glad we can actually do things now to prevent complications like that for people who haven't had T1D as long.
John Benjamin
@Bender1061
Feb 09 2017 18:55
my health has drastically improved and I've only been running OpenAPS since May of last year. Like I said, complications happen over long periods of time, but with luck, I will have no more complications for example my eyes are great, running a system like this, I know diabetes is not going to make me go blind.
Tim Street
@tim2000s
Feb 09 2017 18:55
Hi @Bender1061 glad to hear you being upbeat about it, and welcome back.
Matthias
@ceben80
Feb 09 2017 18:58
@ecc1 yes has been merged in decocare dev 0.0.32
Tim Street
@tim2000s
Feb 09 2017 19:03

@cjo20 Just following up on the lock out of the openaps loop with spidev5.1 in use error:
This is the pump-loop.log. There is a successful loop run previously...

Starting pump-loop at Thu Feb 9 18:20:04 GMT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
Profile less than 60m old
temp_basal.json less than 5m old
Pumphistory less than 5m old
Settings less than 10m old
Pumphistory-24 less than 20m old
Completed pump-loop at Thu Feb 9 18:20:42 GMT 2017

Starting pump-loop at Thu Feb 9 18:21:12 GMT 2017:
Starting pump-loop at Thu Feb 9 18:36:09 GMT 2017:
Traceback (most recent call last):
  File "/usr/local/bin/mmeowlink-any-pump-comms.py", line 6, in <module>
[.......]
 raise AlreadyInUseException("%s already in use" % self.device)
mmeowlink.vendors.serial_interface.AlreadyInUseException: /dev/spidev5.1 already in use
(END)

Then one starts, and doesn't complete for 15 mins and then we drop into the one where we get the error, which I've shortened the output.

At the same time the syslog is showing this:

Feb  9 18:21:01 localhost CRON[20464]: (root) CMD (ps aux | grep -v grep | grep 
-q "oref0-bluetoothup 64:CC:2E:5B:D2:44" || oref0-bluetoothup 64:CC:2E:5B:D2:44 
>> /var/log/openaps/network.log)
Feb  9 18:21:01 localhost CRON[20468]: (root) CMD (ps aux | grep -v grep | grep 
-q "oref0-online 64:CC:2E:5B:D2:44" || oref0-online 64:CC:2E:5B:D2:44 >> /var/lo
g/openaps/network.log)
Feb  9 18:21:01 localhost CRON[20472]: (root) CMD (killall -g --older-than 15m o
penaps)
Feb  9 18:21:01 localhost CRON[20473]: (root) CMD (cd /root/myopenaps && oref0-t
runcate-git-history)
Feb  9 18:21:01 localhost CRON[20474]: (root) CMD (cd /root/myopenaps && oref0-reset-git)
Feb  9 18:21:01 localhost CRON[20477]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps monitor-xdrip' || ( date; cp -rf xdrip/glucose.json xdrip/last-glucose.json; openaps monitor-xdrip) | tee -a /var/log/openaps/xdrip-loop.log; cmp --silent xdrip/glucose.json xdrip/last-glucose.json || cp -up xdrip/glucose.json monitor/glucose.json)
Feb  9 18:21:01 localhost CRON[20481]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps ns-loop' || openaps ns-loop | tee -a /var/log/openaps/ns-loop.log)
Feb  9 18:21:01 localhost CRON[20476]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps autosens' || openaps autosens | tee -a /var/log/openaps/autosens-loop.log)
Feb  9 18:21:01 localhost CRON[20482]: (root) CMD (sudo wpa_cli scan)
Feb  9 18:21:01 localhost CRON[20478]: (root) CMD (cd /root/myopenaps && ( ps aux | grep -v grep | grep -q 'openaps pump-loop' || openaps pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log)
Feb  9 18:21:13 localhost libmraa[20631]: libmraa version v1.5.1-20-g4472ff1 initialised by user 'root' with EUID 0
Feb  9 18:21:13 localhost libmraa[20631]: gpio214: init: Failed to write to 'export': No such device
Feb  9 18:21:13 localhost libmraa[20631]: edison: Arduino board not detected, assuming Intel Edison Miniboard
Feb  9 18:21:13 localhost libmraa[20631]: libmraa initialised for platform 'Intel Edison' of type 2
Feb  9 18:22:01 localhost CRON[20767]: (root) CMD (killall -g --older-than 15m openaps)
Feb  9 18:22:01 localhost CRON[20766]: (root) CMD (sudo wpa_cli scan)
Feb  9 18:22:01 localhost CRON[20768]: (root) CMD (ps aux | grep -v grep | grep -q "oref0-online 64:CC:2E:5B:D2:44" || oref0-online 64:CC:2E:5B:D2:44 >> /var/log/openaps/network.log)
Feb  9 18:22:01 localhost CRON[20770]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps monitor-xdrip' || ( date; cp -rf xdrip/glucose

Which doesn't correspond with the pump loop.

Roughly two minutes later, we get:
Feb  9 18:23:12 localhost root: Uploaded upload/latest-treatments.json to https://nsmon.herokuapp.com
Feb  9 18:23:50 localhost kernel: [15478.181163] INFO: task kworker/u4:0:17425 blocked for more than 120 seconds.
Feb  9 18:23:50 localhost kernel: [15478.181237] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb  9 18:23:50 localhost kernel: [15478.181294] kworker/u4:0    D c19d0780  6108 17425      2 0x00000000
Feb  9 18:23:50 localhost kernel: [15478.181347] Workqueue: 0000:00:07.1 pump_messages
Feb  9 18:23:50 localhost kernel: [15478.181363]  f5fedda4 00000046 00000282 c19d0780 f5fedda4 f5fedd44 c16ed11b c1979880
Feb  9 18:23:50 localhost kernel: [15478.181409]  c18cc0e0 00000000 f5fec000 f73f0880 efca0fc0 f5fedd60 c16ed1b7 00000000
Feb  9 18:23:50 localhost kernel: [15478.181453]  f5fedd78 c15b1b2a 00000006 f6c92000 00000000 3f539000 f5fedd8c 00000006
Feb  9 18:23:50 localhost kernel: [15478.181497] Call Trace:
Feb  9 18:23:50 localhost kernel: [15478.181534]  [<c16ed11b>] ? _raw_spin_lock_irqsave+0x1b/0x30
Feb  9 18:23:50 localhost kernel: [15478.181560]  [<c16ed1b7>] ? _raw_spin_unlock_irqrestore+0x17/0x40
Feb  9 18:23:50 localhost kernel: [15478.181584]  [<c15b1b2a>] ? pci_mmcfg_read+0xaa/0x110
Feb  9 18:23:50 localhost kernel: [15478.181610]  [<c16ed1b7>] ? _raw_spin_unlock_irqrestore+0x17/0x40
Feb  9 18:23:50 localhost kernel: [15478.181631]  [<c15b1a17>] ? pci_mmcfg_write+0xa7/0x110
Feb  9 18:23:50 localhost kernel: [15478.181655]  [<c16ec52e>] schedule+0x1e/0x50
Feb  9 18:23:50 localhost kernel: [15478.181678]  [<c16e9fad>] schedule_timeout+0x14d/0x1e0
Feb  9 18:23:50 localhost kernel: [15478.181703]  [<c16ed1b7>] ? _raw_spin_unlock_irqrestore+0x17/0x40
Feb  9 18:23:50 localhost kernel: [15478.181731]  [<c15a1c74>] ? set_flis_value+0x44/0xb0
Feb  9 18:23:50 localhost kernel: [15478.181756]  [<c16ed1b7>] ? _raw_spin_unlock_irqrestore+0x17/0x40
Feb  9 18:23:50 localhost kernel: [15478.181782]  [<c14485f2>] ? lnw_gpio_set+0xb2/0xf0
Feb  9 18:23:50 localhost kernel: [15478.181806]  [<c16eb59b>] wait_for_completion+0x9b/0xd0
Feb  9 18:23:50 localhost kernel: [15478.181831]  [<c1264a90>] ? wake_up_state+0x10/0x10
Feb  9 18:23:50 localhost kernel: [15478.181855]  [<c14da305>] handle_message+0x8b5/0x10a0
Feb  9 18:23:50 localhost kernel: [15478.181880]  [<c16ed1b7>] ? _raw_spin_unlock_irqrestore+0x17/0x40
Feb  9 18:23:50 localhost kernel: [15478.181910]  [<c14dab65>] pump_messages+0x75/0xc0
Feb  9 18:23:50 localhost kernel: [15478.181934]  [<c1252e31>] process_one_work+0xe1/0x330
Feb  9 18:23:50 localhost kernel: [15478.181957]  [<c12538e6>] worker_thread+0xf6/0x330
Feb  9 18:23:50 localhost kernel: [15478.181981]  [<c16ed1cd>] ? _raw_spin_unlock_irqrestore+0x2d/0x40
Feb  9 18:23:50 localhost kernel: [15478.182004]  [<c12537f0>] ? manage_workers.isra.25+0x250/0x250
Feb  9 18:23:50 localhost kernel: [15478.182028]  [<c12585af>] kthread+0x8f/0xa0
Feb  9 18:23:50 localhost kernel: [15478.182056]  [<c16f2037>] ret_from_kernel_thread+0x1b/0x28
Feb  9 18:23:50 localhost kernel: [15478.182079]  [<c1258520>] ? kthread_create_on_node+0xb0/0xb0
Feb  9 18:23:50 localhost kernel: [15478.182103] INFO: task mmeowlink-any-p:20631 blocked for more than 120 seconds.
Which I think as you say is a loss of comms with the pump, judging by the mmeowlink timeout.
Looking at it though, it never recovers from this and doesn't drop into an mature cycle.
So I'm guessing that we're not picking up the error correctly to allow that to happen.
Paul Tinson
@ptinson
Feb 09 2017 19:09
Is anyone currently working on decoding the Animas pump communications?
Scott Leibrand
@scottleibrand
Feb 09 2017 19:12
animas ping is already decoded, but it doesn't support remote temp basals
Dana Lewis
@danamlewis
Feb 09 2017 19:12
@ptinson marius has figured it out; however, there are no temp basal capabilities. you can join the ping-aps channel in omniaps slack if you want to chat with him there.
(https://omniapsslack.azurewebsites.net/, and the general channel is where omnipod decoding discussion happens, for those interested in following along)
Paul Tinson
@ptinson
Feb 09 2017 19:13
Thanks
katie disimone
@Kdisimone
Feb 09 2017 19:13
I'm not sure what is causing the problem, but we've noticed if NS doesn't get bgs for about an hour...the rig won't wake itself up to loop when they do come back on. We have had to do manual power cycle on the rig to get it to come back to looping. Any ideas?
Kelly Watson
@kellyisworking
Feb 09 2017 19:38
@danamlewis Been off gitter for awhile! Just got our explorer board and getting started this weekend @Tilade. Looks like you might have it figured out already? DM me if no!
Dana Lewis
@danamlewis
Feb 09 2017 19:39
@kellyisworking :waves:
Tim Street
@tim2000s
Feb 09 2017 19:56
@cjo20 Just found this 2 mins before the whole blow up:
e, or response is too short: 0 - retrying: 1 of 3
Feb  9 18:19:47 localhost Invalid Packet Received - '' - retrying: 2 of 3
Feb  9 18:19:48 localhost Pump 504626 is already responding. Not sending wakeup messages
Feb  9 18:19:48 localhost Timed out or other comms error - Received an error response Timeout - retrying: 1 of 3
Feb  9 18:19:49 localhost SubgRfspyLink opening serial port
Feb  9 18:19:49 localhost subg_rfspy status: OK
Feb  9 18:19:49 localhost Version: subg_rfspy 0.8
Tim Street
@tim2000s
Feb 09 2017 20:02
Just doing another edison and encountered this issue when trying to run the apt-get update:
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-i386/Packages  Something wicked happened resolving 'http.debian.net:http' (-5 - No address associated with hostname)
Scott Leibrand
@scottleibrand
Feb 09 2017 20:03
do you have Internet?
Tim Street
@tim2000s
Feb 09 2017 20:04
Ah yes - I forget that you can't downloadtrhough the serial port.... D'oh
Reboot required
Scott Leibrand
@scottleibrand
Feb 09 2017 20:05
yeah, actually following the docs sometimes helps. (I do that too) :-p
Matthias
@ceben80
Feb 09 2017 20:28
@scottleibrand created this PR openaps/oref0#395 :wink:
Dana Lewis
@danamlewis
Feb 09 2017 20:36
:+1:
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 20:42
'''
2017-02-09T20:40:58.434262+00:00 app[web.1]: Listening on port 8370
2017-02-09T20:41:02.109462+00:00 app[web.1]: Load Complete:
2017-02-09T20:41:02.109475+00:00 app[web.1]: sgvs:453, treatments:299, profiles:1, devicestatus:867, tempbasalTreatments:91, tempTargetTreatments:3
2017-02-09T20:41:02.274959+00:00 app[web.1]: TypeError: Cannot read property 'time' of null
2017-02-09T20:41:02.274965+00:00 app[web.1]: at fromDeviceStatus (/app/lib/plugins/iob.js:82:17)
2017-02-09T20:41:02.274965+00:00 app[web.1]: at arrayMap (/app/node_modules/lodash/lodash.js:660:23)
2017-02-09T20:41:02.274967+00:00 app[web.1]: at Function.map (/app/node_modules/lodash/lodash.js:9571:14)
2017-02-09T20:41:02.274968+00:00 app[web.1]: at interceptor (/app/node_modules/lodash/lodash.js:16970:35)
2017-02-09T20:41:02.274968+00:00 app[web.1]: at thru (/app/node_modules/lodash/lodash.js:8812:14)
2017-02-09T20:41:02.274969+00:00 app[web.1]: at /app/node_modules/lodash/lodash.js:4379:28
2017-02-09T20:41:02.274970+00:00 app[web.1]: at arrayReduce (/app/node_modules/lodash/lodash.js:704:21)
2017-02-09T20:41:02.274970+00:00 app[web.1]: at baseWrapperValue (/app/node_modules/lodash/lodash.js:4378:14)
2017-02-09T20:41:02.274971+00:00 app[web.1]: at LazyWrapper.lazyValue [as value] (/app/node_modules/lodash/lodash.js:1880:16)
2017-02-09T20:41:02.274972+00:00 app[web.1]: at baseWrapperValue (/app/node_modules/lodash/lodash.js:4376:25)
2017-02-09T20:41:02.274973+00:00 app[web.1]: at LodashWrapper.wrapperValue (/app/node_modules/lodash/lodash.js:9067:14)
2017-02-09T20:41:02.274973+00:00 app[web.1]: at Object.lastIOBDeviceStatus (/app/lib/plugins/iob.js:67:8)
2017-02-09T20:41:02.274974+00:00 app[web.1]: at Object.calcTotal (/app/lib/plugins/iob.js:29:22)
2017-02-09T20:41:02.274975+00:00 app[web.1]: at setIOB (/app/lib/plugins/iob.js:20:18)
2017-02-09T20:41:02.274975+00:00 app[web.1]: at Object.offerProperty (/app/lib/sandbox.js:111:19)
2017-02-09T20:41:02.274976+00:00 app[web.1]: at Object.setProperties (/app/lib/plugins/iob.js:19:9)
2017-02-09T20:41:02.274977+00:00 app[web.1]: at eachPlugin (/app/lib/plugins/index.js:123:16)
2017-02-09T20:41:02.274977+00:00 app[web.1]: at arrayEach (/app/node_modules/lodash/lodash.js:537:11)
2017-02-09T20:41:02.274978+00:00 app[web.1]: at Function.forEach (/app/node_modules/lodash/lodash.js:9359:14)
2017-02-09T20:41:02.274979+00:00 app[web.1]: at Function.eachEnabledPlugin (/app/lib/plugins/index.js:98:7)
2017-02-09T20:41:02.274979+00:00 app[web.1]: at Function.setProperties (/app/lib/plugins/index.js:121:13)
2017-02-09T20:41:02.274980+00:00 app[web.1]: at Stream.updatePlugins (/app/lib/bootevent.js:105:19)
2017-02-09T20:41:02.274980+00:00 app[web.1]: at Stream.emit (events.js:92:17)
2017-02-09T20:41:02.274981+00:00 app[web.1]: at dataUpdated (/app/lib/bootevent.js:89:17)
2017-02-09T20:41:02.274981+00:00 app[web.1]: at loadComplete (/app/lib/data/dataloader.js:45:7)
2017-02-09T20:41:02.274982+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:251:17
2017-02-09T20:41:02.274983+00:00 app[web.1]: at done (/app/node_modules/async/lib/async.js:132:19)
2017-02-09T20:41:02.274983+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:32:16
2017-02-09T20:41:02.274984+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:248:21
2017-02-09T20:41:02.274985+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:572:34
2017-02-09T20:41:02.274985+00:00 app[web.1]: at /app/lib/data/dataloader.js:140:5
2017-02-09T20:41:02.274986+00:00 app[web.1]: at handleCallback (/app/node_modules/mongodb/lib/utils.js:95:56)
2017-02-09T20:41:02.274987+00:00 app[web.1]: at /app/node_modules/mongodb/lib/cursor.js:852:16
2017-02-09T20:41:02.274987+00:00 app[web.1]: at handleCallback (/app/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:171:5)
2017-02-09T20:41:02.274989+00:00 app[web.1]: at setCursorDeadAndNotified (/app/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:505:3)
'''
Sorry I cannot get it to format
Dana Lewis
@danamlewis
Feb 09 2017 20:43
What's that from?
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 20:43
that was an error from my heroku logs seems my NS site is stuck rebooting itself in a loop... any suggestions?
Is there any administrative means to clean out my mongo DB which may have an entry with a null time in it?
katie disimone
@Kdisimone
Feb 09 2017 20:56
@TomBoudr_twitter yes, you can clean out from the NS settings admin area (upper right corner three horizontal lines). I had a stuck NS site yesterday. Cleaned out the devicestatus collection using those admin tools and it restored no problem.
Dana Lewis
@danamlewis
Feb 09 2017 20:57
Does that permanently empty it all?
Or just small bits of it?
(Wondering about blowing it out and losing awesome data for research ;))
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:06
@Kdisimone is that within the NS UI?
cause I can't even get that to come up anymore
Tim Street
@tim2000s
Feb 09 2017 21:07
@dana, it clears out the devicestatus collection
Dana Lewis
@danamlewis
Feb 09 2017 21:07
100%? Boo.
Seems to be overkill for fixing a recent problem.
katie disimone
@Kdisimone
Feb 09 2017 21:09
Yes…all of it. I tried hand-selecting for awhile…but it was going on two hours of entries at that point and beyond what I wanted to deal with. (wasn’t my site though…and the person didn’t care about her old data).
Tim Street
@tim2000s
Feb 09 2017 21:09
{
    "_id": {
        "$oid": "589cd7ae2a31690c003d380e"
    },
    "device": "openaps://ed210",
    "openaps": {
        "iob": {
            "iob": 0.04,
            "activity": -0.0006,
            "bolussnooze": 0,
            "basaliob": 0.04,
            "netbasalinsulin": -0.45,
            "hightempinsulin": 0.4,
            "timestamp": "2017-02-09T20:56:18.000Z"
        },
        "suggested": {
            "temp": "absolute",
            "bg": 98,
            "tick": "+0",
            "eventualBG": 92,
            "snoozeBG": 92,
            "COB": 0,
            "IOB": 0.04,
            "reason": "COB: 0, Dev: -4, BGI: 0.15, ISF: 2.8, Target: 4.8; Eventual BG 5.1 > 4.8 but Min. Delta -0.60 < Exp. Delta -0.1; setting current basal of 0.8 as temp. Setting neutral temp basal of 0.8U/hr",
            "duration": 30,
            "rate": 0.8,
            "timestamp": "2017-02-09T20:56:56.000Z"
        },
        "enacted": {
            "bg": 98,
            "temp": "absolute",
            "snoozeBG": 92,
            "recieved": true,
            "predBGs": {
                "IOB": [
                    98,
                    98,
                    97,
                    97,
                    96,
                    96,
                    96,
                    95,
                    95,
                    95,
                    95,
                    95,
                    95,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    94,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    93,
                    92
                ]
            },
            "rate": 0.8,
            "reason": "COB: 0, Dev: -4, BGI: 0.15, ISF: 2.8, Target: 4.8; Eventual BG 5.1 > 4.8 but Min. Delta -0.60 < Exp. Delta -0.1; setting current basal of 0.8 as temp. Setting neutral temp basal of 0.8U/hr",
            "COB": 0,
            "eventualBG": 92,
            "timestamp": "2017-02-09T20:57:00.000Z",
            "duration": 30,
            "tick": "+0",
            "IOB": 0.04
        }
    },
    "pump": {
        "clock": "2017-02-09T20:56:18+00:00",
        "battery": {
            "status": "normal",
            "voltage": 1.52
        },
        "reservoir": 104.6,
        "status": {
            "status": "normal",
            "bolusing": false,
            "suspended": false,
            "timestamp": "2017-02-09T20:57:08.000Z"
        }
    },
    "uploader": {
        "batteryVoltage": 3879,
        "battery": 70
    },
    "created_at": "2017-02-09T20:57:18.514Z"
}
Actually, it's clearing out a lot in Device Status
katie disimone
@Kdisimone
Feb 09 2017 21:11
@TomBoudr_twitter Yes, on your NS site, go to the upper right corner and click on the three horizontal lines. There is an Admin Tools link under there
If you want to individually pick entries and try not to delete large swaths of data, then you have to go to mlab and select them individually
Dana Lewis
@danamlewis
Feb 09 2017 21:12
Thx for confirming
katie disimone
@Kdisimone
Feb 09 2017 21:13
It leaves the treatment data (carbs, boluses, temp basals, temp targets) and it leaves BG data. It takes out loop forecasts, pump status, loop status, battery.
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:15
@Kdisimone yeah... can't get it to open the UI at all Just get an "Application Error" screen from heroku... going to try a different mongo DB
katie disimone
@Kdisimone
Feb 09 2017 21:16
not in heroku
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:16
I understand... NS's UI will not load
I was using my old Azure NS's mongo DB since it had my old data, going to try switching to a fresh one that was created when I moved to heroku
Matt Walker
@walker0
Feb 09 2017 21:18
@TomBoudr_twitter switch to the paid option in heroku quickly and have a look at the metrics to see what is going over. It may be some weird entries that are causing it. There was a while when I had to turn off COB due to weird entires that were sending memory usage sky high and crashing the site. You will probably find the site comes back at least temporarily if you do the restart all dynes option.
katie disimone
@Kdisimone
Feb 09 2017 21:19
Ahh, gotcha. @TomBoudr_twitter
Was your site running on heroku before you got the application error, or is this a new installation?
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:20
it was running
profile page will load...
but not the main
can someone give me the URL for the admin tools portion?
for example here is the profile URL: https://tomns.herokuapp.com/profile/index.html which still works for me
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:21
perfect :)
katie disimone
@Kdisimone
Feb 09 2017 21:22
If you’re looking to get to your heroku mlab directly, you can click on it in your heroku control panel to go to it
(not sure if you were meaning the corruption is in the new heroku mlab or in the old azure mlab…we linked our new heroku site to our old azure mlab when we moved to heroku…so I’m not sure if you did the same. sounded like it sorta of. or that you were planning on doing that?)
jmcrawford
@jmcrawford
Feb 09 2017 21:24
@TomBoudr_twitter Check out this issue: nightscout/cgm-remote-monitor#2343
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:25
that looks like my issue
jmcrawford
@jmcrawford
Feb 09 2017 21:25
Jason thought he'd fixed it, I was never able to reproduce the error and it hasn't occurred by itself since then (or this is a different issue)
I have a search configured in mlab to identify the troublesome records, if you think that would help
kenstack
@kenstack
Feb 09 2017 21:26
@ecc1 Im not really sure honestly the person that put jubi together has a website - her description was bluetooth driver that reads bt address from appropriate flash partition
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:28
trying to log into mlab now...
RedCyclist1
@RedCyclist1
Feb 09 2017 21:29
I flashed my edison last night and I am stuck in setting up my wifi. When I go to insert mode, it is telling me that I have a swap file and therefore the file is read only. I botched a few attempts last night and would just like to start over. Should I reflash or is there a way to edit the file so I can overwrite it?
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:30
@jmcrawford would love that query...
I'm into mlab
jmcrawford
@jmcrawford
Feb 09 2017 21:31
It's not fancy, but I was pleased that I was able to figure out the syntax:
Dana Lewis
@danamlewis
Feb 09 2017 21:32
@jmcrawford have you put that up on github somewhere?
jmcrawford
@jmcrawford
Feb 09 2017 21:32
{
    "device": "openaps://raspberrypi",
    "iob": "null"
}
Replace "raspberrypi" with your devicename, check some other records in devicestatus to get the name
I was able to resolve our occurrence by deleting the devicestatus records that were missing the timestamp fields, identified with that query
Dana Lewis
@danamlewis
Feb 09 2017 21:35
Would be great to pr that into the docs somewhere for people to try, vs deleting all the device status data, esp since we now have researchers who can use the device status data (me, included :smile: )
Paul Tinson
@ptinson
Feb 09 2017 21:37
@RedCyclist1 in the same location you will have a file there called .filename.swap
if you dont mind losing changes you can just delete that file
then it will be fine
Dana Lewis
@danamlewis
Feb 09 2017 21:37
On the research topic, for anyone who hasn't seen and is interested in donating their OpenAPS or other DIY closed loop data for research: https://openaps.org/data-commons/
Paul Tinson
@ptinson
Feb 09 2017 21:38
Its the ugly way to work around it but it works
jmcrawford
@jmcrawford
Feb 09 2017 21:39
@danamlewis TIll now, I didn't know anyone else had run into this before, so it seemed like a pretty far out edge-case. Also, seemed more like an NS issue that APS. I realize the record is created by APS, but NS seemed like a better place to fix it. If you can suggest a spot to put it, I'll write something up
RedCyclist1
@RedCyclist1
Feb 09 2017 21:39
Thanks Paul, I am new at this. Where do I look? In the console window?
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:40
@jmcrawford your query gave me zero, trying a bunch of different hardware names as I have loop and openaps
katie disimone
@Kdisimone
Feb 09 2017 21:40
Ours yesterday did seem like it originated from OpenAPS (saw issues with iob.json stuff in the logs).
Paul Tinson
@ptinson
Feb 09 2017 21:40
Yes, it should be in the same directory as the file itself by default
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:41
my log mentions carbs
Dana Lewis
@danamlewis
Feb 09 2017 21:41
Yea, it's NS but I think most common for us OpenAPsers. Maybe add it to this page http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/nightscout-setup.html ? At the bottom start a troubleshooting section? (We can always move it later but will be great to just get it up) thank you, for the tips and the Pr!
Paul Tinson
@ptinson
Feb 09 2017 21:41
so “cd” into that directory and then “ rm ./.file.name"
should work
katie disimone
@Kdisimone
Feb 09 2017 21:42
@RedCyclist1 can you maybe get a screenshot of that when you do it?
Someone else ran into this problem a couple of days ago too, and had a hard time figuring it out. I’d like to document that fix
Paul Tinson
@ptinson
Feb 09 2017 21:43
@Kdisimone you can also set vi to not use swap files
katie disimone
@Kdisimone
Feb 09 2017 21:43
She was doing vi…and then the rig lost connection midway. Seemed to create the swap file
Paul Tinson
@ptinson
Feb 09 2017 21:44
yeah, its a cache of changes to the file
until you either quit or save
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:46
OK back in business... just blew away all the treatments documents
katie disimone
@Kdisimone
Feb 09 2017 21:46
The problem seemed the be that no matter the action offered (the window was offering abort, replace, and such) it never resolved the swap. Granted, it was late and we didn't have all the time to look carefully
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:46
so @jmcrawford I think this is the same bug... but different collection
Paul Tinson
@ptinson
Feb 09 2017 21:47
odd. you can also try force writing to the file with “:w!” or “:wq!” it can clear it
Tom Boudreau
@TomBoudr_twitter
Feb 09 2017 21:52
I added to the issue report, since it will require another fix it seems
Tim Street
@tim2000s
Feb 09 2017 21:58
When you hit that swap file issue, the message that comes up also includes instructions on how to delete the swap file. The best way to deal with it is to follow those.
RedCyclist1
@RedCyclist1
Feb 09 2017 22:07
@ptinson I have tried that and it doesn't work in my case. I get "can't open file for writing"
Scott Leibrand
@scottleibrand
Feb 09 2017 22:13
@RedCyclist1 are you not logged in as root?
RedCyclist1
@RedCyclist1
Feb 09 2017 22:14
no
I have my own login
Scott Leibrand
@scottleibrand
Feb 09 2017 22:16
are you using an Explorer board?
RedCyclist1
@RedCyclist1
Feb 09 2017 22:16
yes
Scott Leibrand
@scottleibrand
Feb 09 2017 22:17
RedCyclist1
@RedCyclist1
Feb 09 2017 22:18
How do I log out?
Scott Leibrand
@scottleibrand
Feb 09 2017 22:19
exit
Paul Tinson
@ptinson
Feb 09 2017 22:28
@RedCyclist1 what Scott said
RedCyclist1
@RedCyclist1
Feb 09 2017 22:33
Ok, I set it up and when I run ifup wlan0, I get "No dhcpoffers recieved"
Scott Leibrand
@scottleibrand
Feb 09 2017 22:37
go ahead and try rebooting anyway (without disconnecting your console connection or closing that window) and see if it can ping google.com after reboot
Kate Farnsworth
@ELUTE
Feb 09 2017 22:39
I am trying to set the BT stuff up. This is what I am getting...
Screen Shot 2017-02-09 at 5.38.25 PM.png
Scott Leibrand
@scottleibrand
Feb 09 2017 22:40
those responses are out of order
if you hit enter after the killall, you'll get the command not found response
and then doing the bluetoothd --experimental will give you no output
that is fine: it's not supposed to say anything, it's just running in the background
and background process output is confusing on Linux sometimes
long story short, you should be able to continue to the next step
but if you have any suggestions for making that part of the directions more clear, please do PR them in.
RedCyclist1
@RedCyclist1
Feb 09 2017 22:43
Do I just enter ping google.com after reboot? If so I am getting unknown host
Kate Farnsworth
@ELUTE
Feb 09 2017 22:43
ok
Scott Leibrand
@scottleibrand
Feb 09 2017 22:44
@RedCyclist1 in that case, your wifi likely didn't come up correctly. you can run wifi to see status (then ctrl-C to cancel)
Kate Farnsworth
@ELUTE
Feb 09 2017 22:47
@scottleibrand it freezes here and I can't enter anything
RedCyclist1
@RedCyclist1
Feb 09 2017 22:51
@scottleibrand I am new to this. How do I run wifi?
katie disimone
@Kdisimone
Feb 09 2017 22:53
@RedCyclist1 the new master and dev branches have a script written where you can just type 'wifi' and it will bring up wifi info
RedCyclist1
@RedCyclist1
Feb 09 2017 22:56
@Kdisimone Thanks, I am getting wifi: command not found.
Dana Lewis
@danamlewis
Feb 09 2017 22:59
When did you last update your rig? After 2/7?
If not, you'll need to update to be able to do that. Otherwise, you can run the ful wifi tail command.
RedCyclist1
@RedCyclist1
Feb 09 2017 23:00
I flashed it last night
Not the Edison - your oref0
But if you haven't installed oref0 yet, you won't have that command either way.
RedCyclist1
@RedCyclist1
Feb 09 2017 23:02
yes, I haven't done that yet
Scott Leibrand
@scottleibrand
Feb 09 2017 23:03
oh, sorry, yeah
Dana Lewis
@danamlewis
Feb 09 2017 23:03
K
Scott Leibrand
@scottleibrand
Feb 09 2017 23:03
you can run iwconfig 2>&1 | grep ESSID then to see what wifi network you're on
if that doesn't show the wifi network you configured, then you probably misconfigured something
RedCyclist1
@RedCyclist1
Feb 09 2017 23:05
Here is what I got
wlan0 IEEE 802.11abgn ESSID:off/any
Paul Tinson
@ptinson
Feb 09 2017 23:07
@scottleibrand you can also run iwgetid :)
iwgetid -r and you just get the SSID
Scott Leibrand
@scottleibrand
Feb 09 2017 23:08
heh, that would simplify oref0-online a bit
vs. iwconfig 2>&1 | grep ESSID | awk -F : '{print $2}' | perl -pe 's/ \n//' ;-p
want to do the honors and PR that into dev? :)
Kate Farnsworth
@ELUTE
Feb 09 2017 23:09
@scottleibrand what should the response to sudo hciconfig hci0 name $HOSTNAME be?
Scott Leibrand
@scottleibrand
Feb 09 2017 23:10
maybe nothing? I don't recall
sometimes it complains. that just sets the name it uses for pairing, which means what shows up on your iPhone under the Bluetooth settings screen. if that command fails it'll say BlueZ instead of your rig name, but everything will still work
Paul Tinson
@ptinson
Feb 09 2017 23:11
Yeah ill go clone, change and submit later today
Scott Leibrand
@scottleibrand
Feb 09 2017 23:11
thx
Paul Tinson
@ptinson
Feb 09 2017 23:11
I accepted your merge btw for the VPN
Just writing a node proof of concept to manage it
Scott Leibrand
@scottleibrand
Feb 09 2017 23:12
yeah saw that, thx. may still need the perl -pe 's/\n//' part to get the iwgetid output inline
cool
Kate Farnsworth
@ELUTE
Feb 09 2017 23:12
I get [1]+ Exit 1
Scott Leibrand
@scottleibrand
Feb 09 2017 23:12
that means the command you earlier ran with a & to run in the background, which got a job id of [1], just exited
which was probably one of your bluetoothd --experimental & ones
Kate Farnsworth
@ELUTE
Feb 09 2017 23:13
do I want it to exit?
Scott Leibrand
@scottleibrand
Feb 09 2017 23:13
you can go back to that point and do the kill and restart bluetoothd if you're not sure if it worked right
then repeat the other steps from there
if you want to see if it's running or not, you can do ps aux | grep bluetoothd
Kate Farnsworth
@ELUTE
Feb 09 2017 23:15
when I do this it is stuck
Screen Shot 2017-02-09 at 6.14.32 PM.png
Scott Leibrand
@scottleibrand
Feb 09 2017 23:15
that is the output I'd expect. you should now be at a different kind of command prompt where you run the subsequent commands
Kate Farnsworth
@ELUTE
Feb 09 2017 23:15
I can't enter anything
Scott Leibrand
@scottleibrand
Feb 09 2017 23:16
hmm, ok. does ctrl-c work?
Kate Farnsworth
@ELUTE
Feb 09 2017 23:16
yeah
Scott Leibrand
@scottleibrand
Feb 09 2017 23:16
I would start over from the killall command and try again
Kate Farnsworth
@ELUTE
Feb 09 2017 23:16
have done it 14 times lol
Scott Leibrand
@scottleibrand
Feb 09 2017 23:16
heh, maybe not then. :)
does it always get stuck at the [bluetooth]# prompt?
Kate Farnsworth
@ELUTE
Feb 09 2017 23:17
yes
Scott Leibrand
@scottleibrand
Feb 09 2017 23:17
maybe reboot the rig? not sure
Kate Farnsworth
@ELUTE
Feb 09 2017 23:18
did that... will try again
Scott Leibrand
@scottleibrand
Feb 09 2017 23:18
odd. if bluetooth isn't working, you might want to continue without it and come back later once you're looping and everything else is working including wifi hotspotting
Kate Farnsworth
@ELUTE
Feb 09 2017 23:21
I have been looping but wifi hotspotting not so hot with a teen
RedCyclist1
@RedCyclist1
Feb 09 2017 23:25
Thanks everyone, I got my wifi working so onto the next step
Paul Tinson
@ptinson
Feb 09 2017 23:27
@RedCyclist1 :+1:
Scott Leibrand
@scottleibrand
Feb 09 2017 23:27
@ELUTE ok. was this a recently flashed rig, or has it been awhile?
Paul Tinson
@ptinson
Feb 09 2017 23:27
@scottleibrand iwgetid seems to work ok, ill do a proper test later and submit it
Scott Leibrand
@scottleibrand
Feb 09 2017 23:28
:+1:
Dana Lewis
@danamlewis
Feb 09 2017 23:29
Do we also want to simplify the wifi shortcut, or just oref0-online
Scott Leibrand
@scottleibrand
Feb 09 2017 23:31
the wifi shortcut just tails the log that oref0-online writes to, so that doesn't need changing.
Dana Lewis
@danamlewis
Feb 09 2017 23:32
K :+1:
katie disimone
@Kdisimone
Feb 09 2017 23:33
@scottleibrand would this check to see if bluez 5.37 is installed? bluetoothd --version | grep -q 5.37
Scott Leibrand
@scottleibrand
Feb 09 2017 23:34
looks like it
is that from oref0-setup?
katie disimone
@Kdisimone
Feb 09 2017 23:34
ok thanks. yes
Scott Leibrand
@scottleibrand
Feb 09 2017 23:34
grep searches the output for a string, and prints the line it finds it in, unless you give -q, then it just sets its response code accordingly
katie disimone
@Kdisimone
Feb 09 2017 23:34
trying to think of ways that maybe @elute could see if that even installed correctly for her.
Scott Leibrand
@scottleibrand
Feb 09 2017 23:35
so for running it manually, you'd want to remove the grep
katie disimone
@Kdisimone
Feb 09 2017 23:35
and gives me an excuse to finally look into oref0
RedCyclist1
@RedCyclist1
Feb 09 2017 23:35
This is not clear to me
From a new terminal or PuTTY window, ssh myedisonhostname.local.
Do I open putty using serial or ssh?
Scott Leibrand
@scottleibrand
Feb 09 2017 23:35
:-)
on Windows, that means open PuTTY, and connect via ssh to myedisonhostname.local
katie disimone
@Kdisimone
Feb 09 2017 23:35
so bluetoothd —version should be sufficient.
Scott Leibrand
@scottleibrand
Feb 09 2017 23:35
yes
katie disimone
@Kdisimone
Feb 09 2017 23:36
:+1:
RedCyclist1
@RedCyclist1
Feb 09 2017 23:40
@scottleibrand I keep getting "host doesn't exist"
What am I missing?
katie disimone
@Kdisimone
Feb 09 2017 23:43
ShareBLE in the setup script…what dexcom setup is that for? I notice is says G4 share serial number, but when would one use ShareBLE vs. G4 in the setup?
Scott Leibrand
@scottleibrand
Feb 09 2017 23:43
that's for openxshareble
katie disimone
@Kdisimone
Feb 09 2017 23:44
oh
Scott Leibrand
@scottleibrand
Feb 09 2017 23:44
it theoretically allows you to get BG data over BLE from a G4 Share receiver that you pair with the rig instead of with your phone, but we've never gotten it to work reliably, so it's not in the main docs or very prominent in oref0-setup
katie disimone
@Kdisimone
Feb 09 2017 23:44
don’t know what that is, and likely don’t want to for now. :smile:
Scott Leibrand
@scottleibrand
Feb 09 2017 23:45
if someone wants to work on improving it (daemonizing it so it stays connected instead of constantly reconnecting every 5 minutes) you would make a lot of friends. :)
katie disimone
@Kdisimone
Feb 09 2017 23:47
Then is sounds much like a RL-esque situation. BGs go straight to rig. then rig uploads to NS?
Dana Lewis
@danamlewis
Feb 09 2017 23:47
^ :raised_hands:
RedCyclist1
@RedCyclist1
Feb 09 2017 23:47
@scottleibrand Thanks for all your help. I need to run but now I am getting
Network error: connection refused
Scott Leibrand
@scottleibrand
Feb 09 2017 23:50
@Kdisimone correct. it does work that way, but not reliably enough, so we no longer use it regularly