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

2nd
Jun 2018
hamishsprocket
@hamishsprocket
Jun 02 2018 00:27
@scottleibrand I've had this error a couple of times - I tried running the dpkg command earlier this week and encountered another error later on. I will run the dpkg command again now and see where I get to.
garykidd
@garykidd
Jun 02 2018 00:30
well didnt get very far at all. wrote raspbian lite image via etcher on my imac---put sd card back in reader and it doesnt show up in finder...wht gives?
maybe I screwed card up I dont know ---what size is recommended?
Martin Haeberli
@mhaeberli
Jun 02 2018 00:44
I’m using 32 but I expect 16 or maybe even 8 should work
What size are you using?
garykidd
@garykidd
Jun 02 2018 00:46
8 gb but i dont think thats the issue
i suspect this card reader stinks---I csnt get it to read card now--isnt there a way to try and read through system prompt on imac---as opposed to finder?
i have a cpl 16 gb microsd on order now
iMac:~ g$ cd /volumes
iMac:volumes g$ ls
Macintosh HD
looks like it doesnt show here either----rrrrrhhhh
Diadon81
@Diadon81
Jun 02 2018 00:55
Found a problem from last dev update, by some reason, the following code was removed from oref0-setup: grep -q radio_locale pump.ini || echo "$(< pump.ini)" > pump.ini ; echo "radio_locale=$radio_locale" >> pump.ini, after I checked my pump.ini i didn't find radio_locale and by default the rig tried to mmtune to 916mhz. So I add radio_locale manually into the pump.ini and it fixed my problem.
just share my exprience with everyone :)
maybe it will help for someone.
Dana Lewis
@danamlewis
Jun 02 2018 01:02
@Diadon81 can you do a PR or file an issue?
hamishsprocket
@hamishsprocket
Jun 02 2018 01:04
@scottleibrand I ran the sudo dpkg --configure -a command. As far as I can tell I then encountered another error which I will paste below. However, it took me 6 tries to get this far as my putty connection keeps dropping out due with the message that a software error has caused the connection to abort. So I'm wondering if I have an issue with the rig's flashing (I doubt it's putty as I've been using putty to make changes on my main rig with no problems). In any case, this is what I got after entering the command. Any suggestions appreciated! Setting up curl (7.38.0-4+deb8u11) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Setting up systemd (215-17+deb8u7) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
/var/lib/dpkg/info/systemd.postinst: 150: /var/lib/dpkg/info/systemd.postinst: cannot open /run/systemd/was-enabled: No such file
Setting up man-db (2.7.0.2-5) ...
Building database of manual pages ...
Scott Leibrand
@scottleibrand
Jun 02 2018 01:07
You might need to use dpkg to remove (purge) the offending package and reinstall it. Or just reflash if you don’t want to deal with packaging purgatory.
hamishsprocket
@hamishsprocket
Jun 02 2018 01:08
Thanks! I'll reflash, that seems a better match for my skill set;)
Andy Sharrow
@dramageek
Jun 02 2018 01:26
@garykidd based on the response you got, it pulled the volumes of your mac instead of the rig. SSH in to the rig and run the same command
Tim Gunn
@Tornado-Tim
Jun 02 2018 01:44
let me me know if you need my help @hamishsprocket, ill pop by if need be :smile:
garykidd
@garykidd
Jun 02 2018 01:57
@dramageek yeah---cant ssh into rig if i cant get network settings on card which I cant do because my mac doesn't seem to read it anymore. Thanks for responsding though---I appreciate it
garykidd
@garykidd
Jun 02 2018 02:45
@scottleibrand is 8Gb sd card sufficient?
Scott Leibrand
@scottleibrand
Jun 02 2018 03:08
Should be if you’re doing the non-GUI image.
Martin Haeberli
@mhaeberli
Jun 02 2018 04:29
@garykidd Paragon has a commercial ext4 filesystem for the Mac with a free 10 day evaluation. That MAY let you read/write the card after formatting. Another question - WHICH MacOS version? I’m on 10.13 high Sierra . A much older macOS may block what you’re trying to do. Last observation: you may well be able to set up ssh etc the hard way with a monitor and keyboard on the pi. Not as simple and elegant, but a possible fallback.
Indeed - try a different card reader as well... and you can check, in disk utility, whether the volume is even visible to the system.
Scott Leibrand
@scottleibrand
Jun 02 2018 05:13
Normally the boot partition (which is just FAT) shows up in finder, but not the full ext4 one.
Alan
@Alzibiff
Jun 02 2018 17:42
Screen Shot 2018-06-02 at 12.07.02.png
I have had problems with BT disconnecting from my Moto G5 and with the rig not obtaining an i/p address from the phone. Looking at the DEV branch, I saw a commit from 22nd April which may help BUT ... isn't the phone losing its internet connection - No Service - totally separate from it providing an i/p to the rig? I'm certainly no expert when it comes to these things but once the rig is BT tethered isn't it effectively joining a network that the phone sets up and shouldn't that network stay in place whether or not the phone can see the internet? If not, I cannot see how offline looping will ever take place.
Scott Leibrand
@scottleibrand
Jun 02 2018 19:04
I don’t use android, but I understand there are android apps to keep the Bluetooth tethering up?
Alan
@Alzibiff
Jun 02 2018 19:30
What I was referring to was the text in the screenshot taken from the "commit" in the Dev branch of oref0 which talks about the rig losing its i/p address when the Bluetooth tethered phone loses service to the internet. The question I have is why should losing internet service cause the rig to lose its i/p address?
Martin Haeberli
@mhaeberli
Jun 02 2018 20:16
@Alzibiff - multi - level answer: a) i don’t KNOW for sure; b) i can speculate that the bridge phone providing internet service (can) decide unilaterally to drop the BT tethering connection since it has nowhere to forward traffic, thus causing the rig to lose its ip address.
also, offline looping doesn’t require the phone, for example; as I understand it either CGM values can go via cable from, say, a Dexcom receiver to the rig, or the rig can potentially receive values directly from the Dexcom transmitter. (? - plan to try this, but haven’t, so don’t know for sure)
Scott Leibrand
@scottleibrand
Jun 02 2018 20:33
@Diadon81 I just reverted the removal of the grep -q radio_locale pump.ini || echo "$(< pump.ini)" > pump.ini ; echo "radio_locale=$radio_locale" >> pump.ini line in dev - not sure why that's still needed but apparently it is, so it's back in
Jon Cluck
@cluckj
Jun 02 2018 20:55
It's needed for 0.7.0
Alan
@Alzibiff
Jun 02 2018 21:17
@mhaeberli Thank you for your input. Unfortunately, those funding CGM systems based on the Freestyle Libre - by far the most affordable route to CGM here in the UK - have to use a phone in order to get BG values into the openAPS rig. Thank you for confirming what i was thinking though.
Martin Haeberli
@mhaeberli
Jun 02 2018 21:18
@Alzibiff thx & best wishes . Out of curiosity, how do you get the data from the Libre into the phone? Certainly not (I hope) by waking up every few minutes and swiping the reader over the sensor? (I had heard that there was some other magic underway, but don’t know what it is).
MrJarnould
@MrJarnould
Jun 02 2018 21:20
@mhaeberli This might interest you: https://www.ambrosiasys.com/
Martin Haeberli
@mhaeberli
Jun 02 2018 21:21
:+1: thx @MrJarnould
Martin Haeberli
@mhaeberli
Jun 02 2018 21:58
@MrJarnould @Alzibiff - does anyone know whether it’s possible to use the ambrosiasys device directly with OpenAPS over bluetooth without a phone?
Alan
@Alzibiff
Jun 02 2018 22:07
I have one of those but recently started using a smaller (in height) unit which is waterproof and uses a rechargeable battery. This comes from China and goes by the name of “MiaoMiao”. Like the Ambrosia unit, it reads the Freestyle Libre sensor using NFC and transmits a low power bluetooth signal carrying the raw sensor data to xdrip+ (Android) or Spike (iPhone). It would be fantastic if openAPS could read and interpret the sensor data but not possible at the moment.
Martin Haeberli
@mhaeberli
Jun 02 2018 22:09
wow! cool!
MrJarnould
@MrJarnould
Jun 02 2018 22:13
@Alzibiff I know that using the MiaoMiao or the Ambrosia unit works with Loop... I assumed it also worked with openAps
Alan
@Alzibiff
Jun 02 2018 22:17
This technology is going to bring CGM to a lot of people over here with a potential rise in the number of Loopers. The technology works with LOOP because LOOP on the iPhone can talk directly to the collector software, Spike, on the iPhone rather than via a BT PAN or wifi link which is needed for openAPS.
MrJarnould
@MrJarnould
Jun 02 2018 22:18
@Alzibiff thanks for the explanation
Alan
@Alzibiff
Jun 02 2018 22:22
Thanks for taking the time to discuss with me 👍
Dana Lewis
@danamlewis
Jun 02 2018 22:23
You could probably convert xdripjs on the rig to pick it up if it's Bluetooth
Martin Haeberli
@mhaeberli
Jun 02 2018 22:35
:+1: