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

12th
Mar 2019
Steven Bell
@stevebell117
Mar 12 01:35
Hello, would discussing the oAPS -> NS ns-status messaging be discussed here?
vsherbeck
@vsherbeck
Mar 12 02:46
Ok; I feel kind of stupid. I'm at the point where I'm trying to run my first loop ? but I keep getting "command not found"
is there some other secret phrase I'm missing?
"tail: cannot open '/var/log/openaps/pump-loop.log' for reading: No such file or directory"
maybe I messed something up in the install...
zasteph
@zasteph
Mar 12 03:20

I'm trying to run the bootstrap on a new Edison/Explorer block setup.
It gets stuck in "Cleaning up..."
I left it for hours, it does not move. If I run it again, it's stuck there again...
I also have an error at the end of the boot, about the hostname.
Can this be the cause?
Any suggestion, please?

Boot error:
root@zMachine:~# systemctl status systemd-hostnamed.service -l
● systemd-hostnamed.service - Hostname Service
Loaded: loaded (/lib/systemd/system/systemd-hostnamed.service; static)
Active: failed (Result: exit-code) since Mon 2019-03-11 23:00:25 EDT; 16min ago
Docs: man:systemd-hostnamed.service(8)
man:hostname(5)
man:machine-info(5)
http://www.freedesktop.org/wiki/Software/systemd/hostnamed
Process: 430 ExecStart=/lib/systemd/systemd-hostnamed (code=exited, status=226/NAMESPACE)
Main PID: 430 (code=exited, status=226/NAMESPACE)

Mar 11 23:00:25 zMachine systemd[430]: Failed at step NAMESPACE spawning /lib/systemd/systemd-hostnamed: No such file or directory
Mar 11 23:00:25 zMachine systemd[1]: systemd-hostnamed.service: main process exited, code=exited, status=226/NAMESPACE
Mar 11 23:00:25 zMachine systemd[1]: Failed to start Hostname Service.
Mar 11 23:00:25 zMachine systemd[1]: Unit systemd-hostnamed.service entered failed state.

