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

2nd
Apr 2019
Abigail Cember
@acember
Apr 02 00:15
Oh. I thought I had to do a new git pull from my own fork on github...
Abigail Cember
@acember
Apr 02 00:46
@scottleibrand Also, why would I edit oref0-setup? (Maybe that's not what you meant?) I edited oref0-pump-loop.sh, and now I'm running the global install. If nothing goes wrong, then when this is finished I'm going to check what happens when I power off the rig and turn off wifi [fingers crossed].
Abigail Cember
@acember
Apr 02 01:17
The good news: I successfully edited the code on my own rig! (And consequently am one step closer to taking over the world, starting with writing new openAPS functions.) The less good news: instead of setting the system time according to the pump time, it reset my pump and CGM time to match the system time, which was wrong :/ I can't quite understand why it did this, but I think it's because for some reason checkNTP() returned true, even though I had the wifi turned off. I think I'm going to try again tomorrow at work, with a different internet situation ...but definitely progress. Thanks, @scottleibrand!!
Scott Leibrand
@scottleibrand
Apr 02 03:30
Can you show us the exact code you changed, via git diff?
Dana Lewis
@danamlewis
Apr 02 03:39
@acember re why not git pull - it’s a question of whether you want to change the code locally on your rig first (which you can then push back to GitHub to store a version there) or make the edits from github web interface and pull it down to the rig from there.
tepidjuice
@tepidjuice
Apr 02 05:43
@cstoerner no it fails to find the radio and persistently throws that error message.
vsherbeck
@vsherbeck
Apr 02 07:07
I'm so close to just restarting all over again... my rig forgot all of it's wifi info ?? or something... there's no way for me to add that back in without reflashing everything, right ?
Riko L
@Ricco555
Apr 02 07:59
@vsherbeck connection issue should not need reflashing.
boc-the-git
@boc-the-git
Apr 02 08:47
I'm guessing the issue is an inability to ssh to the rig?
Riko L
@Ricco555
Apr 02 09:26
but it is easy to mess up the configuration. what is the status of ifupdown service and wpa_supplicant service ? do you have wifi configuration in /etc/wpa_supplicant/wpa_supplicant.conf
Iain
@iainct
Apr 02 09:58
Hey there, i have just updated my rig as I needed to move to another pump due to motor issues. I am getting the following fault when running oref0-setup.sh
The following packages will be upgraded:
  libsqlite3-0 sqlite3
2 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.
Need to get 1,430 kB of archives.
After this operation, 2,727 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  sqlite3 libsqlite3-0
E: There are problems and -y was used without --force-yes
Can't add xdrip cgm - error installing sqlite3
Iain
@iainct
Apr 02 10:06
looks like i need to manually install and skip the authentication, is there a method of applying this as it take a while to hit that stage of the setup....
Iain
@iainct
Apr 02 10:39
even 'apt-get update' is failing...
root@edi2:~# apt-get update
Hit http://security.debian.org jessie/updates InRelease
Ign http://http.debian.net jessie InRelease
Ign http://http.debian.net jessie-updates InRelease
Ign http://http.debian.net jessie-backports InRelease
Hit http://http.debian.net jessie Release.gpg
Ign http://http.debian.net jessie-updates Release.gpg
Get:1 http://security.debian.org jessie/updates/main i386 Packages [665 kB]
Ign http://http.debian.net jessie-backports Release.gpg
Get:2 http://security.debian.org jessie/updates/non-free i386 Packages [4,549 B]
Hit http://http.debian.net jessie Release
Ign http://http.debian.net jessie-updates Release
Ign http://http.debian.net jessie-backports Release
Get:3 http://security.debian.org jessie/updates/main Translation-en [335 kB]
Ign http://http.debian.net jessie-updates/main i386 Packages/DiffIndex
Ign http://http.debian.net jessie-updates/contrib i386 Packages/DiffIndex
Get:4 http://security.debian.org jessie/updates/non-free Translation-en [11.8 kB]
Hit http://security.debian.org jessie/updates/contrib i386 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Ign http://http.debian.net jessie-updates/non-free i386 Packages/DiffIndex
Hit http://http.debian.net jessie/main i386 Packages
Hit http://http.debian.net jessie/contrib i386 Packages
Hit http://http.debian.net jessie/non-free i386 Packages
Hit http://http.debian.net jessie/contrib Translation-en
Hit http://http.debian.net jessie/main Translation-en
Ign http://http.debian.net jessie-backports/main i386 Packages/DiffIndex
Hit http://http.debian.net jessie/non-free Translation-en
Ign http://http.debian.net jessie-updates/contrib Translation-en_IE
Ign http://http.debian.net jessie-updates/contrib Translation-en
Ign http://http.debian.net jessie-updates/main Translation-en_IE
Ign http://http.debian.net jessie-updates/main Translation-en
Ign http://http.debian.net jessie-updates/non-free Translation-en_IE
Ign http://http.debian.net jessie-updates/non-free Translation-en
Ign http://http.debian.net jessie-backports/main Translation-en_IE
Ign http://http.debian.net jessie-backports/main Translation-en
Err http://http.debian.net jessie-updates/main i386 Packages
  404  Not Found
Err http://http.debian.net jessie-updates/contrib i386 Packages
  404  Not Found
Err http://http.debian.net jessie-updates/non-free i386 Packages
  404  Not Found
Err http://http.debian.net jessie-backports/main i386 Packages
  404  Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/contrib/binary-i386/Packages  404  Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/non-free/binary-i386/Packages  404  Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@edi2:~#
Iain
@iainct
Apr 02 10:53
i see https://gitter.im/nightscout/intend-to-bolus?at=5c9c432a425a5d12042ec5a6 but where do I get jubilinux 0.3.0 and bootstrap/install?
Jon Cluck
@cluckj
Apr 02 11:09
you can get it here: http://www.jubilinux.org/dist/
Abigail Cember
@acember
Apr 02 16:46
@scottleibrand I figured out what happened last night: my new line of code never executed. Instead, oref0-set-device-clocks was called from inside smb_reservoir_before() [line 248 of oref0-pump-loop.sh]. This never happened before, because in a truly no-internet situation, NTP synchronization always fails. But somehow although I had turned wifi off via 'iwconfig wlan0 txpower off' and then manually changed the date to something wrong, checkNTP() returned true -- so the device clocks were set based off of system time, which the "system" falsely believed to be NTP time...
Scott Leibrand
@scottleibrand
Apr 02 17:01
If you have NTP working, checkNTP() will return true for some time afterward. Manually setting the clock won’t change that. Rebooting should though.
vsherbeck
@vsherbeck
Apr 02 18:39
Yeah, I cannot ssh into my rig. I know the internet is working but it's not connecting to either my home network or my phone's hotspot suddenly... I feel like I have to restart ._.
vsherbeck
@vsherbeck
Apr 02 19:13
anyways... my rig keeps crashing nightscout so...
rosaasor1
@rosaasor1
Apr 02 21:40
I have successfully run Jubilinux 0.3.0 with dev for several days using Jon Cluck's description. Stability is good and setup of BT tethering was easy, and love automatic switching between Wi-Fi and BT! You are probably aware of
That the offline web page on the rig is not up to date, even after adding the cron job ås described in the documentation. Assume that is one og the non-critical outstandig dev jobs.
Scott Leibrand
@scottleibrand
Apr 02 22:11
yeah, the offline web page doesn't get a lot of usage or dev work.
if you'd like to volunteer to work on it, feel free