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

19th
Jun 2017
marafie
@marafie
Jun 19 2017 00:10
That's when I use normal U100
Scott Leibrand
@scottleibrand
Jun 19 2017 00:10
I'm not following: can you explain in more detail?
Or feel free to try in your native language, and I'll see if I can make sense of it using Google Translate...
(kudos to you and everyone else who comes here and speaks English to communicate with us ignorant Americans)
katie disimone
@Kdisimone
Jun 19 2017 01:35

@scottleibrand ok…I let my rig battery die and about 2 minutes after it died, I plugged it into a power source. Looping has been stopped since it died. The pump loop is giving the error

Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?

Which is fine…I kind of wanted to troubleshoot this thing anyways. BUT, how? I can see the two little lights are on. Oddly (to me at least) despite me shutting down cron sudo service cron stop, if I run openaps mmtune I get the spidev already in use error message. I wouldn’t have expected that message if cron was stopped.

anything I should try to see if there’s a solution to this error message (short of ccprog and/or rebooting)

Cameron Chunn
@applehat
Jun 19 2017 01:39
you need to also killall openaps and oref0-pump-loop if they are currently running
Also, I've decided my phone wants me dead. It always decides to stop sharing internet to my rig ONLY when i've just eaten far more carbs then I probably should.
ericmtx
@ericmtx
Jun 19 2017 01:39
with the red lights, I've been experimenting with running reset_spi_serial.py to reset them manually @Kdisimone
katie disimone
@Kdisimone
Jun 19 2017 01:40
@applehat doesn’t stopping the cron kill all openers? I’m pretty sure it does
@ericmtx what exactly have you been doing? Can you explain? sorry...
Cameron Chunn
@applehat
Jun 19 2017 01:41
@Kdisimone It stops them from running, but if cron already launched one before you stopped it, it would still try and complete first.
Scott Leibrand
@scottleibrand
Jun 19 2017 01:41
No, stopping cron just prevents it from starting a new pump-loop.
Jinx
Dana Lewis
@danamlewis
Jun 19 2017 01:41
@applehat #dramatic
katie disimone
@Kdisimone
Jun 19 2017 01:41
oh
nice
ericmtx
@ericmtx
Jun 19 2017 01:41
on the command line, using ssh, running that command when I see the rig has the two lights. Per a discussion from earlier today from Scott L
I've added it to my mmtune and listening aliases now to see if that will help stop the red lights from happening in the first place
katie disimone
@Kdisimone
Jun 19 2017 01:42
If you show me how you have it, I’ll PR and test it. :) deal?
Cameron Chunn
@applehat
Jun 19 2017 01:42
@scottleibrand Do you want your soda Diet or Regular?
Dana Lewis
@danamlewis
Jun 19 2017 01:43
Diet so I can steal it ;)
Cameron Chunn
@applehat
Jun 19 2017 01:43
@danamlewis 220mg/dL of DEATH. I AM DYING.
Dana Lewis
@danamlewis
Jun 19 2017 01:43
Owie
Cameron Chunn
@applehat
Jun 19 2017 01:43
Disregard the fact that for years I probably sat there with little care =/
Scott Leibrand
@scottleibrand
Jun 19 2017 01:43
Dying vewwwwwy slooooowwwwwly
Dana Lewis
@danamlewis
Jun 19 2017 01:43
Sorry for re-calibrating your body
Cameron Chunn
@applehat
Jun 19 2017 01:44
Yeah this is uncomfortable now and its all your fault
ericmtx
@ericmtx
Jun 19 2017 01:44
mmtune = ! bash -c "reset_spi_serial.py 2>/dev/null; oref0_init_pump_comms.py; $
wait-for-silence = ! bash -c "reset_spi_serial.py 2>/dev/null; (mmeowlink-any-p$
wait-for-long-silence = ! bash -c "reset_spi_serial.py 2>/dev/null; echo -n \"L$
katie disimone
@Kdisimone
Jun 19 2017 01:44
:+1: :sparkles:
ericmtx
@ericmtx
Jun 19 2017 01:45
those are incomplete lines - just showing the parts that are diff than usual. I'm running dev oref0 (SMB enabled)
katie disimone
@Kdisimone
Jun 19 2017 01:45
ok…I’ll give it a whirl thanks!
have you had a chance to test it yet?
Cameron Chunn
@applehat
Jun 19 2017 01:46
I'm gonna PR oref0-setup to add a alias for "wtfcomms" that runs /etc/init.d/cron stop && killall -g openaps && killall -g oref0-pump-loop && reset_spi_serial.py && openaps mmtune
ericmtx
@ericmtx
Jun 19 2017 01:46
It's running that way as of 10 minutes ago. we'll see how it goes. The two red lights started a day or two after my latest full reflash
was hoping the reflash would stop them, but I suspect a hardware issue with the radio on the explorer board
Cameron Chunn
@applehat
Jun 19 2017 01:47
@ericmtx I fixed all my radio issues by physically bending the board... so I wouldn't be surprised if theres a batch of explorers with some issues.
katie disimone
@Kdisimone
Jun 19 2017 01:47
@applehat that would take care of master and dev branches then too, right?
ericmtx
@ericmtx
Jun 19 2017 01:48
@applehat the old bending the board trick, eh? maybe I'll wait until I get the new one to break out the pliers
katie disimone
@Kdisimone
Jun 19 2017 01:48
seeing as how I have an active problem going on right now (experimental rig…so no hurry), i’m game to add the alias and see if it works. This failure was most definitely a lipo running out of battery
Cameron Chunn
@applehat
Jun 19 2017 01:48
@ericmtx no pliers required. Just print @rsilvers129's 2500mAh case and accedently miss one of the rails that the board slides into on one side. Problem solved.
katie disimone
@Kdisimone
Jun 19 2017 01:49
would I have to be in myopenaps to add the alias?
ericmtx
@ericmtx
Jun 19 2017 01:49
he's a genius
yes - into openaps.ini
katie disimone
@Kdisimone
Jun 19 2017 01:49
:+1:
ericmtx
@ericmtx
Jun 19 2017 01:50
those are just edited aliases of the existing lines. Just adding the reset_spi_serial.py 2>/dev/null; portions
Cameron Chunn
@applehat
Jun 19 2017 01:50
Confirm fix by removing board and inserting it correctly and having no radio - then refix by jamming board in sideways again and never opening the case ever again.
thats my current game plan until I get another explorer =P
katie disimone
@Kdisimone
Jun 19 2017 01:50
can’t just use openaps alias add wtfcomms "/etc/init.d/cron stop && killall -g openaps && killall -g oref0-pump-loop && reset_spi_serial.py && openaps mmtune”?
ericmtx
@ericmtx
Jun 19 2017 01:50
@applehat I think that's how penicillin was invented
Cameron Chunn
@applehat
Jun 19 2017 01:50
Im not 100% sure @Kdisimone
katie disimone
@Kdisimone
Jun 19 2017 01:51
well, i’m down for experimenting
Cameron Chunn
@applehat
Jun 19 2017 01:51
I meant a system level alias, not an openaps one
ericmtx
@ericmtx
Jun 19 2017 01:51
@Kdisimone oh sorry - thought you were talking about my alias edits, not the wtfcomms
katie disimone
@Kdisimone
Jun 19 2017 01:51
(I like both answers…it’s all good)
Cameron Chunn
@applehat
Jun 19 2017 01:52
alias wtfcomms="cd ~/myopenaps && /etc/init.d/cron stop && killall -g openaps && killall -g oref0-pump-loop && reset_spi_serial.py && openaps mmtune" <-- but that in ~/.bashrc
then it becomes an alias, just like l
katie disimone
@Kdisimone
Jun 19 2017 01:53
oh, you wanted an alias like that. I thought you meant an openaps alias. Gotcha
Cameron Chunn
@applehat
Jun 19 2017 01:53
alias mypancreasisdark="cd ~/myopenaps && /etc/init.d/cron stop && killall -g openaps && killall -g oref0-pump-loop && reset_spi_serial.py && openaps mmtune && /etc/init.d/cron start"
starting cron again when its done would be smart if you just want it as a "uh, well lets see if this fixes it" type alias
Cameron Chunn
@applehat
Jun 19 2017 01:59
@ericmtx Stay healthy by mixing up to 10% penicillin into your pump.
Dana Lewis
@danamlewis
Jun 19 2017 02:04
@applehat ::raises eyebrows::
katie disimone
@Kdisimone
Jun 19 2017 02:05
well, i tried via the alias way, but it didn’t go through all the way to the openaps mmtune.
root@edison2:~# nano ~/.bash_profile
root@edison2:~# source ~/.bash_profile
root@edison2:~# fix-comms
[ ok ] Stopping cron (via systemctl): cron.service.
openaps: no process found
root@edison2:~/myopenaps#
Cameron Chunn
@applehat
Jun 19 2017 02:07
I'm bad at bash. What's the alternative to && that keeps going regardless of the return code of the previous command?
katie disimone
@Kdisimone
Jun 19 2017 02:07
perhaps the alias needs to be specific to the master vs dev
Cameron Chunn
@applehat
Jun 19 2017 02:08
Replace all my && with ;
Sorry. On my phone now so writing code just became hard. Haha
katie disimone
@Kdisimone
Jun 19 2017 02:09
I think it’s a || (oops, that’s or if)? oh nevermind, you type faster than I poke and guess. Sadly I already ran the reset_spi_serial.py so now the problem is gone.
I hate wasting an error
Cameron Chunn
@applehat
Jun 19 2017 02:10
Haha. Well change it anyway and see if it runs that command successful anyway.
Save it for the next one :)
Martin Haeberli
@mhaeberli
Jun 19 2017 02:10
question re g5 calibration: a) calibrate twice a day (am/pm)? b) calibrate for example BG 172, CGM 152, c) BG 213, CGM 180, d) BG 61, CGM 88, e) BG 75, CGM, 113 ? multiple answers permitted - if so, why?
(my own logic on cases d and e is that low-temps will stop early if CGM 17-38 points higher than serum BG …)
Cameron Chunn
@applehat
Jun 19 2017 02:11
I live dangerously and calibrate my g5 under the conditions: 1) Oh man, I haven't calibrated this thing in a while or 2) no way that's the right blood glucose...better calibrate.
katie disimone
@Kdisimone
Jun 19 2017 02:11
well, i’ll let my battery die overnight again and play with alias next time. :)
Martin Haeberli
@mhaeberli
Jun 19 2017 02:12
@applehat :+1:
katie disimone
@Kdisimone
Jun 19 2017 02:12
calibrating no more than twice a day has worked wonders for us @mhaeberli . However, once a day I think has been even better. Just on a completely and totally flat time. Before she rolls out of bed or after dinner has allllll disappeared.
Cameron Chunn
@applehat
Jun 19 2017 02:14
I've had sensors where I forget for days (pre loop) and then it's still +/-5mg/dL
katie disimone
@Kdisimone
Jun 19 2017 02:15
wait error still there. Pump-loop is still showing the do you have the right port error. Odd, the lights have gone out and the mmtune was successful. But, loop not happy yet
Cameron Chunn
@applehat
Jun 19 2017 02:15
Then this current one seems to be off by 20 every time I remember.
ericmtx
@ericmtx
Jun 19 2017 02:15
but @applehat wouldn't you still need to run that alias manually when the error happens? For my daughter's rig, the two red lights can happen several times a day randomly. Would love to be able to run the reset_spi_serial automatically based on the radio error
thus adding to the openaps aliases to see if that helps
Cameron Chunn
@applehat
Jun 19 2017 02:16
^ the alias is a good idea.
ericmtx
@ericmtx
Jun 19 2017 02:17
was thinking of scheduling a reset every 30 minutes in cron but don't want to blow up a good loop process if I don't have to.
Martin Haeberli
@mhaeberli
Jun 19 2017 02:17
@applehat exactly re off by 20 every time ... - so what IF known case occurs where fingerstick is off by that much (30 points lower - BG 80 CGM 110) - (Nightscout shows us this, of course…)
katie disimone
@Kdisimone
Jun 19 2017 02:18
alias fix-comms="cd ~/myopenaps && /etc/init.d/cron stop && killall -g openaps ; killall -g oref0-pump-loop ; reset_spi_serial.py && openaps mmtune && /etc/init.d/cron start”
root@edison2:~# fix-comms
[ ok ] Stopping cron (via systemctl): cron.service.
openaps: no process found
oref0-pump-loop: no process found
mmtune: pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
[ ok 612", 5, -53 [....] Starting cron (via systemctl): cron.service.
root@edison2:~/myopenaps#
Cameron Chunn
@applehat
Jun 19 2017 02:18
I have not had a single radio error since using my patent pending Offcant Mounting™ solution.
Sweet.
katie disimone
@Kdisimone
Jun 19 2017 02:20
@ericmtx Yes, ultimately…I’d like both. A manual command and a cron that is looking for it.
There was a BT fix that grep’d the error message and rebooted when it was found. May be a good starting place to work on a .sh for that
ericmtx
@ericmtx
Jun 19 2017 02:21
oh good plan
katie disimone
@Kdisimone
Jun 19 2017 02:21
Well, the alias worked!
I’ll PR that in and then work on getting the error to happen again to test a cronline perhaps.
Cameron Chunn
@applehat
Jun 19 2017 02:22
If I ever manage to get a laptop I can develop on I can actually help fix these issues 🤔
katie disimone
@Kdisimone
Jun 19 2017 02:23
@ericmtx has your openaps alias edit worked well? Or haven’t had long enough to test it?
This was the bt fix script
radio_errors=`tail /var/log/openaps/pump-loop.log | grep "spidev5.1 already in use"`
if [ ! -z "$radio_errors" ]
then
  logfile=~/reset-log.txt
  date >> $logfile
  echo "Radio error found" | tee -a $logfile
  wall "Rebooting to fix radio errors!"
  reboot | tee -a $logfile
fi
that way you had a log file of when the fix ran
and then every 10 min cron */10 * * * * /root/reboot_to_fix_radio_if_needed.sh
ericmtx
@ericmtx
Jun 19 2017 02:26
so far so good, but won't really know until tomorrow. If no radio lockups over the next 24 hours that will be a good sign. thanks for the BT fix script - makes sense.
Cameron Chunn
@applehat
Jun 19 2017 02:32
@Kdisimone that's not a btfix, that's a pump radio fix.
katie disimone
@Kdisimone
Jun 19 2017 02:32
I just checked my two in-service rigs and we haven’t had any of those errors for 3 days…so I am gathering the error must be fairly board specific?
Cameron Chunn
@applehat
Jun 19 2017 02:32
Modifying that to run my alias vs rebooting might not be a terrible idea.
katie disimone
@Kdisimone
Jun 19 2017 02:33
@applehat sorry…I shoud’ve been more specific that error came up when the BT tether was switching. Scott found a fix to the underlying issue and I don’t use the script anymore
Cameron Chunn
@applehat
Jun 19 2017 02:33
Tho I know @scottleibrand probably removed it for a reason.
Ahh. Word.
katie disimone
@Kdisimone
Jun 19 2017 02:33
I think that script would be pretty easy
Cameron Chunn
@applehat
Jun 19 2017 02:33
Well, same logic could be applied to the radio.
katie disimone
@Kdisimone
Jun 19 2017 02:34
exactly
Screenshot_6_18_17__7_38_PM.jpg
katie disimone
@Kdisimone
Jun 19 2017 02:40
assuming the alias was made already
Cameron Chunn
@applehat
Jun 19 2017 02:44
Dang it. I have a 300mg/dL in my logs now. Haven't seen one of those in a long time.
Feels like failure and iritability.
katie disimone
@Kdisimone
Jun 19 2017 02:53
@applehat you helped me. even at 300.
(here’s where scott wrote that fix into oref0 https://github.com/openaps/oref0/blob/master/bin/oref0-radio-reboot.sh)
ericmtx
@ericmtx
Jun 19 2017 03:08
double red lights again - so no go on the alias fixes to reset. Seems to hang just as it gets into the line "Listening for 30s silence before mmtuning........................................." and then never finishes, red lights shining on the radio
And no error about "could not get subg_rfspy" in the log before that, so I can't key off that. I think I'll set up a cron to restart the radio each 30 minutes as a preventative measure.
example: Starting supermicrobolus pump-loop at Sun Jun 18 21:53:02 CDT 2017 with 20 second wait_for_silence:
Waiting up to 4 minutes for new BG: ........glucose.json newer than pump_loop_completed
Listening for 30s silence before mmtuning: ........................................................................................................................................................................................................................................................................................
katie disimone
@Kdisimone
Jun 19 2017 04:47
@ericmtx argh. Sorry to hear that.
Cameron Chunn
@applehat
Jun 19 2017 05:45
I'm almost out of the 200s now. Heh
Lol, I seriously underestimated carbs in something.
PieterGit
@PieterGit
Jun 19 2017 06:49
@Kdisimone : nice fix-comms alias/script for pump communication. I think we must focus on the root causes and not on restarting/stopping cron workarounds. I'm working on getting the init and mmtune scripts more stable/robust but it takes more time than I hoped. Current dev mmtunes too much in some cases, and doesn't mmtune in other cases when it should. I'm also trying to get rid of the endless loops that probably get killed by other procesess (e.g. seq 1 800 stuff). We should stop hiding errors with > /dev/null. I still suspect one of the root causes is in mmeowlink, see oskarpearson/mmeowlink#60 . I hope @oskarpearson can help us explain how we can dig into finding and fixing the root causes of these rig-pump communication errors.
Scott Leibrand
@scottleibrand
Jun 19 2017 07:31
I think most of the > /dev/null stuff has been replaced (at least in oref0-pump-loop) with printing the last line of each error, which is enough to identify what is going on in almost all cases. we should probably consider moving non-SMB users over to oref0-pump-loop as well...
PieterGit
@PieterGit
Jun 19 2017 07:41
bad news... Intel announced to stop with the Edison, see http://qdms.intel.com/dm/i.aspx/C5E58142-4E04-4CBD-A7A6-BF330573055D/PCN115579-00.pdf
fidoman
@efidoman
Jun 19 2017 10:41
Will Intel replace it with a new option? or is Intel just stopping altogether? Anyone know?
live4sw
@live4sw
Jun 19 2017 10:41
Jeez, the T1 community has had some terrible luck with device makers. Really sad to hear that.
fidoman
@efidoman
Jun 19 2017 10:43
I just ordered an extra one. I figure if I have backup pumps that are no longer manufactured, I better have a couple (at least) backup Edisons. Does this also mean the explorer boards are going to be out of business too?
fidoman
@efidoman
Jun 19 2017 10:55
Just ordered another explorer board. I like this configuration, so I hope to have enough backups to keep things going until other viable options exist.
Diadon81
@Diadon81
Jun 19 2017 11:04
Maybe intel is going to announce the next generation of edison board.
fidoman
@efidoman
Jun 19 2017 11:06
If they don't, then there are lots of other options out there ... but it would take a lot of testing / work and I don't know if the explorer board would plug-n-play with any of them.
Savek-CC
@savek-cc
Jun 19 2017 12:15
maybe something like this one: http://nanopi.io/nanopi-neo-air.html ?
Chris Oattes
@cjo20
Jun 19 2017 12:16
@betluis Sorry, only just saw your message. what was the BG doing in the 15 minutes or so before that? Bit hard to tell what it should have been doing without the graph
Tom Boudreau
@TomBoudr_twitter
Jun 19 2017 12:50
Have people been seeing the NS app for iOS crashing super often on older hardware? - My older iPadMini used to run it perfectly and maybe crash once a day... now it rarely stays open
Andy Sharrow
@dramageek
Jun 19 2017 12:54
@applehat RE: testing frequency- I've found the same here. For the first few days of a sensor I'll check more often to make sure it gets a good curve. After that, once a day seems like plenty. When I restart the receiver I'll check a few times that day and the next to undo the compensation the receiver is throwing in thinking it's a new sensor. Usually only run a sensor for two weeks, so I think I've only ever had one go bad in that time length.
Eric
@ecc1
Jun 19 2017 12:55

I played around with a predecessor of the NanoPi Neo Air, and was a bit disappointed by its power consumption and lack of mainstream kernel. I think I would go with the RPi Zero W at this point, since it has much bigger market share / community, and a reasonable track record of keeping the kernel and Linux distribution up-to-date.

But in either case, a new board or "hat" would have to be designed, since the Explorer is Edison-specific.

(I had just started working with a hardware designer on my own Edison-based board a few weeks ago, so this is all very on point for me. Anyone with sources at Intel, please share what you can find out!)

Savek-CC
@savek-cc
Jun 19 2017 13:08
true - apprarently 160mA while idle is rather disappointing
Phil
@drnoname82_twitter
Jun 19 2017 13:24
James Corbett posted some info on a working Pi Zero W/TI-Stick setup in the Facebook Looped Group. He seemed quite happy. Any info on the power consumption?
ejoe132
@ejoe132
Jun 19 2017 13:28
Since updating to the dev branch anytime my edison loses power to battery dying or having to restart to get working again, I am getting the commsecveption, I can fix it everytime by killall -g openaps; reset_spi_serial.py; openaps mmtune but wondering if anyone knows a fix for this error?
Eric
@ecc1
Jun 19 2017 13:30
@drnoname82_twitter I haven't measured it except in comparison to my Edison rig -- it only gets half the battery life, so I'm guessing around 120 mA idling. The normal way to power it is via 5V USB, so that's also less efficient than direct LiPo connection and a possible area for improvement.
Mike
@libxmike
Jun 19 2017 14:34
@ecc1 sound like you beating on a dead horse with Edison board design, Intel killed all Dev boards but the big one, Curie.
Eric
@ecc1
Jun 19 2017 14:35
Yes, this news caused me to shelve that project and look at alternatives. Like I said, currently leaning towards a RPi Zero W "hat"
Mike
@libxmike
Jun 19 2017 14:38
with you G Code I think RPi Zero W would be the best solution with Ti over Serial, I wanted to make a breakout PCB to connect Ti to Pi pins so would be swap-able between Pi Zero and RPi3
as Ti over USB always cousin problems
Cameron Chunn
@applehat
Jun 19 2017 15:24
I'm a fan of a Pi Zero W as well. Much easier to hack on then the Edison. The power consumption isn't as good, but for the thickness of a 2nd 2500mAh pack you'd get the same life. Gotta take what we can get.
Cameron Chunn
@applehat
Jun 19 2017 15:30
Random side note: adding an RTC would be super awesome on whatever pi hat gets made (if on gets made)
garykidd
@garykidd
Jun 19 2017 15:31
@ejoe132 lots of reported errors like yours unfortately
live4sw
@live4sw
Jun 19 2017 15:32
It's really unfortunate news, though they will keep shipping until mid-December per the full announcement. Very curious to hear the Scott/Dana/etc reaction.
garykidd
@garykidd
Jun 19 2017 15:33
i think theres a reluctance to automate a fix in code since its not known exsctly what is causing the issue. hopefully we can figure out and automate a solution
Mike
@libxmike
Jun 19 2017 15:36
@applehat @ecc1 for Pi Zero 18650 LiPo would last at least 24h, size is also ok.
2017-03-10 16.29.12.jpg
2017-03-10 16.28.30.jpg
the best thing is, you can build excellent offline rig with OLED display, you can do it with Edison but missing pins on the explorer board makes it not easy
Mike
@libxmike
Jun 19 2017 15:47
Screenshot 2017-06-19 17.46.02.png
something like that, case was designed for Edison and 18650 but have to make new one for Rpi Zero
ejoe132
@ejoe132
Jun 19 2017 15:47
@garykidd Ok, just curious as Ive tried ways around it but just any power loss get it. Still trying to figure out why Im not getting smb working, enabled it, turned it all on in preferences, nothing yet
live4sw
@live4sw
Jun 19 2017 15:48
Question re: heat - on my Explorer + 2000mAH lipo rig, I have it in a black project box, usually taped closed but when charging slightly ajar to allow the USB cable in. I've found it gets pretty hot to the touch when I need to occasionally switch it off. Nothing crazy, but enough for a minor "ow". Fairly normal?
ejoe132
@ejoe132
Jun 19 2017 15:49
@live4sw My battery gets pretty hot when charging and sometimes even randomly when running, edison is the same, lots of heat there
fidoman
@efidoman
Jun 19 2017 15:50
@live4sw - I suggest monitoring the edison temperature with the sensor program. I use an alias alias temp='sensors | grep '\''Core 0'\'''
Here's what mine usually runs while not charging and in my pocket ... Core 0: +55.0°C (high = +90.0°C, crit = +90.0°C)
55 isn't all that hot ... anything above 70 would be worrisome
live4sw
@live4sw
Jun 19 2017 15:54
Thanks for the suggestions @ericfeibelman ! So that just creates an alias such that typing temp will output the temperature on the Edison?
I will try that tonight
fidoman
@efidoman
Jun 19 2017 15:57
Yep, I also use the following to just get the temperature sensors | grep "Core 0" | awk '{print $3} '
live4sw
@live4sw
Jun 19 2017 15:58
Nice. Was hot to the touch but not so hot as to be super worrying. But I saw a few minor marks on the business card that I wrap around the Lipo (which the Explorer board sits atop)
ejoe132
@ejoe132
Jun 19 2017 16:05
Any tips on what I may be missing on getting smb working? Enabled it, turned on in preferences, have tried a few times setting eating soon mode and havent had any luck, edison, cgm and pump are all within 60s of each other on time
Dana Lewis
@danamlewis
Jun 19 2017 16:08
What do your logs say? And which preferences did you toggle?
katie disimone
@Kdisimone
Jun 19 2017 16:20

@ericfeibelman @live4sw lm sensors has been added to the installations now. So if you update your rig, you can just type sensors and the temps will display.

If you don't want to update rig, you can add it manually by sudo apt-get install lm-sensors

Dana Lewis
@danamlewis
Jun 19 2017 16:31

Re: Edisons

They zig, we zag.

Don't panic, folks. If you do want to stock up on Edisons, feel free to. (Also, ERD just told me that they still have a nice big shipment of Explorer Boards coming in next month, and likely will have Edisons to match that stock.)

However, back in the day when we were kids, we started looping on Pi's and have used all sorts of hardware options to do OpenAPS with. Edison has just been the latest.

Remember, current rigs won't stop working.

We'll all keep finding new hardware options we can use - it's just a question of sorting through and finding the next best option, and updating the docs like we always do, to match.

Greg Eden
@skaffen
Jun 19 2017 16:38
Hello. Have a new install - edison/explorer board talking to a Dexcom G5 & Medtronic 554 pump. Seems to have an issue with lack of readings from the Dexcom
"openaps get-bg
AttributeError: 'NoneType' object has no attribute 'iter_records'
grep: cgm/cgm-glucose.json: No such file or directory
cp: cannot stat ‘cgm/glucose.json’: No such file or directory"
Any ideas? :)
Dana Lewis
@danamlewis
Jun 19 2017 16:38
Do you have a sensor going?
live4sw
@live4sw
Jun 19 2017 16:46
@Kdisimone Thanks! When you say update rig, do you just mean the apt-get update && apt-get upgrade?
ericmtx
@ericmtx
Jun 19 2017 16:48
I still have a huge Pi2 w/ TI stick + 10000mah powerbank as an upstairs rig running Oref0/SMB. I keep threatening my daughter to put that thing in her purse after she's gotten used to the Edison/explorer.
Scott Leibrand
@scottleibrand
Jun 19 2017 17:00
@live4sw the lm-sensors install is in quick-packages. sounds like you want to just do the one-liner to install it manually
Martin Haeberli
@mhaeberli
Jun 19 2017 17:01
@danamlewis - re Edisons - feeling sad momentarily, but hoping that what happens next isn’t a “second best” but a “next even better” option, as, in a sense, the Edisons turned out to be for some compared to RPi3 based systems…
Dana Lewis
@danamlewis
Jun 19 2017 17:02
:+1:
PopcornPam
@PopcornPam_twitter
Jun 19 2017 17:04
Question about smb and small basal rates... I have been going low around midnight quite a bit. Background: I have a basal of .6 from 6am-10pm, and .5 from 10pm-6am. I also tend to eat the most in the evening. Even when fairly sure that I am correctly covering carbs, I often go high and hang out high (like 200-280) for a few hours. I have smb with carbs and temp targets enabled, so do not give correction.
Cameron Chunn
@applehat
Jun 19 2017 17:04
I dont think this is a bad thing, really. We will probably lose some of the power-sipping advantages of the edison but maybe gain some other niceness
PopcornPam
@PopcornPam_twitter
Jun 19 2017 17:04
The lows are generally after the system has used quite a few smb (and looking at the log, the logic totally makes sense)
I do not have the same problem if I eat a lot of carbs during the day, when my basal is higher. Is there a way to set times when smb can or can not be enacted? As in, no smb from x-y time?
Matthias Granberry
@mgranberry
Jun 19 2017 17:13
@PopcornPam_twitter My personal experience is that those lows come from basal rates, ISFs, or insulin DIAs that need adjustment. I would bet on basal rates in this case.
Cameron Chunn
@applehat
Jun 19 2017 17:13
@PopcornPam_twitter not currently, but it wouldn't be that hard to implement either in the pump loop, or through a cron script.
Matthias Granberry
@mgranberry
Jun 19 2017 17:14
but it is also possible to disable SMB with a temp target set >100
Greg Eden
@skaffen
Jun 19 2017 17:20
@danamlewis yes
@danamlewis the edison is chatting to the pump fine, and Nightscout, just not the G5
Greg Eden
@skaffen
Jun 19 2017 17:28
@danamlewis pump-loop.log has a few of these errors - Could not parse input data: { [Error: Cannot find module '/root/myopenaps2/monitor/glucose.json'] code: 'MODULE_NOT_FOUND' }
Scott Leibrand
@scottleibrand
Jun 19 2017 17:34
@skaffen yeah, glucose.json not found means you're not getting CGM data to your rig
and openaps get-bg's AttributeError: 'NoneType' object has no attribute 'iter_records'means that the rig isn't seeing the attached CGM. I would check your OTG adapter/cable, and see if the receiver shows up with lsusb
Martin Haeberli
@mhaeberli
Jun 19 2017 17:38
Jun 19 10:36:42 openaps0 pump-loop.log: Radio ok, Listening: .No pump comms detected from other rigs
Jun 19 10:36:48 openaps0 pump-loop.log: Old pumphistory: 
Jun 19 10:36:48 openaps0 pump-loop.log: Error, retrying
Jun 19 10:36:53 openaps0 pump-loop.log: Starting pump-loop at Mon Jun 19 10:36:53 PDT 2017:
Jun 19 10:36:56 openaps0 pump-loop.log: Traceback (most recent call last):
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/bin/mmeowlink-any-pump-comms.py", line 15, in <module>
Jun 19 10:36:56 openaps0 pump-loop.log:     app.run(None)
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/decocare/helpers/cli.py", line 113, in run
Jun 19 10:36:56 openaps0 pump-loop.log:     self.prelude(args)
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/cli/any_pump_comms_app.py", line 28, in prelude
Jun 19 10:36:56 openaps0 pump-loop.log:     super(AnyPumpCommsApp, self).prelude(args)
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/cli/base_mmeowlink_app.py", line 26, in prelude
Jun 19 10:36:56 openaps0 pump-loop.log:     self.link = link = LinkBuilder().build(args.radio_type, port)
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/link_builder.py", line 16, in build
Jun 19 10:36:56 openaps0 pump-loop.log:     return SubgRfspyLink(port)
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 55, in __init__
Jun 19 10:36:56 openaps0 pump-loop.log:     self.open()
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_interface.py", line 28, in open
Jun 19 10:36:56 openaps0 pump-loop.log:     self.check_setup()
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/subg_rfspy_link.py", line 72, in check_setup
Jun 19 10:36:56 openaps0 pump-loop.log:     self.serial_rf_spy.sync()
Jun 19 10:36:56 openaps0 pump-loop.log:   File "/usr/local/lib/python2.7/dist-packages/mmeowlink/vendors/serial_rf_spy.py", line 121, in sync
Jun 19 10:36:56 openaps0 pump-loop.log:     raise CommsException("Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?")
Jun 19 10:36:56 openaps0 pump-loop.log: mmeowlink.exceptions.CommsException: Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
Jun 19 10:37:02 openaps0 network.log: Starting oref0-online.
happening, or just an error, retrying, and no pump data - hints about why?
Martin Haeberli
@mhaeberli
Jun 19 2017 17:46
i have sometimes found (but here I’m remote and no reverse tunnel at the moment) that rebooting does the trick
ejoe132
@ejoe132
Jun 19 2017 17:52
@danamlewis Just hoping back after having to step out for awhile but with the smb not operating. The logs show the additional items such as minpredbg, iobpredbg, etc. And I have in preferences enabled enable uam, SMB with bolus, SMB with cob, smb with temptarget. I also set my remainingcarbscap at 88 to try to make it heavy handed and see if I could force it to try something
francesc0-cgm
@francesc0-cgm
Jun 19 2017 17:53
my new explorer is here and it is working ok...no more commsexception errors
so it was an hardware related issue
ejoe132
@ejoe132
Jun 19 2017 17:55
@francesc0-cgm when was your previous board made? Curious as Im having the commsexception error
Zakm0n
@Zakm0n
Jun 19 2017 17:57
anyone else ever seen intermittent wifi connection only on some routers with the edison?
katie disimone
@Kdisimone
Jun 19 2017 17:59

Yes. @Zakm0n look on the Papertrail page in the OpenAPS docs for the "flakey wifi" section near bottom. That avahi-daemon issue caused intermittent wifi issues for about 6 people I know. You can check for it in your logs.

http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-1/papertrail.html#optimize-papertrail-use

Zakm0n
@Zakm0n
Jun 19 2017 18:01
Also, when I ssh into my rig over usb, i get a ton of code constantly showing in the terminal like I have a trail command active
Martin Haeberli
@mhaeberli
Jun 19 2017 18:02
@Zakm0n I have the same problem over usb when stuff is unsettled with wifi ...
katie disimone
@Kdisimone
Jun 19 2017 18:02
@ejoe132 I think @danamlewis was trying to get you to examine your pump-loop logs for the error message. Do you see anything about checking for an autotune directory? Preferences alone do not enable smbs. You must specifically add microbolus during setup AND have dealt with autotune check (if you have a version of dev branch since that was merged in recently).
Martin Haeberli
@mhaeberli
Jun 19 2017 18:02
looks like maybe some kind of error / syslog stuff just shows up on terminal in that condition
technically, not ssh when direct usb
ejoe132
@ejoe132
Jun 19 2017 18:05
@Kdisimone I added microbolus flag in and in setup setup for it. Guess Im not familiar with the autotune check?
katie disimone
@Kdisimone
Jun 19 2017 18:07
@Zakm0n @mhaeberli those are kernel messages, you can turn them off for an individual session using dmesg -D. Or you can hard code it into the rig to prevent it for every session by nano /etc/rc.local and then adding a line sudo dmesg -n 1
19143271_10155355130186168_1654303744994857426_o.jpg
and yes, only with cabled connections do those show usually. this fix stops them for cabled connections)
Greg Eden
@skaffen
Jun 19 2017 18:08
@scottleibrand I've just got it working pulling data from Dexcom share. Can the rig not pull directly from the G5 via Bluetooth? Docs not very clear on that.
katie disimone
@Kdisimone
Jun 19 2017 18:09
@ejoe132 look in your pump-loop logs to see if there is an autotune check going on. that’s what i’m saying. I don’t know when you pulled your branch…but if you pulled after that check was merged into it…that could be what is holding you up from smb. if you pulled before that check was merged, then it would be something else. check your logs
Martin Haeberli
@mhaeberli
Jun 19 2017 18:09
@Kdisimone thx! yay
pump communications problems above plus just errors solved by rebooting rig. would like to prevent and automate, though
katie disimone
@Kdisimone
Jun 19 2017 18:13

@mhaeberli last night I posted a script that would check for that error message and fix it…although you’d have to setup the alias first. I am not smart enough to figure out the underlying issues for why the “have you got the right port?” message seems to be coming up more frequently for people…but I am also not wanting to deal with it when it comes up (or expect my kid to look for it yet).

So, I’ve programmed an alias into our boards and a script to fix it…but I need to test it. I’ll report back

PopcornPam
@PopcornPam_twitter
Jun 19 2017 18:15
Also, since installing developer mode, any time my BG is below 100, the predictions are way off, and pretty much always suggest that I am heading for dangerous low BG, though I rarely am. ANyone else have issues with the predictor line?
ejoe132
@ejoe132
Jun 19 2017 18:17
@Kdisimone when I look at the logs Im not seeing it say anything about autotune in each start of loop block? But I know its using autotune cause when I look in that file it has its changes listed
katie disimone
@Kdisimone
Jun 19 2017 18:17
@ejoe132 then it sounds like that isn’t your hangup for smbs
Dana Lewis
@danamlewis
Jun 19 2017 18:19
@popcornpam_twitter may be related to what you've put your preferences to. Want to paste your preferences?
Also, when is last time you updated?
ejoe132
@ejoe132
Jun 19 2017 18:20
@Kdisimone I just pulled this branch on saturday about mid day so not sure if thats pre or post the change your speaking of, just kinda at a loss at what im missing here as it is showing the different predbg
Dana Lewis
@danamlewis
Jun 19 2017 18:21
@ejoe132 is it saying in logs it is smbing, and not? Or it may be you've not had a situation under right conditions where SMB needed yet?
Niels Hartvig
@umbraco_twitter
Jun 19 2017 18:22
Sorry if this is too off-topic (then let me know), but what's the reason so many prefer the dexcom over the enlite (we were notified by the hospital this morning that we could switch [from enlite to dexcom] if we wanted to) :fire:
katie disimone
@Kdisimone
Jun 19 2017 18:22
the check looks like this FYI
Jun 19 11:20:40 hansolo pump-loop.log:  Microbolus var is currently set to:  true
Jun 19 11:20:40 hansolo pump-loop.log:  Autotune exists! Hoorah! You can use microbolus-related features.
Jun 19 11:20:40 hansolo pump-loop.log:  {"carbs":35,"boluses":3.1,"mealCOB":15,"currentDeviation":8.21,"maxDeviation":6.59,"minDeviationSlope":0}
Jun 19 11:20:40 hansolo pump-loop.log: {"iob":1.24,"activity":0.0111,"bolussnooze":1.178,"basaliob":-0.268,"netbasalinsulin":-0.25,"hightempinsulin":1.1,"microBolusInsulin":0.2,"microBolusIOB":0.091,"time":"2017-06-19T18:20:27.000Z","lastBolusTime":1497895749000}
Jun 19 11:20:40 hansolo pump-loop.log:  {"delta":2,"glucose":90,"short_avgdelta":2.78,"long_avgdelta":1.33}
Jun 19 11:20:40 hansolo pump-loop.log:  {"duration":117,"rate":0,"temp":"absolute"}
Jun 19 11:20:40 hansolo pump-loop.log:  Autosens adjusting basal from 0.625 to 0.725; sens from 70 to 59.3
Jun 19 11:20:40 hansolo pump-loop.
Cameron Chunn
@applehat
Jun 19 2017 18:23
@umbraco_twitter in my experience, the Enlight was really inaccurate for me (and only lasted 3-5 days). Dexcoms are DEAD ON 95% of the time and last me 20+ days. YDMV tho.
Niels Hartvig
@umbraco_twitter
Jun 19 2017 18:24
@applehat we experience the same (that enlite doesn't last more than 5 days max)
Cameron Chunn
@applehat
Jun 19 2017 18:24
There is something super nice about the Enlites being on-pump tho - absolutely easiest way to loop.
After my pump woke me up in the middle of the night with an alarm telling me I was at 40mg/dL and me having to get up and check my BG... to see it was actually 270mg/dL... I ripped off the enlite and never put another back on. I was 100% done.
Martin Haeberli
@mhaeberli
Jun 19 2017 18:25
@Kdisimone :+1: the first time I saw that I thought to re-flash my explorer. overkill, a bit ...
Cameron Chunn
@applehat
Jun 19 2017 18:26
They also hurt, for me, 24/7. I never put one on that didn't irritate me the entire time.
ejoe132
@ejoe132
Jun 19 2017 18:27
@danamlewis Is "deliverat." procceded by date and time what it would say for smb? Not seeing anything that specifically says smb. Except it is saying deliverAt":"2017-06-19T18:20:55.276Z"}
But my current time here is 14:26. Ive tried forcing it my just setting eating soon mode and eating a high carb snack a few times but havent gotten a smb, will high temp to max as normal though
ericmtx
@ericmtx
Jun 19 2017 18:27
my cron script to run the reset_spi_serial.py command every 30 minutes didn't solve the radio comms errors. @Kdisimone I may implement your script from last night with some testing also to see if that helps. We got the double red lights (radio error) again and I watched the cron run and the reset_spi_serial.py run. No change to the lights. I ran it manually, 3 times, and finally on the 3rd time the lights cleared and it was able to start looping again. So even that command doesn't always reset the radio correctly.
@ejoe132 what does the start of your pump loop message look like? Should say "starting supermicrobolus <blah blah>" if it's configured correctly
ejoe132
@ejoe132
Jun 19 2017 18:31
@ericmtx Just say this, Starting pump-loop at Mon Jun 19 14:28:08 EDT 2017:
Radio ok, Listening: .No pump comms detected from other rigs
Profile less than 60m old
glucose.json newer than temp_basal.json
Temp refreshed
Microbolus var is currently set to: false" guess I need to look in preferences and make sure its set to true?
ericmtx
@ericmtx
Jun 19 2017 18:33
@ejoe132 yes - I'd make sure to "git pull" in your oref0 directory to get the latest. Then re-run the oref0 setup script making sure microbolus is added to the options (beside meal, etc). Or post what your oref0 setup would look like if you re-ran it for us to check. It will reset your preferences.json, and then you'd re-enable the SMB pieces there. But the key is running the setup script with that tag correctly entered.
Scott Leibrand
@scottleibrand
Jun 19 2017 18:39
@ejoe132 if you have "Starting pump-loop" you don't have microboluses enabled in oref0-setup yet
that will say "Starting supermicrobolus pump-loop" if it's enabled correctly
Darrell Wright
@beached
Jun 19 2017 18:39
The beaglebone green wireless might have better battery life than a PI zero. Hard to say. I'm gonna hook one up and see this weekend and see
Scott Leibrand
@scottleibrand
Jun 19 2017 18:40
@skaffen your options for getting G5 CGM data are: via nightscout, via USB OTG with the Dexcom receiver and an external battery connected to the rig, or via an iPhone app. there currently is not a direct transmitter to rig bluetooth option. see docs for details on those different options.
ejoe132
@ejoe132
Jun 19 2017 18:52
@scottleibrand ok so Ill try rerunning the setup script and see if thatll kick it in
ejoe132
@ejoe132
Jun 19 2017 18:59
@ejoe132 when rereunning this should I be running the automated installation script or just jumping down to the step 2 on this page?...http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/oref0-setup.html#re-running-the-setup-script didnt know if I should be doing that automated installation and pulling the clone or not
Scott Leibrand
@scottleibrand
Jun 19 2017 19:01
if you've updated your oref0-runagain appropriately to enable microboluses, you can run that.
Dana Lewis
@danamlewis
Jun 19 2017 19:02
@umbraco_twitter keep in mind people in the US havne’t had the latest generation of Enlite’s that have been available in Europe, so most responses reflect two-generation-old Enlites. (just for context on responses)
katie disimone
@Kdisimone
Jun 19 2017 19:02
@ejoe132 that's not how the starting pump-loop should be starting supermicrobolus pump-loop
Sorry, slow Gitter feed loading. 🤣
Dana Lewis
@danamlewis
Jun 19 2017 19:03
Yea, gitter’s snoozing today
note to self: we should add the note about the new autotune check and the starting supermicrobolus pump-loop to http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-4/oref1-features.html#troubleshooting
Michael Maniscalco
@gtscalco_twitter
Jun 19 2017 19:03
I’m jealous of gitter… I could use a good snooze ;)
ejoe132
@ejoe132
Jun 19 2017 19:03
@Kdisimone Ok, Im in the proccess of re running the setup script so hopefully I just said N when I shoulda say Y. no woriees
Dana Lewis
@danamlewis
Jun 19 2017 19:04
oh yea, we already added the latter. k
katie disimone
@Kdisimone
Jun 19 2017 19:04
@danamlewis our brains in sync. I'll add to my PR
Niels Hartvig
@umbraco_twitter
Jun 19 2017 19:04
@danamlewis ah, thanks. It's definitely not the shiney new v3 enlite we have either. But we're aware that the US gotten more access to enlite - it's constantly in backorder over here now :-D
Dana Lewis
@danamlewis
Jun 19 2017 19:04
hehe. great, thanks - the autotune one for sure, but I see the “common errors include” the note about the correct noting
@umbraco_twitter :+1:
katie disimone
@Kdisimone
Jun 19 2017 19:05
@ericmtx don't forget to create the fix-comms alias in your bash_profile
Zakm0n
@Zakm0n
Jun 19 2017 19:06
So, I did the troubleshooting for flaky wifi, and it still is flaky. Any suggestions?
katie disimone
@Kdisimone
Jun 19 2017 19:07
although I may just try inserting the whole string of command vs alias fix-comms instead. I'm undecided
@Zakm0n what does you wifi network logging show? What are the messages?
Zakm0n
@Zakm0n
Jun 19 2017 19:16
just a sec
ericmtx
@ericmtx
Jun 19 2017 19:20
@Kdisimone I was just using the single radio reset command at this point to see if it would clear the lights and reset the radio, regardless of its impact on the openaps processes. But maybe killing it all per your command might work better anyway
Zakm0n
@Zakm0n
Jun 19 2017 19:20
wait a minute. it looks like dhcp is issuing an ipv6 address to my edison
At Mon Jun 19 14:20:25 CDT 2017, my wifi network name is DILLIGAF, and my publ IP is: 2601:4c1:c101:b3b7:fedb:b3ff:fe98:fa1c
Finished oref0-online.
ericmtx
@ericmtx
Jun 19 2017 19:20
your router is probably doing that, and that's OK. you would have both ipv6 and ipv4
oh, hmm
Scott Leibrand
@scottleibrand
Jun 19 2017 19:21
IPv6 address assignments usually come from router advertisements, not DHCPv6
but if oref0-online is reporting your IPv6 address instead of your IPv4, you might want to updated it to the version that forces v4 for that check
Zakm0n
@Zakm0n
Jun 19 2017 19:23

At Mon Jun 19 14:21:22 CDT 2017, my wifi network name is *, and my public IP is:
At Mon Jun 19 14:21:23 CDT 2017 my public IP is: 2601:4c1:c101:b3b7:fedb:b3ff:fe98:fa1c
Finished oref0-online.

Error, connecting BT to 28:27:BF:FE:8B:4D, getting bnep0 IP

At Mon Jun 19 14:21:30 CDT 2017, my wifi network name is *, and my public IP is: 2601:4c1:c101:b3b7:fedb:b3ff:fe98:fa1c
Finished oref0-online.

Starting oref0-online.
At Mon Jun 19 14:22:02 CDT 2017 my local IP is: 10.0.0.144

At Mon Jun 19 14:22:03 CDT 2017, my wifi network name is **, and my public IP is:
Starting oref0-online.
At Mon Jun 19 14:22:03 CDT 2017 my local IP is: 10.0.0.144

At Mon Jun 19 14:22:03 CDT 2017, my wifi network name is **, and my public IP is:
Error, cycling networking

Error, cycling networking
Stopping networking (via systemctl): networking.serviceStopping networking (via systemctl): networking.service[ 2237.926893] link down if wlan0 may call cfg80211_disconnected. event : 16, reason=2 from 10:05:01:6a:5e:b0

I changed my wifi ssid in the log for security
ejoe132
@ejoe132
Jun 19 2017 19:35
@ejoe132 @danamlewis so re ran it all and still not getting starting supermicrobolus pump-loop. Do I have to say yes to pushover? Been saying no (n) as I didnt plan to use it for the time being
Dana Lewis
@danamlewis
Jun 19 2017 19:36
No
Paste your cat runagain without your API, serial, or URL?
ejoe132
@ejoe132
Jun 19 2017 19:39
@danamlewis cat oref0-runagain, thats should get me my runagain, no?
ejoe132
@ejoe132
Jun 19 2017 19:44
@danamlewis # To run again with these same options, use:
oref0-setup --dir=/root/edisonone --serial=** --cgm=G4-upload --ns-host=http:* --api-secret=* --tty=/dev/spidev5.1 --max_iob=15 --enable=' autosens autotune meal microbolus ' --radio_locale='US' --btmac='24:E3:14:9C:20:55'
ejoe132
@ejoe132
Jun 19 2017 19:53
I believe I have all that correct as I have microbolus included
Dana Lewis
@danamlewis
Jun 19 2017 19:57
K now paste your preferences?
ejoe132
@ejoe132
Jun 19 2017 19:59
@danamlewis "max_iob": 15,
"max_daily_safety_multiplier": 3,
"current_basal_safety_multiplier": 4,
"autosens_max": 1.2,
"autosens_min": 0.7,
"rewind_resets_autosens": false,
"autosens_adjust_targets": true,
"adv_target_adjustments": false,
"maxCOB": 120,
"override_high_target_with_low": false,
"skip_neutral_temps": false,
"bolussnooze_dia_divisor": 2,
"min_5m_carbimpact": 5,
"carbratio_adjustmentratio": 1,
"autotune_isf_adjustmentFraction": 0.5,
"remainingCarbsFraction": 0.7,
"remainingCarbsCap": 88,
"enableUAM": true,
    "enableUAM": true,
    "enableSMB_with_bolus": true,
    "enableSMB_with_COB": true,
    "enableSMB_with_temptarget": true
}
Scott Leibrand
@scottleibrand
Jun 19 2017 20:05
so after running that oref0-runagain, your crontab should be updated to use oref0-pump-loop instead of openaps pump-loop
katie disimone
@Kdisimone
Jun 19 2017 20:05

@ejoe132 I ran into this on one of my rigs awhile back. Basically I'd just not done my git pull and npm install correctly.

I ended up solving it by updating my dev branch, redoing the npm global install command and rerunning script. And deleting existing cron when the question appears

If that fails you, you could wipe slate and try from scratch. That has been a guarantee solution for me.

cd
crontab-r
rm -rf src
rm -rf myopenaps (or whatever if you chose a different name)

And then start at step 0 install dependencies

ejoe132
@ejoe132
Jun 19 2017 20:09
@Kdisimone I believe Ive been doing what your saying, I think, Ive started at this page,http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/update-your-rig.html?highlight=dev redownloading the dev each time to check I had the latest then going to step zero. Is this what your suggesting?
Tim Street
@tim2000s
Jun 19 2017 20:16
Had an odd one on a device I installed on Saturday. Worst bit is I've looked in all the usual places and can't work out why the storage is full!
oref0-reset-git
Attempting to fix git corruption. Please wait 15s.
fatal: Not a git repository (or any of the parent directories): .git
find: `.git/logs/refs/heads/': No such file or directory
Error: Could not find last valid commit; aborting.
fatal: Not a git repository (or any of the parent directories): .git
/usr/local/bin/oref0-reset-git: line 59: 20360 Terminated ( sleep 15; killall oref0-fix-git-corruption )
Removing largest old git repo from /tmp
Saving backup to: /tmp/git-1497903270
/root/myopenaps/.git/refs: No space left on device
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Scott Leibrand
@scottleibrand
Jun 19 2017 20:16
that is saying /tmp is too full to back up your .git directory I believe
Tim Street
@tim2000s
Jun 19 2017 20:19
That's what I thought. But it isn't.
Scott Leibrand
@scottleibrand
Jun 19 2017 20:19
how big is .git ?
Tim Street
@tim2000s
Jun 19 2017 20:19
Digging further it looks like somehow I've ended up with a weird hybrid flashed install which is generating massive log files.
I went from the 0.2.0 version back to 0.1.0 without Yocto in between
Cameron Chunn
@applehat
Jun 19 2017 20:25
0.1.0 has a kernel error that makes tons of logs
I had to write a script to purge my kernel log every 15 minutes to not fill up my edison
Scott Leibrand
@scottleibrand
Jun 19 2017 20:25
why were you downgrading?
PieterGit
@PieterGit
Jun 19 2017 21:07
@danamlewis : didn't want to cause panic, let's keep :cool: . I suppose that once Intel stops selling the Edisons, it will take quite some time before all Intel's suppliers run out of stock. Perhaps they even get cheaper at the end of their lifecycle. We'll see. It's a pity Intel stops investing in the Edisons, but with their newer boards they tried to create far more CPU-powerfull (and expensive) boards we're not interested in. I think if we can choose, let's hope for a solution with the same support as the Raspberry PI boards, the energy usage of an Edison and much more other nice things we're not want to be waiting for.
Tim Street
@tim2000s
Jun 19 2017 21:11
@scottleibrand Because wpa_supplicant didn't work on 0.2.0
Scott Leibrand
@scottleibrand
Jun 19 2017 21:15
odd. do you know why? has anyone else reported that?
Zakm0n
@Zakm0n
Jun 19 2017 21:59
Ok, so i'm looping on a 722 coming from a 751. is there any way to change sensor life to 6 days from 3 days since i'm on enlite?
marafie
@marafie
Jun 19 2017 22:01
👆🏻 I would like to know answer of this question too
Is their a way to take the signal of dexcom and retransmit it to the pump as a enlite transmitter ?
Zakm0n
@Zakm0n
Jun 19 2017 22:03
I just got my first sensor end on this pump and was very surprised lol
PieterGit
@PieterGit
Jun 19 2017 22:06
@marafie : not in that way, but you can use an xdrip instead of a dexcom receiver
marafie
@marafie
Jun 19 2017 22:07
I do have the xdrip kit and parakeet and I use them
Dexcom sensor is usable for kids under 4
The Medtronic no
PieterGit
@PieterGit
Jun 19 2017 22:16
@marafie : i don't understand why you would like to retransmit the dexcom cgm to the pump
katie disimone
@Kdisimone
Jun 19 2017 22:42
@ericmtx the script fix works! BUT, not with the fix-comms alias in there. I had to spell out the whole string. I’ll post up what I used
@PieterGit let me know how you do on the underlying issue. I happen to not have board causing that “Have you got the right port/device?” error…but I can create it by letting my lipo go dead. That most definitely creates the error, which has let me play with a fix.
ericmtx
@ericmtx
Jun 19 2017 22:47
@Kdisimone very nice - I'll give that a try
katie disimone
@Kdisimone
Jun 19 2017 22:47
@scottleibrand Is this “fix” something you’d want in oref0? or shall i just post the fix as an issue and people can figure out a more elegant way (since I am just hacking)?
Darrell Wright
@beached
Jun 19 2017 23:06
@PieterGit there are other boards with less power usage than an edison anyways. Another nice thing is that, at least on RPi and Beaglebone, one doesn't need root to do SPi.
Scott Leibrand
@scottleibrand
Jun 19 2017 23:11
@Kdisimone at its core, it looks like what you're doing is just running reset_spi_serial.py before mmtune when necessary. Have you tried simply adding reset_spi_serial.py to your mmtune alias?
katie disimone
@Kdisimone
Jun 19 2017 23:11
Yes…didn’t work
I will be happy to try again though
Now that i have a way of reliably creating the error, it’s a little easier
Scott Leibrand
@scottleibrand
Jun 19 2017 23:12
any ideas why not? what else does fix_comms_script.sh do?
katie disimone
@Kdisimone
Jun 19 2017 23:12
turning off cron?
Scott Leibrand
@scottleibrand
Jun 19 2017 23:13
that doesn't matter, although the killall -g openaps might sometimes kick a dead process that's hogging the radio...
but that eventually happens automatically as well...
katie disimone
@Kdisimone
Jun 19 2017 23:16
I’ll keep playing!
Jorge Aguilar
@jonahtaxt
Jun 19 2017 23:26
hi
I've been trying to fix the wifi connection errors but haven't had any luck
I tried disabling the daemon that is mentioned on the papertrail docs
changed the ip address for the usb settings
switched explorer boards
reflashed (flashing yocto)
did a new setup
and I still get this errors:
Jun 19 18:26:02 edisonaps network.log: Starting oref0-online.
Jun 19 18:26:02 edisonaps network.log: At Mon Jun 19 18:26:02 CDT 2017 my local IP is: 192.168.22.100
Jun 19 18:26:03 edisonaps network.log: At Mon Jun 19 18:26:02 CDT 2017, my wifi network name is RivendelAPS, and my public IP is: 
Jun 19 18:26:03 edisonaps network.log: Error, cycling networking 
Jun 19 18:26:16 edisonaps network.log: Stopping networking (via systemctl): networking.service.
Jun 19 18:26:16 edisonaps network.log: Starting networking (via systemctl): networking.service.
Jun 19 18:26:16 edisonaps network.log: and getting new wlan0 IP
Jun 19 18:26:17 edisonaps network.log: At Mon Jun 19 18:26:17 CDT 2017, my wifi network name is RivendelAPS, and my public IP is: 
Jun 19 18:26:17 edisonaps network.log: At Mon Jun 19 18:26:17 CDT 2017, my wifi network name is RivendelAPS, and my public IP is: Finished oref0-online.
I'm going to try and swith my router
does anybody know if there is anything else I could do to fix this issue?
I've been reading the messages here, but I don't know if there is something I missed
Scott Leibrand
@scottleibrand
Jun 19 2017 23:36
don't just rely on the logs: check it for yourself. can you get out to the Internet from that rig?
ping google.com to start with
Eric
@ecc1
Jun 19 2017 23:36

@marafie @PieterGit I've also thought about doing that ("proxying" a Dexcom CGM to make it appear like an Enlite to a Medtronic pump). Two possible reasons: to be able to use the pump's graphing and alerts (in case you don't have a phone or NS site handy), and in the future, to use one of Medtronic's hybrid-APS systems with Dexcom rather than Enlite.

I don't see why it couldn't be done on a rig with both 900MHz and 2.4GHz radios. Or just 900MHz and BLE for G5 sensors.

Jorge Aguilar
@jonahtaxt
Jun 19 2017 23:40
@scottleibrand I am able to ping google
ssh to the rig, but it keeps on resetting the wifi connection
Scott Leibrand
@scottleibrand
Jun 19 2017 23:43
you can comment out oref0-online in cron for troubleshooting
and then run it manually, or (more usefully) run the part of it that looks problematic from the logs (the part right after it prints "and my public IP is:")
you can also run that curl with a -v flag to get more info on what it's doing, or try hitting that same URL from your browser to see what you get back
Jorge Aguilar
@jonahtaxt
Jun 19 2017 23:51
ok, thanks @scottleibrand I'll try that and hopefully find the error
marafie
@marafie
Jun 19 2017 23:51
@ecc1 👍🏻 let do it
Lets
Is their an easy way to extend the radio coverage of the rig ?
I place my pump on my chest and the rig in my jeans pocket