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

11th
Apr 2018
th122
@th122
Apr 11 2018 00:01
Taking a closer look, I’m not so sure my edison is a model for the disk space usage. Just saw that the content of /usr has been moved to the /home filesystem, ack. (I’d rather have put the production stuff of openaps on /home. Might be that the previous owner rearranged things, or is that the way it’s flashed?
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:03
ah ok. So is it safe to start plucking away at files in /var/log and see if that can get my disk usage down or is that 88% going to be ok?
th122
@th122
Apr 11 2018 00:04
how large is your /var/log now (du -sh /var/log)?
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:04
689M
th122
@th122
Apr 11 2018 00:05
there’s your missing space :)
If you don’t need the older logfiles, you can remove everything that’s already compressed, for example.
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:06
those are files ending in .gz, yeah?
th122
@th122
Apr 11 2018 00:07
rm *.?.gz Just make sure there is no space between * and .
(runaway wildcards have a potential to grab more than they should)
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:13
OK, I went from 689 to 658M
th122
@th122
Apr 11 2018 00:16
So there still are some large file in there, let’s find them:
du -sh /var/log/* |grep M
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:19
19M /var/log/auth.log
6.2M /var/log/daemon.log
3.0M /var/log/debug
190M /var/log/kern.log
189M /var/log/kern.log.1
15M /var/log/messages
6.9M /var/log/openaps
211M /var/log/syslog
15M /var/log/syslog.1
5.1M /var/log/user.log
looks like syslog, kern.log and kern.log.1
th122
@th122
Apr 11 2018 00:19
ok. rm /var/log/*.1
:> auth.log
it’d be interesting to know what filled up kern.log and syslog.
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:23
Yeah, that's curious

State of things right now:

root@jankypanky:/var/log# du -sh /var/log/* |grep M
6.2M /var/log/daemon.log
3.0M /var/log/debug
190M /var/log/kern.log
15M /var/log/messages
7.0M /var/log/openaps
211M /var/log/syslog
5.1M /var/log/user.log

th122
@th122
Apr 11 2018 00:23
if you do head -1 /var/log/kern.log, what date does it show?
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:24
root@jankypanky:/var/log# head -1 /var/log/kern.log Mar 30 06:32:52 jankypanky kernel: [47149.954580] CFG80211-ERROR) wl_notify_pfn_status : >>> PNO Event
th122
@th122
Apr 11 2018 00:25
so it has been growing to that within two weeks. That’s (too) quick, Imho
Scott Leibrand
@scottleibrand
Apr 11 2018 00:26
@th122 the two partitions is an edison thing. @esialb was thinking about changing it in an upcoming jubilinux build, but that'll require some additional steps to change it back whenever anyone needs to reflash jubilinux afterward.
th122
@th122
Apr 11 2018 00:27
@scottleibrand ah, thanks - good to know.
@BergFulton_twitter just for the curious: wc -l /var/log/syslog; grep MTA /var/log/syslog |wc -l
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:30

```root@jankypanky:/var/log# wc -l /var/log/syslog; grep MTA /var/log/syslog |wc -l

1747212 /var/log/syslog

26708

root@jankypanky:/var/log# ```

th122
@th122
Apr 11 2018 00:31
ok, crontab isn’t to blame for the syslog growth.
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:35
Is kern.log doing something important to make it grow so big?
th122
@th122
Apr 11 2018 00:35
both logfiles (syslog and kern) would probably merit looking into them more closely. I’m calling it a day, though - 2.33 am here. If you want, you can take one day of output from either file, and I could take a look at that.
grep "Apr  9” /var/log/syslog > /var/log/syslog-2018-04-09
grep "Apr  9” /var/log/kern.log > /var/log/kern.log-2018-04-09
ok, corrected
Tracey Berg-Fulton
@BergFulton_twitter
Apr 11 2018 00:37
Thank you so much for your help!
th122
@th122
Apr 11 2018 00:37
startup messages go into kern.log, also all kinds of device drivers are logging there, for example the mmtune is probably taking a significant part of it. (and of course it doesn’t just give one message aka “mmtune running now” it has to log every single frequency it tries. every time.
if you want, you can compress (gzip *-2018-04-09) those logfile-excerpts, and place them somewhere where I can fetch them to take a look. Not today though...
good night :)
j4cbo
@j4cbo
Apr 11 2018 01:22
a couple months ago on facebook someone linked a really well-done video about openaps; if i remember right it was a couple minutes long and had interviews with scott and dana
anyone have a link?
Dana Lewis
@danamlewis
Apr 11 2018 01:23
@j4cbo the last couple of videos are linked here - maybe Zinc or Freethink? https://openaps.org/in-the-news/
j4cbo
@j4cbo
Apr 11 2018 01:23
Freethink rings a bell, i think that's the one
thanks!
Dana Lewis
@danamlewis
Apr 11 2018 01:23
:+1:
Tim Gunn
@Tornado-Tim
Apr 11 2018 01:52
Been Lopping and so far so good, going a little low, in the night, not dangerously, like 4.0 mmol/ 72mgdl, should I keep it going the same way I am going? Lower target is 5.6 mmol/100 mgdl. The more times I run into this, will openaps figure out my sensitivity is much higher or do I need to prompt it by setting a higher temp target.
You can view what happened last night here: https://timgunn.diawatch.org/
Dana Lewis
@danamlewis
Apr 11 2018 01:54
are you using autosens and autotune?
Tim Gunn
@Tornado-Tim
Apr 11 2018 01:54
yes and yes
Dana Lewis
@danamlewis
Apr 11 2018 01:55
k. you'll want to check out your autotune report to see if it's recommending lower basals overnight if you drift low consistently at night, and decide if you want to adjust your pump basals to allow autotune to tune further.
yes, you can intervene with a higher temp target, but you may not need to. (if you're like me, you may end up disabling or adjusting your low alarm so CGM doesn't wake you up for a drift in the 70's where OpenAPS has already reduced insulin to take care of that)
Tim Gunn
@Tornado-Tim
Apr 11 2018 01:56
righto thanks Dana, blown away how well openaps is dealing with Gym post Adrenalin spike, absolutely amazing. You guys contributing to this should be commended! I only hope that I can help with deving for new features and making it even better
Dana Lewis
@danamlewis
Apr 11 2018 01:57
:D
Martin Haeberli
@mhaeberli
Apr 11 2018 04:21
Radio check failed. mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: "916.636", 0, -99 waiting for 78 second silence before continuing
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
mystified...
at the moment, no pump nearby ; i have re-flashed using ccprog. I’ll bring a pump nearby soon, but wondering why I’m getting these errors. Just changed from another explorer board which was having similar problems to this new one which just arrived today….
I never heard back from Morgan at ERD about diagnostic tools
Martin Haeberli
@mhaeberli
Apr 11 2018 04:36
brought pump near; rebooted; no longer getting subg_rfspy complaint
Jane49
@Jane49
Apr 11 2018 07:15
blob
Jane49
@Jane49
Apr 11 2018 07:44
Hi
Am suddenly getting lots of future entries. Have cleared device status and compacted db.
NS time zone is Europe/London
rig time is correct
PC is correct
Watch is correct
Hot button response to oref0-set-local-temptarget 120 60 isn't
"created_at":2018-04-11T07:12:05640Z" i.e. it is an hour behind the current clock time.
Don't see anywhere in Hot button to set a time. Any suggestions?
Thanks
John
@jhendersion_twitter
Apr 11 2018 14:47
hello everybody! I am new to loop and am considering trying this out. I have 4 pumps 751 722 712 and 760G which one is best.
Also does Close loop work without giving bolus for carbs etc?
James Babcock
@jimrandomh
Apr 11 2018 15:04
For some of those pumps, whether they're compatible or not depends on the firmware version
The consequences for a missed carb bolus will be less bad than without a loop, but you do still need to bolus
John
@jhendersion_twitter
Apr 11 2018 15:16
ok so this is a Hybrid loop like 670G but most likely better
katie disimone
@Kdisimone
Apr 11 2018 15:22
Only the 722 and 712 will work with this system. And the 712 is not worth trying if you have a 722. Use the 722
John
@jhendersion_twitter
Apr 11 2018 15:22
got 722 nice
reading over the docs now. i have nightscout setup and working
I need to buy a rasperry pi or Edision board
James Babcock
@jimrandomh
Apr 11 2018 15:24
Right, there are limitations on what information can be wirelessly read out of a 712 pump's settings, which create a bunch of extra caveats
What CGM do you have?
John
@jhendersion_twitter
Apr 11 2018 15:24
I have 3 LOL
enlite
Gardion
G5
James Babcock
@jimrandomh
Apr 11 2018 15:25
Out of curiosity, which CGM has given you the best results in the past?
John
@jhendersion_twitter
Apr 11 2018 15:26
G5 I don't think the Cardion is support becuase they are about the same in accuracy
James Babcock
@jimrandomh
Apr 11 2018 15:29
So the options are, if G5 data is currently reaching your phone or the cloud you can get it there, or you can pull data out of the USB port. In any case you're going to need an Intel Edison and an Explorer Block. The Intel Edison is discontinued, hence all the work to make it run on Raspberry Pis, but you can still find Edisons on eBay.
John
@jhendersion_twitter
Apr 11 2018 15:31
any model or just search Intel Edision on ebay or craiglist
what is the average cost of these suckers
James Babcock
@jimrandomh
Apr 11 2018 15:33
There are different variants of the Edison, http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html says which are good and bad. I paid $100 for an Edison recently, cheaper is possible if you shop around.
John
@jhendersion_twitter
Apr 11 2018 15:34
is that what I need to buy
I found this Intel Edison Compute and Break out board
James Babcock
@jimrandomh
Apr 11 2018 15:35
Yes. You'll also need some sort of case, plus a battery (two USB batteries if you're connecting to the receiver by USB OTG, one LiPo battery if you're getting CGM data via cloud).
John
@jhendersion_twitter
Apr 11 2018 15:35
but not sure the correct one
will this work
should I buy that one??
John
@jhendersion_twitter
Apr 11 2018 15:44
@jimrandomh will that work I just bought it
James Babcock
@jimrandomh
Apr 11 2018 15:45
Probably? I'm trying to figure out how to tell the difference between variants from a photo. (The offboard-antenna variant is requires an annoying modification to make it work, but is rarer)
John
@jhendersion_twitter
Apr 11 2018 15:47
not sure what that means
I can ask a question to selller
I can share my computer screen so you can look at it
James Babcock
@jimrandomh
Apr 11 2018 15:49
John
@jhendersion_twitter
Apr 11 2018 15:50
blob
is that the serial number
James Babcock
@jimrandomh
Apr 11 2018 15:51
Intel sucks at labeling apparently
John
@jhendersion_twitter
Apr 11 2018 15:58
is that the serail number?
James Babcock
@jimrandomh
Apr 11 2018 16:00
It is, but it doesn't actually say the variant
I think it's the right one, but can't be 100% sure
John
@jhendersion_twitter
Apr 11 2018 16:01
how will I know when I get ti
Dana Lewis
@danamlewis
Apr 11 2018 16:01
Make sure you're checking the sN of the edison module, and not the breakout board. (You don't need the breakout board since you'll be using an Explorer Board)
John
@jhendersion_twitter
Apr 11 2018 16:02
do I need to by and explorer board also.. Or should I just wait for Rasperry Pi support
James Babcock
@jimrandomh
Apr 11 2018 16:03
You also need an Explorer Board, yes.
John
@jhendersion_twitter
Apr 11 2018 16:04
I am going to cancel my order
James Babcock
@jimrandomh
Apr 11 2018 16:04
(The problem is that the number Intel prints on the Edison modules is only part of the SN, and leaves out the important part)
Dana Lewis
@danamlewis
Apr 11 2018 16:05
Yes, you need Explorer Board + Edison. See the docs: http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html
If that eBay listing includes an Edison module, then that's good (you'll just toss the breakout board that comes with it, or resell it). Just also make sure to order the explorer board.
You need both the computer (Edison OR Pi) and the radio board component (Explorer Board for Edison OR Explorer HAT for Pi) to build your rig.
Patcalfe
@Patcalfe
Apr 11 2018 17:34
So how can we tell which version of Edison we have? Where is the
Where is the version info found?
Dana Lewis
@danamlewis
Apr 11 2018 17:35
http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/edison.html#edison <-- see under Option 1, it describes the 4 types
James Babcock
@jimrandomh
Apr 11 2018 17:36
The problem is that eBay sellers often present only a photo of the board, don't say which version it is, and don't have or don't show the box which shows which version it is
Scott Leibrand
@scottleibrand
Apr 11 2018 18:19
I think the more important point is: all of them work. You can tell from a photo whether the little white internal antenna is present, which means you won't need a bulkier external one for good wifi and bluetooth range. Other than that, I have never seen any of the distinctions actually making a difference.
John
@jhendersion_twitter
Apr 11 2018 18:22
do you have a pitcure so I know what to look for? thank you
John
@jhendersion_twitter
Apr 11 2018 18:28
ok the intel edison is the chip that needs the white interneal antenna? and the board is like a motherboard
where is the white antenna and what is to the right that has a DB9 look a like connector?
James Babcock
@jimrandomh
Apr 11 2018 18:33
Aha, slide 7 is the key picture--the white piece is the antenna, and if it has that it's good
John
@jhendersion_twitter
Apr 11 2018 18:34
ok I see now
Dana Lewis
@danamlewis
Apr 11 2018 19:24
Raise your hand if the rig gear page was driving you nuts. :raised_hand: Me, too. So I just updated it, trying to make it easier to read for people less familiar with the hardware options. Feedback welcome, by way of PRs (here's how to make a PR!) helping make it even better and easier to read :)
includes notes on how to spot which type of Edison it is :+1: from today's earlier conversations
James Babcock
@jimrandomh
Apr 11 2018 19:25
Yep, distinguishing the Edison variants when shopping on eBay was a problem for me too when I did it
Dana Lewis
@danamlewis
Apr 11 2018 19:25
Pro tip: if it was a pain or annoying or bothered you, it probably does the same to everyone else, and it's always worth a PR :) to improve the docs! that's how they get better/easier :)
Scott Leibrand
@scottleibrand
Apr 11 2018 19:25
is there anything else we should add to that page to better convey the underlying message that "it doesn't really matter: don't stress about it"?
James Babcock
@jimrandomh
Apr 11 2018 19:26
Pics of an Edison with and without the antenna, and the message that any variant which has the antenna is fine
Dana Lewis
@danamlewis
Apr 11 2018 19:26
statuur
@statuur
Apr 11 2018 19:28
So happy! Our read-only version of openaps is working. Ended up commenting out enacting functions were the oref0-pump-loop failed upon. Very pink ;-) casing is 3d printed at the moment. Thank you so much.
alt
Dana Lewis
@danamlewis
Apr 11 2018 19:28
@statuur yay! glad you ended up getting it going! Don't forget to enable the purple prediction lines :) (unless that was one of the things that failed)
statuur
@statuur
Apr 11 2018 19:29
strangely enough i enabled both prediction types but it says undefined when i hover over it
Dana Lewis
@danamlewis
Apr 11 2018 19:29
ok, that may be because of some of the things that are commented out
statuur
@statuur
Apr 11 2018 19:29
Sorrt Forecast type:undefined
probably :-) i'll try to streamline the script now it works
I i could make a suggestion, when i first found Openaps i saw the image of compatible pumps and was about to look further for solutions. Gladly i asked you if Openaps was able to read data from incompatible pumps. Because despite not having a compatible pump being able to read data en view it remotely is a great tool for parents. So maybe you could mention this somewhere.
statuur
@statuur
Apr 11 2018 19:35
Send an e-mail to our Care center today, hoping to present this discovery :-) to al the other patients and helpt them start looping too. An planning to write an artikel to the newspaper (in Holland). More people should know about this.
Dana Lewis
@danamlewis
Apr 11 2018 19:37
great! would love for you to PR on the hardware page (http://openaps.readthedocs.io/en/latest/docs/Gear%20Up/hardware.html) if you have an idea to make that more clear as an option early on. :+1: for spreading the word! :raised_hands:
statuur
@statuur
Apr 11 2018 19:43
I guess an extra infographic with pumps that are incompatible for looping, but compatible for read only.
Tim Gunn
@Tornado-Tim
Apr 11 2018 19:52
Hi All, I have Updated the basal program on my pump based on autotune, does this update my basal profile in nightscout? I just checked it seems like it doesnt.......
statuur
@statuur
Apr 11 2018 19:52
Have you ever considered using Openaps to create a (serious) game for children to learn about Diabetes and to use the data to learn more about themselves and how to deal with it in a playful way. A good friend of mine creates (medical) serious games and knows a some people at Medtronic Covidien. I hope to setup a meeting soon to discuss this.
Tim Gunn
@Tornado-Tim
Apr 11 2018 19:52
I did over 12 hours ago, so I would have expected it to update the nightscout profile if it was to update it.....
Scott Leibrand
@scottleibrand
Apr 11 2018 19:56
@Tornado-Tim there is nothing that automatically updates the NS basal profile: you’ll have to do that manually
Dana Lewis
@danamlewis
Apr 11 2018 19:57
@Kdisimone recently added that in a beta loop branch; so someone could probably figure out how to port that to OpenAPS to have autotune or pump basals also update NS as well.
James Babcock
@jimrandomh
Apr 11 2018 19:59
Do other people have autotune updating their pump basals? My autotune produces reports but doesn't touch pump settings (and I think that's how I want it).
Best way to retcon having forgotten to suspend before taking the pump off? NS doesn't allow logging negative insulin, closest thing I can think of is entering fake carbs
Scott Leibrand
@scottleibrand
Apr 11 2018 20:02
autotune can't change your pump settings. it just overrides them for looping, subject to the min and max (default 0.7-1.2x pump settings), if you have it enabled to run in cron on the rig
@jimrandomh if you just reconnected, you could do a fixed prime the missed insulin, and that wouldn't be counted toward IOB
Dana Lewis
@danamlewis
Apr 11 2018 20:04
@jimrandomh I wouldn't worry about it re: forgetting to suspend, unless you had a bunch of SMB's in that time frame , in which case I'd do a fixed prime of some portion of that amount
James Babcock
@jimrandomh
Apr 11 2018 20:05
Hmm, I don't currently do this but long-term I want to detect fixed prime and use it to reset the canula age
Scott Leibrand
@scottleibrand
Apr 11 2018 20:05
why fixed prime instead of rewind?
current site-change detection (for purposes of resetting autosens) uses rewind events
James Babcock
@jimrandomh
Apr 11 2018 20:06
Because I change site and refill insulin separately
Dana Lewis
@danamlewis
Apr 11 2018 21:11
(for anyone who was interested in working with the Opening Pathways data science team - check out this post: https://twitter.com/danamlewis/status/984175502129680384, background on that work if you're not familiar is here)
Martin Haeberli
@mhaeberli
Apr 11 2018 21:38
seeking advice re figuring out how to turn on verbose logging for wpa_supplicant (and where to look for those logs)
Eric
@ecc1
Apr 11 2018 21:46
see "man wpa_supplicant" under "EXAMPLES"
Martin Haeberli
@mhaeberli
Apr 11 2018 21:55
k thx
statuur
@statuur
Apr 11 2018 22:22
@danamlewis do you have more information about pumps you have the ability to read data from but are incompatible for looping? I'll try to come up with a suggestion in a PR soon for that hardware page.
Dana Lewis
@danamlewis
Apr 11 2018 22:22
it would be any of the other 5 or 7 series that are listed as a "no" for closed looping
:+1:
statuur
@statuur
Apr 11 2018 22:32
:thumbsup:
Tim Gunn
@Tornado-Tim
Apr 11 2018 23:40
Hmm @scottleibrand : is the restriction on the openaps side or the nightscout side in regards to updating the base basals? Ie is there an api that exists on nightscout can query to update the basal rates? if there is is I feel like this will be my first thing to start contributing to openaps :D
I will be very new to developing for openaps, so if you have any tips on how the code base works, and the git workflow, would much appreciate that, so my work can flow in smoothly
Dana Lewis
@danamlewis
Apr 11 2018 23:44
no one's coded it ;) but check out Katie's loop branch, I think this basal-profile branch has it. The compare shows from here and lower files related to NSUploadKit that are probably the relevant ones to updatting NS: https://github.com/LoopKit/Loop/compare/master...Kdisimone:basal-profiles#diff-5b9067796f682df0e6723dfbb8aa0e6bR50
for our workflow, I'd fork a copy of oref0, figure out how to port the Swift-related upload to javascript and get it to work as part of oref0, then PR it to oref0 dev branch when it's ready for review!
if you want, we can create an issue to start discussing in plain-language the behaviors we want for it, if you're interested in tackling this. I think a lot of people would love it.
Tim Gunn
@Tornado-Tim
Apr 11 2018 23:46
ok thanks Dana, will prob have heaps more questions before i really get stuck into this, so my apologies in advance if there comes too many of them ;)
Dana Lewis
@danamlewis
Apr 11 2018 23:47
nah, we're thrilled when new people show interest in developing :) so ask away! I'll go make some notes in an issue so we can track discussions and builds, give me a few min and I'll link it back here.
Tim Gunn
@Tornado-Tim
Apr 11 2018 23:47
yes very good idea Dana, awesome!
Dana Lewis
@danamlewis
Apr 11 2018 23:52
Okie dokie. basics logged here: openaps/oref0#965
Tim Gunn
@Tornado-Tim
Apr 11 2018 23:57
Whoop whoop, thanks Dana :)
Dana Lewis
@danamlewis
Apr 11 2018 23:57
thank YOU :) :clap: