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

1st
Mar 2017
Martin Haeberli
@mhaeberli
Mar 01 2017 00:08
@ecc1 nice ! I thought the Pi Zero W looked interesting, too
fiberfan
@fiberfan
Mar 01 2017 02:35
I am having consistent bou usually short lived problems with a failure in openaps invoke enact/enacted that shows
ValueError: byte must be in range(0, 256)
cat: enact/enacted.json: No such file or directory
In the log but the loop continues.
fiberfan
@fiberfan
Mar 01 2017 02:41
When I run openaps invoke enact/enacted before the next crintab
crontab loop I am currently getting the following error.
enact/enacted.json raised byte must be in range(0, 256)
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 432, in main
results = self.upload_program(program)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/medtronic.py", line 525, in upload_program
return self.pump.model.set_temp_basal(program)
File "/usr/local/lib/python2.7/dist-packages/decocare/models/init.py", line 222, in set_temp_basal
result = self._set_temp_basal(
basals)
File "/usr/local/lib/python2.7/dist-packages/decocare/models/init.py", line 25, in call
self.response = inst.session.query(self.msg, **kwds)
File "/usr/local/lib/python2.7/dist-packages/decocare/session.py", line 101, in query
self.execute(command)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 239, in execute
return sender(command)
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 140, in call
self.upload()
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 127, in upload
self.send_params( )
File "/usr/local/lib/python2.7/dist-packages/mmeowlink/handlers/stick.py", line 28, in send_params
payload = bytearray([len(params)]) + bytearray(params)
ValueError: byte must be in range(0, 256)
I sometimes get the sub version error. In both cases the log only
never shows the details.
I am running a 5 week old dev install but started seeing the problem before autotune was merged to dev.
Paul Delano
@spike1197
Mar 01 2017 03:07
Herokuapp was down today but our site hasn't recovered with Dex. Openaps seems to be ok but the Dex info is stale. I restarted the herokuapp but no luck. Does anything need to happen with mongodb when heroku bonks? Ideas appreciated
Michael Maniscalco
@gtscalco_twitter
Mar 01 2017 03:09
Just a starting idea - Do you see recent data in your mongo collection?
Scott Leibrand
@scottleibrand
Mar 01 2017 03:19
@fiberfan is it trying to enact a high (> 6.3U/hr) temp basal when you get that?
fiberfan
@fiberfan
Mar 01 2017 03:44
some of the time but they basal above <6.3 woek lots of times.
fiberfan
@fiberfan
Mar 01 2017 03:53
I ran a report and in the last 2 weeks the max basal actually set was 6.33. Off to make sure i have the fix for higher basals. I thought
I verified that but since i presently have chemo brain all bets are off.
fiberfan
@fiberfan
Mar 01 2017 04:29
Operator error. Openaps just set a 6.6 temp basal.
R. Dennis Steed
@rdsteed
Mar 01 2017 05:09
Saw comments earlier about pi zero being too slow for loop. (> 5 min). Has anyone analyzed where loop spends its time?
Tim Street
@tim2000s
Mar 01 2017 06:28
@ecc1 Edison is dual core, so it may be that the scheduler enables more efficient CPU use than on the single core Zero.
Tim Street
@tim2000s
Mar 01 2017 06:34
Other limiting factor for Python may be the 512MB RAM on the Zero.
Just checking the Edison, peak use is exceeding 512M which would suggest it would be swapping to the SD card, which probably explains slow performance of classic loop on Zero.
Scott Leibrand
@scottleibrand
Mar 01 2017 07:07
@rdsteed I think @cjo20 is working on some efficiencies, perhaps starting with IOB (re-)calculation (which autosens does a lot of)
diabeticgonewild
@diabeticgonewild
Mar 01 2017 08:27
Does anyone have the link for the Edison hardware screws? I tried to remove the screws from my Edison using a Phillips #0 screwdriver but I was unable to.
Holy crap! I got the screw loosened! Took me 45 minutes! I suck! đź’©
andyhandy
@andyhandy
Mar 01 2017 09:17
if i wanted to restart autotune from scratch (i.e. running automatically as part of openaps), would I just delete the "autotune"directory? thanks
Colin Lennon
@colinlennon
Mar 01 2017 09:22
@danimaniac I wrote xDripAPS and added it into the oref0 setup script, so if you have any questions, give me a shout. Any feedback on the documentation would be welcome too - if you find that it's not clear, we can update it :+1:
Also for @geoffro10 - any feedback on the xDrip offline looping docs would be welcome! And I'm sure @ceben80 , @tim2000s or I will be able to help with setup if you get stuck.
Tim Street
@tim2000s
Mar 01 2017 09:24
@colinlennon Any chance of adding a Treatments table to the Db that xDrip+ can write to? For offline non-pump carbs?
gregtcm
@gregtcm
Mar 01 2017 09:54
@live4sw I really miss my Freestyle Lite. But had to switch to the OneTouch because of insurance.
Stephen Chandler
@stephenc95
Mar 01 2017 10:04
I am in the process of setting up my Intel Edison. Finished everything in Phase 0, but after configuring the tzdata the Edison still shows the wrong time, which is Fri Dec 31 20:13:55 EST 1999. Anyone know how to fix this?
fezulin
@fezulin
Mar 01 2017 10:07
@stephenc95 did you try a reboot?
Stephen Chandler
@stephenc95
Mar 01 2017 10:08
Yes. Several times now. I have also started from scratch and reflashed the Edison with the same results
fezulin
@fezulin
Mar 01 2017 10:09
@stephenc95 Is your edison connected to internet?
Stephen Chandler
@stephenc95
Mar 01 2017 10:09
I pinged google.com and that worked
fezulin
@fezulin
Mar 01 2017 10:10
@stephenc95 I guess I woukld ignore it and simply go on with setup. Eventually the time will be corrected later. But I am not that experenced in this topic. I just followed th einstructions and finally it worked.
Stephen Chandler
@stephenc95
Mar 01 2017 10:15
Nothing happens
Stephen Chandler
@stephenc95
Mar 01 2017 10:35
Okay so the time not being set right is causing errors when I try to run sudo npm install -g json
Stephen Chandler
@stephenc95
Mar 01 2017 11:01
Nevermind. Seems to be working now
Karim Azzaz
@moimemecloud
Mar 01 2017 12:16
Hi there, has anyone tried the Dana Pump with the OpenAps please?
Colin Lennon
@colinlennon
Mar 01 2017 13:14
@tim2000s I use the pump wizard for carbs. Would the idea here to enter treatments on the xDrip+ phone app and have it upload them to xDripAPS via the REST API? Then have OpenAPS get treatments from xDripAPS rather than NS?
Tim Street
@tim2000s
Mar 01 2017 13:20
Yes. That's right.
Colin Lennon
@colinlennon
Mar 01 2017 13:21
Does xDrip+ upload those treatments to NS at the moment? If it does, then yeah, I should be able to add that into xDripAPS
Would need to find out what the NS API is for treatments and implement the same API in xDripAPS (as I did for entries)
Tim Street
@tim2000s
Mar 01 2017 13:23
It does, yes.
Colin Lennon
@colinlennon
Mar 01 2017 13:24
@moimemecloud For Dana R - https://github.com/MilosKozak/AndroidAPS
@tim2000s Okay thanks Tim, I'll try and have a look into that when I have some time.
Stephen Chandler
@stephenc95
Mar 01 2017 13:52
Is it normal for the time to be reset to Fri Dec 31 1999 every time the Intel Edison reboots?
Stephen Chandler
@stephenc95
Mar 01 2017 13:59
Starting pump-loop at Sat Jan 1 00:05:26 EST 2000:
Radio ok, Listening: .No pump comms detected from other rigs
Old pumphistory:
Error, retrying
Starting pump-loop at Sat Jan 1 00:06:25 EST 2000:
Radio ok, Listening: .No pump comms detected from other rigs
Old pumphistory:
Error, retrying
Listening: .No pump comms detected from other rigs
mmtune:
I keep getting this while trying to start my loop. I have a medtronic 712, intel edison and explorer board, but can't seem to get them to connect
Scorponok
@Scorponok
Mar 01 2017 14:03
@stephenc95 Those two things are semi-normal - when you reboot the clock seems to get reset, but for us it updates to the "right" time before actually doing anything
And that pump loop stuff is normal for us, the first few iterations it tries, fails, then decides "I must be on the wrong settings" or something, and runs mmtune to figure out where the signal is - does it work after mmtune?
Tim Street
@tim2000s
Mar 01 2017 14:05
You do need a network connection for the clock to reset itself properly after a reboot.
There isn't an onboard clock.
Stephen Chandler
@stephenc95
Mar 01 2017 14:06
It hasn't been able to connect yet. Also, my edison never updates to the right time. I had to manually set it. It is also connected to the internet, so I don't know why it won't update the clock.
live4sw
@live4sw
Mar 01 2017 14:27
@gregtcm and anyone else - just thought you guys might be interested that over 18 side-by-side tests (same time, same finger) over the past 4 days, my Freestyle Lite was, on average, 10 points lower (7%) than the Contour Next EZ. Of the 18 tests, on only one did the Freestyle give a higher reading (149 vs. 140), with the remainder the Freestyle giving a lower reading by anywhere from 0 to 32 (on a high reading) mg/dl
For what it's worth, 10 mg/dl is about 0.35 A1c points
Eric
@ecc1
Mar 01 2017 14:53
@moimemecloud Check out AndroidAPS here: https://github.com/MilosKozak/AndroidAPS
kenstack
@kenstack
Mar 01 2017 14:57
@stephenc95 is ntp running?
@stephenc95 my kids edison wont update time when he is on his school’s network for example because NTP is blocked (theroetically for security purposes….)
katie disimone
@Kdisimone
Mar 01 2017 15:03
@kenstack I'm trying to understand the implications of the school wifi ntp thing. So if he arrives at school with rig running fine, no problems? But if he had to reboot at school he has problems?
kenstack
@kenstack
Mar 01 2017 15:04
@Kdisimone yep - exactly
doesnt happen often, but just enough to have caused me to waste many hours on it :)
Stephen Chandler
@stephenc95
Mar 01 2017 15:05
I'll check when I get home. That could be it
kenstack
@kenstack
Mar 01 2017 15:05
if so, set the date as follows if you only have access to http
date -d "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"
zekeat09
@zekeat09
Mar 01 2017 15:06
Hi, i have a very dangerous situation. My COB in night scout not correctly displace. It show high Carbs that cause my loop gave high TBR.
IMG_2994.PNG
My boy have 2 time hypo today. I already shutdown the loop.
kenstack
@kenstack
Mar 01 2017 15:08
@Kdisimone I have also found this to be the case on other “free” networks - hospitals, universities, etc - many only give you access to http and some cut ntp access completely. for example ping doesnt work … but curl does since I have http access only. Internet access isnt always everything I found out …. sometimes only http
Cameron Renwick
@CamRenwick_twitter
Mar 01 2017 15:15
Hi everyone. I'm updating my phone and would like to purchase an Android model. My current smartphone (a blackberry) is in need of replacement. I'm wondering if there are any Android phones that seem to function better with looping rigs. I am building an xDrip for use with the phone to send data to NS. Suggestions welcomed!
kenstack
@kenstack
Mar 01 2017 15:21
@Kdisimone for complete context - my loop actually tries to set the time from the pump time - if its getting misreads for some reason then I use that curl above
Tim Street
@tim2000s
Mar 01 2017 15:24
I don't understand your image @zekeat09 It says the last sensor data was received 20mins ago, OpenAPS last ran 14mins ago and yet has an upload of a loop run from 3 mins ago. What is your setup? If the sensor glucose data is that out of date and it is using Nightscout for data, the loop fails.
katie disimone
@Kdisimone
Mar 01 2017 15:26
@kenstack so interesting. I'm frequently talking to the parents-sending-kid-to-school loopers and the school wifi is so variable. I didn't even thing about ntp issues. I'll definitely add it to my list of things to bring up at the 504/IT dept meetings so they don't spend hours frustrated in that one. That would've tripped me up for sure.
zekeat09
@zekeat09
Mar 01 2017 15:27
@tim2000s i am using medtronic sensor. I didn't add that much of carbs in nightscout. Out of sudden, i found my son BG dropping and found COB in nightscout show not correct number.
this happen since heroku down this morning in Msia time. We are 11pm now, the low BG wake me up and try to do repair
katie disimone
@Kdisimone
Mar 01 2017 15:30
@zekeat09 like this? openaps/oref0#387
Tim Street
@tim2000s
Mar 01 2017 15:40
I suspect that the issue lies with the recovery of Heroku and timestamps of data. I'm pinging @scottleibrand As I think it might link to the sorting issue we've seen elsewhere.
zekeat09
@zekeat09
Mar 01 2017 15:40
@Kdisimone yes. i am not sure it is double or not. but the COB just not right
i deleted mlab data, but still hve 17g in COB
what should i do ? shutdown the system until further notice ?
Tim Street
@tim2000s
Mar 01 2017 15:44
Can you see the carbs in the 24hr NS view?
zekeat09
@zekeat09
Mar 01 2017 15:45
@tim2000s i deleted the NS, and restart new already
i think it get previous carbs shown in NS.
I notice this issue since heroku down.
Even delete Mlab databse, it still show some carbs in new NS
Tim Street
@tim2000s
Mar 01 2017 15:46
I think you'll need to go into your mlab database and see how the carbs show up in the treatment table. I think the Heroku outage is likely to be the issue.
zekeat09
@zekeat09
Mar 01 2017 15:47
I deleted mlab database entries
Tim Street
@tim2000s
Mar 01 2017 15:48
@zekeat09 Which means the data must be coming from your pump. NS entries don't magically turn up from nowhere.
However, have you checked your carbhistory.json and your pumphistory.json?
zekeat09
@zekeat09
Mar 01 2017 15:49
but it go up 55g COB, his last carb intake is 2hrs is only 35g
Tim Street
@tim2000s
Mar 01 2017 15:50
And also the time zone on Heroku. Has the failure affected that?
zekeat09
@zekeat09
Mar 01 2017 15:51
i only can confirm this happen after heroku down. I don't know how the time zone on Heroku can increase the COB.
Tim Street
@tim2000s
Mar 01 2017 15:53
I'm afraid I'm out of ideas. It sounds like timestamps have got messed up somewhere.
Try deleting your carbhistory.json file from your rig and emptying the Treatments collection in mlab.
If those have no data in them, then the only source for carbs has to be the pump
zekeat09
@zekeat09
Mar 01 2017 15:54
i deleted all mlab data. start new openaps with new dir
Tim Street
@tim2000s
Mar 01 2017 15:56
So you need to check your pumphistory & pumphistory24h then. That's the only other place the data can come from if everything else is new.
zekeat09
@zekeat09
Mar 01 2017 15:57
you mean check the pump itself ?
Tim Street
@tim2000s
Mar 01 2017 15:58
Check the settings/pumphistory.json file
Sorry. Monitor/pumphistory.json
zekeat09
@zekeat09
Mar 01 2017 16:01
where to find pumphistory.json
my last bolus is 19:12 for 30g. Now is 0:00
still got COB 11g in nighscout
Karim Azzaz
@moimemecloud
Mar 01 2017 16:02
@ecc1
Tim Street
@tim2000s
Mar 01 2017 16:04
@zekeat09 myopenaps/monitor/pumphistory.json
Karim Azzaz
@moimemecloud
Mar 01 2017 16:04
@eric thank you very much, but this link is asking me to provide them with personal data...?! Why this questionnaire?
zekeat09
@zekeat09
Mar 01 2017 16:07
@tim2000s pumphistory.json don't find any carbs
R. Dennis Steed
@rdsteed
Mar 01 2017 16:09
@scottleibrand By IOB, I'm guessing you are referring specifically to the code in oref0/lib/iob/ . It does look like a lot of loops within loops which can consume a lot of clock cycles.
katie disimone
@Kdisimone
Mar 01 2017 16:19
@zekeat09 you can turn off loop or just set some temp targets that are higher to keep it from high temping until the carbs decay. I've found that actually just having a small snack seems to help it move along. Basically it's holding those carbs waiting for a BG rise. If you have a meal with some BG rise, the carbs will decay.
Tim Street
@tim2000s
Mar 01 2017 16:22
I don't understand then. If you have a new clean Heroku and mlab they can't come from there @zekeat09
The only remaining place to look is settings/pumphistory-24h.json or monitor/meal.json
peterfulvi
@peterfulvi
Mar 01 2017 16:38
@tim2000s @ceben80
I got the BT tethering down, and setup night scout, I would like to setup my temp target sto be offline, i read @Lukas-ondriga repositories on offline target setting, I have a phone and a pebble i would like to dedicate for that reason , I also like NS but don't like the dependency of the internet to set temp targets. My question would beis there any interference when setting temp targets offline and night scout, I assume NS will update when it has an available network connection. @tim2000s . Is there a widget or app that can read your trends like night scout offline based on the data it gets from your rig. I have an enlite sensor so that is not an issue. I see the dependencies i have to install i just want to make sure i know everything involved
zekeat09
@zekeat09
Mar 01 2017 16:44
@Tim Street After i deleted mlab datsbase, the COB suddenly turn out 20g. I hv no bolus since abt 5hr. A few minutes before was 0g.
Matthias
@ceben80
Mar 01 2017 16:51
@peterfulvi my recommondation, get familar with the basic functions of OpenAPS combined with Nightscout and all features, later advances features like offline looping, settings temp targets independent from Nightscout etc. etc.
John Benjamin
@Bender1061
Mar 01 2017 17:00
@kenstack your bit about set the date as follows if you only have access to http
date -d "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')" sounds like something we should put in oref0-set-system-clock.sh @scottleibrand what do you think?
kenstack
@kenstack
Mar 01 2017 17:08
@Bender1061 I don't use that clock set file so I'm really not sure - sorry! I can try to take a look at it later tonight
Matt Pressnall
@logichammer
Mar 01 2017 17:10
Using the ExplorerBoard we see a lot of Temp refreshError, retrying even when the rig is a few feet away (but in a case and in purse). Pi with a TI stick, not so much. Any advice? I feel like this ExplorerBoard might suffer from this more than the first one we had...I have a new one hopefully coming soon.
John Benjamin
@Bender1061
Mar 01 2017 17:26
yeah we need to get someone who has that problem test it. Cause the concern is a valid one, and it does seem like something we can automate. After checking NTP and before getting the time from the pump.
Scorponok
@Scorponok
Mar 01 2017 17:39
@logichammer Wait for the call to mmtune - what does it say for the signal strength when that happens? If the signal strength number is -85 or worse it's probably too far away - you either need to move it nearer or turn it around
Sometimes just turning the edison 180 degrees will significantly improve the signal strength
Jason Wittmer
@jbwittmer
Mar 01 2017 17:41
Although I love the BT tethering to iphone with Explorer rig, I am still having frequent failures to reestablish wifi connection despite using the reboot_to_fix_radio_if_needed.sh as outlined by @Kdisimone. Rig just freezes - not connected to phone, and not to wifi, and needs reboot to fix. Anyone else still seeing this? I'm sufficiently frustrated at this point that I'm considering building a rig that will exclusively use BT tethering to phone for daytime hours so at least if it fails to recapture wifi it will happen at home where I can reset myself. Trying to have less interruptions at school and the need to text him to have him reboot rig several times weekly is problematic. I think I'll just schedule a wifi disable in the cron job before departure from school to make sure it links to phone and then reenable wifi during hours he'll normally be back in our care. Any reason that wouldn't work? Others with similar strategy or having the same problem?
John Benjamin
@Bender1061
Mar 01 2017 17:41
@logichammer @Scorponok I try to make sure the white part of the antenna for the explorer is facing away from the Battery. Which does put the edison itself facing the battery. Which might be something the people designing 3D printed cases might want to consider
Scorponok
@Scorponok
Mar 01 2017 17:42
@Bender1061 That's interesting, I hadn't thought about that - I will need to look at how ours is arranged in the case
John Benjamin
@Bender1061
Mar 01 2017 17:46
I don't have any data to back it up, but it might not make much of a difference close up, but it might give you a bit more distance, and I know for a fact that it helps if you are in a very EM noisy environment. Like a Factory, or a Industrial Robot cell.
Jason Wittmer
@jbwittmer
Mar 01 2017 17:48
For what it's worth we have tried our radio stick both ways - against the battery and facing outwards. I do try to orient it so it hangs over the edge of the battery just a bit when facing the battery. Haven't noted any advantage in range either way, but rig runs cooler with Edison chip out.
katie disimone
@Kdisimone
Mar 01 2017 17:50

@jbwittmer it's a tough situation. Very hard to pull pump logs while kid is at school to see what the error is in order to fix it (@kenstack's discussion about ntp on school wifi is a great example of those frustrations). I would probably offer up that if you don't mind the addition of a very small little box (smaller than an altoid tin), a mifi might be even better than the BT tether while at school. Would preserve iPhone battery and be a wifi network as opposed to also depending on a BT tether. We used one while we got our school wifi issues worked out and it was fantastic. Very stable. You could prioritize the networks/cron so that his rig goes back onto home wifi when he gets home.

Also, two people in two days....the Edison board had come loose causing a lot of issues that look identical to wifi problems. Worth double checking that the nuts and screws are still tight on Edison and explorer and that the Edison is securely pushed into explorer. I had mine come loose and had lots of head scratching about seemingly needing to reboot (turns out it was just periodically unseating/reseating)

John Benjamin
@Bender1061
Mar 01 2017 17:54
@jbwittmer the hanging over the edge sounds like a good idea, I would see that helping a lot, and yeah keeps the battery away from the edison.
and Like I said, only time I noticed it making a difference it when it is a very noisy EM environment.
Jason Wittmer
@jbwittmer
Mar 01 2017 17:56
@Kdisimone Unfortunately a mifi won't work well for us as there is very poor to none cellular service in the school. However his phone is allowed on the school network and connects very reliably. May be the best work-around that we can manage. May have to use a phone case with supplemental battery. Or perhaps just schedule reboot's in cron at the times where we know there are potential problems - immediately after arriving, after recess. Interestingly it seems to be a problem with the school network rather frequently but rarely occurs upon his return home from school (although it can). I guess we could always just go back to wifi only but I really do like the BT tethering when it works well.
Thanks for the tip about the Edison board security. That's a no-brainer that I should have checked already. Will do that tonight.
pepecb
@pepecb
Mar 01 2017 17:59

Hi everyone. Just set up my Rpi3, so far just watching in low suspend mode. I have very limited knowledge of programming. I have experienced that the loop stops working several times per day. After re-start is fine again. I would appreciate if anyone could help me. I always get the following error when I read the tail:

File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 515, in product_info
return self.query(ProductInfo)
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 509, in query
return self.process( )
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 496, in process
ack, response = self.command.respond(raw)
File "/usr/local/lib/python2.7/dist-packages/decocare/stick.py", line 71, in respond
raise AckError("ACK is 0 bytes:\n%s" % lib.hexdump(raw))
decocare.errors.AckError: ACK is 0 bytes:

Scorponok
@Scorponok
Mar 01 2017 18:04
@pepecb The carelink stick randomly stops working - you'll need to run oref0-reset-usb (I think) to fix it, or unplug the stick and plug it back in
I set up a cron job to run oref0-reset-usb if it found stick.py in the output, which fixed it
Jason Wittmer
@jbwittmer
Mar 01 2017 18:06
@pepecb I'm sure others will chime in as well, but running a rig with Carelink stick is an exercise in frustration on many fronts. Consider a TI stick.
Scorponok
@Scorponok
Mar 01 2017 18:07
I would upgrade to an edison before getting a TI stick, the smaller thing is much more convenient overall
But yes
fiberfan
@fiberfan
Mar 01 2017 18:08
@Bender1061 I have my edison/explorer with the edison side velcroed to the battery since the edison is smoother if it slips in the velcro. Nice to know there is another benefit.
@pepecb While waiting for my explorer board I found the carelink was more reliable if I changed the crontab so the jobs run every 3 minutes and put the pump and the pi/carelink in a tiny handle bag. It was a pain to carry but it reduced the unplug/replug frequency enough it was worth it. Sometimes durong the
during the day I did other things but at night I was very consistent and had very few nights with a problem.
kenstack
@kenstack
Mar 01 2017 18:15
@Kdisimone I can confirm some strange reboot issues with jubilinux - every now and again - and I've been looking at logs etc - it seems to freeze on a reboot - gets hung in some weird state where it runs theubshut down, then doesn't reboot - I have noticed this never happens on home wifi But that of course should have nothing to do with it. If kid resets power boots fine. I need to look further but it could be an issue with jubi and the Edison - or something I'm doing :)
Jason Wittmer
@jbwittmer
Mar 01 2017 18:18
@kenstack We've seen this as well. Sometimes rig will shut down. Sometimes will remain running but in some sort of limbo. And almost always at school where I can't attach a cable to troubleshoot.
Tim Street
@tim2000s
Mar 01 2017 18:21
Been running the rig today with the loops cronned to every 3mins instead of every min. It's extended the battery life by about 30%, as you might expect.
Scott Leibrand
@scottleibrand
Mar 01 2017 18:32
@rdsteed yes, exactly. He was talking about using a lookup table to shorten a lot of those loops within loops.
@zekeat09 how do you enter your carbs? Have you entered any treatments with Loop or NS Care Portal? If you use Loop, be aware of the warning about double uploads in the OpenAPS docs. If you use care portal, there is a treatment sorting fix in the dev branch that might help. And :+1: to the suggestion about just setting a high temp target if you ever do notice COB is too high: that will prevent any excessive high temps while it decays away.
@Bender1061 @kenstack Yeah, that HTTP time check might be a good thing to try before setting the time from the pump/CGM. It will require some detailed testing to get all the fallbacks right, though. And I'm curious why the fallback to setting rig time from device time isn't working in that situation.
Scott Leibrand
@scottleibrand
Mar 01 2017 18:37
@moimemecloud there is a Gitter room for AndroidAPS where you can ask those kinds of questions. https://gitter.im/MilosKozak/AndroidAPS
John Benjamin
@Bender1061
Mar 01 2017 18:49
@scottleibrand I noticed that on the cruise ship, how it sometimes did not work. sometimes I would have to cycle power a few times before it would finally work correctly. what I found made it more reliable is if I deleted everything in the Monitor folder. I know it probably did not need everything, but that would force it to gather everything (including the pump time) and then it would work. I had started to think of a way to just delete the monitor folder contents every time I did a reboot, but it was a pain to make that kind of changes using a cellphone on a cruise ship.
it acted like because the current time was way before the time stamp on the files, that it did not need to gather them since the time was less that 20 mins old, since it was actally 17 years newer
does that make sense to you?
John Benjamin
@Bender1061
Mar 01 2017 18:55
that actually was the same issue I had when I went to New Orleans and I decided to change the time on the pump and edison to central time. (I wanted the time on my pancrebble pebble to be ship time) but nothing would update for an hour after I change it from Eastern time.
I'm kind of expecting this to happen again next fall
Karim Azzaz
@moimemecloud
Mar 01 2017 19:02
Hi there, is there somebody using the Dana R with AndroidAPS ? What is your experience please?
Andy Sharrow
@dramageek
Mar 01 2017 19:08
With all this talk of NTP and time zones, I'm heading a time zone over (Eastern to Central) next week. Is there a best-practices procedure for what I should do?
Dana Lewis
@danamlewis
Mar 01 2017 19:15
@moimemecloud several people have pointed you already over to the Gitter channel for AndroidAPS. I recommend going over there and asking that question if you want input, as that is where they hang out primarily ;)
Scott Leibrand
@scottleibrand
Mar 01 2017 19:18
@dramageek I would leave all your rigs and devices on your home timezone.
Matt Pressnall
@logichammer
Mar 01 2017 19:19
@Scorponok / @Bender1061 -- thanks much! I wasn't sure where the antenna was until now so thanks; I will play with positioning. Is worse than -85 a value like -70 or -95? Which direction? I'm going to assume 70 is worse but wanted to verify. Also, here is a random selection of her mmtune outputs:
Mar 01 07:25:35 luke pump-loop.log: "916.636", 0, -99 Starting pump-loop at Wed Mar 1 07:25:35 PST 2017:
Mar 01 07:38:04 luke pump-loop.log: "916.780", 1, -87 Starting pump-loop at Wed Mar 1 07:38:04 PST 2017:
Mar 01 07:42:32 luke pump-loop.log: "916.780", 5, -37 Starting pump-loop at Wed Mar 1 07:42:31 PST 2017:
Mar 01 07:47:56 luke pump-loop.log: "916.708", 5, -81 Listening: .No pump comms detected from other rigs
Mar 01 07:53:07 luke pump-loop.log: "916.684", 5, -86 Starting pump-loop at Wed Mar 1 07:53:07 PST 2017:
Mar 01 08:05:53 luke pump-loop.log: "916.636", 0, -99 Starting pump-loop at Wed Mar 1 08:05:53 PST 2017:
Mar 01 08:11:23 luke pump-loop.log: "916.636", 0, -99 Starting pump-loop at Wed Mar 1 08:11:23 PST 2017:
Mar 01 08:20:54 luke pump-loop.log: "916.636", 0, -99 Starting pump-loop at Wed Mar 1 08:20:53 PST 2017:
Mar 01 08:23:58 luke pump-loop.log: "916.708", 5, -74 Starting pump-loop at Wed Mar 1 08:23:58 PST 2017:
Mar 01 08:29:54 luke pump-loop.log: "916.732", 5, -78 Starting pump-loop at Wed Mar 1 08:29:54 PST 2017:
Mar 01 08:39:05 luke pump-loop.log: "916.756", 5, -74 Starting pump-loop at Wed Mar 1 08:39:05 PST 2017:
Mar 01 08:42:58 luke pump-loop.log: "916.756", 4, -87 Starting pump-loop at Wed Mar 1 08:42:58 PST 2017:
Mar 01 08:54:32 luke pump-loop.log: "916.708", 1, -98 Starting pump-loop at Wed Mar 1 08:54:32 PST 2017:
Mar 01 08:57:35 luke pump-loop.log: "916.636", 0, -99 Starting pump-loop at Wed Mar 1 08:57:35 PST 2017:
Mar 01 09:01:55 luke pump-loop.log: "916.684", 2, -97 Starting pump-loop at Wed Mar 1 09:01:55 PST 2017:
What is the middle number?
First == Freq
Second == ?
Third == Signal string in positive integers despite the minus sign?
Many thanks!
Scott Leibrand
@scottleibrand
Mar 01 2017 19:20
@Bender1061 it's quite possible the time checks don't properly catch that. Would probably be pretty straightforward to add a check that deletes everything in monitor/ that is more than 5m in the future, or just add an @reboot cron entry.
@logichammer Anything from -80 to -99 means you'll have a hard time getting a good enough connection to pull the data
So I guess see if you can reorient the edison, or move it closer
Stephen Chandler
@stephenc95
Mar 01 2017 19:21
When I try to run the timedatectl status command, I get Failed to query server: Connection timed out. Still can't get the time to update after configuring the timezone
Matt Pressnall
@logichammer
Mar 01 2017 19:21
You rule! Thanks, man...no wonder then...now I can troubleshoot with this info!!!
Stephen Chandler
@stephenc95
Mar 01 2017 19:22
Date and time are still at Dec 31 1999
Scorponok
@Scorponok
Mar 01 2017 19:23
@logichammer \o/
Scott Leibrand
@scottleibrand
Mar 01 2017 19:23
@stephenc95 do you have full Internet access on the rig? Sounds like a connectivity problem.
Stephen Chandler
@stephenc95
Mar 01 2017 19:24
When I run ifup wlan0 it says wlan0 is already configured
Matt Pressnall
@logichammer
Mar 01 2017 19:25
@Kdisimone, I saw you talking about the complexity of pulling logs while kids are school...well, let me introduce you to the easiness of pulling logs:
https://papertrailapp.com
!(https://content.screencast.com/users/loki_mdog/folders/Snagit/media/6def5377-2a4f-4ff2-a3f1-77b9bd461352/03.01.2017-11.22.png)
@jasoncalabrese and @bewest clued me into it and it makes it so EASY! Free account works for fair amount of data, FYI.
Scott Leibrand
@scottleibrand
Mar 01 2017 19:26
@stephenc95 curl -s icanhazip.com
Matt Pressnall
@logichammer
Mar 01 2017 19:26
That's over a browser...super simple to use
Scott Leibrand
@scottleibrand
Mar 01 2017 19:26
Or better yet, do a full oref0-online to check and try to fix connectivity.
Karim Azzaz
@moimemecloud
Mar 01 2017 19:27
@danamlewis thank you very much!
Andy Sharrow
@dramageek
Mar 01 2017 19:38
@scottleibrand I'm thinking I may have to play by ear and see what it does. I'm sure my phone will switch timezones automatically, and I upload to nightscout with xdrip+ so readings will likely get the new timezone when they're uploaded. At that point, it's probably better to re-zone everything
I'll be there Tuesday through Sunday for a work conference, so if it does skip an hour when switching it's not too terrible. I may try to do it manually the night before I leave, so missed actions will be when I'm at my stablest.
@Bender1061 What did it do on the return back to Eastern? Just skip an hour, but otherwise continue as normal?
katie disimone
@Kdisimone
Mar 01 2017 19:49
@logichammer I have paper trail on my heroku....never thought about using it for rig. Great idea. How did you set it up for OpenAPS use?
John Benjamin
@Bender1061
Mar 01 2017 19:51
@dramageek yeah I did not see an issue at all with returning back to eastern, I did do it on the plane, so I was not connected to the net, (I use the enlite so I can run offline.)
kenstack
@kenstack
Mar 01 2017 19:53
@jbwittmer @scottleibrand @Kdisimone yeah same here - I've never had the rig die with reboot on wifi - only in situations with likely a connectivity failure im guessing - maybe something with the boot sequence .... I did look at the syslog - it shutdown correctly as far as I could tell, but then didn't reboot - just hung - nothing in the log until what looked like a hard reboot from kid powering off and on - I'll continue to investigate but it's very intermittent
Scott Leibrand
@scottleibrand
Mar 01 2017 19:56
@dramageek anything uploading BG to Nightscout from a phone that knows the real time and timezone will have the correct UTC timestamp, or an appropriately zoned local timestamp, so that shouldn't be an issue.
RedCyclist1
@RedCyclist1
Mar 01 2017 20:43
Just got up and running! My pump is up on nightscout and it is truly exciting... however, we still get "failed to start hostname service" do we need to fix this? We still have to work through the rest of the instructions but wondering what the impact of the message above indicates?
live4sw
@live4sw
Mar 01 2017 21:08
Quick question - I haven't been outside of my home timezone since starting OpenAPS last Feb. Is there a place in the docs that sets out exactly what you need to do if you're traveling to another timezone?
Dana Lewis
@danamlewis
Mar 01 2017 21:08
@RedCyclist1 woot! Nothing to worry about there.
@live4sw no but I've answered this Q 3x in last day ;) how far are you going and for how long?
live4sw
@live4sw
Mar 01 2017 21:09
Two hours earlier (going west) for about 8 days
I'd be happy to do a PR for having made you answer it 4x
Dana Lewis
@danamlewis
Mar 01 2017 21:11
;) :+1:
I usually don't change it for that type of travel. Looping will take care of any variance IMO from that slight shift.
I usually only change for international (say 6-8 hours time zone change)
live4sw
@live4sw
Mar 01 2017 21:12
So you just keep your pump, G4, and rig 2 hours ahead, and the system is none-the-wiser?
Dana Lewis
@danamlewis
Mar 01 2017 21:12
If you do change things - change all at once, and when you have some downtime to troubleshoot. Don't change while on the go because that's likelier to cause headaches
Yep
Or 2 hours behind, same deal.
If I do change, I usually change 2-3 days into a trip. Keep in mind your body really only shifts an hour or so a day, so there's no rush to do it on an international flight. Waiting a few days is fine, and you're likely to have more downtime later to pick a good time to adjust things.
live4sw
@live4sw
Mar 01 2017 21:14
And if you did want to change, you'd just change pump time, receiver time, and rig timezone with sudo dpkg-reconfigure tzdata?
Dana Lewis
@danamlewis
Mar 01 2017 21:14
But I've been in Hawaii for 2 weeks (2 hours off my normal) and never saw a noticeable effect on my BGs
Yep. Exactly
Or do that and use the rig set other two devices with oref0-set-device clock or whatever that is (tab complete ;))
Matthias
@ceben80
Mar 01 2017 21:15
@danamlewis welcome back :wink:
Dana Lewis
@danamlewis
Mar 01 2017 21:16
@ceben80 driving to the airport. Sad :panda_face:
Matthias
@ceben80
Mar 01 2017 21:16
ah okay
John Benjamin
@Bender1061
Mar 01 2017 21:17
@danamlewis I'm currently looking into deleting the monitor folder contents if the latest monitor/glucose reading is greater than 5 mins ahead, to fix the moving western on the timezones.
Matthias
@ceben80
Mar 01 2017 21:17
tons of pancreas in your luggage @danamlewis :grimacing:
Dana Lewis
@danamlewis
Mar 01 2017 21:18
@ceben80 I have a friendly pancreas pack mule to help distribute the weight ;) (not that the Edison rigs way that much, but still :smile: )
Matthias
@ceben80
Mar 01 2017 21:19
:smile:
Dana Lewis
@danamlewis
Mar 01 2017 21:19
@Bender1061 :+1:
fezulin
@fezulin
Mar 01 2017 21:38
Hi, I have a question about power supply of the Explorer Board.
I noticed that the Explorer Board is getting very hot while it is connected with micro USB (while the battery is charging).
I am planning to change the circuit as shown in the following picture. (Using a Micro-USB Breakout like this: https://www.adafruit.com/products/1833)
In this case, Explorer Board would get 5V on JST connector, not just 3,7V from the LiPo battery. Could this do any damage on the Explorer Board? Or are there other reasons, not to do this?
Unbenannt.JPG
fjungman
@fjungman
Mar 01 2017 21:41
@fezulin Just to clarify, you have a charging circuit board between the +5V and the battery in the top/middle box, right?
fezulin
@fezulin
Mar 01 2017 21:43
@fjungman Yes, this circuit is directly connected to the battery.
fjungman
@fjungman
Mar 01 2017 21:44
I'm not sure how the charger works on that one, but I don't think they are designed to see 5V on the Vbat lines, but maybe it can. Remember, that USB +5V is spec'd to +5.25V, but expect slop from cheapo chargers, so the Edison charger should be able to handle +6V on the Vbat line to live.
Maybe the designer can chime in...
RedCyclist1
@RedCyclist1
Mar 01 2017 21:45
@danamlewis I was trying to set Max Basal Temp Rate by going into Basal/Cancel Temp Basal... I clicked there but I am now afraid I impacted the openAPS function... it is now saying set/edit Temp Basal rate. So I need to reset anything?
fjungman
@fjungman
Mar 01 2017 21:46
@fezulin Wait, no. That does not have a charging circuit built in. That thing will catch on fire if you put +5V on the wires...
Dana Lewis
@danamlewis
Mar 01 2017 21:46
@RedCyclist1 no. Just back arrow out of it.
If you do set a manual temp. It won't hurt anything
OpenAPS will just set the next needed temp and cancel that in the next read/run
The only thing you could do to "break" the loop is to set basals to be % instead of absolute. But easy fix if you accidentally do that.
fezulin
@fezulin
Mar 01 2017 21:49
@fjungman Ooops. I was told the circuit should avoid overcharging and deep discharge. But - actually I did not ask, if I could connect 5 V directly...
RedCyclist1
@RedCyclist1
Mar 01 2017 21:49
@danamlewis Whew... don't want to screw it up 1 hr into this... :/
fjungman
@fjungman
Mar 01 2017 21:52
@fezulin You would need something like this to charge it:
Scott Leibrand
@scottleibrand
Mar 01 2017 21:52
@fezulin before doing anything I would open an issue on the Explorer board repo to confirm with Morgan. Also note that the new boards shipping this next week have a lower charge rate (250mA instead of 500) to help avoid overheating
fezulin
@fezulin
Mar 01 2017 21:54
@fjungmanI just found the same link! Ok, I will do so.
@scottleibrand Thank for that information. In my specific case, I do have the Explorer Board from january 2017.
John Benjamin
@Bender1061
Mar 01 2017 21:54
@Fusioncld_twitter @scottleibrand Guys I just had this issue, and I sent and email to info@enhancedradio.com they said this has been a problem with several of the boards, and he is shipping me a new one as soon as they get their next shipment. I had 1 go bad like out of the 4 I
I've ordered
Opps Sorry not @Fusioncld_twitter I meant @fjungman
fjungman
@fjungman
Mar 01 2017 21:56
:+1:
Matthias
@ceben80
Mar 01 2017 22:01
@scottleibrand ...500 mA for me works fine :+1:
RedCyclist1
@RedCyclist1
Mar 01 2017 22:03
I just plugged in my rig battery for the first time. How do I know its charging? How do I monitor it?
fezulin
@fezulin
Mar 01 2017 22:05
@RedCyclist1 You are using the Explorer Board? Battery connected via JST? Then a second red LED should be visible.
RedCyclist1
@RedCyclist1
Mar 01 2017 22:10
@fezulin Yes, I am using an explorer board. The battery is in the jp1 port. I have 2 led lights but I had the same 2 lights before I plugged the battery in.
fezulin
@fezulin
Mar 01 2017 22:11
If you unplug the usb-cable, the powersupply will come from the battery. In this case, you will have 1 LED only.
Matthias
@ceben80
Mar 01 2017 22:11
I have the same always 2 LEDs on
RedCyclist1
@RedCyclist1
Mar 01 2017 22:11
So there is no way to know if its charging currently?
Matthias
@ceben80
Mar 01 2017 22:12
But not overheated :wink:
fezulin
@fezulin
Mar 01 2017 22:12
@RedCyclist1 I my case: Explorer Board gets too hot to touch it.
If the battery is fully charged, it cools down again.
Matthias
@ceben80
Mar 01 2017 22:15
But as Scott said raise an issue regarding your Board to Morgan @fezulin
Matt Pressnall
@logichammer
Mar 01 2017 22:21
Installer and config went really smoothly and I love being able to see what her rigs are doing without having to SSH in...
Matt Pressnall
@logichammer
Mar 01 2017 22:33
Anyone know if the new Explorer Boards from Morgan have shipped? I know it was supposed to be end of February...just curious. Thanks!
Tim Street
@tim2000s
Mar 01 2017 22:33
The easiest way to know you're charging is to check the NS battery pill. If it says 67%/3.8v constantly, you are charging @RedCyclist1
Scott Leibrand
@scottleibrand
Mar 01 2017 22:35
If the red light in the corner is on and the battery is attached to the JST connector, that means it's charging. It will go out when fully charged.
RedCyclist1
@RedCyclist1
Mar 01 2017 22:35
@tim2000s That is for the rig battery? I am showing 65%/3.83v
@scottleibrand Thanks, Good to know!
Tim Street
@tim2000s
Mar 01 2017 22:36
That 3.8v is the key. If you see that while plugged in then that usually means charging.
fjungman
@fjungman
Mar 01 2017 22:52
I've been trying to get Bluetooth tethering to work on the Edison. I've followed the docs, but it just doesn't work. I can't test it easily, as the step for disabling WiFi doesn't work, and with my wife working from home, turning off the wifi is asking for trouble... I know it is not working now, as we looked when I dropped my son off at school, and it had not connected, but tethering was active (0 connections). I'm running Jubilinux, per the docs...
It does pair, but then when I kill and restart BT, per the docs, I can never get past the next step, which is: sudo hciconfig hci0 name $HOSTNAME
The docs say: If you get a Can't change local name on hci0: Network is down (100) error, start over with killall and wait longer between steps.
Dana Lewis
@danamlewis
Mar 01 2017 22:54
When did your Edison get flashed?
fjungman
@fjungman
Mar 01 2017 22:54
But it does not matter how long or short I wait, it will never give me the right response.
Eric
@ecc1
Mar 01 2017 22:54
Found another bug in history record parsing in decocare: if you set an insulin sensitivity > 255, it won't be interpreted correctly (and will create an incorrect sensitivity schedule in addition to the wrong sensitivity value). See https://github.com/openaps/decocare/issues/8#issuecomment-283494967 for the details, and https://github.com/ecc1/medtronic/blob/master/sensitivities.go for an example of the fix.
fjungman
@fjungman
Mar 01 2017 22:54
Last month.
Dana Lewis
@danamlewis
Mar 01 2017 22:55
@fjungman I would try giving it even longer than you'd expect...but if all else fails I'd try flashing again. Sometimes a fresh flash is all it takes
fjungman
@fjungman
Mar 01 2017 22:56
@danamlewis Reflashing everything and reinstalling OpenAPS? Or can I just flash the OS underneath? I didn't create a backup yet, as I don't expect it to be a problem like it was on RPi.
Maybe I'm being naive about that...
katie disimone
@Kdisimone
Mar 01 2017 22:57
@fjungman Not to say this is the case…but I just want to double check….You aren’t waiting to see can’t change local name on hci0, correct? There’s been a couple people who have accidentally read that line as expecting that message to pop up and they keep restarting the process when they don’t see it. When in fact, that’s the message that you DO NOT want to see.
fjungman
@fjungman
Mar 01 2017 22:58
I see that message, every time after I pair it. It works, albeit after a couple tries, the first time, but then it gives the message every time.
katie disimone
@Kdisimone
Mar 01 2017 22:58
oh, ok…just making sure :smile:
fjungman
@fjungman
Mar 01 2017 22:58
...Yeah, I could see how you could interpret the docs that way...
Thanks!
Dana Lewis
@danamlewis
Mar 01 2017 23:01
Yes to reflash and start over - so may want to wait for a better time to do that. But if nothing else gets it tethered, it's worth re-flashing because that's been the main thing everyone who got it working had to do
fjungman
@fjungman
Mar 01 2017 23:03
@danamlewis Thanks, I'll keep that in mind. I really hoped the Edisons would no longer need this "nuclear option" for issues. RPi ran for months without issue, once I tie-wrapped the power cord so it couldn't move and momentarily kill the power.
Dana Lewis
@danamlewis
Mar 01 2017 23:04
It will loop just fine without it. But if you want to do Bluetooth tethering, then this is the one-time needed step to achieve that.
fjungman
@fjungman
Mar 01 2017 23:05
Oh, ok. Must be an issue with the OS.
Dana Lewis
@danamlewis
Mar 01 2017 23:05
IMO Bluetooth tethering and not having to toggle hotspot when leaving wifi is definitely worth the extra hour or less needed to reflash and rerun everything.
Eric
@ecc1
Mar 01 2017 23:09

@fjungman The magic sauce for BT tethering is how the BT driver gets its address patched into its firmware at boot time, in /etc/rc.local. Mine contains this:

mount -r /dev/mmcblk0p5 /mnt
bd_addr=$(cat /mnt/bluetooth_address)
umount /mnt

rfkill unblock bluetooth

brcm_patchram_plus \
        --baudrate 3000000 \
        --bd_addr $bd_addr \
        --enable_hci \
        --enable_lpm \
        --no2bytes \
        --patchram /etc/firmware/bcm43341.hcd \
        --use_baudrate_for_download \
        /dev/ttyMFD0 >/dev/null 2>&1 &

It's reading the BT address from a special eMMC partition, and passing that to brcm_patchram_plus. Thank @kenstack for finding this.

But now I see that it already sometimes works for you (do you get as far as a bnep0 device being created?)