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

10th
Mar 2019
Cameron Chunn
@applehat
Mar 10 04:15
Just reflashed my edison and Im getting this error now: Radio check failed. ImportError: No module named spi_serial
I've re-ran setup thinking something just goofed the first time but Im unsure what to do now. Im on 0.7dev
Jon Cluck
@cluckj
Mar 10 04:16
is that after the reboot?
Cameron Chunn
@applehat
Mar 10 04:16
after multiple reboots
/dev/spidev5.1 shows if I ls that directory
so it sees the device (it would seem)
Jon Cluck
@cluckj
Mar 10 04:18
spi_serial isn't used in dev, maybe the install didn't go right?
Cameron Chunn
@applehat
Mar 10 04:18
hmm
I can go doublecheck Im still on dev
Yep. Im on the dev branch
Waiting up to 4 minutes for new BG: ls: cannot access /tmp/pump_loop_completed: No such file or directory
ImportError: No module named spi_serial

Radio check failed. ImportError: No module named spi_serial
Listening for 40s silence before mmtuning: ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................mmtune: Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
No wait required.
Listening: ..................................
slightly wider look at the log
Maybe I should try building the go binaries from source
@cluckj the explorer block for edison. Which radio chipset does it have? (if you know)
Cameron Chunn
@applehat
Mar 10 04:25
CC1110. Nevermind. lol
Jon Cluck
@cluckj
Mar 10 04:25
the binaries should be good, but it's the cc111x (option 2?)
Cameron Chunn
@applehat
Mar 10 04:26
I agree they should be good.... I have been using them. lol
But Im out of any other ideas so :shrug:
Scott Leibrand
@scottleibrand
Mar 10 04:27
did you npm run global-install and re-run oref0-setup after switching to dev?
if you're not sure, I'd try those two steps again
Cameron Chunn
@applehat
Mar 10 04:27
I never even went into master
swapped to dev before even running oref0-setup the first time
Jon Cluck
@cluckj
Mar 10 04:28
did it ask about Go binaries the first time?
Cameron Chunn
@applehat
Mar 10 04:28
Yeah.
This time running oref0-setup (the third time?) it just fast-forwarded and got some updates.
Im rerunning again now (and letting it compile the go binaries because why not)
Ill post back if still broken
Jon Cluck
@cluckj
Mar 10 04:30
there were a couple big commits in the last couple hours
Cameron Chunn
@applehat
Mar 10 04:30
maybe I caught it in a weird state
(luckily my rfm69 rig is still working during all this =P)
Dana Lewis
@danamlewis
Mar 10 04:31
@cluckj @scottleibrand just pinged a potential x12 tester if no one else chimes in on the pr
Jon Cluck
@cluckj
Mar 10 04:31
:thumbsup: thanks
I'm pretty sure if it breaks anything it'll just be for x12 users
@applehat are you using the enlite?
Cameron Chunn
@applehat
Mar 10 04:36
Nah. xdrip
Jon Cluck
@cluckj
Mar 10 04:37
thx
Cameron Chunn
@applehat
Mar 10 04:40
dang. Still getting the same error.
guess Ill reseat my explorer block.
Jon Cluck
@cluckj
Mar 10 04:41
want to try some debugging first?
Cameron Chunn
@applehat
Mar 10 04:41
absolutely
Jon Cluck
@cluckj
Mar 10 04:41
that spi_serial error is super weird
Cameron Chunn
@applehat
Mar 10 04:42
maybe its coming from the go binaries
vs oref0
I haven't looked at their code much
Jon Cluck
@cluckj
Mar 10 04:43
export MEDTRONIC_PUMP_ID=putyourpumpserialhere
then oref0-mmtune
Cameron Chunn
@applehat
Mar 10 04:45
root@stimpak:~/myopenaps# oref0-mmtune
mmtune: US
2019/03/09 22:44:31 cannot connect to CC111x radio on /dev/spidev5.1
2019/03/09 22:44:31 cc111x: no response
monitor/mmtune.json is empty or does not exist
root@stimpak:~/myopenaps#
Well then.
Jon Cluck
@cluckj
Mar 10 04:45
yep
Cameron Chunn
@applehat
Mar 10 04:45
reflash radio, maybe?
Jon Cluck
@cluckj
Mar 10 04:46
yeah, it requires some extra work (not sure if it's documented yet)
Cameron Chunn
@applehat
Mar 10 04:46
I saw some ccprog doc stuff
Those still accurate?
Jon Cluck
@cluckj
Mar 10 04:47
after installing MRAA, yes
Dana Lewis
@danamlewis
Mar 10 04:48
@applehat please use the latest docs
Dana Lewis
@danamlewis
Mar 10 04:48
And not the version bookmarked from 2017 🤢
Cameron Chunn
@applehat
Mar 10 04:48
@danamlewis I am not sure how I ended up on those
Cameron Chunn
@applehat
Mar 10 04:48
I think I googled.
Jon Cluck
@cluckj
Mar 10 04:48
lol
Dana Lewis
@danamlewis
Mar 10 04:48
🤷🏼‍♀️🙇‍♀️🙇‍♀️🙇‍♀️
Bad google
Cameron Chunn
@applehat
Mar 10 04:49
OK. Ill flash my radio and hope it doesn't call the police.
Jon Cluck
@cluckj
Mar 10 04:50
good luck
Cameron Chunn
@applehat
Mar 10 04:52
You know what I like about the rfm69?.... lol
(glad to see it getting support now. Not relying on a custom flashed firmware is kinda nice)
Jon Cluck
@cluckj
Mar 10 04:53
:laughing: yep, same
I haven't had any issues with the radio on the pi HAT, though
Cameron Chunn
@applehat
Mar 10 04:53
My Pi HAT and Pi0W shipped today
Slite sidebar while MRAA is building...
What kind of battery life are you getting from the Pi0W?
a 2500mAh on my edison lasts me basically my entire waking day.
I ordered 2x 2500mAh packs to run in parallel on the Pi, expecting that it wont last nearly as long
Jon Cluck
@cluckj
Mar 10 04:55
not nearly as good as the edison
Cameron Chunn
@applehat
Mar 10 04:55
I gathered that it would suck down around 500mA an hour
so I figured 5000mAh would at least give me 10 hours.
Jon Cluck
@cluckj
Mar 10 04:56
yes
Cameron Chunn
@applehat
Mar 10 04:56
on work days I can plug it up at my desk so no biggie. Just have to watch it on the weekends.
Jon Cluck
@cluckj
Mar 10 04:56
I can eke out about 9h on 3400mAh (with no underclocking)
Cameron Chunn
@applehat
Mar 10 04:59
oh thats not terrible then
Jon Cluck
@cluckj
Mar 10 05:03
yeah, it's okay :\
Cameron Chunn
@applehat
Mar 10 05:04
I meana, my cellphone with a similar sized battery lasts all day but whatever =P
Jon Cluck
@cluckj
Mar 10 05:05
:laughing: we may have been spoiled on the edison
Cameron Chunn
@applehat
Mar 10 05:06
So, following the instruction and installing mraa from the link you gave me
./ccprog: error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory
so im thinking that mraa install didn't work.
(even tho it seems to have built just fine with no errors)
Jon Cluck
@cluckj
Mar 10 05:07
is it showing up in lsmod?
Cameron Chunn
@applehat
Mar 10 05:08
kvm_intel             132398  0 
kvm                   347833  1 kvm_intel
ti_ads7955             12736  0 
gpio_pca953x           17035  0 
iio_basincove_gpadc    13738  0 
ftdi_sio               44250  0 
uvcvideo               71516  0 
videobuf2_vmalloc      13003  1 uvcvideo
videobuf2_memops       13001  1 videobuf2_vmalloc
videobuf2_core         37707  1 uvcvideo
usb_f_acm              14335  1 
u_serial               18582  1 usb_f_acm
g_multi                66717  0 
libcomposite           39238  2 usb_f_acm,g_multi
bcm4334x              574758  0 
bcm_bt_lpm             13676  0
I dont see it, no
root@stimpak:~/src/ccprog# find / -name libmraa.so.0
/home/.rootfs/usr/local/lib/i386-linux-gnu/libmraa.so.0
Well, it exists.
Im not sure how to actually do anything with that information tho
lol
Jon Cluck
@cluckj
Mar 10 05:13
did you redo the make ccprog?
Cameron Chunn
@applehat
Mar 10 05:13
yeah
root@stimpak:~/src/ccprog# rm ccprog
root@stimpak:~/src/ccprog# make ccprog
gcc -o ccprog ccprog.c readhex.c -lmraa
root@stimpak:~/src/ccprog# ./ccprog
./ccprog: error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory
root@stimpak:~/src/ccprog# make ccprog
make: 'ccprog' is up to date.
root@stimpak:~/src/ccprog#
Jon Cluck
@cluckj
Mar 10 05:17
gotta look some stuff up, I haven't had to flash a radio in quite a while...
reboot?
Cameron Chunn
@applehat
Mar 10 05:18
I'll try rebooting again in a sec
Jon Cluck
@cluckj
Mar 10 05:19
I meant ldconfig not lsmod earlier :laughing:
straykatz
@straykatz
Mar 10 05:21
Oy. I just updated the dev branch, and it seems cob is out of whack.
trying to get a screen shot in ...
Screen Shot 2019-03-09 at 9.17.00 PM.png
so, what's interesting is that the Nightscout pill says 0 COB.
Screen Shot 2019-03-09 at 9.23.52 PM.png
And so does the rig
straykatz
@straykatz
Mar 10 05:29
which is not correct - there are quite a lot of carbs ... ~60 in the last 75 minutes
Cameron Chunn
@applehat
Mar 10 05:29
@cluckj so I flashed the radio
and still
root@stimpak:~/myopenaps# oref0-mmtune
mmtune: US
2019/03/09 23:29:10 cannot connect to CC111x radio on /dev/spidev5.1
2019/03/09 23:29:10 cc111x: no response
monitor/mmtune.json is empty or does not exist
Jon Cluck
@cluckj
Mar 10 05:29
:\
Cameron Chunn
@applehat
Mar 10 05:29
it flashed just fine tho
Jon Cluck
@cluckj
Mar 10 05:32
I think there's a tool you can use to check the connection (similar to get_subg_rfspy_version.py), since you installed from source
go into ~/go/src/github.com/ecc1/cc111x/cmd/probe and run go build
that'll give you a binary called probe, which you should run
Cameron Chunn
@applehat
Mar 10 05:35
ill try in a sec. rebooting
tried a 2nd flash just because
Just says "no response"
=/
Im not sure how im successfully flashing and then getting no response from it.
unless the hex I downloaded is corrupt somehow
Jon Cluck
@cluckj
Mar 10 05:42
hm, not sure
going to sleep though, if I think of anything tomorrow I'll ping you
Cameron Chunn
@applehat
Mar 10 05:44
Thanks
Scott Leibrand
@scottleibrand
Mar 10 06:33
@straykatz there is info on why COB is zero a little further back in the pump-loop.log.
There are various error conditions that can cause that: we default to zero if there’s any anomaly, to avoid dosing off an erroneously high COB value.
Roffid
@Roffid
Mar 10 08:17
Hi, I'm not sure if Autotune is working correctly on my rig, I decided to run Autotune on the past 10 days, but oref0 doesn't use autotune's values, even though there were some major differences
I thought it was supposed to use those values automatically?
I checked the logfile of autotune, and I did see a warning: /usr/local/bin/oref0-autotune-recommends-report: line 25: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
Does that matter? Or is there a setting I need to change?
I checked my preferences.json, and autotune is enabled: "enable": " autotune ",
Stargazer32584
@Stargazer32584
Mar 10 08:48

@cluckj The system was online, last night. Everything seems to be fine. Yesterday, i sent my sister a screenshot from the OLED. I asked my sister ,if the units are right for her. She said, that could be, that the BG on the OLED are in mml, not in mg/dl. Can i change this in some file ?

Thanks a lot..!!

djnoor
@djnoor
Mar 10 13:35
Anyone else having problems with their Nightscout sight this morning? Mine has locked me out and claims my api_secret is the wrong token even though it's the same one I've been using for a while.
The api_secret is still the same in Heroku
djnoor
@djnoor
Mar 10 13:41
Nevermind, got it working, I think
No, it's still not working.
Did Nightscout discontinue support for api_secret authentication?
djnoor
@djnoor
Mar 10 13:50
Even though it
  • Even though it's supposed to be readable with the public link, it's not. That screen prompts for the API_Secret.
Jon Cluck
@cluckj
Mar 10 14:16
@djnoor is your database full?
@Stargazer32584 I think the pump controls which units are used
it's in the bolus wizard setup: "BG Units"
djnoor
@djnoor
Mar 10 14:23
@cluckj I don't know. How do I tell? Heroku says slug size is 43 MiB of 500MiB.
djnoor
@djnoor
Mar 10 14:37
@cluckj What hash does OpenAPS use to store the API Secrets?
Md5? Sha1?
samueldemers2
@samueldemers2
Mar 10 15:58
Hi to all. I tried to build my first Pi0 rig yesterday. Everything seem to have loaded nicely. I took a look at the log right after the setup and I see a lot of Preflight fail. Does it mean that the rig can't talk to the pump?
Scott Leibrand
@scottleibrand
Mar 10 16:00
Yes
@Roffid manual autotune runs don’t update the files in myopenaps/settings. Those are only updated after the automatic nightly 4am run.
zasteph
@zasteph
Mar 10 17:46
Hi, I’m trying to put together hw for a new rig. Got the explorer block then an intel Edison from ebay…
I am stuck at flashing the Edison, cannot connect to the serial port:
  • I installed the driver for Win from the openaps link; tried win 7 & 10
  • When I plug the OTG, I first get Other: MERRIFIELD device, then I see Intel Edison USB Composite device on COM4 and Intel Edison Virtual Com Port COM5
  • For com4, putty connection fails with “unable to connect to serial port com4”
  • Putty “connects” to COM5, but I never get a prompt.
    Could it be a defective Edison? Any suggestion on what else I can try?
    Thank you!
one more thing: when I plug in the UART, the driver sw install fails for Fx230x Basic UART; does this matter?
Scott Leibrand
@scottleibrand
Mar 10 18:15
If you don’t get a prompt, stay connected and reboot the rig by holding down the black button. When the center light comes back on you should see it boot. If you’re running the flashall at that point, it should try to flash.
zasteph
@zasteph
Mar 10 18:17
@scottleibrand thank you. Should I be connected on the virtual com port?
Scott Leibrand
@scottleibrand
Mar 10 18:58
Not sure. Try both ways.
zasteph
@zasteph
Mar 10 19:49
done. thank you!!! I started the flashall and reboot-ed the board as you suggested; it took 90+ minutes to flash and reboot, but I got the jubilinux prompt at the end and I can login. It looked like it used the default 9600 rate instead of 115200, the downloads took more than 1h. Thank you again!
bud9hb
@bud9hb
Mar 10 21:26
Hi, after months of using BT tethering, it just stopped working (using iphone on Verizon). Phone and rig can still pair over bluetooth, but no looping. I tried deleting the BT MAC address in the bluetoothctl command and deleting the rig from the phone, then re-paired the two and still nothing. When I try to run the "ifconfig bnep0" command from the bluetooth setup instructions, I get the following output with no IP address listed. Any ideas?
bnep0 Link encap:Ethernet HWaddr 58:a8:39:01:6e:9e UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:198 (198.0 B) TX bytes:96 (96.0 B)
tzachi-dar
@tzachi-dar
Mar 10 22:39
I would like to achieve all house coverage with openaps:
Can I use more than one rig simultaneously?
Is there anything I can do to increase the length of rf transmitter (maybe a better antenna)?
Jon Cluck
@cluckj
Mar 10 22:45
yes, and yes
tzachi-dar
@tzachi-dar
Mar 10 22:46
Where do I get the better antenna?
Jon Cluck
@cluckj
Mar 10 22:50
mouser/arrow may have some rubber duck antennas with a u.fl on them
djnoor
@djnoor
Mar 10 22:53
@cluckj My database was full. Had to clean it out and change the API_Secret but I'm now back to looping again.
Jon Cluck
@cluckj
Mar 10 22:55
:D yay, glad it's fixed!
Eric
@ecc1
Mar 10 23:10
@tzachi-dar something like this will let you play with various larger antennas that usually have SMA connectors: https://www.adafruit.com/product/851
And another question. I understand that the current antenna we use is https://www.digikey.com/product-detail/en/anaren/66089-0930/1173-1135-ND/3903377
This one has a gain of 3dbi while what I found has 1.2 dbi, and I wonder if the 3dbi should be better or not?