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

21st
Jun 2018
Martin Haeberli
@mhaeberli
Jun 21 2018 00:03
If you are using an original pi rig, you can get a battery powered real time clock, quite compact, that sits on the pi 40 pin connector. Last I checked, I got mine on Amazon. I’ll try to look it up...
DaisyHK
@laurathiessen
Jun 21 2018 00:13
image.png
@scottleibrand
then close that window and open that other link and hit Fork top right? should all other github windows be closed... just ask as I have a tonn open when I was trying to figure out the proper process for doing this.... no other steps after I refork?
Scott Leibrand
@scottleibrand
Jun 21 2018 00:18
Might need to redeploy in Heroku too.
@ericmtx rig type shouldn’t matter. The oref0-pump-loop should set the rig time to match the pump, but that rarely gets tested and may not work.
Let us know, and if not, we can fix.
ericmtx
@ericmtx
Jun 21 2018 00:21
@scottleibrand thanks I'll test it tonight and see what we get. worst case she'll have 3 weeks of old school manual correction at diabetes camp. This will be her fifth year, and the first with the closed loop (openaps ~2 yrs). She's to the point now where she said she'll feel strange if she doesn't have her loop!
DaisyHK
@laurathiessen
Jun 21 2018 00:33
@scottleibrand ... redeploy? lol sorry such a needy openapser lol
Scott Leibrand
@scottleibrand
Jun 21 2018 00:36
just go back to the nightscout docs and follow them
ericmtx
@ericmtx
Jun 21 2018 01:08
@mhaeberli thanks
Martin Haeberli
@mhaeberli
Jun 21 2018 01:19
:+1:
tweak.png
trying to understand why numbers are not coming to target faster / or at all… see
Jun 20 11:30:03 etghopenaps2 pump-loop.log:  enact/smb-suggested.json: {"temp":"absolute","bg":217,"tick":"+1","eventualBG":133,"insulinReq":0.68,"reservoir":"225.225","deliverAt":"2018-06-20T18:30:02.109Z","sensitivityRatio":1.2,"predBGs":{"IOB":[217,216,215,214,212,210,207,204,201,197,194,189,185,181,177,173,169,165,162,159,156,153,151,148,146,144,142,140,138,137,136,134,133,132,131,131,130,130,129,129,128,128,127,127,127,127,126],"ZT":[217,211,205,199,193,188,183,178,173,168,164,160,156,153,150,147,145,142,141,139,138,137,136,136,136,136,136],"UAM":[217,215,212,208,203,197,191,186,181,176,171,166,162,158,153,150,146,142,139,136,133,130,127,125,123,121,119,117,115,114,112,111,110,109,108,108,107,106,106,105,105,105,104,104,104,104,103]},"COB":0,"IOB":4.12,"reason":"COB: 0, Dev: 36, BGI: -6, ISF: 29, CR: 5.4, Target: 100, minPredBG 120, minGuardBG 103, IOBpredBG 126, UAMpredBG 103; Eventual BG 133 >= 100,  insulinReq 0.68. Microbolusing 0.3U. temp 0<2.95U/hr. ","units":0.3,"duration":30,"rate":2.95}

Jun 20 14:22:04 etghopenaps2 pump-loop.log:  enact/smb-suggested.json: {"temp":"absolute","bg":136,"tick":"+0","eventualBG":107,"insulinReq":0.79,"reservoir":"214.2","deliverAt":"2018-06-20T21:21:07.582Z","sensitivityRatio":1.2,"predBGs":{"IOB":[136,135,134,132,131,130,128,126,124,122,119,116,114,111,109,106,104,103,101,100,98,97,96,95,94,94,93,93,92,92,92,92,91,91,91,92,92,92,92,92,93,93,93,93,94],"ZT":[136,130,125,120,115,110,106,102,99,96,93,91,89,87,86,85,84,83,83,84,84],"COB":[136,135,134,133,132,131,130,128,127,125,124,122,120,118,116,114,112,110,109,107,106,105,104,103,102,101,101,100,100,100,99,99,99,99,99,99,99,100,100,100,100,101,101,101,101,102],"UAM":[136,135,134,133,132,131,130,129,128,127,126,125,124,122,121,119,117,115,114,112,111,110,109,108,107,106,106,105,105,105,105,104,104,104,104,104,105,105,105,105,106,106,106,106,107]},"COB":6,"IOB":2.301,"reason":"COB: 6, Dev: 31, BGI: -6, ISF: 29, CR: 5.4, Target: 80, minPredBG 103, minGuardBG 103, IOBpredBG 94, COBpredBG 102, UAMpredBG 107;  insulinReq 0.79. Microbolusing 0.3U. temp 1.8<3.25U/hr. ","units":0.3,"duration":30,"rate":3.25}

Jun 20 16:32:22 etghopenaps2 pump-loop.log:  enact/smb-suggested.json: {"temp":"absolute","bg":185,"tick":"+4","eventualBG":140,"insulinReq":1.23,"reservoir":"203.3","deliverAt":"2018-06-20T23:30:12.673Z","sensitivityRatio":1.2,"predBGs":{"IOB":[185,188,191,192,193,193,192,190,188,185,182,177,173,168,163,159,155,151,147,143,139,135,132,129,126,123,120,117,115,112,110,108,106,104,103,101,100,99,98,97,96,95,94,93,93,92,92,91],"ZT":[185,180,174,169,163,158,153,148,143,138,134,129,125,122,118,115,112,109,107,105,103,101,100,99,98,98,97,97,98,98],"UAM":[185,189,192,194,196,198,199,200,201,201,202,201,201,200,199,198,196,194,192,190,187,184,181,178,175,172,169,166,164,161,159,157,155,153,152,150,149,148,147,146,145,144,143,142,142,141,141,140]},"COB":0,"IOB":4.933,"reason":"COB: 0, Dev: 56, BGI: -5, ISF: 29, CR: 5.3, Target: 80, minPredBG 116, minGuardBG 140, IOBpredBG 91, UAMpredBG 140; Eventual BG 140 >= 80,  insulinReq 1.23; setting 30m low temp of 1.16U/h. Microbolusing 0.6U. ","units":0.6,"rate":1.16,"duration":30}
(three different decision points)
maxSMBBasalMinutes is set to default 30
"high_temptarget_raises_sensitivity": true,
"low_temptarget_lowers_sensitivity": false,
"sensitivity_raises_target": false,
"resistance_lowers_target": false,
"autosens_adjust_targets": false,
are some other partial preferences.json
Martin Haeberli
@mhaeberli
Jun 21 2018 01:47
on another topic, I’m getting frequent ‘setting pump time’ and would appreciate suggestions re
possibly MY adding a slightly deeper check - re-check the time before setting it. My gut is telling me that there may be some kind of glitch where a stale time is reported.
Jun 20 15:17:55 etghopenaps2 pump-loop.log:  Checking pump clock: "2018-06-20T15:11:15-07:00" is within 90s of current time: Wed Jun 20 15:17:55 PDT 2018
Jun 20 15:17:55 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 15:17:56 PDT 2018
Jun 20 15:17:59 etghopenaps2 pump-loop.log:  Setting CGM time to Wed Jun 20 15:17:59 PDT 2018
Jun 18 18:01:10 etghopenaps2 pump-loop.log:  Setting pump time to Mon Jun 18 18:01:10 PDT 2018
Jun 19 02:26:56 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 02:26:56 PDT 2018
Jun 19 09:09:23 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 09:09:23 PDT 2018
Jun 19 10:26:04 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 10:26:04 PDT 2018
Jun 19 15:11:10 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 15:11:10 PDT 2018
Jun 19 15:12:52 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 15:12:52 PDT 2018
Jun 19 15:13:39 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 15:13:39 PDT 2018
Jun 19 15:31:30 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 15:31:31 PDT 2018
Jun 19 16:07:07 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 16:07:07 PDT 2018
Jun 19 16:11:17 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 16:11:17 PDT 2018
Jun 19 17:26:06 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 17:26:06 PDT 2018
Jun 19 17:32:53 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 17:32:54 PDT 2018
Jun 19 17:40:45 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 17:40:46 PDT 2018
Jun 19 18:48:52 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 18:48:31 PDT 2018
Jun 19 20:01:49 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 20:01:49 PDT 2018
Jun 19 20:09:56 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 20:09:55 PDT 2018
Jun 19 20:40:17 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 20:40:17 PDT 2018
Jun 19 20:46:45 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 20:46:45 PDT 2018
Jun 19 20:50:47 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 20:50:47 PDT 2018
Jun 19 21:20:27 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 21:20:27 PDT 2018
Jun 19 22:20:31 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 22:20:31 PDT 2018
Jun 19 23:22:07 etghopenaps2 pump-loop.log:  Setting pump time to Tue Jun 19 23:22:08 PDT 2018
Jun 20 06:46:56 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 06:46:56 PDT 2018
Jun 20 09:32:07 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 09:32:07 PDT 2018
Jun 20 10:40:44 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 10:40:44 PDT 2018
Jun 20 14:56:54 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 14:56:55 PDT 2018
Jun 20 14:59:45 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 14:59:45 PDT 2018
Jun 20 15:17:55 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 15:17:56 PDT 2018
Jun 20 16:48:07 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 16:48:07 PDT 2018
Jun 20 16:52:03 etghopenaps2 pump-loop.log:  Setting pump time to Wed Jun 20 16:52:03 PDT 2018
Scott Leibrand
@scottleibrand
Jun 21 2018 01:50
sensitivityRatio":1.2 indicates that autosens is trying to compensate for resistance but being limited by safety caps
is autotune also trying to increase basal and/or reduce ISF/CR and being limited by the 1.2x autosens_max?
DaisyHK
@laurathiessen
Jun 21 2018 01:55
@scottleibrand i cant find how to redeploy ngihtscout in the docs...
thinking this is what I need to do found on facebook... but no steps how to disconnect from old repo connect to new version then redeploy....
thinkin I did already disconnect via your earlier instructions.. but redeploy.... cant find...
Martin Haeberli
@mhaeberli
Jun 21 2018 02:01
@laurathiessen i’m about to try this for my own reasons, with luck, in the next few minutes… if it works, I’ll send yo u a note
@laurathiessen what happens when you try to deploy in heroku? send a few screen shots
DaisyHK
@laurathiessen
Jun 21 2018 02:06
I dont know what you guys are talkig about lol how do you even delpoy?
Martin Haeberli
@mhaeberli
Jun 21 2018 02:06
log in to your heroku management console
DaisyHK
@laurathiessen
Jun 21 2018 02:06
sorry but all messages are going over my head if they dont have steps... having a hard time finding anything on github
Martin Haeberli
@mhaeberli
Jun 21 2018 02:06
with a web browser
DaisyHK
@laurathiessen
Jun 21 2018 02:07
managment console?
Martin Haeberli
@mhaeberli
Jun 21 2018 02:07
how did you set up heroku
DaisyHK
@laurathiessen
Jun 21 2018 02:08
no what part of my heroku account do you need me to click on...
Martin Haeberli
@mhaeberli
Jun 21 2018 02:09
as I recall, you are running on heroku, NOT on azure
DaisyHK
@laurathiessen
Jun 21 2018 02:09
like?
Martin Haeberli
@mhaeberli
Jun 21 2018 02:09
pls send screen shot of you logged in to heroku
DaisyHK
@laurathiessen
Jun 21 2018 02:09
image.png
yes sorry was doing that as you asked :)
correct heroku
Scott Leibrand
@scottleibrand
Jun 21 2018 02:10
that's not heroku. that's github
Martin Haeberli
@mhaeberli
Jun 21 2018 02:12
try going to https://dashboard.heroku.com and logging in
if you can find your username/password for heroku
DaisyHK
@laurathiessen
Jun 21 2018 02:12
shoot sorry got those mixed up
Martin Haeberli
@mhaeberli
Jun 21 2018 02:14
ok, try clicking on myt1dcgm and send screen shot
DaisyHK
@laurathiessen
Jun 21 2018 02:19
I lso just changed some of the config variables to add the uploader battery moniter
Martin Haeberli
@mhaeberli
Jun 21 2018 02:19
great! re config vars
and I peeked at your github - that fork from the public repo looked great!
DaisyHK
@laurathiessen
Jun 21 2018 02:23
ok... so it was successful then?
Martin Haeberli
@mhaeberli
Jun 21 2018 02:24
redeploy is not done yet. fork into your own github was
so pls send screenshot from after you click the deploy tab above
scroll down; next screen shot please
so far that shot looked good - it’s connect to your git repo, for example
Martin Haeberli
@mhaeberli
Jun 21 2018 02:30
at the very bottom, where it says: ‘Deploy a Github Branch’, choose ‘master’ from the blank popup below
where it says ‘enter the name of the branch’ - or enter ‘master’; I forget how that is entered exactly
then press ‘deploy branch’, and watch, wait, and scroll down patiently. usually only a few minutes
DaisyHK
@laurathiessen
Jun 21 2018 02:31
yes... but that is for a manual install...
isnt it... i am very afrid to do anthign manually lol
under the automatic it already says master..
Martin Haeberli
@mhaeberli
Jun 21 2018 02:32
it’s for a manual ‘deploy’ - which means that it will deploy the code from YOUR github to YOUR heroku. personally, I’m against the ‘automatic’ deploy
yes, I saw that
DaisyHK
@laurathiessen
Jun 21 2018 02:32
ohh shoot
k sorry that is not indicated anywhere
Martin Haeberli
@mhaeberli
Jun 21 2018 02:32
problem i believe with automatic, which will likely work, is that later, if you happen to update your github, and you’re not yet ready for it to change your heroku, it can automatically update anyway
wiser heads can re-instruct me if i’m wrong
DaisyHK
@laurathiessen
Jun 21 2018 02:34
ohh ok.. so then how do i de-select that option...
k manually did i think
image.png
Martin Haeberli
@mhaeberli
Jun 21 2018 02:35
you don’t - just enter ‘master’ by manual, do a manual deploy, wait for it to finish as shown scrolling down - and ‘bob’s your uncle!’ or ‘presto!’ or whatever, it should then work. (but you’ll have to authenticate to your nightscout instance in a web browser and fiddle with settings - which pills to show, etc
you still have to press the ‘deploy branch’ button if you haven’t already
DaisyHK
@laurathiessen
Jun 21 2018 02:35
you dont need quotation mars correct?
yes. inputted master and pushed that button... curser turned into a red circle for a bit but now back to normal
Martin Haeberli
@mhaeberli
Jun 21 2018 02:36
scroll down if you can
sometimes there s sort of a mini-log showing what happened
the button is called ‘Deploy Branch’ - no quotes around name
DaisyHK
@laurathiessen
Jun 21 2018 02:38
yes i hit that one
ericmtx
@ericmtx
Jun 21 2018 02:39
image.png
DaisyHK
@laurathiessen
Jun 21 2018 02:39
second pic shows it
ericmtx
@ericmtx
Jun 21 2018 02:39
@scottleibrand tested offline setting pi with pump clock after leaving the Pi disconnected from battery for a few minutes to get some difference in the clock. No wifi dongle, etc and consoled in via HDMI and mouse/kb. Test showed it recognized the time mismatch but at first pass continued to try for ntpd synchronization and did not update Pi clock from pump. That repeated until it was restarted with wifi and it corrected the time via ntpd.
DaisyHK
@laurathiessen
Jun 21 2018 02:54
@mhaeberli or at least I think it did... i can do it again if needed
DaisyHK
@laurathiessen
Jun 21 2018 03:05
@mhaeberli ok I have inputted 'master' and pushed the deploy branch a few times... but its not successful cause it does not show up on my overview page...
image.png
Martin Haeberli
@mhaeberli
Jun 21 2018 03:06
Remember how you looked up the NightScout version yesterday?
Try again and share pls
Also try deploy branch again, and take screen shot of messages below
DaisyHK
@laurathiessen
Jun 21 2018 03:09
no... but I will scroll up
Martin Haeberli
@mhaeberli
Jun 21 2018 03:10
I waited until deploy was done
DaisyHK
@laurathiessen
Jun 21 2018 03:12
how do I try and search for somerthing on here?
i am on windows 10 and there is no search bar... or can you pleaes just remind me how to find that..
... ohh nvrm found it
stil says the old version
image.png
Martin Haeberli
@mhaeberli
Jun 21 2018 03:20
Ok I’ll be back in a few...
First close the webwindow and re open it, then check
DaisyHK
@laurathiessen
Jun 21 2018 03:25
k cloased everything and reopened everything (however did not sign out) and no change, still old version and it wont show up in overview as deployed
Scott Leibrand
@scottleibrand
Jun 21 2018 03:30
@ericmtx ok next steps are to run oref0-set-system-clock manually while offline, and then turn on oref0 debugging (or manually do what oref0-pump-loop is doing) to see where the problem is.
Martin Haeberli
@mhaeberli
Jun 21 2018 03:51
@daisyhk can you send me screen shots of what happens on the screen -below- ‘Deploy Branch’ after you press the button? (Scroll down right after you press the button) i get 4 stages: receive code from github / build master / release phase / deploy to Heroku ) / afterwards, it says ‘your app was successfully deployed’ - (but if you get errors in the build master phase, try to capture those with screen shots or open and copy/paste the build error log...
DaisyHK
@laurathiessen
Jun 21 2018 03:53
when i push deploy... nothing shows up underneath
maybe send me what it shows you.... so i can see if it is doing this
it also says that you should be able to pick 'master' from a drop down list, but there is no list for me, i writer the entire word in and push the deploy branch button...
Martin Haeberli
@mhaeberli
Jun 21 2018 03:57
Can you dm me your email address - I’m on an iPad at the moment and I haven’t figured out how to send pictures / screen shots through this app
Also - ok , i give up on refusing to try automatic - what happens if you go for automatic deploy?
I suspect that may fail also, which will give us a hint.
Properly speaking, it may be worth asking people on Nightscout/cgm-remote-monitor as well - they may have other ideas?
DaisyHK
@laurathiessen
Jun 21 2018 04:15
@mhaeberli Pm you
ok will try hitting the automatic button and see what happens
... do i just hit the "enable automatic depoys' button as master is aready written in the brnach section
Martin Haeberli
@mhaeberli
Jun 21 2018 04:17
K good luck
Yes that sounds right
DaisyHK
@laurathiessen
Jun 21 2018 04:18
... ohh mine wasnt active as automatic... when i click on that it enables it to be automatic
Martin Haeberli
@mhaeberli
Jun 21 2018 04:20
Did that work!?
DaisyHK
@laurathiessen
Jun 21 2018 04:21
i dont think so... but I have no idea how/when it woudl automatically check and deploy.... cant find that room
DaisyHK
@laurathiessen
Jun 21 2018 04:33
@mhaeberli how should I ex[plain this in the nightscout room...
Martin Haeberli
@mhaeberli
Jun 21 2018 04:41
Explain you are trying to deploy on Heroku but it’s not working...
Also try again on Facebook
Room is called cgm-remote-monitor
DaisyHK
@laurathiessen
Jun 21 2018 04:49
k thanks... yes now trying both... thanks so much!
peterfulvi
@peterfulvi
Jun 21 2018 11:19
Anybody have a recommendation for a good battery for the PI-HAT Rigs. Im wanting it to go all day long its going to be my take to work rig and im going to retire my Edisons to home.
JohnDoeAkira
@JohnDoeAkira
Jun 21 2018 12:21
I am also looking for such a solution. I think that a case with a switchable 18650 Li-ion battery would be really nice. There is this one for the edison (https://www.thingiverse.com/thing:2798858), but it is meant for 18650 which have already wire soldered. I am more looking to a case where you could switch the 18650 like an AA battery (and carry a spare with you).
The best would be a 18650 switchable battery case for the piHAT. Maybe we could start from this design : https://www.thingiverse.com/thing:2267531
Jon Cluck
@cluckj
Jun 21 2018 12:30
for all-day, right now, you'll need a rather large battery
like 6600mAh
marafie
@marafie
Jun 21 2018 12:54
hello, i was wondering why the NS doesnt show the 2nd bolus (circled) in red, i gave my kid the bolus into two parts.
image.png
JohnDoeAkira
@JohnDoeAkira
Jun 21 2018 12:57
@cluckj Wow, that's more like two 18650 in parallel.
Jon Cluck
@cluckj
Jun 21 2018 12:58
@JohnDoeAkira yeah, we're working on reducing power usage but it's slow-going :)
JohnDoeAkira
@JohnDoeAkira
Jun 21 2018 12:58
I'am still in the process of building my edison rig, not yet into the pihat version.
Jon Cluck
@cluckj
Jun 21 2018 12:58
I've hooked up a Qi pad to mine, and use drop charging (at my desk, around my house, etc.) to keep the battery topped off
but using a 2200mAh battery I can get between 4-6 hours out of a full charge
naboull1
@naboull1
Jun 21 2018 14:05
hi guys. finally got my explorer hat for pi zero
is there any install instruction online
i keep coming back to the normal install guide
Scott Leibrand
@scottleibrand
Jun 21 2018 14:38
Umm... did you RTD?
naboull1
@naboull1
Jun 21 2018 14:38
whats rtd?
Scott Leibrand
@scottleibrand
Jun 21 2018 14:43
Read the docs.
naboull1
@naboull1
Jun 21 2018 15:23
thank you
im following the guide now
Scott Leibrand
@scottleibrand
Jun 21 2018 15:31
Why was that hard to find? Were you not using the table of contents or search feature?
Eric
@ecc1
Jun 21 2018 15:47
The Pi instructions aren't listed at the top level TOC, even when you expand the "Installing OpenAPS" entry (it only mentions Edison). It doesn't mention Pi setup until you're reading a section labeled for Jubilinux.
So it is a bit hard to find currently
Scott Leibrand
@scottleibrand
Jun 21 2018 15:50
Ah, ok. If someone would like to PR a fix for that, I'd be happy to review. Dana and I are both in flight to ADA, so it might be awhile for us to get to it.
DaisyHK
@laurathiessen
Jun 21 2018 16:14
@laurathiessen @scottleibrand think you may be able to help... no responses from FB or from the other ggithub group..
Andy Sharrow
@dramageek
Jun 21 2018 17:05

@ericmtx @scottleibrand Digging in to see why oref0-set-system-clock doesn't work. Seems like it may be some sort of ntp bug?

Looks like if ntpd has succeeded in the past, ntp-wait considers it successful and doesn't return an error, even if it's not CURRENTLY synchronized.

Seems like the -f flag is supposed to be specified for that, but using that flag just makes it complain about an unknown option.
Andy Sharrow
@dramageek
Jun 21 2018 17:15
root@openaps2:~/myopenaps# ntpdate -s -b time.nist.gov
Error resolving time.nist.gov: Name or service not known (-2)
root@openaps2:~/myopenaps# ntp-wait -n 1 -v
Waiting for ntpd to synchronize... OK!
root@openaps2:~/myopenaps#
Even if the ntpdate fails, the ntp-wait still won't error. So it never actually resets anything, assuming ntpd is working and thus time is correct.
Scott Leibrand
@scottleibrand
Jun 21 2018 18:06
is that a problem, though? we only really need to support oref0-set-system-clock when the system clock has been reset to 1999, which only happens if ntp has never sync'd since boot
in other words, do you get the same issue with an offline cold boot? or is something else going on then?
peterfulvi
@peterfulvi
Jun 21 2018 18:53
I just ordered parts for the PI-HAT. Right now im using Lookoout . Does the
Pi-HAT directly recieve Readings from the Dexcom transmitter or do you need nightscout or xdrip ?
Im just wondering if i will have to install Lookout again
Martin Haeberli
@mhaeberli
Jun 21 2018 19:01
@cluckj I haven’t confirmed for serious production, but my 4400 batteries seem on track to get full-day (at least > 18 hours) (after, at least, turning off RPiZeroW LEDs , and maybe with under clocking) - that is, I need to run a week or so’s worth of rigorous experiments to be really sure.
Jon Cluck
@cluckj
Jun 21 2018 19:09
Nice
marafie
@marafie
Jun 21 2018 20:45
I modified the preferences
And rebooted the zero pi
And I am getting this

Starting oref0-pump-loop at Thu 21 Jun 23:36:04 +03 2018 with 25 second wait_for_silence:
Waiting up to 4 minutes for new BG: glucose.json newer than pump_loop_completed
ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial
2018-06-21 23:36:38,181 ERROR port is not set in pump.ini. Please set port to your serial device, e.g. /dev/mmeowlink
Listening for 40s silence before mmtuning: ...................................................................................
Starting oref0-pump-loop at Thu 21 Jun 23:40:04 +03 2018 with 19 second wait_for_silence:
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial
2018-06-21 23:41:00,946 ERROR port is not set in pump.ini. Please set port to your serial device, e.g. /dev/mmeowlink
Listening for 40s silence before mmtuning: ..................

Any idea why ?
Scott Leibrand
@scottleibrand
Jun 21 2018 20:56
did you change oref0 versions?
marafie
@marafie
Jun 21 2018 21:00

cd ~/src/oref0 && git checkout dev && git pull

I entered this and it mentioned its up to date

Scott Leibrand
@scottleibrand
Jun 21 2018 21:02
were you on 0.7.0-dev before?
marafie
@marafie
Jun 21 2018 21:09
Yes
Scott Leibrand
@scottleibrand
Jun 21 2018 21:10
k, that's probably caused by an incomplete downgrade
you can try re-running oref0-setup
marafie
@marafie
Jun 21 2018 21:11
How can I update to new dev version?

Alternative Step 1a (Dev): To get on “dev” branch to test even more recently added new stuff

Or, if the feature you want hasn’t been released yet, and you want to test the latest untested development version of oref0, run:

cd ~/src/oref0 && git checkout dev && git pull
npm run global-install

Scott Leibrand
@scottleibrand
Jun 21 2018 21:12
did you do npm run global-install and then re-run oref0-setup?
marafie
@marafie
Jun 21 2018 21:13
I am tuning the bpm run global now
Running
I think I downgraded
marafie
@marafie
Jun 21 2018 21:34
root@raspberrypi:~/src/oref0# git branch
0.7.0-dev
  • dev
    master
Scott Leibrand
@scottleibrand
Jun 21 2018 21:42
What are you trying to do?
You were on 0.7.0-dev before? Were you trying to upgrade to the latest 0.7.0-dev or downgrade to dev (0.6.2)?
marafie
@marafie
Jun 21 2018 21:55
Upgrade to latests
Dev
I was on dev 0.7.0 and wanted to upgrade to latest
Scott Leibrand
@scottleibrand
Jun 21 2018 22:06
Dev is not the latest: 0.7.0-dev is.
At the moment dev is the same as master.
marafie
@marafie
Jun 21 2018 22:10
I got the msg that it is not the latest release and it has 101 commits
Scott Leibrand
@scottleibrand
Jun 21 2018 22:12
You’re on 0.7.0-dev, which is a feature branch.
So sounds like you want to check that branch back out, and do the git pull and npm run global-install on the 0.7.0-dev branch.
marafie
@marafie
Jun 21 2018 22:39
Thanks I reran setup and it fixed everything
It’s a good system ,,, if you screw up it fixes with minimal effort from user
Scott Leibrand
@scottleibrand
Jun 21 2018 23:02
:+1:
ericmtx
@ericmtx
Jun 21 2018 23:42
@scottleibrand @dramageek on the ntp issue, at least on my pi2 it remembers the time as of the last shutdown (not 1999). So it's minutes/hours off if the Pi has been shutdown. Then ntp doesn't sync, errors, and ends with a loop failures and does the same again and again. By your notes above I assume oref0-set-system-clock only works if 1999?
This was my behavior when off by a few minutes
Andy Sharrow
@dramageek
Jun 21 2018 23:47

@ericmtx oref0-set-system-clock is supposed to work like so:

  1. Determine if NTP is working. If it is, quit.
  2. If it's not, restart NTP. Test it again.
  3. If it still doesn't work, set the rig time to the pump time IF the pump time is in the 'future'.

In your case, the pump should still be in the 'future', so it should change the rig to the pump time.

ericmtx
@ericmtx
Jun 21 2018 23:48
interesting. I can do some more testing and let it do some additional cycles. Seems like #3 isn't happening for me on the Pi based on the log above.
thanks for your help
Andy Sharrow
@dramageek
Jun 21 2018 23:55
I'm troubleshooting it at the moment too. If I run it manually it fixes the time, but it's a few minutes old. Likely because it last updated the pump profile a few minutes ago. Running in the loop, it fails with the same Error: pump clock refresh error / mismatch you're getting.
ericmtx
@ericmtx
Jun 21 2018 23:57
that matches what I've seen. It ran hours without updating, but it was always running in the loop. I'd not tried a manual reset as I didn't have access to the Pi via console at that time. Just noticed it wasn't putting a temp basal on her pump and saw later the time issues reported in the log.
Martin Haeberli
@mhaeberli
Jun 21 2018 23:58
@ericmtx I still endorse cheap pi RTCs . When is she leaving for camp?