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

13th
Feb 2019
Jeremy Cunningham
@jpcunningh
Feb 13 00:40 UTC

@AmazingThew, if you are considering wiring up your own JST connector, I got some from digikey using the links below for the sockets and connector housings.

https://www.digikey.com/product-detail/en/jst-sales-america-inc/SPH-002T-P0.5L/455-2148-1-ND/1634657
https://www.digikey.com/product-detail/en/jst-sales-america-inc/PHR-2/455-1165-ND/608607

It so happens that the crimp tool in the pliers on a Swiss Army knife works pretty well to fold in the tabs rather than buying the multi thousand dollar official crimp tool for JST connectors.
ejoe132
@ejoe132
Feb 13 02:02 UTC
hey all, have hopefully a quick question, trying to reflash my edison as Ive forgotten my password, took me over a year to get another afordable loopable pump after mine drowned. But since I cant login even trying to follow the direction and login with "root" and no password I cant get in, any tips?
mdhawkins91
@mdhawkins91
Feb 13 02:39 UTC
@danamlewis thank you!
Katja Jacob
@straykatz
Feb 13 02:52 UTC
@ejoe132 Hi, I did the same thing a few weeks ago, and wrote up how it went. Just remember that the Password you will be asked at the beginning is your computer password ...
hey all, have hopefully a quick question, trying to reflash my edison as Ive forgotten my password, took me over a year to get another afordable loopable pump after mine drowned. But since I cant login even trying to follow the direction and login with "root" and no password I cant get in, any tips? Recovering Intel® Edison if Password is Unknown …
I also bought a used chip, with a password unknown to me … some research got me here: https://www.intel.com/content/www/us/en/support/articles/000006147/boards-and-kits.html
And it worked, fast.
Basically:
  1. Copy the Edison Yocto complete image zip (Intel Edison - Software Downloads: https://downloadcenter.intel.com/search?keyword=edison.) file to Intel Edison via Finder (Mac),
  2. Reboot, interrupt reboot with “any key”
  3. Type “run do_ota” once you see “boot >” prompt,
  4. after 3 min or so you have an Edision chip with no password.
  5. … Login with username “root” (no quotes)- no password will be needed.
  6. Then, you are ready and able to flash Jubilinux onto it, Insha'Allah.
    Turns out, you cannot do that method with Jubilinux; it is too big for the ‘lil chip, so do Yocto first, Jubilinux second.
This worked for me more than once, but the second time I wasted 2 hours to figure out how to open a serial connection to the chip - until I remembered that the password I needed was the computer password ...
Scott Leibrand
@scottleibrand
Feb 13 04:30 UTC
another way to do it is to start the flash process, and then rather than typing reboot, simply hold down the black power button for 10 seconds to turn off the edison, and then for another 3 seconds or so to turn it back on. that's equivalent to a (hard) reboot, and should allow the flash to begin
Mike
@libxmike
Feb 13 10:00 UTC
@scottleibrand autotune, what is the best time range (days) to adjust the basal rate?
peterfulvi
@peterfulvi
Feb 13 12:02 UTC
s there a way to get my BG values off my pump. Im using the fakemeter script. I get about 70 BG readings a day sent from my transmitter. I dont use my reciever often, also Nightscout is not working for me at the moment. Would carelink be able to read it? I have a carelink usb but it does nopt seem to work. That might be a software issue?
_
ejoe132
@ejoe132
Feb 13 15:18 UTC
@straykatz Thank you for that, I was actually able to do it real simply through the method @scottleibrand , thanks Scott
Eric
@ecc1
Feb 13 15:57 UTC
@peterfulvi you can run the "pumphistory" command from a command line on the rig, with "-n #HRS" for the number of hours of history you want, and look for just the BGReceived records. You could get fancy and pull just them out with the jq program.
Scott Leibrand
@scottleibrand
Feb 13 17:44 UTC
Mike: at least 7 days, preferably 14... is that what you mean?
peterfulvi
@peterfulvi
Feb 13 17:59 UTC
@ecc1 Thanks for the advice. How do i run the jq program. Is that a script command within the rig or a third party application?
@ecc1 is it jq 1.5? Couild i run that in windows?
Eric
@ecc1
Feb 13 18:09 UTC

@peterfulvi it's a general-purpose JSON tool already installed on your rig. Here's a script that should work:

pumphistory -n 6 | jq '.[] | select(.Type == "BGReceived" ) |  {"Time": .Time, "BG": .Info.Glucose}'

(for 6 hours of history, for example)

Yes, you could also pull over the full pumphistory output to your PC, and run the jq filtering there
peterfulvi
@peterfulvi
Feb 13 18:28 UTC
@ecc1 Thanks
peterfulvi
@peterfulvi
Feb 13 18:37 UTC
@ecc1 It says root@LGRIG:~/myopenaps# pumphistory -n 1 2019/02/13 13:34:32 retrieving pump history since 2019-02-13 12:34:32 2019/02/13 13:34:32 cannot connect to CC111x radio on /dev/spidev5.1 null 2019/02/13 13:34:32 /dev/spidev5.1: device is in use
Do i need to disable cron
Another one 2019/02/13 13:37:57 retrieving pump history since 2018-11-22 05:37:57 2019/02/13 13:37:58 connected to CC111x radio on /dev/spidev5.1 2019/02/13 13:37:58 MEDTRONIC_PUMP_ID environment variable is not set
Eric
@ecc1
Feb 13 18:41 UTC
(1) you just have to run it when your loop isn't active, either by disabling the cron job, or catching it at just the right time
(2) do export MEDTRONIC_PUMP_ID=your_pump_serial_num in the shell where you're running that command
peterfulvi
@peterfulvi
Feb 13 18:51 UTC
:confused:
Jon Cluck
@cluckj
Feb 13 18:51 UTC
just the 6 numbers after the PAR (and you should delete it from here)
peterfulvi
@peterfulvi
Feb 13 18:52 UTC
OOPS
Scott Leibrand
@scottleibrand
Feb 13 18:52 UTC
I just deleted it for security
Jon Cluck
@cluckj
Feb 13 18:52 UTC
:thumbsup:
peterfulvi
@peterfulvi
Feb 13 18:52 UTC
:scream:
Scott Leibrand
@scottleibrand
Feb 13 18:53 UTC
not a huge deal
peterfulvi
@peterfulvi
Feb 13 18:53 UTC
thanks
Scott Leibrand
@scottleibrand
Feb 13 18:53 UTC
anyone who really wants your pump S/N can sniff it if they're nearby
Jan Schenk
@jansche
Feb 13 21:41 UTC
Just experienced a classic one: yesterday - pulled most current repo, rebuild everything, recognized rig not looping at bedtime. today - digged deeper into it, rerun everything twice, suspected faulty hardware, 2h later finally found out it's a wrong serial # in rerun script. facepalm
Scott Leibrand
@scottleibrand
Feb 13 21:42 UTC
If that kind of thing were disqualifying, we'd all have to go back to being farmers. :-p
MrJarnould
@MrJarnould
Feb 13 22:28 UTC
Hi, I lost my Intel Edison :( Would you guys recomend I try to replace the Edison with a used one from Ebay or should I go the new Raspberry Pi explorer hat route? Thanks!
Scott Leibrand
@scottleibrand
Feb 13 22:29 UTC
I would recommend replacing the Edison if you can. You could also get another Pi based rig, but the Edison is much more power efficient, so it can use a much smaller battery for a mobile rig.
Jon Cluck
@cluckj
Feb 13 22:30 UTC
wow, that's a big batch of edisons
MrJarnould
@MrJarnould
Feb 13 22:31 UTC
@scottleibrand Thanks for the info
@cluckj indeed, can you figure out which version they are? V1,2,3,4?
Jon Cluck
@cluckj
Feb 13 22:47 UTC
I don't know