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

11th
Jun 2018
parenthetic
@parenthetic
Jun 11 2018 00:27
I've got a full drive (I believe), not sure how to deal with it. It seems like the syslog and kern.log in /var/log are each clocking in at close to 250M. Is that "normal"? Any thoughts would be greatly appreciated!
Scott Leibrand
@scottleibrand
Jun 11 2018 00:40
did you read the openaps docs page on full disk troubleshooting?
parenthetic
@parenthetic
Jun 11 2018 00:42
Not yet! (apologies.) I've just been searching through past gitter convos... Thanks!
parenthetic
@parenthetic
Jun 11 2018 00:54
Everything in the docs is about what I've found in my Gitter searches. Tried running logrotate, but there's not enough space to compress any of the files. kern.log is filled with pci_pm_runtime_suspend(): serial_hsu_pci_runtime_suspend+0x0/0xf0 returns -16 errors. Have a hunch this is what's blowing up my syslog and kern.log files. Saw one other person here mention this error before, but haven't seen any solution.
Scott Leibrand
@scottleibrand
Jun 11 2018 00:58
you can delete some old log files to free up enough space to logrotate
(and PR that into the docs page)
parenthetic
@parenthetic
Jun 11 2018 01:03
Any issue with just erasing the syslog and kern.log files? But it seems like they'll likely just blow up again. Not sure what I would PR to the docs in this instance.
Scott Leibrand
@scottleibrand
Jun 11 2018 01:04
I would delete the .1 versions first
and then logrotate a couple times to get the current uncompressed ones zipped up so you can review the source of the problem without risking running out of space again soon
most likely fixing the frequency of your log rotation is all you'll need to do
Dana Lewis
@danamlewis
Jun 11 2018 01:08
just marked dev branch as openaps/oref0#1007 - we need some testers before we do this release.
  • @juehv, could you do a fresh install of dev and re-run oref0-setup with your carelink rig and confirm it properly works with carelink still?
  • We also need an Enlite user to do a fresh 0.6.2 install and give it a thumbs up
  • Ditto for a Pi user
  • Ditto for an Edison user
parenthetic
@parenthetic
Jun 11 2018 01:12
My /etc/logrotate.conf file is set to rotate hourly, and to store logs for 4 weeks. But this doesn't make sense to me. The largest indexed syslog file is syslog.23.gz
cduarte
@cduarte
Jun 11 2018 04:15
Hi! I have a doubt!
enableSMB_always is the same of enable one by one: enableSMB_with_COB, enableSMB_with_temptarget, enableUAM, enableSMB_after_carbs? What the difference?!
Scott Leibrand
@scottleibrand
Jun 11 2018 04:45
@parenthetic that comment is incorrect. it's only 4 weeks if it's set to daily. when set to hourly, 28 becomes 28 hours, not 28 days
@cduarte no, there are situations with no COB, no temptarget, and no carbs (within the last 6 hours), such as overnight, that enableSMB_always controls
cduarte
@cduarte
Jun 11 2018 04:49

I have enable:
"enableSMB_with_COB": true,
"enableSMB_with_temptarget": true,
"enableUAM": true,

I think change to enableSMB_always change all smb option to true... and i want to make one by one to know what happen...

Have some var to enable in pref that enable smb with situations with no COB?

Scott Leibrand
@scottleibrand
Jun 11 2018 04:49
just enableSMB_with_temptarget
cduarte
@cduarte
Jun 11 2018 04:50
Today I have this enable.
My pref
{
"max_iob": 6,
"max_daily_safety_multiplier": 3,
"current_basal_safety_multiplier": 4,
"autosens_max": 1.1,
"autosens_min": 0.7,
"rewind_resets_autosens": true,
"adv_target_adjustments": false,
"exercise_mode": false,
"wide_bg_target_range": false,
"sensitivity_raises_target": true,
"unsuspend_if_no_temp": true,
"enableSMB_with_COB": true,
"enableSMB_with_temptarget": true,
"enableUAM": true,
"curve": "rapid-acting",
"offline_hotspot": false
}
my target set in pump is 115
And I only have the smb enable if I eat and put the cob in nightscout and if I put temp target below 99.
@scottleibrand I understood wrong..
Now understand..
Thanks for help :)
cduarte
@cduarte
Jun 11 2018 04:55
always == all the time.
Not "all ways" which might match the definition I had in my mind
Jens Heuschkel
@juehv
Jun 11 2018 05:34
@danamlewis I can do carelink, pi and enlite at once ;)
will try to make it this evening
Scott Leibrand
@scottleibrand
Jun 11 2018 05:34
@cduarte ah, yes. that is indeed what we meant by always. :)
@juehv :+1: thx
Dana Lewis
@danamlewis
Jun 11 2018 05:41
@juehv :smile:
Chris Oattes
@cjo20
Jun 11 2018 09:42
@N3FM @scottleibrand yeah, I don't think that warning actually caused any problems. My 'fix' was to ignore the warning :P
garykidd
@garykidd
Jun 11 2018 16:18
anyone have a way to get ahold of ERD? didn't respond to facebook--maybe someone has an email?
garykidd
@garykidd
Jun 11 2018 16:32
thx much @mhaeberli
second piHat inthe mail anyway
N3FM
@N3FM
Jun 11 2018 16:44
Thanks, @cjo20 and @scottleibrand ! I'll ignore these; if I can figure out which log they're complaining about, I can just go in and delete a couple of entries! Also, Scott, I'll fire up the 0.6.2 dev 1007 this evening. I have Edison/722/Enlite. I know when I looked at 0.6.2 on Saturday, I was still getting errors related to setting clocks on pump and CGM. Then it would complain about BG data being old, and chew around those errors for 1/2 hour before getting back online...
I did notice that it uninstalled Medtronic pump and installed mmeowlink pump (at least I THINK it was 0.6.2 that did that...)
Matthew Williams
@mwilliams
Jun 11 2018 16:47
@danamlewis Just got my RPiZero with the new Pi Hat installed. I'm ready to start setting up and I'm also an Enlite user... So it sounds like I fit the bill for testing 0.6.2. Been forever since I've done a fresh install since my Edison's been chugging along, I'll pull that branch and get things kicked off and see how it goes and try to do some reporting back ASAP
N3FM
@N3FM
Jun 11 2018 16:59
@danamlewis See my comment above about 0.6.2 testing this evening... :smile:
(evening: EDT time )
John Sjolund
@sjolundjohn
Jun 11 2018 17:14

Morning - I a having some issues with the new Explorer Hat. Seems the board is not getting enough power.

I have used both of the Micro USB ports on the Pi, as well as the JST connector that I use to power my regular explorer board.

I get a red light on the charging diod AND an orange low battery warning.

I have also tried two different USB cables.

Any troubleshooting tips?

Dana Lewis
@danamlewis
Jun 11 2018 17:22
@mwilliams @N3FM thanks both for testing!
Martin Haeberli
@mhaeberli
Jun 11 2018 18:31
@scottleibrand @Kdisimone FYI - in my recent experience (last week or so), setup did NOT enforce reboot, things failed for unhappy i2c before reboot; worked after reboot
@sjolundjohn - feel the Pi HAT board. Is it getting uncomfortably hot? If so, I recommend declaring a likely ‘out of the box’ failure - my initial population of 5 boards had one that came broken that way.
Scott Leibrand
@scottleibrand
Jun 11 2018 18:32
I just yesterday (after Katie’s report) added a reboot for i2c.
Jon Cluck
@cluckj
Jun 11 2018 18:32
@Kdisimone how'd the serial port recipe work?
@sjolundjohn are you using a pi0?
John Sjolund
@sjolundjohn
Jun 11 2018 18:33
@mhaeberli not hot. Should the display start on first activation? The PI seems to be ok (I can't connect via ssh yet), however the Explorer is not doing it
katie disimone
@Kdisimone
Jun 11 2018 18:33
@cluckj My stupid OTG cable is not around…and i live in a small town. Hoping to pick one up today. I hope.
John Sjolund
@sjolundjohn
Jun 11 2018 18:33
@cluckj yes a Raspberry Pi Zero
Jon Cluck
@cluckj
Jun 11 2018 18:34
a zero-W?
@Kdisimone the serial thing should work with a regular usb cable attached to your computer?
katie disimone
@Kdisimone
Jun 11 2018 18:35
You think? I just assumed it wouldn’t. Dang it on assumptions. I can try then...
but, i don’t have HAT with me currently
Jon Cluck
@cluckj
Jun 11 2018 18:35
I mean I hope it does :laughing:
I'm going to give it a try soon and was curious how it went for you
Scott Leibrand
@scottleibrand
Jun 11 2018 18:39
@sjolundjohn the display won’t come on until after oref0-setup and reboot
John Sjolund
@sjolundjohn
Jun 11 2018 18:39
Ok - progress - it wasn't connecting to the WIFI network, I got it on my phone
Jon Cluck
@cluckj
Jun 11 2018 18:39
:thumbsup:
Martin Haeberli
@mhaeberli
Jun 11 2018 18:40
@sjolundjohn :+1:
@scottleibrand :+1: re i2c reboot
Matthew Williams
@mwilliams
Jun 11 2018 19:37
What's the best way to go from 0.6.1 -> 0.6.2, ran curl -s https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh > /tmp/openaps-install.sh && bash /tmp/openaps-install.sh to get all the initial bits, I checked out the dev branch in ~/src/oref0 before running the setup script, do I need do do another npm install to get 0.6.2 installed after the git checkout?
Matthew Williams
@mwilliams
Jun 11 2018 19:43
(never mind, some scrolling up seems to confirm a git checkout and npm global install....)
Dana Lewis
@danamlewis
Jun 11 2018 19:44
Here's a "how to update your rig" page in the docs, too :smile: searching docs is usually easier than searching gitter, for anyone who's finding that difficult
Matthew Williams
@mwilliams
Jun 11 2018 19:53
anxiously awaiting the initial lighting of the OLED display :P - though work may be getting in the way of my progress... such is life
Jon Cluck
@cluckj
Jun 11 2018 19:56
@Kdisimone @scottleibrand pibakery serial setup worked :D :D :D :D :D (so did the regular ol' USB cable to my PC)
I just had it "enable serial" on first boot, then reboot
katie disimone
@Kdisimone
Jun 11 2018 20:35
Yeah!!!!
Scott Leibrand
@scottleibrand
Jun 11 2018 20:36
sweet!
katie disimone
@Kdisimone
Jun 11 2018 20:36
@cluckj are you on Mac or Windows? Anything different for using serial vs Edison?
And I’m glad to hear that recipe works because the PR to the docs has that combo in the sample screenshot 🤣
Jon Cluck
@cluckj
Jun 11 2018 20:37
windows, and really no difference at all from the edison (which is :thumbsup: )
Scott Leibrand
@scottleibrand
Jun 11 2018 20:43
on Mac I think the /dev/tty* device might be named slightly differently (it was something like usbmodem instead of usbserial when I set up console manually w/o PiBakery).
Jon Cluck
@cluckj
Jun 11 2018 20:50
in windows it shows up in device manager under COM ports, and is "Pi to serial adapter"
hah. we could even automate downloading the oref0 bootstrap script
Samuchco
@Samuchco
Jun 11 2018 20:59
changing to a Dexcom G6. Is there anything that I need to change in the settings? other than the set up from G5 to G6?
Jon Cluck
@cluckj
Jun 11 2018 21:05
@Samuchco nobody knows :) you can be the first to try!
Dana Lewis
@danamlewis
Jun 11 2018 21:06
heh i was about to ask, do we have a G6 option? if not, we should add that to 0.6.2 for the release
Jon Cluck
@cluckj
Jun 11 2018 21:07
it seems like it should work with share --> NS?
Dana Lewis
@danamlewis
Jun 11 2018 21:07
yep
Jon Cluck
@cluckj
Jun 11 2018 21:07
and I think xdrip+ is working with the G6
Dana Lewis
@danamlewis
Jun 11 2018 21:07
so should essentially be same as G5 for most people, but it'll get a lot of quesitons, so want to add it in as an option
Jon Cluck
@cluckj
Jun 11 2018 21:07
yeah
Samuchco
@Samuchco
Jun 11 2018 21:07
I needed to download a new app for the share G6
Scott Leibrand
@scottleibrand
Jun 11 2018 21:08
the G5 option in oref0-setup doesn't work for offline use of the new G5 portrait receiver, so it's unlikely to work with the G6 receiver either
Dana Lewis
@danamlewis
Jun 11 2018 21:08
yea, online only
Samuchco
@Samuchco
Jun 11 2018 21:08
Is there anything to tell NS about the new share app?
Scott Leibrand
@scottleibrand
Jun 11 2018 21:09
maybe we need an explicit "online only" option in oref0-setup to reduce confusion for people who don't have an offline option
Dana Lewis
@danamlewis
Jun 11 2018 21:09
+1
Jon Cluck
@cluckj
Jun 11 2018 21:09
"nightscout only" or something to that effect :)
Scott Leibrand
@scottleibrand
Jun 11 2018 21:09
I'm reluctant to hold up the 0.6.2 release for new functionality though
since it fixes a major bug for raspbian installs
Jon Cluck
@cluckj
Jun 11 2018 21:10
I think so too, that MRAA thing is a PITA
Scott Leibrand
@scottleibrand
Jun 11 2018 21:10
so maybe we just target the new oref0-setup option for 0.7.0?
Dana Lewis
@danamlewis
Jun 11 2018 21:10
i'm fine with that, as long as we update the docs at least to say G6 users choose G5, and know you're only getting online BGs. (doc fix in the interim until 0.7.0 fix in the script)
Scott Leibrand
@scottleibrand
Jun 11 2018 21:10
:+1:
Samuchco
@Samuchco
Jun 11 2018 21:12
Share account User name and password stayed the same when downloading new G6 app. I assume that Heroku will draws the data from there
Matthew Williams
@mwilliams
Jun 11 2018 21:20
Well this is exciting, my OLED has come to life, woo! https://twitter.com/mwilliams/status/1006284767300653057
Samuchco
@Samuchco
Jun 11 2018 21:20
@danamlewis we are traveling to Europe. Do I need to change the time in the rig? (after a couple of days?) or does it change with sudo dpkg-reconfigure tzdata
Scott Leibrand
@scottleibrand
Jun 11 2018 21:23
you can choose to change the timezone, or not. you won't be explicitly changing the time on the rig - that is always kept in UTC, and then the timezone offset applied to that.
Martin Haeberli
@mhaeberli
Jun 11 2018 21:23
@mwilliams :+1:
Jon Cluck
@cluckj
Jun 11 2018 21:23
:clap:
Matthew Williams
@mwilliams
Jun 11 2018 21:24
0.6.2 setup running now, will hopefully be looping shortly assuming no funky bugs for enlite/pi
Anyone running their RPiZero with a heat sink? I was nervous about the fins being too close to the explorer board and dissipating all of the heat onto it.
Jon Cluck
@cluckj
Jun 11 2018 21:27
I'm not, because I am also nervous about that
Martin Haeberli
@mhaeberli
Jun 11 2018 21:29
no heat sink. but running ‘production’ under clocked, which should reduce heat dissipation at least a little. whole system seems not to heat up too much ...
Matthew Williams
@mwilliams
Jun 11 2018 21:33
Great to hear, my first PiZero rig with a carelink stick ran crazy hot (first gen PiZero I think?) - would love any instructions on undeclocking it if they're floating around... I can also give Google a peek I'm sure. But that's great to hear
Scott Leibrand
@scottleibrand
Jun 11 2018 21:59
so far the writeups on Google are better than anything we've done: would love to see someone write up something specific to underclocking for OpenAPS use, though
Martin Haeberli
@mhaeberli
Jun 11 2018 22:11

at @scottleibrand suggestion, did a google search here a few days ago.
pending a writeup, basically, on the PiZeroQ, you have to set at least arm_freq (and probably arm_freq_min), in /boot/config.txt -exerpt below:

#uncomment to overclock the arm. 700 MHz is the default.
#MPH
arm_freq_min=500
arm_freq=500
#arm_freq_min=700
#arm_freq=800

then reboot

also, I disabled the ACT LED on the PiZero proper for modest power savings, by appending this:

# per https://www.jeffgeerling.com/blogs/jeff-geerling/controlling-pwr-act-leds-raspberry-pi
# MPH - Disable the ACT LED on the Pi Zero.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on

to the same file

as I recall, I played with disabling the HDMI output, but I don’t remember how I did that.
(the above underclocks to 500 MHz from the default. On some systems, the default speed seems to have come up 1 GHz; on another of mine, it is clearly 700 MHz, so I’m a bit stumped to explain that bit).

you can read the current cpu frequency with:

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

(or use sudo first if you’re not already running as root)

Scott Leibrand
@scottleibrand
Jun 11 2018 22:19
yeah, 700MHz was the default for the original Raspberry Pi, and they never updated that comment in the Raspbian default /boot/config.txt to reflect the diversity of CPU speeds now out there
Martin Haeberli
@mhaeberli
Jun 11 2018 22:20
:+1:
katie disimone
@Kdisimone
Jun 11 2018 22:30
@mhaeberli I think I saw some code commit in oref0 that disabled HDMI on the pi already
Martin Haeberli
@mhaeberli
Jun 11 2018 22:38
@Kdisimone :+1: