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

9th
Dec 2017
DaisyHK
@laurathiessen
Dec 09 2017 00:15 UTC
@Kdisimone get this dont know if its atttached to any wifi now
image.png
dear god with all these issues I wonder if it would be better to just get a whole new rig from scratch
Brian Cadre
@bcadre
Dec 09 2017 00:19 UTC
Screen Shot 2017-12-08 at 6.05.07 PM.png
Ok, need some help getting started. I installed oref0 (explorer board, edison, Mac platform). During the interactive install it asked me for a Pushover API token (which I made up on the spot, a 16-character password) and a Pushover key, (again, which I made up on the spot) so we could enable carb intake notifications. At the end of the install of oref0, I got "Error checking Nightscout permissions" and then the root login. How can I fix this and will looping still work? Any help would be appreciated.
jdunn42
@jdunn42
Dec 09 2017 00:41 UTC
Pushover key and API token need to come from your pushover account. You can't just make them up.
But, the error you saw comes from either your nightscout url or API secret (or token if you set up ns to use tokens.
Steve Bernacki
@sbernacki
Dec 09 2017 01:16 UTC
Hi everyone.. my wife managed to get a G5 receiver, so we've plugged it into the rig, blew away the myopenaps and myopenaps-cgm-loop directories, and re-ran oref0-runagain. I'm still seeing this in cgm-loop.log, though:
Fri Dec  8 20:12:02 EST 2017
dexcom_reader.constants.CrcError: Could not parse G5EGVRecord
Brian Cadre
@DrCadre_twitter
Dec 09 2017 03:18 UTC
@jdunn42 thanks for the insight. the pushover account is setup how? where? If API secret is something used for nightscout then I did set up API secret initially; during the oref0 install I likely changed it to token authentication (instead of API secret). Any ideas on how to correct the problem? I’d like to use token authentication if possible.
katie disimone
@Kdisimone
Dec 09 2017 04:41 UTC
@laurathiessen that message means it is not connected
Ebgineer
@Ebgineer
Dec 09 2017 05:32 UTC
finally scrounged enough gear to make a loop.
DaisyHK
@laurathiessen
Dec 09 2017 07:51 UTC
k i just built a new rig... i dont remember it asking me to rename the rig... but I built it all the way through but here is what is showing in logs... i dont think this was successfull
image.png
it has been running for along time now and it just keeps putting up dots...
peterlynton
@peterlynton
Dec 09 2017 09:46 UTC
@laurathiessen looks to be tuning the radio. Do you have any other active rigs and are your settings for pump serial and US/WW correct?
jdunn42
@jdunn42
Dec 09 2017 12:09 UTC
@DrCadre_twitter setup a Pushover account at pushover.net. Once you have the account, create an API key by adding an application called openaps. You'll probably want to add one called nightscout also. Then you'll be able to use the user token and API key shown in your account. The nightscout docs explain how to setup both pushover and tokenization. Once you have tokenzation setup in ns, rerun oref0 setup to configure your loop with the correct token and pushover info.
Brian Cadre
@DrCadre_twitter
Dec 09 2017 12:14 UTC
jdunn42 thanks so much for the guidance. I’ll try it today. Your help is much appreciated. I set up my Nightscout acct prior to receiving my rig parts and was unaware. I look forward to fixing the issue. Have a great day!
ttiainen
@ttiainen
Dec 09 2017 12:18 UTC
Hi, I did the 0.10.0 Habanero update. But I would like to have this 2 hour view. I'm not so familiar with github, yet :smile: I've read that 0.10.2 has this feature. How can I update 0.10.2?
Lorenzo Sandini
@lsandini
Dec 09 2017 12:38 UTC
@ttiainen update your repo on github, then in azure go to the deployment options, disconnect and set it up again (sync didn’t work for me). Make sure that in the app settings the requires node version is set to 8.9.0 before you redeploy
@ttiainen see you tomorrow btw 😉
ttiainen
@ttiainen
Dec 09 2017 13:16 UTC
@lsandini thanks for quick reply :+1: I followed the written instructions too carefully, I had in azure 8.5.0... Anyway I'm looping again after the unexpected iPhone-crash. The rig bt-tethering is completed and IFTTT's are in use again. See you tomorrow :smile:
Scott Leibrand
@scottleibrand
Dec 09 2017 13:29 UTC
@sbernacki is that one of the new vertical G5 receivers? nobody has adapted dexcom-reader to use those yet, because all the developers still have the older horizontal ones.
Steve Bernacki
@sbernacki
Dec 09 2017 13:31 UTC
@scottleibrand It is, brand new. OK, something to dig into then!
Ebgineer
@Ebgineer
Dec 09 2017 13:32 UTC
What would I check for more info on "Warning: currenttemp rate 0 != lastTemp rate undefined from pumphistory"
Scott Leibrand
@scottleibrand
Dec 09 2017 13:32 UTC
is it successfully pulling pumphistory?
Ebgineer
@Ebgineer
Dec 09 2017 13:33 UTC
It seems to be, it is showing different events like correction bolus
Scott Leibrand
@scottleibrand
Dec 09 2017 13:33 UTC
the pump-loop.log displays the lastTemp stuff ...
Ebgineer
@Ebgineer
Dec 09 2017 13:40 UTC
lets see if I can format this right
'grep lastTemp /var/log/openaps/pump-loop.log
'''
enact/smb-suggested.json: {"temp":"absolute","deliverAt":"2017-12-09T13:21:24.903Z","reason":"Warning: currenttemp rate 0 != lastTemp rate undefined from pumphistory; setting neutral temp of 0.4.","duration":30,"rate":0.4}
{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:30:54.000Z","iobWithZeroTemp":{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:30:54.000Z"},"lastBolusTime":1512796201000,"lastTemp":{"date":0}}
currenttemp: { duration: 0, rate: 0, temp: 'absolute' } lastTempAge: 25213772 m tempModulus: 2 m
enact/smb-suggested.json: {"temp":"absolute","deliverAt":"2017-12-09T13:31:48.184Z","reason":"Warning: currenttemp rate 0 != lastTemp rate undefined from pumphistory; setting neutral temp of 0.6.","duration":30,"rate":0.6}
{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:36:17.000Z","iobWithZeroTemp":{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:36:17.000Z"},"lastBolusTime":1512796201000,"lastTemp":{"date":0}}
currenttemp: { duration: 0, rate: 0, temp: 'absolute' } lastTempAge: 25213777 m tempModulus: 7 m
'''
enact/smb-suggested.json: {"temp":"absolute","deliverAt":"2017-12-09T13:21:24.903Z","reason":"Warning: currenttemp rate 0 != lastTemp rate undefined from pumphistory; setting neutral temp of 0.4.","duration":30,"rate":0.4}
{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:30:54.000Z","iobWithZeroTemp":{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:30:54.000Z"},"lastBolusTime":1512796201000,"lastTemp":{"date":0}}
currenttemp: { duration: 0, rate: 0, temp: 'absolute' } lastTempAge: 25213772 m tempModulus: 2 m
enact/smb-suggested.json: {"temp":"absolute","deliverAt":"2017-12-09T13:31:48.184Z","reason":"Warning: currenttemp rate 0 != lastTemp rate undefined from pumphistory; setting neutral temp of 0.6.","duration":30,"rate":0.6}
{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:36:17.000Z","iobWithZeroTemp":{"iob":0,"activity":0,"basaliob":0,"bolusiob":0,"netbasalinsulin":0,"bolusinsulin":0,"time":"2017-12-09T13:36:17.000Z"},"lastBolusTime":1512796201000,"lastTemp":{"date":0}}
currenttemp: { duration: 0, rate: 0, temp: 'absolute' } lastTempAge: 25213777 m tempModulus: 7 m
Scott Leibrand
@scottleibrand
Dec 09 2017 13:48 UTC
lastTemp":{"date":0}} indicates it's not finding any temp basal records in pumphistory
Ebgineer
@Ebgineer
Dec 09 2017 13:49 UTC
right, there haven't been any temp basals yet just regular basal schedule
Scott Leibrand
@scottleibrand
Dec 09 2017 13:54 UTC
ah, that might be a bootstrapping corner case we didn't consider. as a workaround, try setting a temp basal manually.
Ebgineer
@Ebgineer
Dec 09 2017 13:55 UTC
ok I'll give that a try
Benjamin Mammon
@bmammon
Dec 09 2017 14:56 UTC
Is there a way to loop offline using iosxdripreader? If not, what would be required to enable this?
Dana Lewis
@danamlewis
Dec 09 2017 15:01 UTC
Are you using G5?
Might be easier to try out xdrip-js if so..
Ebgineer
@Ebgineer
Dec 09 2017 16:57 UTC
I'm seeing temp basal 2.05 in suggested.json but getting couldn't smb_enact_temp
fidoman
@efidoman
Dec 09 2017 16:57 UTC
@bmammon - Dana's right. I tried iosxdripreader 3 or 4 months ago and at the time, it would not allow offline mode. xdrip-js is still in early stages, but if you are willing to dig into some of the technical details and follow it closely there may be a couple of options.
Dana Lewis
@danamlewis
Dec 09 2017 16:59 UTC
@Ebgineer more logs please
Ebgineer
@Ebgineer
Dec 09 2017 17:00 UTC
{"temp":"absolute","bg":155,"tick":"+3","eventualBG":380,"insulinReq":3.22,"reservoir":"157.0","deliverAt":"2017-12-09T16:50:37.718Z","sensitivityRatio":1,"predBGs":{"IOB":[155,158,160,163,165,166,168,169,170,171,171,172,172],"ZT":[155,155,155,155,155,155,155,155,156,156,156,157,157,158,159,159],"COB":[155,158,161,165,168,172,176,179,183,187,192,196,200,205,210,214,219,224,230,235,240,246,252,257,263,269,275,282,288,294,301,308,314,320,325,331,336,341,346,351,355,359,363,367,371,374,377,380]},"COB":56,"IOB":0,"reason":"COB: 56, Dev: 18, BGI: 0, ISF: 44, CR: 10, Target: 90, minPredBG 230, minGuardBG 158, IOBpredBG 172, COBpredBG 380; adj. req. rate: 7.15 to maxSafeBasal: 2.0490000000000004, no temp, setting 2.05U/hr. ","duration":30,"rate":2.05}
heh still can't get the formatting right
and which log would be most helpful?
Dana Lewis
@danamlewis
Dec 09 2017 17:01 UTC
That's better
Both formatting and log
Ebgineer
@Ebgineer
Dec 09 2017 17:02 UTC
says max safe is set on pump, but on pump I show it much higher than 2.05
Dana Lewis
@danamlewis
Dec 09 2017 17:02 UTC
Read those docs please
Ebgineer
@Ebgineer
Dec 09 2017 17:02 UTC
I'd be ok with 2.05 but it is not being enacted at all
Dana Lewis
@danamlewis
Dec 09 2017 17:02 UTC
Maxsafebasal is not the same as the max basal rate on the pump
And if it's not being enacted, let's see more of your logs and that should give us some clues as to why
Ebgineer
@Ebgineer
Dec 09 2017 17:03 UTC
sounds good, which log should I post? pump-loop?
grep: enact/smb-enacted.json: No such file or directory
openaps-report invoke: error: argument report: invalid choice: 'enact/smb-enacted.json' (choose from u'cgm/cgm-glucose.json', u'cgm/ns-glucose.json', u'enact/enacted.json', u'enact/suggested.json', u'monitor/battery.json', u'monitor/carbhistory.json', u'monitor/cgm-glucose.json', u'monitor/clock-zoned.json', u'monitor/clock.json', u'monitor/iob.json', u'monitor/meal.json', u'monitor/mmtune.json', u'monitor/pumphistory-zoned.json', u'monitor/pumphistory.json', u'monitor/reservoir.json', u'monitor/status.json', u'monitor/temp_basal.json', u'raw-cgm/raw-entries.json', u'settings/autosens.json', u'settings/basal_profile.json', u'settings/bg_targets.json', u'settings/bg_targets_raw.json', u'settings/carb_ratios.json', u'settings/insulin_sensitivities.json', u'settings/insulin_sensitivities_raw.json', u'settings/model.json', u'settings/profile.json', u'settings/pumphistory-24h-zoned.json', u'settings/pumphistory-24h.json', u'settings/pumpprofile.json', u'settings/settings.json', u'settings/temptargets.json', u'upload/pebble.json', u'xdrip/glucose.json')
cp: cannot stat ‘enact/smb-enacted.json’: No such file or directory
enact/smb-enacted.json: cat: enact/smb-enacted.json: No such file or directory
Temp refreshed: monitor/temp_basal.json: {"duration":0,"rate":0.8,"temp":"absolute"}
Checking pump status (suspended/bolusing): {"status":"normal","bolusing":false,"suspended":false}
Temp refreshed: monitor/temp_basal.json: {"duration":0,"rate":0.8,"temp":"absolute"}
Couldn't smb_enact_temp
my read of this is that the max_daily_safety_multiplier would limit the temp basal to 2.05, but it is not going above 0.8 because it can't enact a new temp basal on the pump
Scott Leibrand
@scottleibrand
Dec 09 2017 17:15 UTC
@Ebgineer I would re-run oref0-setup. You shouldn’t be getting that openaps-report error unless you somehow got an incomplete or otherwise messed up install.
Ebgineer
@Ebgineer
Dec 09 2017 17:18 UTC
would you suggest master or dev?
Dana Lewis
@danamlewis
Dec 09 2017 17:18 UTC
master is fine since we just released 0.6.0 there
mostly small things in 0.6.1 right now, so if you don't know about any of them in particular, master is fine
Ebgineer
@Ebgineer
Dec 09 2017 17:59 UTC
ok looking good now
Dana Lewis
@danamlewis
Dec 09 2017 18:01 UTC
:+1:
Matthias
@ceben80
Dec 09 2017 18:32 UTC
@danamlewis @scottleibrand a new rig is born, re-activated my TI w/ an Eddie, seriell attached "old school" thanks to @oskarpearson well documented long time ago :wink:
https://files.gitter.im/LadyViktoria/germanLOOP/VVCI/image.png
Dana Lewis
@danamlewis
Dec 09 2017 18:34 UTC
😊 I thought you were androidaps'ing these days with a DANA*R
Matthias
@ceben80
Dec 09 2017 18:35 UTC
hehe...AAPS yes, DanaR no
Dana Lewis
@danamlewis
Dec 09 2017 18:35 UTC
Gotcha
Matthias
@ceben80
Dec 09 2017 18:36 UTC
but you know as a rig farmer....more rig are better
:smile:
kallnap
@kallnap
Dec 09 2017 18:37 UTC
@ceben80 there is no such thing as too many rigs
Dana Lewis
@danamlewis
Dec 09 2017 18:38 UTC
:D
I don't think it's well documented, but you can also hook up the TI stick via SPI, and use the same code the Explorer does (spi_serial). 4 wires instead of 2, I guess, but might be faster and/or better supported going forward.
Matthias
@ceben80
Dec 09 2017 19:00 UTC
But good enough for me :wink: only a backup rig since I am aaps looping :wink:
ig888ack
@ig888ack
Dec 09 2017 19:30 UTC
Hi everyone. I've got a couple of issues with my rig and I was hoping to get some help
I have an edison/explorer setup and have been looping for about 9 months
It stopped looping 2 nights ago. I didn't have time to troubleshoot yesterday but I'm looking into it now
First thing I notice is that my disk space is full. I am not very familiar with linux and so I'm having a little trouble tracking down what's taking up all the space
ig888ack
@ig888ack
Dec 09 2017 19:42 UTC
when I run the df -h line as suggested in the troubleshooting docs I see that there is one place that has taken up 61% of the space
/dev/mmcblk0p10 1.3G 776M 515M 61% /home
but i'm not sure where to go from here to know what if anything I can delete
Steve Bernacki
@sbernacki
Dec 09 2017 19:54 UTC
Playing with this new G5 vertical receiver. I'm hacking around dexcom_reader, but are there other tools out there that can help me dump what the G5 holds? If I disable crc checks, I can at least get the example readdata.py script to work and return the receiver type, transmitter id, and number of records:
root@edison2:~/src/dexcom_reader/dexcom_reader# python readdata.py
Found Dexcom Scout Receiver S/N: DX74102150
Transmitter paired: 4182TT
Battery Status: CHARGING (98%)
Record count:
- Meter records: 0
- CGM records: 92
- CGM commitable records: 92
- Event records: 0
- Insertion records: 3
But when I attempt to dump EVG_DATA, it's clearly not in the format the script expects:
[2017-12-08 17:20:26: CGM BG:105 (None) DO:False, 2012-03-26 23:45:04: CGM BG:0 (None) DO:False, 2063-10-18 08:45:55: CGM BG:512 [etc]
Scott Leibrand
@scottleibrand
Dec 09 2017 20:05 UTC
@ig888ack there is also a suggested du command to help you figure out what filled up the disk.
Scott Leibrand
@scottleibrand
Dec 09 2017 21:15 UTC
@Ebgineer openaps/oref0#842 might also be of interest regarding the temp basal safety checks...
Ebgineer
@Ebgineer
Dec 09 2017 21:17 UTC
cool, thanks. this is my first day on auto with openaps so I'm watching mypancreasTV
Ebgineer
@Ebgineer
Dec 09 2017 21:25 UTC
not sure why, but my g4 data is flowing through the explorer OTG port without a power source plugged into the uart port
Scott Leibrand
@scottleibrand
Dec 09 2017 22:06 UTC
directly, or via NS?
openaps use cgm iter_glucose 1 should work if it's local over OTG
Jacob H
@jdhigh
Dec 09 2017 22:59 UTC
Hi everyone. Somehow my rig lost its system time. Its not looping anymore bc system time is jan 1st 2000. How do i get this updated?
Scott Leibrand
@scottleibrand
Dec 09 2017 23:04 UTC
get the rig online and NTP will update its time
the Edison loses the time when you cut power by unplugging the battery (when it's not plugged in via USB power)
spaldings
@spaldings
Dec 09 2017 23:28 UTC

@endafarrell @scottleibrand tried to use the /var/log/openaps/network.log and getting a permission denied message. Thoughts?

@endafarrell this is the code I copy to 'reset' the wifi on the rig when editing the supplicant file does not work (even after I reboot).

!/bin/bash

(
dmesg -D
echo Scanning for wifi networks:
ifup wlan0
wpa_cli scan
echo -e "\nStrongest networks found:"
wpa_cli scan_res | sort -grk 3 | head | awk -F '\t' '{print $NF}' | uniq
set -e
echo -e /"\nWARNING: this script will back up and remove all of your current wifi configs."
read -p "Press Ctrl-C to cancel, or press Enter to continue:" -r
echo -e "\nNOTE: Spaces in your network name or password are ok. Do not add quotes."
read -p "Enter your network name: " -r
SSID=$REPLY
read -p "Enter your network password: " -r
PSK=$REPLY
cd /etc/network
cp interfaces interfaces.$(date +%s).bak
echo -e "auto lo\niface lo inet loopback\n\nauto usb0\niface usb0 inet static\n address 10.11.12.13\n netmask 255.255.255.0\n\nauto wlan0\niface wlan0 inet dhcp\n wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf" > interfaces
echo -e "\n/etc/network/interfaces:\n"
cat interfaces
cd /etc/wpa_supplicant/
cp wpa_supplicant.conf wpa_supplicant.conf.$(date +%s).bak
echo -e "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\n ssid=\"$SSID\"\n psk=\"$PSK\"\n}" > wpa_supplicant.conf
echo -e "\n/etc/wpa_supplicant/wpa_supplicant.conf:\n"
cat wpa_supplicant.conf
echo -e "\nAttempting to bring up wlan0:\n"
ifdown wlan0; ifup wlan0
sleep 10
echo -ne "\nWifi SSID: "; iwgetid -r
sleep 5
curl https://raw.githubusercontent.com/openaps/oref0/master/bin/openaps-install.sh > /tmp/openaps-install.sh
bash /tmp/openaps-install.sh
)

Jacob H
@jdhigh
Dec 09 2017 23:32 UTC
Got it. Thanks.