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

4th
Feb 2019
renegadeandy
@renegadeandy
Feb 04 00:56
Actually, I am going to increase my carb ratios, so its 8g per unit
instead of 9
Cameron Chunn
@applehat
Feb 04 03:51
I've been running into issues where my rig stops looping. Looking at the logs I'm seeing a lot of /usr/local/bin/oref0-pump-loop: line 968: 22269 Killed "$@" errors. I initially assumed it was just signal loss but it happened today when I wasn't in a place to have bad signal. Also noted the rig gets hotter then normal, slows to a crawl, and kswapd is using tons of CPU. I'm assuming it's possibly a memory leak?
I'm on 0.7-dev with an Edison.
Cameron Chunn
@applehat
Feb 04 03:57
https://pbs.twimg.com/media/DyeUaQIW0AAWv_x.jpg:large <-- screenshot of the terminal window
Scott Leibrand
@scottleibrand
Feb 04 04:34
What is like 968?
Cameron Chunn
@applehat
Feb 04 04:35
retry_return() func decleration
judging by logs, its getting called inside refresh_pumphistory_and_meal()
Looking at the code it should just retry 10, then 30 seconds later and just continue on if it can’t… but I went into an error state for 4 hours last night that only seemed to be fixed by a reboot.
Im still digging into the restructure of 0.7 compared to 0.6
So I dont quite understand it as much as I did 0.6
Scott Leibrand
@scottleibrand
Feb 04 04:56
That is odd. I would check for full disk and try a reinstall.
Cameron Chunn
@applehat
Feb 04 04:58
disk usage is only 57%. I can run oref0-setup again tho
Cfomodz
@Cfomodz
Feb 04 05:17
Hey, so I was just updating the IFTTT integration page in the docs and ran into an issue uploading files - to add pictures to the step by step instructions - since Workflows was acquired by Apple and is now shortcuts and IFTTT triggers were removed and now need to be called via maker.
Cfomodz
@Cfomodz
Feb 04 05:23
Also if anyone is on to review that PR I can also create new Shortcuts that use the new Value parameter instead of the additionalIngrediant parameter and link those for people to download on their Shortcuts app so that I can get rid of most of the explanation of the workaround and just have them create the IFTTT triggers since the Shortcuts will already be formatted correctly.
Abigail Cember
@acember
Feb 04 17:15
Hey guys, my rig has completely stopped displaying anything via HDMI while running openAPS. If I restart it, I can get the Raspbian start-up messages to appear on the screen, but then everything goes dark. I've repeated this over and over again with two different monitors, so I know it's the rig itself no longer sending any signal through the HDMI port. I've never successfully ssh-ed in over USB, so I don't have any other way to access it. If anyone can help me get a terminal back, I will be very grateful! ( @cluckj , Do you think this is because of that reinstall we did?)
Scott Leibrand
@scottleibrand
Feb 04 17:24
by default the rigs disable HDMI to save battery. you can put the SD card into a computer and place an appropriate config.txt on the boot partition to enable HDMI, and/or a wpa_supplicant.conf to set up wifi. the latter is documented in the openaps docs
Abigail Cember
@acember
Feb 04 17:26
Weird. If no HDMI is the default, then I must have added a line in config.txt originally in order to enable it, but forgot about it. Then when I re-installed oref0, config.txt went back to default...OK, thanks @scottleibrand.
Scott Leibrand
@scottleibrand
Feb 04 17:53
the HDMI is only disabled when you run oref0-setup. so if you were using it prior to that it still would've been on
Jon Cluck
@cluckj
Feb 04 17:55
lol oh no
yeah the install we did a while back didn't go through the whole way, but the new one did
sorry :o
Jon Cluck
@cluckj
Feb 04 18:04
fixing something on the sd card isn't going to work; what you'll need to do is start it up with the keyboard & monitor plugged in, login, then type tvservice -p
you won't see any feedback on the screen when you login
Jon Cluck
@cluckj
Feb 04 18:10
after you've turned the HDMI back on, you'll need to remove the line that turns it off from ~/src/oref0/bin/oref0-cron-post-reboot.sh
Scott Leibrand
@scottleibrand
Feb 04 18:17
or if it's easier, just fix the wifi per the docs, and ssh in
Jon Cluck
@cluckj
Feb 04 18:18
yes ^ I was talking about enabling HDMI in config.txt
Abigail Cember
@acember
Feb 04 19:26
@cluckj Do you mean that I should be able to type "root", my password, and "tvservice -p" to a blank screen and then stuff will appear? @scottleibrand My wifi on the rig works fine, but my office wifi has all kinds of security barriers that I have yet to overcome...which is one main reason that I'd like to be able to use HDMI.
Scott Leibrand
@scottleibrand
Feb 04 19:27
if you can ssh in at home, you can do as @cluckj suggested and comment out the tvservice that turns HDMI off from ~/src/oref0/bin/oref0-cron-post-reboot.sh
or do the same from a phone based hotspot
but theoretically, yes, if you connect via keyboard you should be able to blindly hit enter a few times, log in, and do tvservice -p, and that might be sufficient to turn on HDMI
Jon Cluck
@cluckj
Feb 04 19:35
@acember yep
Abigail Cember
@acember
Feb 04 19:42
Thanks, guys. I'll make sure I can do both of these things -- and now that I know there is a purposeful switch, will cease having a panic attack.