Bootstrap is stuck here...
Cleaning up...
installed /etc/udev/rules.d/80-medtronic-carelink.rules
installed /etc/udev/rules.d/80-dexcom.rules
Installing bash completion script /etc/bash_completion.d/python-argcomplete.sh
/usr/local/bin/json -> /usr/local/lib/node_modules/json/lib/json.js
npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN engine request@2.88.0: wanted: {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine form-data@2.3.3: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine har-validator@5.1.3: wanted: {"node":">=6"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN engine har-schema@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine tough-cookie@3.0.1: wanted: {"node":">=6"} (current: {"node":"0.10.29","npm":"1.4.21"})
... stuck here...

Martin Haeberli
@mhaeberli
Mar 12 05:09
@scottleibrand thx 4 your note this morning. I have been offline with some family stuff (Tracey’s mom is unwell). Your overall plan sounds good, but suggests some steps which I know nothing about. For example, is it already possible to pull profiles from NightScout? Probably I have a lot of RTD / Read The Docs and clarifying to do to deepen my understanding. As an initial matter, though, we have sadly had some rigs die, or be lost, and whatever data that had was lost with them. So I was thinking of rsyncing them every night to a Digital Ocean droplet they each have access to. So for that alone, a reminder would be helpful, or I can go to ground and figure it out on my own. In addition, with multiple rigs, running the same settings, we still often get a sort of square-wave on the basals, where one rig sets a basal to the default, or to high, say, and a few minutes later, presumably another rig, sets the basal to zero. I am naive enough to hope that -MAYBE?- this behavior would settle down if they were all synchronized to the same autotune result. In any event, as I understand your plan, the rigs would all sync someplace somehow, autotune would run, results would be computed, sent to NightScout, and then downloaded back from Nightscout to the rigs. In such a project I would be willing to apprentice myself to your guidance, albeit my bandwidth has a lot of uncertainty in it.
tepidjuice
@tepidjuice
Mar 12 06:38
I've finally got some FIAsp. Any tips, recommendations or warnings for the first time user? I've heard some people have issues with it and it doesn't last as long in the pump as novorapid. Also any fun experiments to try?
viq
@viq
Mar 12 08:23
@mhaeberli I have a WIP script that is able to get nightscout profile into a format that OpenAPS understands, but AFAIK not all the settings from OpenAPS profile end up in nightscout. For such a scenario personally I can right now think of two ways I could try to keep them in sync: 1) keep large parts of the config in git, and pull and push regularly. 2) use something like sync syncthing to synchronise contents. Mind you, I'm just a linux geek and I don't use OpenAPS personally except to run autotune and feed the results to AndroidAPS
vsherbeck
@vsherbeck
Mar 12 11:25
Today is not my day. I tried to start over and now I can't even manage to write pibakery and get pi to connect... I'm beginning to think I'm not going to get this done.
vsherbeck
@vsherbeck
Mar 12 11:29
I tried etcher... I can't seem to puzzle out how to add wifi ? it says to create a file but I'm kind of confused how I just... do that ?
Jon Cluck
@cluckj
Mar 12 11:30
are you on windows or iOS?
vsherbeck
@vsherbeck
Mar 12 11:31
windows
Jon Cluck
@cluckj
Mar 12 11:33
open up notepad and copy the stuff from the guide into it, put your wifi & country code in, then "Save As" wpa_supplicant.conf -- but make sure "All Files" is selected in the drop-down box below where you put the filename in
(if "Text Files" is selected, it'll save as wpa_supplicant.conf.txt)
vsherbeck
@vsherbeck
Mar 12 11:35
Ok so I was on the right track just missing the all files part... bleh
vsherbeck
@vsherbeck
Mar 12 11:44
Nope... not able to see it on fing
I'm beginning to think I somehow messed up the card. Even though windows thinks it's healthy...
Jon Cluck
@cluckj
Mar 12 11:59
the wpa_supplicant file is pretty picky, do you have any spaces or apostrophes in your ssid or psk?
vsherbeck
@vsherbeck
Mar 12 11:59
ok no now I'm back to install! ugh this thing is killing me haha
it somehow had saved as .txt anyway the first time around despite all files. go figure
Jon Cluck
@cluckj
Mar 12 12:00
hah
vsherbeck
@vsherbeck
Mar 12 12:12
but aside from all this... now that I'm at all these ssh side things. I could not manage to get my radio to communicate with the pump at least if I read the logs right. I believe Scott sugggested using his ? version ? of oref0... but I'm not really sure how I do that. I forked it on github but that's about as much as I understood... about how I would set that up
Jon Cluck
@cluckj
Mar 12 12:13
was he suggesting the dev version?
vsherbeck
@vsherbeck
Mar 12 12:13
I think so ?
vsherbeck
@vsherbeck
Mar 12 12:17
So my understanding is I still do all the other normal startup things... then I would run that after ?
Jon Cluck
@cluckj
Mar 12 12:18
you can also switch over to dev before running setup
like when the install script stops and asks if you want to run oref0-setup or cancel, you can cancel it and run those commands to switch to the dev branch
vsherbeck
@vsherbeck
Mar 12 12:24
ohhh ok. I think... I was already on dev branch then sort of ? because I was following the instructions for the HAT / RFM69
Jon Cluck
@cluckj
Mar 12 12:27
are you using the HAT, or the rfm69?
vsherbeck
@vsherbeck
Mar 12 12:29
so... I'm using an RFM69. but it has an OLED display which at times has displayed the "openaps explorer HAT" on it...
it doesn't know what it is. maybe that's part of my problem haha
Jon Cluck
@cluckj
Mar 12 12:30
the adafruit rfm69 bonnet?
vsherbeck
@vsherbeck
Mar 12 12:30
yeah
Jon Cluck
@cluckj
Mar 12 12:30
oh :D
vsherbeck
@vsherbeck
Mar 12 12:30
is it no good ? lol. that would figure given my luck
Jon Cluck
@cluckj
Mar 12 12:36
it'll work with a much more experimental dev branch
vsherbeck
@vsherbeck
Mar 12 12:37
uh oh lol... sounds complicated
Jon Cluck
@cluckj
Mar 12 12:42
it depends....
you can change over to my fork of oref0 where I have the bonnet working, then later switch back to the main repository once those changes get merged?
vsherbeck
@vsherbeck
Mar 12 12:44
oh, ok? how do I switch over
coincidentally I just finished openaps-install...
so I guess I'm ready to branch
Jon Cluck
@cluckj
Mar 12 12:45
the easiest way is to remove oref0 and clone my fork: cd ~/src/ && rm -rf oref0/ followed by git clone https://github.com/cluckj/oref0
yeah this is a good time to do it :)
then you can follow the instructions in the docs, git checkout dev npm run global-install etc.
vsherbeck
@vsherbeck
Mar 12 12:47
ok wait is it really... rm -rf oref0/ or is there another / in there
Jon Cluck
@cluckj
Mar 12 12:49
really the former :)
vsherbeck
@vsherbeck
Mar 12 12:49
well it seems to be working haha... forgive me for questioning I guess I'm just used to... braced... phrases
Jon Cluck
@cluckj
Mar 12 12:50
lol
vsherbeck
@vsherbeck
Mar 12 12:51
I'm just... feeling a bit crazy as I transition to a graveyard schedule.
Jon Cluck
@cluckj
Mar 12 12:52
oof, good luck
vsherbeck
@vsherbeck
Mar 12 12:52
particularly by... not knowing virtually anything about programming
but... if I can get this going... I feel like it would improve my week tremendously.
it's hard to care for patients if you're one yourself
Jon Cluck
@cluckj
Mar 12 12:54
this should be a relatively easy setup
vsherbeck
@vsherbeck
Mar 12 12:55
does the cloning take a while ?
Jon Cluck
@cluckj
Mar 12 12:56
it shouldn't take more than a couple minutes; is it stuck?
vsherbeck
@vsherbeck
Mar 12 12:56
uh oh... I got this
fatal: unable to access 'https://github.com/cluckj/oref0/': gnutls_handshake() f ailed: Error in the push function.
wait did I spell it wrong... maybe... hmm
oh I must have done something wrong it seems to be flowing now that I tried again
Jon Cluck
@cluckj
Mar 12 13:00
computers are weird, don't worry too much about it
vsherbeck
@vsherbeck
Mar 12 13:01
if there's anything I can manage to do it's make things way harder than they need to be... lol
vsherbeck
@vsherbeck
Mar 12 13:16
So in set up... am I then... 3 Pi with radiofruit bonnet ?
or 4 other
Jon Cluck
@cluckj
Mar 12 13:17
3
you want to build from source, and then select "4" for the radiofruit bonnet
vsherbeck
@vsherbeck
Mar 12 13:20
ok this is stupid but something I never understood... when it asks for BT MAC address... in the phone is that the BT address? because the only one my phone has with MAC is a wi-fi MAC address
Jon Cluck
@cluckj
Mar 12 13:21
yes, it's the BT MAC address that you need
are you running android?
vsherbeck
@vsherbeck
Mar 12 13:22
yeah
Jon Cluck
@cluckj
Mar 12 13:22
on 9 (Pie) it's in settings --> about phone, all the way down at the bottom called "bluetooth address"
vsherbeck
@vsherbeck
Mar 12 13:43
so... how do I look at the log from here ? maybe I did something wrong but it's not recognizing the commands
but wait it didn't ask me to say y to the cron questions...
so I rerun setup ?
Jon Cluck
@cluckj
Mar 12 13:47
what was the error message, or where did it stop?
vsherbeck
@vsherbeck
Mar 12 13:50
it just took me back to the root/ /src/ thing
or did you mean the logs ?
"command not found"
Jon Cluck
@cluckj
Mar 12 13:51
for which command?
something during the setup?
vsherbeck
@vsherbeck
Mar 12 13:54
no for trying to pull up the logs; l
but I never said yes the cron questions... I should probably rerun setup
Jon Cluck
@cluckj
Mar 12 13:56
yes
vsherbeck
@vsherbeck
Mar 12 14:34
I still am not connecting to the radio... maybe tomorrow I'll try to fashion some other antenna...
Jon Cluck
@cluckj
Mar 12 14:35
what kind of error messages are you getting?
vsherbeck
@vsherbeck
Mar 12 14:37
mmtune: 2019/03/12 07:36:29 cannot connect to CC111x radio on /dev/spidev0.0
2019/03/12 07:36:29 cc111x: no response
Preflight fail. Couldn't preflight
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 1 s silence before mmtuning
Eric
@ecc1
Mar 12 14:46
^ that ("CC111x") means it's somehow configured for an Explorer HAT, not an RFM69 bonnet
Jon Cluck
@cluckj
Mar 12 14:49
did you select "build from source"?
vsherbeck
@vsherbeck
Mar 12 14:52
Oh, maybe not...
Jon Cluck
@cluckj
Mar 12 14:57
the installer doesn't work to download the binaries for that (yet)
vsherbeck
@vsherbeck
Mar 12 14:58
Ok I'll rerun setup. Thank you guys!
djnoor
@djnoor
Mar 12 15:14
Does AndroidAPS work with Token Based Authentication now? It didn't a couple years ago. openaps/oref0#651
Sorry, I meant XdripAPS.
zasteph
@zasteph
Mar 12 16:22
Hi, I am building a new rig, and I just read that if the G4 is directly connected to the rig it will NOT download the CGM readings to the cloud.
Do I understand correctly? How is this working then? Do I have to periodically load data from CGM to the cloud for the prediction/adjustments to happen? Thank you.
Scott Leibrand
@scottleibrand
Mar 12 16:27
device to cloud is "upload", not down
zasteph
@zasteph
Mar 12 16:27
sorry, upload
Scott Leibrand
@scottleibrand
Mar 12 16:27
it depends on which option you select in oref0-setup
there is an option that uploads to NS from a plugged-in CGM receiver, and one that just uses the info locally
that's because if you have a G4 Share receiver you can also use the Dexcom phone app to upload to NS, so not everyone needs duplicate upload methods
Jon Cluck
@cluckj
Mar 12 16:28
@vsherbeck I just pushed some installer improvements to my dev branch, they should make the bonnet setup work with downloading binaries if you're still having trouble :)
if you've already got it working, you don't need to update
zasteph
@zasteph
Mar 12 16:29
oh, ok, so I should see an option at one point to upload data from plugged-in G4 CGM
Scott Leibrand
@scottleibrand
Mar 12 16:33
the names are two of (g4-upload, g4, or g4-local-only): I don't remember which. :)
zasteph
@zasteph
Mar 12 16:34
thank you. So the G4-upload does not mean Android-G4-app?
If the rig can upload data from CGM, what would be the downside of direct connecting the G4-CGM to the rig instead the Android-G4-app solution?
Scott Leibrand
@scottleibrand
Mar 12 16:37
I don't know exactly what Android-G4-app is
zasteph
@zasteph
Mar 12 16:37
(providing there is always wi-fi available)
Scott Leibrand
@scottleibrand
Mar 12 16:37
is that the official Dexcom app?
or a modified one that uploads to NS?
zasteph
@zasteph
Mar 12 16:38
the nightscout app which uploads G4 data?
on an Android phone
Scott Leibrand
@scottleibrand
Mar 12 16:39
more generally, keeping a dexcom receiver plugged into the rig is a challenge because of the bulk required for all the cables and the external battery required to provide 5V across the USB
if you have a solution that connect to the G4 Share over BLE, that tends to be more reliable
zasteph
@zasteph
Mar 12 16:46
Thank you. No BLE for now; I'll start then on the G4 connected to the rig , I have multiple batteries available, for the USB port and the little battery port on the explorer board. Perhaps when G6 becomes an option that will change. Thank you!
samueldemers2
@samueldemers2
Mar 12 16:57
Hi to all. Im in the process of building a pi0 rig with explorer Hat. I managed to run all the scripts without much issue (that werent my fault). Now, when I look at the log, I see that the rig isnt able to talk to the pump (preflight fail). My battery is brand new, the rig is right beside de pump, my pump is a medtronic 715 with 2.1 firmware.
Is there a way to make sure the pump is compatible. Im starting to think it might be one that had been sent to repair on warranty.
Scott Leibrand
@scottleibrand
Mar 12 17:15
if the firmware version is low enough, then you won't have PC Connect in the devices menu, and can loop with that pump
check WW vs. NA
and pump serial number (6 digits only, no letters)
samueldemers2
@samueldemers2
Mar 12 17:23
Its a NA version (I typed enter in the setup script at this question) et le pump serial I also used the one displayed while pressing the esc button (without letter)
So the problem should be in another part of the setup script. Ill try to take a look at the mmtune log when ill have a chance. If its going with a frequency in the 868 range, is there a way to change it without going through the script again?
Jon Cluck
@cluckj
Mar 12 17:33
that's a bug that we fixed last night, do a git pull in ~/src/oref0/
then npm run global-install in the same place; after that you should be good to go :)
samueldemers2
@samueldemers2
Mar 12 17:40
@cluckj im a newcomer to Linux and not yet so familiar with the proper way to input command lines. Do I have to log on the rig, then input your line and finally rerun the setup script?
Jon Cluck
@cluckj
Mar 12 17:54
yes, log into the rig and type cd ~/src/oref0 then run git pull and then npm run global-install
TranceCake
@TranceCake
Mar 12 17:55
@samueldemers2 how did you manage to install everything without inputting commands?
TranceCake
@TranceCake
Mar 12 18:08
btw @cluckj the reinstall seems to have fixed the ns crash
samueldemers2
@samueldemers2
Mar 12 18:40
@TranceCake I followed the instruction, but as soon as i goes beyond im lost as of now. I can read the code and understand what it does mostly by I have a hard time switching between script and rerun one that failed (in theses cases, I format the sd card and create a partition and start over from the beginning)
@cluckj I give it a try when ill get home. Ill surely give news as soon as it will be done. Thanks!
TranceCake
@TranceCake
Mar 12 18:57
huh, something weird is happening: the 'l' command does work but all others like cat-pref don't, I get a '-bash: command not found' for those
elodaille01
@elodaille01
Mar 12 19:10
retry 0 (Do you need to run 'export RFSPY_RTSCTS=0' first?)
Sorry. ..my question is : what would you do with that error message ? retry 0 (Do you need to run 'export RFSPY_RTSCTS=0' first?)
I tried to reflash the radio because of discontinued communi
Communication between the rig and the pump. .and the result was this message
elodaille01
@elodaille01
Mar 12 19:58
Please, anyone to help me ?
TranceCake
@TranceCake
Mar 12 19:59
sorry, I don't know
I don't know where you are located but in a few hours the US based people will come home from work
elodaille01
@elodaille01
Mar 12 20:31
I am located in France. .thank you @TranceCake
Teamhrach
@Teamhrach
Mar 12 20:33
I'm getting the following message for the last 4 hours - 'uploading to nightscout was unsuccessful (device status) internal server error'. I use a Medtronic 640G with a CNL. I've plugged the CNL into 2 different phones and a Kindle and still get the same error message. Has anyone got any suggestions please?
djnoor
@djnoor
Mar 12 22:22
Is there a difference between maxSMBBasalMinutes and maxUAMSMBBasalMinutes?
@cluckj Can the latter be adjusted?
Scott Leibrand
@scottleibrand
Mar 12 22:23
merged
Teamhrach
@Teamhrach
Mar 12 22:28
@Teamhrach I just come across the mLab maintenance section of the docs and gone through the mongo repairDatabase process without success. I've an email to mLab support . Hopefully they can help!
Teamhrach
@Teamhrach
Mar 12 22:38
Update: Happy days. mLab support have responded, NS is working again and I'm looping again.