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

28th
Feb 2016
Ed Raskin
@msrcgm
Feb 28 2016 00:00 UTC
.
live4sw
@live4sw
Feb 28 2016 00:42 UTC
Another quick q - I have my commands all set up and am thinking about the cron steps I want to do, but is there a way people use to keep track of the commands that are enacted? since each loop deletes the existing enacted.json, how can one look back and see what was done?
Ben West
@bewest
Feb 28 2016 00:43 UTC
git log enacted.json
Jason Calabrese
@jasoncalabrese
Feb 28 2016 00:43 UTC
I push to github every 5mins
Ben West
@bewest
Feb 28 2016 00:43 UTC
try git log -p :-)
This message was deleted
awhile ago I tried this
git rev-list --max-count 200 HEAD -- oref0-predict/iob.json | while read commit ; do git show $commit:oref0-predict/iob.json; done | json -g > iobs.json
live4sw
@live4sw
Feb 28 2016 00:47 UTC
what does that do?
Ali Mazaheri
@amazaheri
Feb 28 2016 00:56 UTC
it gives you a historical report of each report, above is for iob.json you can run the same for enact.json, etc. and then cat iobs.json to view
live4sw
@live4sw
Feb 28 2016 01:01 UTC
aha, that is useful, learning a lot here
thanks
Scott Leibrand
@scottleibrand
Feb 28 2016 01:03 UTC
I don't rm enacted.json unless it's time to enact a new one.
Ali Mazaheri
@amazaheri
Feb 28 2016 01:04 UTC
beauty of this project for all of us :) You can push them to github like @jasoncalabrese I myself push them to my backend Azure SQL and use BI tools to do analysis, etc. Power of Data and API :)
live4sw
@live4sw
Feb 28 2016 01:04 UTC
ah, i rm the entire enacted folder in my loop alias, but i suppose since enact isn't going to work anyway unless it has a suggested.json to use, so i could just do rm -f enact/suggested.json in the alias instead
does that make sense?
Scott Leibrand
@scottleibrand
Feb 28 2016 02:33 UTC
Yep
@live4sw Implementing the visualization step with Nightscout is what really helped me understand what the system was doing. Especially when I am not at a computer
Scott Leibrand
@scottleibrand
Feb 28 2016 02:41 UTC
:+1:
live4sw
@live4sw
Feb 28 2016 02:58 UTC
thanks @eyim, sounds like a good project for tomorrow
Ben West
@bewest
Feb 28 2016 03:14 UTC
interesting, we can help people with firstpr by creating a template that stubs out our preferred communication style: https://github.com/blog/2111-issue-and-pull-request-templates
Milos Kozak
@MilosKozak
Feb 28 2016 09:58 UTC

@jasoncalabrese @bewest need help how are you creating status for openaps plugin in NS. correct me if i'm wrong: dermine basal result goes to suggested. if this request is going to be performed it goes to enacted. and if it's confirmed enacted is extended by

 "requested": {
                 "duration": 30,
                 "rate": 2,
                 "temp": "absolute"
   },
   "recieved": true,
    "duration": 30

ok?

live4sw
@live4sw
Feb 28 2016 13:37 UTC
Hi all - I have my retry-loop alias ready and set up my crontab, and my syslog shows cron running the command every 5 minutes, but it doesn't seem to actually be running the loop. Any thoughts on what I might be doing wrong? My crontab is:
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

*/5 * * * * (cd ~/myopenaps1 && openaps retry-loop && git push origin master)
Milos Kozak
@MilosKozak
Feb 28 2016 14:08 UTC
closer and closer with DanaR :)
This message was deleted
LadyViktoria
@LadyViktoria
Feb 28 2016 14:08 UTC
:-*
Milos Kozak
@MilosKozak
Feb 28 2016 14:11 UTC
blob
Dragan Maksimovic
@dm61
Feb 28 2016 14:16 UTC
@live4sw , in cron you should have full path to your directory, e.g. cd /home/pi/myopenaps1 You can use pwd to see your full path
live4sw
@live4sw
Feb 28 2016 14:19 UTC
oh ok, just changed to that
live4sw
@live4sw
Feb 28 2016 14:31 UTC
Hm, made that change but it still doesn't seem to be running the loop
This message was deleted
This message was deleted
Feb 28 09:30:01 raspberrypi CRON[3114]: (pi) CMD ((cd /home/pi/myopenaps1 && openaps retry-loop && git push origin master))
Feb 28 09:30:06 raspberrypi CRON[3107]: (CRON) info (No MTA installed, discarding output)
so it seems like it is running the job every 5 minutes, but nothing is actually happening
since afterward I cat enact/suggested.json and it's still the file from an hour or so ago when I last manually ran the loop
Jason Calabrese
@jasoncalabrese
Feb 28 2016 14:52 UTC
@MilosKozak the json for suggested and enacted are similar, I'm showing both since many time so do a full loop and don't enact. Also after enacting the next loop will probably not enact, but it's nice to see the new calculations and that the loop ran
Since many of us have multiple rigs rubbing at once we always show the most recent enact and if suggest is newer that too.
Dragan Maksimovic
@dm61
Feb 28 2016 14:56 UTC
@live4sw you should probably add something like 2>&1 | logger -t openaps at the end of your crontab line, so you can see any errors or outputs from your loop in the system log
live4sw
@live4sw
Feb 28 2016 14:58 UTC
sure, will try that too
Jason Calabrese
@jasoncalabrese
Feb 28 2016 15:01 UTC
Wow, so many typos in my comments above, hope you get the idea @MilosKozak
Milos Kozak
@MilosKozak
Feb 28 2016 15:19 UTC
thx .... so i'm right about processing?
copy from suggested to enacted only if i'm processing it by pump ...
and every new determinebasal loop creates new suggested
Scott Leibrand
@scottleibrand
Feb 28 2016 15:22 UTC
That sounds right.
live4sw
@live4sw
Feb 28 2016 15:32 UTC
@dm61 seems to be working now, also having logger running means i don't need to push every 5 minutes to keep track of my enacts, can just check the logs. appreciate it! on to the next step (nightscout)
Scott Leibrand
@scottleibrand
Feb 28 2016 15:34 UTC
:+1:
Dragan Maksimovic
@dm61
Feb 28 2016 15:34 UTC
:+1:
Milos Kozak
@MilosKozak
Feb 28 2016 15:37 UTC
This message was deleted
Milos Kozak
@MilosKozak
Feb 28 2016 15:42 UTC
finaly. i was hunting a typo :(
blob
Jason Calabrese
@jasoncalabrese
Feb 28 2016 16:04 UTC
Yeah, that sounds right
Milos Kozak
@MilosKozak
Feb 28 2016 16:12 UTC
or do you remove enacted part on new record?
Scott Leibrand
@scottleibrand
Feb 28 2016 16:39 UTC
I only remove suggested.json not enacted.json
Milos Kozak
@MilosKozak
Feb 28 2016 16:44 UTC
thx
Simon Gordon
@s1m0
Feb 28 2016 17:25 UTC
is anyone using the TI CC1111 with the Raspberry Pi or is there some reason it will only work with an Edison? I could not get the carelink stick to work with the PI but I have a programmed TI CC1111 which has great range when used in the nightscout
Dana Lewis
@danamlewis
Feb 28 2016 17:26 UTC
We are using TI with Pi, works well
Simon Gordon
@s1m0
Feb 28 2016 17:28 UTC
@danamlewis hooray and thanks! do i just follow the same instructions as for carelink or is there some different config/code/instructions I should check?
Dana Lewis
@danamlewis
Feb 28 2016 17:29 UTC
We don't have it in openAPS docs yet, but look in @oskarpearson 'S mmeowlink wiki - should be helpful there :)
Simon Gordon
@s1m0
Feb 28 2016 17:30 UTC
@danamlewis thanks so much!
Dana Lewis
@danamlewis
Feb 28 2016 17:30 UTC
:+1: @s1m0 Happy looP building :)
Matthias
@ceben80
Feb 28 2016 17:30 UTC
yes great docs from @oskarpearson :+1:
Nyadach
@Nyadach
Feb 28 2016 17:30 UTC
Hi @danamlewis been looking through some of the guides for the Riley Link, but they seem to be bridging it to Bluetooth LE, for the Pi/Edison assume just skip the link part and directly wire the CC1111 in?
Dana Lewis
@danamlewis
Feb 28 2016 17:35 UTC
@Nyadach You have to put firmware on ble chip to disable ble and then solder it to Edison ( w ribbon cable). No one we know has done with Pi.
Btw re specifics of RileyLink and mmeowlink, there are also good gitter channels to discuss : ps2/rileylink and oskarpearson/mmeowlink
(Helpful once you get into specific build and troubleshooting Qs)
Scott Leibrand
@scottleibrand
Feb 28 2016 17:38 UTC
The TI or "Slice of Radio" is probably a better fit for the Pi. No sense soldering unless you need the smaller size
Dana Lewis
@danamlewis
Feb 28 2016 17:38 UTC
TI also has better range for Pi
(RileyLink is better than carelink, but Ti does a whole room for me)
Nyadach
@Nyadach
Feb 28 2016 17:38 UTC
seem to be plenty using it for other things with the Pi, so fingers crossed shouldn't be any problems
Dana Lewis
@danamlewis
Feb 28 2016 17:40 UTC
No problems, but if you're going to carry Pi and battery I would choose TI and use Rileylink for small rig Edison . But you can plug and play however you like :)
Scott Leibrand
@scottleibrand
Feb 28 2016 17:40 UTC
Actually you might be able to attach TI or RL cc1111 to Pi's GPIO pins with the right ribbon cable breakout.
(Without soldering)
Dana Lewis
@danamlewis
Feb 28 2016 17:41 UTC
<3 how many options we have now. Kudos @bewest @ps2 @oskarpearson et al :)
Nyadach
@Nyadach
Feb 28 2016 17:43 UTC
Love how many options they've given us to play with :)
Jim Matheson
@jmatheson
Feb 28 2016 17:56 UTC
Why rl over erf?
For edison
Scott Leibrand
@scottleibrand
Feb 28 2016 18:01 UTC
Because you already have one? :-)
Like with TI, you can attach ribbon cable to RL vs. soldering to Edison.
Peter Miller
@ochenmiller
Feb 28 2016 19:36 UTC
Someone is offering me a 530G pump. Assuming it won't work, as I don't see it on the current hardware list?
Scott Leibrand
@scottleibrand
Feb 28 2016 19:38 UTC
If it's from the US it definitely won't loop with OpenAPS.
Doubt there are any compatible international 530G's either.
Peter Miller
@ochenmiller
Feb 28 2016 19:40 UTC
It's US. I'll tell him to hang onto it, or sell on medwow.
Scott Leibrand
@scottleibrand
Feb 28 2016 19:40 UTC
Or send it to Kenya. :-)
Peter Miller
@ochenmiller
Feb 28 2016 19:47 UTC
turns out he has a 722. I'm in heaven
mint condition
Dana Lewis
@danamlewis
Feb 28 2016 19:47 UTC
:)
Brian Bonner
@itsn0tm3
Feb 28 2016 19:48 UTC
speaking of medwow, how reliable is it? I have a 723 so I need to find a 722 and was checking out medwow. Prices seemed all over the place so was wondering
Dana Lewis
@danamlewis
Feb 28 2016 19:49 UTC
@itsn0tm3 haven’t used it, but if you find a good one, try asking them for a video showing it boot up (i.e. insert a new battery) so you can verify that it works with a battery in, plus a good way to check which version it is (shows on the screen as it turns on)
Brian Bonner
@itsn0tm3
Feb 28 2016 19:50 UTC
good idea, I'll try that if I use medwow!
Dana Lewis
@danamlewis
Feb 28 2016 19:52 UTC
but price definitely varies depending on the seller. fwiw, have seen/heard of $500-1,000 depending on condition. wouldn’t pay 1,000+ unless it was still saranwrapped in the box.
Brian Bonner
@itsn0tm3
Feb 28 2016 19:54 UTC
Was trying to figure out which prices seemed "too good to be true", saw anywhere from $300 to $2500 so was a bit interesting. $500-$1000 seems like a good place to aim for
Dana Lewis
@danamlewis
Feb 28 2016 19:54 UTC
:+1:
also always worth asking around local community, local support groups to see if anyone wants to give away one in their closet.
Brian Bonner
@itsn0tm3
Feb 28 2016 19:55 UTC
agreed
(offhand, thanks to you and scott for doing the diyps stuff, I actually read it in the rasberry pi site and got started there)
Scott Leibrand
@scottleibrand
Feb 28 2016 19:57 UTC
Biggest complaint I've heard with Medwow is that people don't take their listings down. So email everyone with a promising listing, and expect most of them to ignore you.
Dana Lewis
@danamlewis
Feb 28 2016 19:58 UTC
:) @itsn0tm3 welcome, and glad you’re joining in!
and per @scottleibrand, maybe everyone here once they get a pump from medwow should remind the seller to take their listing down :)
Brian Bonner
@itsn0tm3
Feb 28 2016 19:59 UTC
thats an idea! I'll probably ask them the listing down if it's outdated when I email them asking if it's still available
(the = to take the)
Dana Lewis
@danamlewis
Feb 28 2016 20:01 UTC
welcome also to Gitter, where everyone is VERY forgiving of typos, missing words, and multiple ‘sends’ to get a message in :)
Brian Bonner
@itsn0tm3
Feb 28 2016 20:04 UTC
:) its a forced habit ha
joannestevens
@joannestevens
Feb 28 2016 20:36 UTC

I seem to have taken a hug step back today .... I was trying to upload my data straight from nightscout but I decided to go for a receiver instead. Added the receiver as a device and I can no longer communicate with either my pump and cannot communicate with the receiver either.

I am now getting this error message:

Using username "pi".
pi@raspberrypi.local's password:
Access denied
pi@raspberrypi.local's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 28 20:02:51 2016 from fe80::786c:a9a2:812b:40d7%wlan0
pi@raspberrypi ~ $ cd myopenaps
pi@raspberrypi ~/myopenaps $ openaps use jopump model
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.0.10', 'openaps-use')
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 724, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1650, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/cli/init.py", line 40, in call
self.configure_parser(self.parser)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/EGG-INFO/scripts/openaps-use";, line 31, in configure_parser
available = devices.get_device_map(self.config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/devices/init.py", line 21, in get_device_map
for device in Device.FromConfig(vendors, conf):
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/devices/device.py";, line 79, in FromConfig
device.read(config=config)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.10-py2.7.egg/openaps/devices/device.py";, line 36, in read
self.extra.fields.update(dict(extra.items(self.section_name( ))))
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "jopump"'
pi@raspberrypi ~/myopenaps $

Any problem solving tips?

Scott Leibrand
@scottleibrand
Feb 28 2016 20:37 UTC
You're referencing a device you haven't defined.
You need to add "jopump" as a device.
No idea what you mean by "a receiver" though.
joannestevens
@joannestevens
Feb 28 2016 20:38 UTC
already doen that, I was previously able to communicate with pump, its in my ini file
the dexcom receiver
Scott Leibrand
@scottleibrand
Feb 28 2016 20:39 UTC
You must've broken your openaps.ini then.
joannestevens
@joannestevens
Feb 28 2016 20:39 UTC
Shall I remove device and try and re add?
Scott Leibrand
@scottleibrand
Feb 28 2016 20:39 UTC
To the point that it can't read it and can't find the jopump section.
joannestevens
@joannestevens
Feb 28 2016 20:39 UTC
How can I resolve?
Scott Leibrand
@scottleibrand
Feb 28 2016 20:40 UTC
Remove and readd is worth a try. And maybe look at your openaps.ini to see what is wrong with it.
joannestevens
@joannestevens
Feb 28 2016 20:41 UTC
It won't let me remove it
Scott Leibrand
@scottleibrand
Feb 28 2016 20:54 UTC
Then your ini is corrupted.
joannestevens
@joannestevens
Feb 28 2016 20:55 UTC
Do I need to wipe the SD card and start again?
Scott Leibrand
@scottleibrand
Feb 28 2016 20:55 UTC
if you want to recover it you'll need to pull out the git history tools.
Or you can mv the openaps.ini elsewhere and readd all your devices and reports.
No need to wipe the SD card.
Or leave the current stuff alone and do a new directory and readd there.
joannestevens
@joannestevens
Feb 28 2016 20:57 UTC
The git history tools maybe a little beyond me.
Start a new directory and essentially start from scratch?
Scott Leibrand
@scottleibrand
Feb 28 2016 21:06 UTC
Yeah, that is the simplest option to explain. Lots of work though.
git log openaps.ini would show you what historical versions of that file it knows about.
And then you could git checkout one of those
joannestevens
@joannestevens
Feb 28 2016 21:07 UTC
what does git checkout do?
Scott Leibrand
@scottleibrand
Feb 28 2016 21:07 UTC
but you'll need to actually learn some git to do that, or find someone to help. (I'm mobile)
"checks out" a file: in this case an older version.
joannestevens
@joannestevens
Feb 28 2016 21:09 UTC
Ok, thanks, it's late over here, will have a look at it again tomorrow
Brian Bonner
@itsn0tm3
Feb 28 2016 21:27 UTC
Question- I noticed that the BG stats tend to focus more on the Dexcom results rather than if there is any manual BG tests. Is that true or is that just because I'm using the nightscout bridge (have a G5 with an iOS bridge)
I do figure that it's probably near impossible to put together the manual BG and dexcom data since they can differ at times
Dana Lewis
@danamlewis
Feb 28 2016 21:33 UTC
What are you referring to re stats? You mean talking about time in range? Or something else?
Scott Leibrand
@scottleibrand
Feb 28 2016 21:35 UTC
The assumption is that manual BG meter measurements are only useful for calibrating the CGM.
when you choose to test will irreparably bias any statistics based on meter BG readings.
Brian Bonner
@itsn0tm3
Feb 28 2016 21:36 UTC
Dana- was just wondering. I did a manual BG and noticed that it didn't really get used anywhere
Scott- got it. Makes sense.
Dana Lewis
@danamlewis
Feb 28 2016 21:38 UTC
Yea. It's not used by the loop.
Brian Bonner
@itsn0tm3
Feb 28 2016 21:44 UTC
Was just bit of a surprise, I've always had the thought that the manual BG was more accurate than any data you would get from the dexcom. Hannemann's test of the meters threw me for a bit. I'm biased in that I used the early versions of medtronic's CGM and the data I got off that was pretty bad. I test a few times a day just to make sure that the dexcom is still close to what I get just to kind of restore my faith in CGM's.
Dana Lewis
@danamlewis
Feb 28 2016 21:47 UTC
Yep. But the algorithm uses trends (expected delta), too, not just a single data point. So safer overall to use avg delta over multiple data points in case of a fluky data point, from compression or other wise.
Brian Bonner
@itsn0tm3
Feb 28 2016 21:49 UTC
got it
Peter Miller
@ochenmiller
Feb 28 2016 22:09 UTC
oh happy day when you get back "722" from openaps use pump model , first try.
Jason Calabrese
@jasoncalabrese
Feb 28 2016 22:19 UTC
:smile:
JaysonEwer
@JaysonEwer
Feb 28 2016 22:30 UTC
👍
@itsn0tm3 I "used" medwow, to find an email address that I reached out to and got a pretty nice 522 for 450, I haggled with them a bit on the price. I'm not sure where they get their inventory from, but it sounded like they had a bunch.
They sent it from North Carolina.
Brian Bonner
@itsn0tm3
Feb 28 2016 22:35 UTC
@JaysonEwer Thanks!
Jayson - can you share that e-mail address? If they have a lot then maybe others can get it from them as well
Jason Calabrese
@jasoncalabrese
Feb 28 2016 23:11 UTC
I'm waiting for "openaps compatible" to start being used in the medwow listings
Dana Lewis
@danamlewis
Feb 28 2016 23:14 UTC
Heh
C-Ville
@C-Ville
Feb 28 2016 23:14 UTC
that would be a huge selling factor
JaysonEwer
@JaysonEwer
Feb 28 2016 23:18 UTC
@jasoncalabrese :smile: :+1:
the email address I ended up using to communicate with them was:
betterdays727@yahoo.com Is the PayPal account they used. I hope this helps.
Thanks Jayson - I've been using them as well.
Jim Matheson
@jmatheson
Feb 28 2016 23:35 UTC
I think one problem with medwow commuication is they dont email you when a message is sent/received. Or at least i could not get it to work for me. You have to remember to login and check
Brian Bonner
@itsn0tm3
Feb 28 2016 23:41 UTC
FYI I emailed them and got a reply back, apparently they do have quite a few of them (722's)
Jim Matheson
@jmatheson
Feb 28 2016 23:49 UTC
By they i meant individual sellers. The volume guys should be quick ans direct email seems like a good move
JaysonEwer
@JaysonEwer
Feb 28 2016 23:51 UTC
@jmatheson :+1: