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

8th
Oct 2016
garykidd
@garykidd
Oct 08 2016 00:01
that's for g4 only though?
I was thinking that was for phone
Scott Leibrand
@scottleibrand
Oct 08 2016 00:18
bleserial is for openxshareble (for G4 w/ share)
garykidd
@garykidd
Oct 08 2016 00:20
@scottleibrand thanks
just re-ran the script
pi@raspberrypi:~/APS401 $ openaps report show raw-cgm/raw-entries.json --cli
openaps use cgm oref0_glucose --hours "24" --threshold "100"
had selected G5...maybe I had to start from step 0 again?
garykidd
@garykidd
Oct 08 2016 00:32
would really like to work on making rig an uploader for G5 when receiver is connected via usb
maybe the better route is to try to get a g4 setup going...BT transmitter connection to iphone (mine at least) not nearly as good as connection for the G5 receiver to transmitter (way better).
Dana Lewis
@danamlewis
Oct 08 2016 00:36
@garykidd yes
garykidd
@garykidd
Oct 08 2016 00:37
@danamlewis thx. You may have seen that last pic I posted.....form factor not working for me. thx
@danamlewis you're using G4 right?
Dana Lewis
@danamlewis
Oct 08 2016 00:43
Yes
garykidd
@garykidd
Oct 08 2016 01:09
hmmm... might have to think further about that over here.
David
@davidkeddydb
Oct 08 2016 01:44
Ok, need some help. I think I flashed the wrong file to the TI stick as I am getting this message in the log file: raise SubgRfspyVersionNotSupported("Your subg_rfspy version (%s) is not in the supported version list: %s" % (version, "".join(self.SUPPORTED_VERSIONS)))
mmeowlink.exceptions.SubgRfspyVersionNotSupported: Your subg_rfspy version (0.9) is not in the supported version list: 0.60.70.8
Can someone point me to the right file and I will reflash the TI stick?
the file I flashed which I am gathering is wrong was usb_ep0_TI_DONGLE_WW_STDLOC.hex
David
@davidkeddydb
Oct 08 2016 02:00
I will try stepping down to version 8 and see if that works
garykidd
@garykidd
Oct 08 2016 02:15
@davidkeddydb you probably dont want WW version as I belive thats a euro pump.
David
@davidkeddydb
Oct 08 2016 02:18
I am getting a flash erase fail on the debugger. Hmmm
garykidd
@garykidd
Oct 08 2016 02:20
I think this is what you want...
David
@davidkeddydb
Oct 08 2016 02:20
Thanks @garykidd I don't know what happens if I can't remove the previous that was flashed to it.
garykidd
@garykidd
Oct 08 2016 02:27
I think you can just overwrite it actually...Are you using debugger?
@davidkeddydb any luck?
David
@davidkeddydb
Oct 08 2016 02:31
yes, I just did append and verify as it wouldnt let me erase program and verify
no clue what happens if I know have 2 of these files on it. I don't no why I cant remove the first
write protect when I originally did it said write protect not upper pages. Will take it out and give it a whirl. Either will work or it won't
David
@davidkeddydb
Oct 08 2016 02:51
Yeah, no dice. raise SubgRfspyVersionNotSupported("Your subg_rfspy version (%s) is not in the supported version list: %s" % (version, "".join(self.SUPPORTED_VERSIONS)))
mmeowlink.exceptions.SubgRfspyVersionNotSupported: Your subg_rfspy version (0.9) is not in the supported version list: 0.60.70.8
I guess my efforts to reflash it didnt work. Unless someone gives me another way, I will assume the TI stick is screwed and I need to get another stick. I will PR the wiki to make sure you use one of the 3 and not the latest greatest as it is presently listed on set up
David
@davidkeddydb
Oct 08 2016 03:01
added to the fun is that the stick isnt installing right, as it is listed under a dialout which I bet it isn't supposed to be: crw-rw---T 1 root dialout 166, 0 Oct 7 22:43 /dev/ttyACM0
garykidd
@garykidd
Oct 08 2016 03:23
@davidkeddydb mine is on /dev/ttyACM0
Are youusing the TI tool downloaded from their website?
David
@davidkeddydb
Oct 08 2016 03:24
yup. I think I have it resolved...well, maybe. Will know in a second
garykidd
@garykidd
Oct 08 2016 03:26
can anyone tellme which output to use from adafruit powerboost 1000 to power edison?
David
@davidkeddydb
Oct 08 2016 03:27
@garykidd does the light on your TI stick stay on when plugged into your PI?
garykidd
@garykidd
Oct 08 2016 03:31
you know sometimes it does but when you do a openaps use pump mmtune for instance it should blink rapidly for quite awhile.
Do I want 5v or Vs to power J2 connector of edison?
Aaron Burrow
@burrows-labs
Oct 08 2016 03:55
I have a few specific questions about the oref0 source code for openaps pertaining to the determine_basal function.
For starters, what does the 'a' in aCOB and aci stand for? I think that COB stands for carbohydrates on board and ci stands for carbohydrate impact, but I don't know what the 'a' means.
David
@davidkeddydb
Oct 08 2016 03:57
@garykidd Well, I think I flashed it but now it doesnt show up at all in the tty on usb.
Aaron Burrow
@burrows-labs
Oct 08 2016 04:05
Maybe it means absorbed?
David
@davidkeddydb
Oct 08 2016 04:09
@garykidd WAHOO!!! Got it.....Finally. Second rig is now working!!
Dana Lewis
@danamlewis
Oct 08 2016 04:20
@burrows-labs a = accelerated
David
@davidkeddydb
Oct 08 2016 04:20
To answer my own question, when the TI stick is ready to communicate with the pump it goes green light and flickers the green light. Don't know if that is consistent but has been for last 11 minutes here. Either steady green or flickering green.
Aaron Burrow
@burrows-labs
Oct 08 2016 04:22
Thanks @danamlewis. Looking at the tests for determine_basal, iob_data is always a hash, but determine_basal can handle it as a list. During normal operation is this value virtually always a list?
Do you have a piece of 'real' iob_data I could look at?
Scott Leibrand
@scottleibrand
Oct 08 2016 05:06
@davidkeddydb that 0.9 thing is a bug in mmeowlink. No one has updated it since @ps2 released subg_rfspy 0.9.
It's a trivial change, if you want to make it and PR it in.
David
@davidkeddydb
Oct 08 2016 05:10
@scottleibrand I needed to mess around with this so I would be ready to go for the explorer board when it comes in. :smile: I now need to just figure out what I am going to carry this in once I get the right cables I want. I don't know if the micro adapters will work as the distance between the otg and console on the sparkfun is so small but I am going to see if it might work.
David
@davidkeddydb
Oct 08 2016 05:27
@garykidd Thanks for the help. I am calling it a night.
C-Ville
@C-Ville
Oct 08 2016 08:03
@garykidd from what I heard the Battery in of the edison is NOT 5V tolerahnt
grhulz
@grhulz
Oct 08 2016 09:18
I recently started looping with a carelink. I find that the carelink loses the ability to communicate with the pump and the only way to reset it is to unplug and reinsert the stick. Is this normal? Is there a way to programmatically reset the stick after a failed preflight?
Laura
@Laura_in_lime_twitter
Oct 08 2016 09:24
Ok! I have all my connection setup and my raspberry pi is communicating with my NS and pulling BGs appropriately and communicating with my pump pulling accurate pump info via various settings...
Sorry! New to Gitter, didn't realize I couldn't return.... I have my pi all connected just was looking for clarification if I need to manually go through and setup all the various reports or if as it seems when I'm reading and what I'm seeing oref0 already has all the report options setup and I need to move to
Sorry! New to Gitter, didn't realize I couldn't return.... I have my pi all connected just was looking for clarification if I need to manually go through and setup all the various reports or if as it seems when I'm reading and what I'm seeing oref0 already has all the report options setup and I need to move to The very last step of phase 2 and will my loop actually start "running"??
Tim Street
@tim2000s
Oct 08 2016 11:31
I made that update on the mmeowlink code. I'm just a bit rubbish with the PRs and git.
@grhulz Your best bet is to get a "Slice of radio" and stick it on the serial port of the Pi. It makes a much more reliable connection.
To reset the USB though, you can use oref0-reset-usb as part of your error handling.
Hardwick1973
@Hardwick1973
Oct 08 2016 12:15
This message was deleted
Picture1.png
Hardwick1973
@Hardwick1973
Oct 08 2016 12:20
Picture2.png
@Hardwick1973 Hi All - I am starting to get to grips with a PGLM loop....it is showing great promise. By looking at the various reports pump, G5 and NS are all working well. I've got a few things that I am battling with. Firstly, I work in mmol/l and therefore BGs are entered in this format into my bolus wizard. On closer inspection of the NS representation (which is also set to mmol/l) the comments shows as my mmol/l figure (entered into the pump) as a mg/dL. In the example above, a BG of 6.6 mmol/l is represented at 66mg/dL (ie 3.6 mmol/l). Is there anything I can do to correct this or do I need to flip over to mg/dL? Secondly, I am getting "COB: undefined" even though I am using my bolus wizard and meal.json shows {"carbs":59,"boluses":3.6,"mealCOB":57}. Finally, using CRON I am looping (I can follow this using the various logs). However, according the NS, my APS is not enacted...I was hoping it would say I would be looping. Any pointers gratefully received.
Tim Street
@tim2000s
Oct 08 2016 12:31
Hi @Hardwick1973 - did you install running the setup script?
Hardwick1973
@Hardwick1973
Oct 08 2016 12:53
Hi @tim2000s - yes
C-Ville
@C-Ville
Oct 08 2016 12:54
Loks live the inverse Bug @ceben80 was Reporting for his 754 pump
Tim Street
@tim2000s
Oct 08 2016 12:59
I've just made a PR to fix that 0.9 error in subg. Think I've got it right this time too!
C-Ville
@C-Ville
Oct 08 2016 13:00
@Hardwick1973 what pump are you using?
Hardwick1973
@Hardwick1973
Oct 08 2016 13:07
@C-Ville 522
Tim Street
@tim2000s
Oct 08 2016 13:09
@Hardwick1973 Have you checked the output in your /var/log/openaps/ns-loop.log?
Hardwick1973
@Hardwick1973
Oct 08 2016 13:17
@tim2000s I've had a look for this but can't find it (guess I am not looking in the right place as I am assuming it is located within my aps instance
Tim Street
@tim2000s
Oct 08 2016 13:22
try using tail -f /var/log/openaps/ns-loop.log @Hardwick1973 - it's a standard feature of the set-up script.
Hardwick1973
@Hardwick1973
Oct 08 2016 13:25
@tim2000s thanks - the log seems to show that things are working correctly
Tim Street
@tim2000s
Oct 08 2016 13:30
Don't enter your blood glucose into the bolus Wizard @Hardwick1973 - just carbs.
You then let openAPS manage the adjustment of your background level
That's what it's supposed to do!
Hardwick1973
@Hardwick1973
Oct 08 2016 13:33
@tim2000s thanks - does the APS ignore actual BG readings from finger pricks?
Sandra Keßler
@SandraK82
Oct 08 2016 13:38
thanks to @ceben and @DesertHunter a new version of the local ns script got released
Tim Street
@tim2000s
Oct 08 2016 13:40
That's right. Effectively what you are doing is telling the bolus wizard on the pump to do something similar to what oref0 is doing, namely trying to get your glucose level back to its target level, the targets which are in the pump, and are extracted every time the loop runs
Laura
@Laura_in_lime_twitter
Oct 08 2016 15:43
@hardwick1973 can you direct me to how you are getting OpenAPS showing up on your nightscout?? I have my G5 data and my raspberry pi can pull that but I don't have that going yet and haven't seen that in the read-the-docs steps... Am I missing something??
Tim Street
@tim2000s
Oct 08 2016 15:44
@Laura_in_lime_twitter you need to have openaps in the ENABLE list
Then you need to select the openers check box in the settings panel.
Do you also have basal set up in the ENABLE list?
PieterGit
@PieterGit
Oct 08 2016 15:58
does anybody know how many records are in a dexcom g4 receiver memory page. I noticed openaps use cgm oref0_glucose -n [0..10000] is quite lineair (using dexcom g4 connected to usb)
blob
getting 0 .. approx 100 records take 6 seconds, and getting all records on the receiver (~8800 in my case) takes ~ 53 seconds. it seems not to make any difference if i get one record or say 40 or 100 records. both take ~ 6 seconds (rpi3 with kernel 4.4.21-v7)
Eric
@ecc1
Oct 08 2016 16:30
@PieterGit A full page of EGV data contains about 140 records (I might be off by a couple). (1590 bytes max per page, 11 bytes per record, 30 bytes of header and CRC.) So you might be able to see a step function between fetching 100 vs. fetching 200.
Hardwick1973
@Hardwick1973
Oct 08 2016 16:50
@grhulz I have the same issue with the Carelink port going offline. Have you found a solution?
grhulz
@grhulz
Oct 08 2016 16:54
@Hardwick1973 Not yet. I'm going to try the suggestion to reset using oref0-reset-usb as part of my error handling tonight. I'll let you know how it goes.
Tim Street
@tim2000s
Oct 08 2016 17:33
@Hardwick1973 @grhulz That seems to be the only way to do it. It's pretty frustrating otherwise, and @scottleibrand gave me the tip.
I set it up so that before each loop, I'd reset the usb ports so there were no issues, but I have an Rpi3 so wifi and bt were running on the board itself and not via wifi, which can be an issue if you always reset the USB ports
Scott Leibrand
@scottleibrand
Oct 08 2016 17:38
I have better error handling in a in the Carelink branch of my openaps-sh setup.sh for doing oref0-reset-usb only if the Carelink was actually untraceable. If anyone using Carelink wants to work with me to implement that, we can incorporate it into oref0-setup.
grhulz
@grhulz
Oct 08 2016 17:41
I'm game to give it a try.
Maybe would be best to replace the mmtune alias with that.
grhulz
@grhulz
Oct 08 2016 17:57
Ok. I'll take a look at it this afternoon.
Sandra Keßler
@SandraK82
Oct 08 2016 18:56
Question to long time looper: how much space should I reserved for mongodb? Currently I have 447mb after two weeks of collecting data and one week looping in my mongo directory
Hardwick1973
@Hardwick1973
Oct 08 2016 19:01
@grhulz I have tried running "oref0-reset-usb" but I get a permission denied error. Can you let me know how you get on
Tim Street
@tim2000s
Oct 08 2016 19:28
use sudo oref0-reset-usb
Aaron Burrow
@burrows-labs
Oct 08 2016 19:54
I see this line openaps device add tz timezones in oref/bin/ns-uploader-setup.sh, but I don't see any reference to a 'timezones' device type in the documentation (https://openaps.readthedocs.io/en/latest/docs/openaps-guide/core/devices.html).
Maybe there is information about the 'timezones' device somewhere else.
Aaron Burrow
@burrows-labs
Oct 08 2016 20:15
Ok, I see that it's in openaps-contrib
Mike
@libxmike
Oct 08 2016 20:21
@scottleibrand which openaps install script to use for initial installation, curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash - or is there something newer ?
Mike
@libxmike
Oct 08 2016 20:37
thanks Dana
Tim Street
@tim2000s
Oct 08 2016 20:38
@scottleibrand I was testing something this afternoon and I realised why no-one reads the help line that comes up when you run the install script!
Scott Leibrand
@scottleibrand
Oct 08 2016 20:39
Orly?
Tim Street
@tim2000s
Oct 08 2016 20:42
A paris airport?
Scott Leibrand
@scottleibrand
Oct 08 2016 20:43
Heh. That's short for Oh really?
Tim Street
@tim2000s
Oct 08 2016 20:44
I think it's just because it's got so much info in it and you don't read it as a help statement
With a bit of formatting and something that says something along the lines of "Command line options" it's less likely that it will get passed over.
Sandra Keßler
@SandraK82
Oct 08 2016 21:39
Where was the link to AMA testing?
Dana Lewis
@danamlewis
Oct 08 2016 21:44
Unannounced meal testing, you mean? Or docs about AMA?
Sandra Keßler
@SandraK82
Oct 08 2016 21:45
The unannounced testing. Did it today once because I was to stupid and once because the first time was going nicely
lukas-ondriga
@lukas-ondriga
Oct 08 2016 22:50
Hi all. I did the oref0-setup.sh. Now when I run "ns-upload-entries upload/pumphistory-entries.json" the result if following:
Any Ideas?
lukas-ondriga
@lukas-ondriga
Oct 08 2016 23:32
I found the solution here: openaps/oref0#218 I needed to modify the ns-upload-entries script and to add access token. Is it planned to modify the upload scripts in this way? Is there a better solution?
Scott Leibrand
@scottleibrand
Oct 08 2016 23:40
Dana Lewis
@danamlewis
Oct 08 2016 23:40
@SandraK82 ^
grhulz
@grhulz
Oct 08 2016 23:45
@scottleibrand That Unannounced Meal Testing is cool. Not quite ready to take that one on, but very cool.
Tim Street
@tim2000s
Oct 08 2016 23:49
AMA does a great job with that. It's why I want oref0 working with Loopkit.
The Loopkit form factor is great for every day life, but I do think the oref0 mechanics seem to work better.
Terri Lyman
@tatigger
Oct 08 2016 23:52
When I type this, openaps get-profile I get this,
usage: openaps-report invoke [-h] and then a lot of other stuff. What am I supposed to see?