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

9th
Jul 2016
fjungman
@fjungman
Jul 09 2016 00:00
I looked through the docs and this gitter, but I didn't see this asked/answered. Is "preflight" really useful once the loop is working well? I'm thinking that letting it run without it would be faster, and allow uploading of data to NS, even if the pump is out of range for a while. Maybe trigger the USB reboot only if it fails out later in the loop?
I'm just spit-balling here...
Jason Calabrese
@jasoncalabrese
Jul 09 2016 00:00
indy@indy-e1:~/EdisonVoltage$ sudo ./voltage
Raw Value: 867
Battery Voltage: 3808mV (63%)
openaps/oref0#154 just needs testing/review?
Scott Leibrand
@scottleibrand
Jul 09 2016 00:02
@fjungman now that we have wait-for-silence etc, it may no longer be necessary. see https://github.com/scottleibrand/openaps-sh/blob/refresh-loops/setup.sh for my latest way of doing things without any preflights.
Jason Calabrese
@jasoncalabrese
Jul 09 2016 00:12
@cjo20 or anyone else testing the edison battery stuff, what are you doing to make the json? looks like ns-status is just looking for a single value?
fjungman
@fjungman
Jul 09 2016 00:27
Thanks @scottleibrand !
Paul Martin
@Spazholio
Jul 09 2016 00:40
@scottleibrand Yeah, that branch broke my loop pretty bad. Auto-sens went ka-flooey, the whole 9 yards. Gonna have to switch back to pure AMA for a bit. =)
@jasoncalabrese Run voltage 3 to get just the number.
Scott Leibrand
@scottleibrand
Jul 09 2016 00:45
@Spazholio hmm, that's not good. any idea what broke it?
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 00:54
@jbwittmer @danamlewis Thanks for the feedback. We have yet to have that particular conversation... did anyone wait until the following a1c test to help confirm the benefit? Then at least we could focus the conversation on the data.
@ryanchen26 wrote this.
Martin Haeberli
@mhaeberli
Jul 09 2016 00:59
@danamlewis - looking for guidance - haven’t been able to find Ben. This will sound weird, but I’d like to run oref0 open loop against real-time data from Nightscout, which includes Dexcom Share CGM values AND pump data via RileyLink - just trying to start by tracking, predicting, recommending ...
Brian Bonner
@itsn0tm3
Jul 09 2016 01:10
@stephaniechen82_twitter I went in that direction. Waited for the A1C before opening up a conversation about it. However I had been going in a more devleopmental manner by explaining that I was using my data in other ways like using Tideloop, etc to figure out where I was having problems and once I got those down, they were happy that I was improving. Then the next appointment I had a 6.0 a1c so my nurse prac just walked in and sat down and looked at me like "How'd you do it?". Explained what I did and she was fairly neutral about it because she was (at her own admission) a bit overwhelmed by the whole thing but I thought she was pretty receptive about it
She told me she was fine with what I was doing because she didnt really have an opinion one way or another since everything was just new to her
clevens
@clevens
Jul 09 2016 01:11
Hi all! So I bought a 723 with 2.4 firmware today and I'm SO excited to get started. I'm looking to order all of my hardware, and I'm wondering if I'll need Nightscout. I have a Dexcom CG4 with Share and an Android phone, so I can't use Dex's app. Thanks in advance for any help!
And another quick question. I'd been advised to use a TI instead of CareLink. Is a TI something I can buy and if so where? Thanks!
Brian Bonner
@itsn0tm3
Jul 09 2016 01:14
hi @clevens , if you haven't already read the openaps docs, I think that will answer a lot of your questions
Nightscout is in general recommended to see what OpenAPS Is doing
Carelink is easier to start out with but TI stick has a better range than the Carelink does
clevens
@clevens
Jul 09 2016 01:15
thanks @itsn0tm3 i've been trying too but am struggling a bit with the level it's at haha
Brian Bonner
@itsn0tm3
Jul 09 2016 01:15
if you haven't seen the docs yet, http://www.openaps.org is a good place to start
heh thats understandable
clevens
@clevens
Jul 09 2016 01:16
slowly but surely i'll get there hopefully haha. yes, the range is the reason i thought TI stick might be better
Brian Bonner
@itsn0tm3
Jul 09 2016 01:17
it is better but if you already have a carelink stick, might as go with what you already have!
clevens
@clevens
Jul 09 2016 01:18
i don't have anything yet lol! OpenAPS shopping tonight! so far just the medtronic and just ordered my raspberry pi model 3
Brian Bonner
@itsn0tm3
Jul 09 2016 01:18
sounds like you have a good idea of what hardware is required already since you have the right pump
the TI stick will require some work, the carelink stick will just need to be bought and then can go from there so its really up to you
(if you go with either direction, or can go at both at once, or whatever you decide)
but don't worry, there's good documentation and people here will answer your question as you come up with them
clevens
@clevens
Jul 09 2016 01:21
oh wow. maybe i should do easy. that just means it has to stay RIGHT by me always right?
thanks so much for your help!!
Brian Bonner
@itsn0tm3
Jul 09 2016 01:21
it's encouraged to update the documentation with your question and answers so that way it helps the next person!
For the carelink stick, yes it has to stay a short distance away from you
clevens
@clevens
Jul 09 2016 01:21
happy to do that. is that in the link you sent me
Brian Bonner
@itsn0tm3
Jul 09 2016 01:22
yes the openaps.org will have a FAQ, some links to help read up on, and some other things
the docs for what you need can be found at https://openaps.readthedocs.io/en/latest/index.html too
clevens
@clevens
Jul 09 2016 01:22
great! i need to do a deeper dive there
Brian Bonner
@itsn0tm3
Jul 09 2016 01:32
give a holler if you get stuck anywhere
Hannah Crabtree
@lollydaggle
Jul 09 2016 01:35
I'm new to this but not new to programming. I'm running into issues with SSHing over wifi - RPI3 is connected to the same network as my computer and I can SSH locally via ethernet. I tried the IPQoS c0 c0 idea in this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138631&start=75 with no luck . Wouldn't SSHing via ethernet be fine too? I need a sanity-check before I give up on this piece and move on.
I'm thinking it could also be a router issue since I could get in via wifi last night after we re-set our router
Brian Bonner
@itsn0tm3
Jul 09 2016 01:38
ssh should work
the wifi I've noticed can disconnect on me sometimes, but the ethernet should be solid
never had problems over the wired ethernet
I've never heard of the ipqos thing
maybe dumb question but you have a good power supply to the Pi?
Paul Martin
@Spazholio
Jul 09 2016 01:41
@scottleibrand Sorry, was putting the kids to bed. Should I post the entire log of what happens? Might shed some light?
Hannah Crabtree
@lollydaggle
Jul 09 2016 01:44
Yep - good power supply! The Pi also connects to my wifi network. I just can't access it SSHing over wifi from my computer. I'll just keep plugging away over ethernet for now
Brian Bonner
@itsn0tm3
Jul 09 2016 01:45
maybe using the wrong ip address?
can look at the ip address via ethernet and see what it is picking up and then try again
clevens
@clevens
Jul 09 2016 01:49
Is this the TI stick? http://www.ti.com/tool/TMDX5505EZDSP
Hannah Crabtree
@lollydaggle
Jul 09 2016 01:51
IP address is right too :smile: - I briefly got in last night over wifi
clevens
@clevens
Jul 09 2016 01:51
@iananders i read that before posting. SO confusing lol! ty though
Hannah Crabtree
@lollydaggle
Jul 09 2016 01:51
only thing that changed from last night to tonight was the passing of time
so wondering if its our ancient router now
clevens
@clevens
Jul 09 2016 01:51
i can't seem to find a TI stick for sale..
Brian Bonner
@itsn0tm3
Jul 09 2016 01:52
@lollydaggle that is weird, try the good old fashioned fix, do a reboot? :)
Brian Bonner
@itsn0tm3
Jul 09 2016 01:53
ah @Spazholio beat me to it, and yep they're still for sale
(looks down at his keyboard, ctrl-v you were just too slow!)
Hannah Crabtree
@lollydaggle
Jul 09 2016 01:53
@itsn0tm3 rebooted the pi, computer and router, still no dice - thanks for all these ideas though. makes me feel better that I can't figure this one out yet
clevens
@clevens
Jul 09 2016 01:54
thank you SO much @Spazholio and @itsn0tm3 . i want to do this so bad. i'm just really struggling. 23 year old with no technical background. i wonder if i should continue. already bought the pump and pi. hmmm...
Brian Bonner
@itsn0tm3
Jul 09 2016 01:54
yep keep it up, you'll get it
Paul Martin
@Spazholio
Jul 09 2016 01:55
@lollydaggle Do you have your Pi3 hooked up to a monitor/keyboard/mouse? So you can check some stuff while you try to SSH in from somewhere else?
Terri Lyman
@tatigger
Jul 09 2016 01:59
What do you loopers do when the cgm is clearly not behaving? Yes, I replaced it today, but cgm 94, freestyle 148. then cgm199 freestyle 151. then cgm 155 freestyle 133. These are hours apart, flat line, clean hands, two tests per freestyle to cgm comparison. With corrections made to the cgm. This is my biggest fear of looping. This is the second sensor in this batch like this. If it keeps up, I'll call Dex Monday, but in the meantime, what do you do with that?
Paul Martin
@Spazholio
Jul 09 2016 02:00
Wait, you replaced the sensor…when, specifically?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:01
@Spazholio I can hook it up - I've been working headless
Paul Martin
@Spazholio
Jul 09 2016 02:02
If it was within the last 24 hours, my recommendation is to just wait. It sucks, and I’m not anywhere close to a patient person, but give it 24-36 hours to shake out. If it’s still wonky, Dexcom should replace it…I think.
Terri Lyman
@tatigger
Jul 09 2016 02:02
At 6AM. It is 7PM now. With the last values I posted. I don't always have this problem, but when it happens it scares me. I often rely solely on cgm for dosing during the day, when it has been reliable.
Paul Martin
@Spazholio
Jul 09 2016 02:02
@lollydaggle If you wouldn’t mind? That way if we need to kill the network, it won’t screw things up. =)
Terri Lyman
@tatigger
Jul 09 2016 02:02
Yes, Dex will check and replace, maybe even the whole lot. But meanwhile, we are depending on this thing for our LIVES.
Paul Martin
@Spazholio
Jul 09 2016 02:03
@tatigger I completely understand. But I know that a sensor can be froggy for the first 24 hours. It’s why @danamlewis et al recommend “soaking” a new sensor for a day prior to switching over to it if possible.
Terri Lyman
@tatigger
Jul 09 2016 02:04
The reason I replaced it this am, after only 6 days with the last one, was I was getting these kind of results at least twice a day. It would glitch to weird, be ok for 10 hours, glitch to weird....
Paul Martin
@Spazholio
Jul 09 2016 02:04
That’s definitely weird. No Tylenol, right?
Terri Lyman
@tatigger
Jul 09 2016 02:05
I plan on "soaking" usually. No, no tylenol. but normally don't change the sensor that often, LOL just got fed up this morning.
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:11
@Spazholio okay GUI is up and running, took a hot second
Paul Martin
@Spazholio
Jul 09 2016 02:12
Alright - open up a terminal, please.
And is it plugged in via ethernet and/or connected to WiFi right now?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:13
terminal is open and its connected to WiFI
Paul Martin
@Spazholio
Jul 09 2016 02:14
Ok, now if you were still headless, how exactly would you attempt to SSH into the Pi?
(also - are you using Windows or OS X?)
Martin Haeberli
@mhaeberli
Jul 09 2016 02:15
@lollydaggle :thumbsup:
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:16
Windows. IP Address for the Pi is 192.168.1.9 so I'd open putty and put the IP address in the Host Name (or IP Address) slot and try to run it
Paul Martin
@Spazholio
Jul 09 2016 02:17
Ok, but before you connected the Pi to a monitor, how did you know the IP of it?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:17
ifconfig
wlan0 inet addr is 192.168.1.9
Paul Martin
@Spazholio
Jul 09 2016 02:18
Wait, because you were SSH’d in via ethernet, or…?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:20
yeah, I can SSH via ethernet with the raspberrypi.local
and I could SSH via wifi briefly last night by using the IP address
Paul Martin
@Spazholio
Jul 09 2016 02:20
With the ethernet cable unplugged, what happens if you ping raspberrypi.local from the Windows box now?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:22
It brings up destination host unreachable 4 times
Paul Martin
@Spazholio
Jul 09 2016 02:24
Huh. I wonder if the same thing happens when you reboot. Would you mind trying to reboot the Pi? I’m assuming that both the ethernet and the WiFi are set to use DHCP and not statically assigned?
Brett
@burgertime14
Jul 09 2016 02:25
try 'arp -a' see if something shows up with that
Paul Martin
@Spazholio
Jul 09 2016 02:26
I’ve had to switch back and forth between wired and wireless and never seen it take more than a few seconds to update in my router...
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:26
Pi doesn't show up on the arp-a list. The router itself can ping the pi, boyfriend's computer can't and boyfriend's computer can't ping my computer either
I'll try rebooting the Pi again
Brett
@burgertime14
Jul 09 2016 02:28
FOR /L %i in (1,1,255) do @ping -n 1 192.168.1.%i | find "Reply"
that should list all of the IPs that are active on your network
Paul Martin
@Spazholio
Jul 09 2016 02:28
Holy cow, I don’t think we need to ping sweep yet. =)
Brett
@burgertime14
Jul 09 2016 02:29
it is at home, and fun is fun, I just use nmap
Paul Martin
@Spazholio
Jul 09 2016 02:29
The thing is, she KNOWS the IP address. I’m just wondering why she can’t ping by the mDNS name, why it’s not updating almost instantly in the arp table.
Brett
@burgertime14
Jul 09 2016 02:30
I think your idea to ping was the right one, if it was on the network it would have replied
be away for a sec
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:30
none of our devices show up in the arp-a table
Jason Wittmer
@jbwittmer
Jul 09 2016 02:31
OK I'm sure I'm making this harder than it is but I'm stuck. Trying to figure out how to pull entries.json and profile.json from Nightscout so that I can implement temporary profiles from Nightscout and operate without Dexcom connected to RaspberryPi. There's a sort of oblique and incomplete reference in the docs as to how to do this for entries, but I can't see anything for profile. I assume you have to add openaps device add curl https://[myazuresite]/api/v1/[json] and then some additional argument, but I can't figure out how to format this so I can direct it to a local file. Can anyone help or direct me to a resource to review?
Martin Haeberli
@mhaeberli
Jul 09 2016 02:31
@jbwittmer I’m with you! - I would love guidance on the same question
Jason Wittmer
@jbwittmer
Jul 09 2016 02:32
@mhaeberli At least I'm not alone. That makes me feel better .. but I'll feel even better when I've got it figured out.
Paul Martin
@Spazholio
Jul 09 2016 02:34
Well, settings/profile.json mostly comes from your pump, not NS. The only bit (I think) it needs from NS is temptargets.json and that’s an optional parameter.
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:34
@Spazholio @burgertime14 I'm thinking a Wireless Isolation setup issue? We reset from WEP (haha) to WPA-2 last night and I wonder if we didn't disable
Paul Martin
@Spazholio
Jul 09 2016 02:35
@lollydaggle Your having used WEP hurt my soul. Just know that. =)
Martin Haeberli
@mhaeberli
Jul 09 2016 02:36
@Spazholio yes, but it would be nice to “fake” settings/profile.json if my OpenAPS instance has not seen a local pump over CareLink ...
Paul Martin
@Spazholio
Jul 09 2016 02:36
Ok, but the wifi’s working on the Pi. Which means the Pi talked to the router, negotiated back and forth, giving it a hostname and receiving an IP. So when Windows goes to ping the hostname, the router should just see it.
Curious - can any OTHER devices on your network ping raspberry.local properly?
@mhaeberli That file is comprised of data from many other files. I mean…you can’t generate a “fake” but if you’d like, I can provide you with mine, but…y’know….for the love of all that is holy, don’t actually USE it.
@jbwittmer Can your rig communicate with your pump?
Martin Haeberli
@mhaeberli
Jul 09 2016 02:40
@Spazholio ok - that just means I have to get ourselves through the carelink part … not such a difficult needle to thread, except I am understandably REQUIRED to do it with the T1 patient helping me, and she has been working on other things...
Paul Martin
@Spazholio
Jul 09 2016 02:40
@mhaeberli Nah, just have her take her pump off and leave it with you. =)
Martin Haeberli
@mhaeberli
Jul 09 2016 02:40
:-) good plan!
Jason Wittmer
@jbwittmer
Jul 09 2016 02:41
@Spazholio Yes. I'm looping fine with my current configuration. I'm looking forward to trying to making a rig with a PiZero where I'll pull the entries from the Nightscout site. From a standpoint of pulling the profile it would be useful to be able to set a temporary profile on the Nightscout site (for example for "eating soon") rather than changing to a temporary profile on the pump in some situations. Am I making sense? Sorry.
Paul Martin
@Spazholio
Jul 09 2016 02:42
Or I can give you the report I use to generate it. Again, it needs 5-6 files that are generated from the pump directly though, so if you can just get within a foot of her pump for a few minutes, you should be able to get those files. =)
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:42
@Spazholio when I ping the hostname (raspberrypi.local), it doesn't find anything. When SSH via wifi worked last night, I could only use the IP address to SSH in. None of our devices are pinging the pi using the pi's IP address
Paul Martin
@Spazholio
Jul 09 2016 02:42
@jbwittmer Temp targets are ONLY set in NS, I believe, so you’re good there.
"None of our devices are pinging the pi using the pi's IP address” <— the WiFi address?
Martin Haeberli
@mhaeberli
Jul 09 2016 02:43
@Spazholio I’ll try to nail it down tomorrow ...
Paul Martin
@Spazholio
Jul 09 2016 02:43
@mhaeberli openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json preferences.json settings/carb_ratios.json settings/temptargets.json <— that’s what I use to generate the settings/profile.json
But you’ll have to have all of those other reports set up as well beforehand.
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:44
Pi's IP address is 192.168.1.9 - trying to ping this from my computer and my boyfriend's computer brings up the Destination host unreachable
Paul Martin
@Spazholio
Jul 09 2016 02:46
@lollydaggle Sorry to be pedantic, but is that the WiFi address? And you’ve verified that that’s the IP on the Pi since the reboot via ifconfig?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:47
still the PI IP address on reboot - what does WiFI address mean in this context? is that the IP address of the router?
Paul Martin
@Spazholio
Jul 09 2016 02:48
No, sorry. Your Pi has 2 interfaces, which can pull two separate IP addresses. I’m just making sure that we’re talking about the same IP addresses here.
Martin Haeberli
@mhaeberli
Jul 09 2016 02:48
@lollydaggle - jumping in here - can you ping the router from the Pi with only WiFi enabled?
as a corrollary, can you ping, say, www.apple.com from the Pi?
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:49
yep - I can ping the router from the pi and vice versa
Martin Haeberli
@mhaeberli
Jul 09 2016 02:49
but not from other computers on network...
almost sounds like a virtual lan configuration on your wifi router that isolates the Pi… :-(
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:50
and none of our non-pi devices will ping each other either
yep so I think its the isolation issue now
so trying to figure that one out (learning way more about network connectivity than I thought I would, haha)
Martin Haeberli
@mhaeberli
Jul 09 2016 02:50
what is make, model, firmware version of router (not trying to troll, but a google search might help)
Paul Martin
@Spazholio
Jul 09 2016 02:54
Wireless isolation is one of those things you normally have to WORK to get functioning properly on a consumer router. I, too, am curious which model you have.
Hannah Crabtree
@lollydaggle
Jul 09 2016 02:56
we have an Actiontec mi424wr (verizon fios) - its about 9 years old at this point
maybe it's time for a router upgrade :)
Martin Haeberli
@mhaeberli
Jul 09 2016 02:58
this FAQ asks, but doesn’t answer the question - how do I disable wireless isolation : http://www.actiontec.com/support/
grr
Paul Martin
@Spazholio
Jul 09 2016 02:59
How do I disable Client Isolation or AP (access point) Isolation?
Actiontec devices NOT have Client Isolation or AP (access point) Isolation enabled on our routers (therefore no disabling is required).
@lollydaggle Just poking around, do you see the word “isolation” ANYWHERE in the settings? =)
Hannah Crabtree
@lollydaggle
Jul 09 2016 03:06
I'M IN!! We reset and changed Network from Home/Office to Broadband ala here: http://forum.xda-developers.com/showthread.php?s=f57d9dc6769c5ed8db2665fa46f9f893&t=2378739&page=2
Paul Martin
@Spazholio
Jul 09 2016 03:06
NICE!
Hannah Crabtree
@lollydaggle
Jul 09 2016 03:06
hopefully I'll still be able to get in tomorrow :)
thanks for everyone's help with troubleshooting!
jim-andrews
@jim-andrews
Jul 09 2016 03:38
I've been looping the last few nights but could tell from my logs that I was losing my CareLink link. The reception is dreadful. I finally resorted to tying my rig to the headboard just to get a few good connections throughout the night. Just got my TI-Stick programmed this evening and did some testing. Without missing a beat it was able to communicate 15 feet. Rock solid. WOW! What a difference. The CareLink is poo by comparison. Not sure why anyone would go that route for any longer than it took to order a IT-Stick. I'm just saying...
Paul Martin
@Spazholio
Jul 09 2016 03:38
The TI stick is absolutely amazing, agreed.
jim-andrews
@jim-andrews
Jul 09 2016 03:38
Night and day.
Brett
@burgertime14
Jul 09 2016 03:44
@Spazholio you are connected on a edison to a TI via serial?
Paul Martin
@Spazholio
Jul 09 2016 03:44
Yessir.
Brett
@burgertime14
Jul 09 2016 03:44
have you (or anyone else you know of) removed the USB port on the TI?
thought I might do it to save some space
Scott Leibrand
@scottleibrand
Jul 09 2016 03:45
@Spazholio yeah, that would help. Or at least the parts that look problematic.
Paul Martin
@Spazholio
Jul 09 2016 03:45
I seem to recall hearing/reading about someone doing that, but having the range drastically reduced BUT not being sure if the two were related..
Brett
@burgertime14
Jul 09 2016 03:45
interesting, I will look for that
jim-andrews
@jim-andrews
Jul 09 2016 03:49
It's distinctly possible. The USB connector is adjacent to the antenna on the PCB. Without that substantial ground plane, the signal would most likely be attenuated.
Paul Martin
@Spazholio
Jul 09 2016 03:51
Just tape a paperclip to the board. You’ll be fine.
Dana Lewis
@danamlewis
Jul 09 2016 03:52
@jim-andrews would you believe I ran around looping on a carelink for more than a year? ;)
(Yes the range sucked, which is why I had one taped in the middle of my bed as well as one bedside. But still ;))
Uphill, in the snow, both ways, with a carelink in tow ;)
Tim Mecklem
@tmecklem
Jul 09 2016 03:53
We just finally got the open loop working along with reporting to nightscout tonight.
Dana Lewis
@danamlewis
Jul 09 2016 03:53
:confetti_ball: @tmecklem
Tim Mecklem
@tmecklem
Jul 09 2016 03:54
My wife is pretty happy I think.
Dana Lewis
@danamlewis
Jul 09 2016 03:54
Just wait til the first few nights closed loop :)
Tim Mecklem
@tmecklem
Jul 09 2016 03:55
she has a newer noncompatible pump in use along with an older one that's not in use. The loop is running against the older one right now, so there's no closed loop happening for a bit anyway.
She's implementing the basal adjustments manually in parallel
Dana Lewis
@danamlewis
Jul 09 2016 03:55
Nice way to test!
jim-andrews
@jim-andrews
Jul 09 2016 04:00
@danamlewis You pioneers. Bless you. Without all that duct tape, were would we be today :smile:
Dana Lewis
@danamlewis
Jul 09 2016 04:01
Hehe. Still duct taped (or really, scotch tape and black electrical tape on some of my Edison rigs!) :)
Scott Leibrand
@scottleibrand
Jul 09 2016 04:03
There is still duct tape in between the Edison and the breakout board, holding the ribbon cable wires in place (along with the conductive wire glue)
Dana Lewis
@danamlewis
Jul 09 2016 04:03
And it's purple ;)
Scott Leibrand
@scottleibrand
Jul 09 2016 04:04
i think those pieces are black.
Since you can't see them anyway. ;-)
jim-andrews
@jim-andrews
Jul 09 2016 04:05
My Edison arrives tomorrow. I guess I need to stock up on velcro and hot melt glue. Not sure about the purple however.
Dana Lewis
@danamlewis
Jul 09 2016 04:05
The battery protection duct tape is purple. Otherwise the loop won't run :)
;)
Tim Mecklem
@tmecklem
Jul 09 2016 04:07
So what's the main draw for Edison over pi? I have an Edison, but only one that was given to me. I'm hesitant to use it for this unless there's a backup.
Dana Lewis
@danamlewis
Jul 09 2016 04:08
Size. Less battery power needed thus smaller and longer lasting battery.
I recommend Pi for first rig, Edison for second as mobile/dev rig
Tim Mecklem
@tmecklem
Jul 09 2016 04:09
gotcha. I've got all the tiny computers, and loads of DIY soldering experience lately. Should be "fun".
I was headed toward Pi Zero with Slice of Radio and usb for dexcom
May still go there first.
Dana Lewis
@danamlewis
Jul 09 2016 04:11
:)
Tim Mecklem
@tmecklem
Jul 09 2016 04:14
Never would have guessed that my wife's first experience with dev tools and ssh would be this. I use it every day as a dev and her eyes usually glaze over when I talk about it. Now she has to pay attention! :)
Dana Lewis
@danamlewis
Jul 09 2016 04:15
Ha. I learned c++ and FORTRAN90 and thought I'd never be touching command line again. I was wrong :)
Paul Martin
@Spazholio
Jul 09 2016 04:18
That brings up something I just realized I don’t know - what do all of you fine people DO for day jobs, anyway? =)
Tim Mecklem
@tmecklem
Jul 09 2016 04:20
I work as a consultant at Gaslight, LLC in Cincy. We are mostly a Rails shop, increasingly getting into Elixir/Phoenix.
I've fallen in love with the nerves-project.org
I've built a few nerves projects using pi zeros and some GPIO and uart stuff. It's pretty exciting to write code at that level, burn it along with a buildroot linux OS on an SD card in a few seconds, and have a full application stack up and running on the pi in less than 10 seconds after power on.
(with fault tolerance and supervisor control)
Tim Mecklem
@tmecklem
Jul 09 2016 04:26
I've also got great affection for all things ESP8266. The fact that there's a MCU out there with wifi support that you can buy for less than $4... I mean... I still have trouble imagining where we'll be with all this in a couple more years.
(sorry, I get all excited talking about tiny computers)
Dana Lewis
@danamlewis
Jul 09 2016 04:31
:)
Tim Mecklem
@tmecklem
Jul 09 2016 04:34
I guess somewhat relevant, I used to be the dev lead on the eprescribing/EHR iOS and Android apps at Quest Diagnostics.
Jason Wittmer
@jbwittmer
Jul 09 2016 04:34
@mhaeberli I think maybe I figured out that question we both had earlier. At least some of it. To create device that will pull the CGM data from Nightscout site I used openaps device add ns-glucose process 'bash -c "curl -s $NIGHTSCOUT_HOST/api/v1/entries/sgv.json | json -e \"this.glucose = this.sgv\""' and then to create the json file I used openaps report add monitor/glucose-ns.json text ns-glucose shell What I don't know is if now I can use that glucose-ns.json in place of the glucose.json and have the loop work. I'm too tired tonight and my son is asleep but I'll try tomorrow and let you know.
Martin Haeberli
@mhaeberli
Jul 09 2016 04:37
@jbwittmer thx
Jason Wittmer
@jbwittmer
Jul 09 2016 04:39
@mhaeberli Oh and obviously, invoke the monitor/glucose-ns.json report to generate the .json But I still don't know if it will work. You can thank me if it does otherwise shoot me. I've been working on this entirely too long tonight to have made this little progress
clevens
@clevens
Jul 09 2016 05:05
Is it a mistake buying the Raspberry Pi Model 3 instead of the Raspberry Pi 2 CanaKit ?
Paul Martin
@Spazholio
Jul 09 2016 05:06
I have a Pi3. Pretty happy with it.
Jason Wittmer
@jbwittmer
Jul 09 2016 05:06
@clevens I'm running on model 3 without difficulties and enjoy the built in Wifi. There may be other reasons a model 2 is preferred, but I'm not aware of them.
Paul Martin
@Spazholio
Jul 09 2016 05:06
But I don’t have any of the others to compare it with.
clevens
@clevens
Jul 09 2016 05:06
Thanks @jbwittmer ! i just noticed it said to do the CanaKit 2 in the guide
so for the intial Raspberry Pi set up were there other pieces you had to buy since you didn't buy the kit
Paul Martin
@Spazholio
Jul 09 2016 05:07
Where in the guide does it mention that?
I want to check something...
Jason Wittmer
@jbwittmer
Jul 09 2016 05:09
@clevens I bought the model 3 Canakit
these microUSB right angle adaptors are helpful
Tim Mecklem
@tmecklem
Jul 09 2016 05:10
I'd like to get the pi zero working with a bluetooth adapter to communicate with the dexcom and share an iPhone's internet connection. That with the slice of radio seems like it would make for a pretty awesome power sipping rig. Happy with the Pi3 so far for the first pass.
aside from the micoUSB angle adaptors do you know what else was in the kit that
it fits a pi 3
Jason Wittmer
@jbwittmer
Jul 09 2016 05:12
@clevens this is the Canakit i got
clevens
@clevens
Jul 09 2016 05:13
thanks @jbwittmer i'm gonna try to return my other one i guess
Mitchell Slep
@moomoobloo
Jul 09 2016 05:33
I'm trying out the walkthrough for nightscout setup with autoconfigure-device-crud but my preflight fails with the following:
$ openaps use ns shell preflight
json: error: input is not JSON: Unexpected 'C' at line 1, column 1:
Cannot GET //api/v1/status.json
^
json: error: input is not JSON: Unexpected 'C' at line 1, column 1:
Cannot GET //api/v1/status.json
^
false
looks like it's missing the nightscout URL somewhere, but ns.ini appears to have the correct URL, and NIGHTSCOUT_HOST env is also set correctly
Mitchell Slep
@moomoobloo
Jul 09 2016 05:47
and this command works:
$ ns-get host $NIGHTSCOUT_HOST status.json | json status
ok
Jason Calabrese
@jasoncalabrese
Jul 09 2016 06:18
Check that the env vars are also set in your crontab
Mitchell Slep
@moomoobloo
Jul 09 2016 06:22
i'm not running this through cron though
just from command line
Mitchell Slep
@moomoobloo
Jul 09 2016 06:31
if I run with bash -x I see that it's expanding everything correctly with the correct URL
Mitchell Slep
@moomoobloo
Jul 09 2016 06:49
found the problem - when I ran autoconfigure-device-crud I had a / at the end of my URL and removing that fixed it
Jason Calabrese
@jasoncalabrese
Jul 09 2016 08:00
@cjo20 @Spazholio I got the battery status working too, but the second I did that I realized that battery is going to need multi-device support too
Jason Calabrese
@jasoncalabrese
Jul 09 2016 08:06
if you have multiple edison's uploading, what would we show? lowest? most recent? we could add a tooltip to the battery pill
also need to think about the pebble
Jason Calabrese
@jasoncalabrese
Jul 09 2016 08:36
also urchin, doesn't handle uploader: { battery: 99 }, but that should be an easy fix
Chris Oattes
@cjo20
Jul 09 2016 08:41
Urchin?
Chris Oattes
@cjo20
Jul 09 2016 08:48
Not sure what urchin is. As for which Edison, I imagine you care most about the one that last uploaded data
Jason Calabrese
@jasoncalabrese
Jul 09 2016 09:08
it's a pebble watch face, works great for openaps
I just sent a pr to add support for it mddub/urchin-cgm#23
Chris Oattes
@cjo20
Jul 09 2016 09:21
cool :) How many edisons do you have running on battery power at any time?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 09:26
I have 3 on battery, but there's usually a primary mobile rig. The others would be plugged in or offline. So at first I'll only upload battery from 1 of them.
Chris Oattes
@cjo20
Jul 09 2016 09:27
I'd have thought that most use cases would be having plugged in edison around the house and one that's carried around
Jason Calabrese
@jasoncalabrese
Jul 09 2016 09:40
yeah, I like to be able to hot swap rigs, but it's a little harder now that I'm using ble to a share receiver
Chris Oattes
@cjo20
Jul 09 2016 12:23
@jasoncalabrese the upbat.js in 0.9-beta3 finds the most recent status that has the 'uploader' field present. You could change ns-upload.sh to completely kill that field in the uploaded json if RF failed to reach the pump?
Scott Leibrand
@scottleibrand
Jul 09 2016 15:06
Ideally we'd want the lowest battery that has uploaded recently (maybe in the last 30m).
Otherwise the plugged-in rigs will always be overwriting the mobile one.
Workaround as Jason said would be to only enable uploading from the openxshareble rig for now.
Sarah Hodson Grady
@shgrady
Jul 09 2016 15:28
This message was deleted
So I think the oref0_glucose is supposed to run and use the get entries...
Paul Martin
@Spazholio
Jul 09 2016 15:34
As long as I’m not the only one that noticed that Urchin wasn’t picking up on the rig power level. =)
Sarah Hodson Grady
@shgrady
Jul 09 2016 15:53
pi@artificialpancreas:~/a
wesomepancreas $ openaps
use ns shell oref0-glucos
e tz count=10
No JSON object could be decoded
Unknown request: oref0-glucose
TODO: improve help
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json
and the get entries.json command works just fine
└─┬ oref0@0.2.0
version same as @Spazholio 's where the command works fine
Paul Martin
@Spazholio
Jul 09 2016 15:55
The exact same command works on my rig, and I’m running the same version of oref0.
Sarah Hodson Grady
@shgrady
Jul 09 2016 15:55
:+1:
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 16:27
Would anyone be interested in starting a FB group for kids who are already looping? It would be a place for child specific diabetes support, not for technical APS set-up questions (which would be directed to Gitter). There are FB groups out there. But of course, none of those groups pertain to kids who are on this specialized OpenAPS set up, or any APS for that matter.
Chris Oattes
@cjo20
Jul 09 2016 16:45
@Spazholio Have you got that battery file?
Sarah Hodson Grady
@shgrady
Jul 09 2016 16:49
Would you mind if adults follow too, I hate putting non-tech questions in here, the way it functions, it's in the way, but Dana Lewis seems to follow every page, I would offer to watch it and refer people to the right resource if it would help not adding to her work load. @stephaniechen82_twitter
Paul Martin
@Spazholio
Jul 09 2016 16:51
@cjo20 - bear in mind, that’s taken every minute, not every 5.
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 16:56
@shgrady, agreed, I do not want to add to anyone's work load. It doesn't have to be child specific. There are officially only 100 people on the OpenAPS, so a child only group would be pretty small :) It would be a closed group, and we could have a document attached which state the rules of the group, which people would have to acknowledge. I would be happy to moderate. I don't want to set it up unless the original developers agree. @danalewis
Dana Lewis
@danamlewis
Jul 09 2016 17:16
@shgrady I think a closed group would be fine, or as an alternative we could do a channel on slack?
@stephaniechen82_twitter ^
Chris Oattes
@cjo20
Jul 09 2016 17:29
It'd be interesting to see conversations about people using OpenAPS, I suspect a chunk of features and usability updates come from hearing how someone uses it differently to how it was originally intended
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 17:34
Great! I will set up an FB group for loopers and post here by this evening. Any ideas on what to call it?
Dana Lewis
@danamlewis
Jul 09 2016 17:37
Before you do, any logic for Fbk vs Slack? Is this for existing loopers only, or are you going to make it broad for someone who wants to join who's in progress building a rig?
Sarah Hodson Grady
@shgrady
Jul 09 2016 17:38
Slack does have the advantage of you have to know what you want, and receive invite, I think they are generally easier to moderate, but fb will allow some publicity. @danamlewis
Also, I have to do some workarounds to monitor fb while at work, Slack no prob
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 17:40
To me, FB is a logical place as this is the medium I use most. Slack would be fine though.
Dana Lewis
@danamlewis
Jul 09 2016 17:40
Given what I've seen happen with other Fbk groups, I'd have a slight preference to do a slack channel if the audience is those looping..
Ok. For ease and for preventing people from having to do another place, let's do Slack then. Feel free to name a new channel there, @stephaniechen82_twitter
There's already a. Looping-at-school one that was sort of the kid convo place already, but you could do another one. Or imaybe it's just a matter of feeling comfortable having those convos there
Chris Oattes
@cjo20
Jul 09 2016 17:47
@Spazholio thanks
Chris Oattes
@cjo20
Jul 09 2016 17:53
blob
Dana Lewis
@danamlewis
Jul 09 2016 17:53
Nice :)
Martin Haeberli
@mhaeberli
Jul 09 2016 17:54
@cjo20 :thumbsup:
@cjo20 what battery and charging system are you using for your Edison?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 17:56
Today after fully charged battery was 94% do we need system specific tuning?
Chris Oattes
@cjo20
Jul 09 2016 17:56
@mhaeberli Right now, I don't. That data is from @Spazholio
Jason Calabrese
@jasoncalabrese
Jul 09 2016 17:57
@mhaeberli it's working with the Intel breakout board and a lipo with Ubi linux
The internet said it was impossible, but @cjo20 found a way
Chris Oattes
@cjo20
Jul 09 2016 17:57
@jasoncalabrese What voltage was that?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 17:58
Not sure, i never setup a log just uploading the single value
Maybe we should include the voltage in NS status
Chris Oattes
@cjo20
Jul 09 2016 17:58
Currently 100% is 4.18v
Jason Calabrese
@jasoncalabrese
Jul 09 2016 17:59
That's why I wanted to uploader object instead of a single field, should be easy for us to extend
Maybe your tool could have an option to export json
I'm running it as a report, right before my ns-status report, and that's working pretty good
Chris Oattes
@cjo20
Jul 09 2016 18:03
@jasoncalabrese 94% is 4.12v
Chris Oattes
@cjo20
Jul 09 2016 18:17
@jasoncalabrese check the EdisonVoltage repo
Untested, due to lack of edison, but it should be good
Martin Haeberli
@mhaeberli
Jul 09 2016 18:19
@Spazholio - @cjo20 says this is your (wonderful) data - out of curiousity, what lips battery are you using?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:21
I'm using it with a 2000mAh lipo, I think it will work with any battery
Chris Oattes
@cjo20
Jul 09 2016 18:21
Based on the graph shape, I think Paul is using either a 2000mAh or 2200
I should probably put a link to my respository on the intel edison forums
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:22
nice
that's using strings instead of the 0-3?
if we change percentage -> battery and voltage to something like batteryVoltage we wouldn't need to do any processing for ns-status
could assign the whole json to the uploader field
Chris Oattes
@cjo20
Jul 09 2016 18:25
yeah, strings instead of 0-3, mainly because I'll start forgetting what the numbers mean :P
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:25
great, I'd never remember either
Chris Oattes
@cjo20
Jul 09 2016 18:25
just eating dinner at the moment, I'll change the field names when I'm done eating
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:27
@scottleibrand I think the only thing holding me back from installing merge-ama on our main rigs is the delta change, worried that it won't be aggressive enough
thanks
Sarah Hodson Grady
@shgrady
Jul 09 2016 18:33

I broke it, see above, worked around it(raw-cgm/glucose-raw.json error), getting the same error now on a different report in that same alias cluster.

pi@artificialpancreas:~/awesomepancreas $ openaps gather-clean-
data
ns://JSON/shell/raw-cgm/glucose-raw.json
reporting raw-cgm/glucose-raw.json
ns://JSON/shell/monitor/glucose.json
No JSON object could be decoded
Unknown request: oref0_glucose

thoughts on repairing oref0 or what else it could be?

fjungman
@fjungman
Jul 09 2016 18:33
With all the intelligence in this forum and in the code, I would be you could get the system to learn the battery life remaining vs. battery voltage. As long as you kept the same part-number battery in the unit (even if you swapped them) it would probably be pretty accurate. This would remove system-to-system error and battery model-specific curves. I guess you could decide if it runs until dead or to a set battery voltage as the "zero" point. The learning would be user triggered after unplugging from a full-charge, or self-triggered, if the full-charge voltage was know to the software before-hand. It would detect the charger removal AND the full-charge voltage, then start/refine learning.
I'm thinking that this is what we do with the pump battery. We switched to the red-label energizers, which go a really long time on OpenAPS, but triggered the low-battery warning 4 days before running out. We now know that 1.18V is close to dead, and 1.13 turns off comms.
@shgrady how did you fix glucose-raw.json?
Sarah Hodson Grady
@shgrady
Jul 09 2016 18:39
fixing may be the wrong term, instead of using oref0_glucose, I used get entries, I have been stuck on gather-clean-data for almost a week now, figured if I knew it was wrong and wrote it down I could fix it later, it ran and got some info with get entries.json tz count=10 @fjungman
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:41
I think oref0_glucose was added recently, you might not have a current version of oref0
Sarah Hodson Grady
@shgrady
Jul 09 2016 18:44
@jasoncalabrese └─┬ oref0@0.2.0
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:48
looks like that is the current master/production version, oref0_glucose might only be in dev, checking
yup, hasn't made it to master yet
Sarah Hodson Grady
@shgrady
Jul 09 2016 18:51
ok, so the problem is the imported aliases are ahead of what I have?
Chris Oattes
@cjo20
Jul 09 2016 18:53
@jasoncalabrese can you try ./voltage json batteryVoltage battery on the new head?
Sarah Hodson Grady
@shgrady
Jul 09 2016 18:55
would you suggest for someone who is struggling, I go to Dev, or just figure out how to adjust the Aliases myself? @jasoncalabrese
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:57
I'm not using oref0_glucose so you can get setup without it, I'm not sure what docs are suggesting it
@cjo20 pulling now
$ sudo ~/EdisonVoltage/voltage json batteryVoltage battery
{"batteryVoltage":4044, "battery":86}
Chris Oattes
@cjo20
Jul 09 2016 18:59
:) And can you double check what it does with just ./voltage json please?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 18:59
$ sudo ~/EdisonVoltage/voltage json
{"voltage":4051, "percentage":87}
Chris Oattes
@cjo20
Jul 09 2016 19:00
Seemed better than hardcoding it
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:00
yeah, thats good
could be great as we extend everything around it
I guess we should make ns-status check if the value is a number or object, I can do that in a little bit
and then could add a tooltip to the battery pill
Chris Oattes
@cjo20
Jul 09 2016 19:05
:)
sounds good
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:05
funny how there's no end to it
Chris Oattes
@cjo20
Jul 09 2016 19:06
What do you mean?
I just added you as a collaborator on the EdisonVoltage repo. Feel free to do whatever you want with the code
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:09
just that 1 little tool could lead to a bunch more features
we'll need alerts, etc, etc
no end
Chris Oattes
@cjo20
Jul 09 2016 19:10
sorry :P
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:12
it's great
Sarah Hodson Grady
@shgrady
Jul 09 2016 19:14
@jasoncalabrese Ben West was trying to explain to me how to set up the monitor/glucose.json and then the raw-cgm/glucose-raw.json, because I cannot get gather-clean-data to work with NS, the examples in the documentation showed with cgm only and were erroring with my efforts
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 19:15
What does the <-||-> mean for glucose value?
Screen Shot 2016-07-09 at 3.15.06 PM.png
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:16
@shgrady there are lots of ways to do everything, and the way I've been doing some things is now not the the recommended way, so I don't want to send you in the wrong direction
@jlucasvt thats the value for NONE
whats your cgm source?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 19:17
Dex Reciever and G5 Bridge
The value matches the reciever and G5 App.
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:17
we should probably change something
what direction does the dex show?
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 19:18
None, Nil, Empty,
Nothing
So it is correct I just had not seen it before on NS
Sarah Hodson Grady
@shgrady
Jul 09 2016 19:20
no worries, its the way my mind works, any direction better than where I am at now. @jasoncalabrese
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:20
it's a strange case, we also hide the direction if theres no value
and urchin and does it a little different too
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 19:21
Thanks @jasoncalabrese
Jason Calabrese
@jasoncalabrese
Jul 09 2016 19:22
@shgrady have you seen this openaps/docs#129
I think that's as close to the official new way as we have documented
Scott Leibrand
@scottleibrand
Jul 09 2016 19:34
@jasoncalabrese can you identify any scenarios in your recent NS history where a 15m lookback did the right thing but a 30m wouldn't have?
Sarah Hodson Grady
@shgrady
Jul 09 2016 19:57
@jasoncalabrese yeah, I had that page up and had worked through it, but had gone back to phase1 to update the visualization
Paul Martin
@Spazholio
Jul 09 2016 19:59
@mhaeberli I believe it’s one of these: https://www.adafruit.com/products/1781
Paul Martin
@Spazholio
Jul 09 2016 20:31
Wow. My pump’s “Auto Off” just activated. That’s a first in over a decade of pumping.
Paul Davis
@SirBinky
Jul 09 2016 20:35
I'm trying to set up openaps to upload nightscout stuff
the docs say use the command ns
but it says ns is invalid could be ns-status
has the ns command been overridden to be ns status or have i not set something up right. i did the commands to set up nightscout now
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:37
you probably need to setup your ns device
Paul Davis
@SirBinky
Jul 09 2016 20:37

@jlucasvt et up ns device
To get your OpenAps viewed onto your Nightscout site, start by using the following tool:

nightscout autoconfigure-device-crud
To view your data on your Nightscout site, start by doing the following: nightscout autoconfigure-device-crud https://yourname.com yourplainapisecret

So this would be your actual https://myname.azurewebsites.net or https://myname.herokuapp.com. Your API_SECRET is listed in your Azure or Heroku settings. To test this: openaps use ns shell preflight To get aliases:

i did tha
t
never set up the ns device still just have ns-status device set up
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:38
openaps/docs#129
when you type
openaps device show
Does it have a device configured for "process://ns/nightscout/ns"
Paul Davis
@SirBinky
Jul 09 2016 20:45
reporting enact/suggested.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "/usr/local/lib/python2.7/dist-packages/setuptools-22.0.0-py2.7.egg/pkgresources/_init.py", line 719, in run_script
File "/usr/local/lib/python2.7/dist-packages/setuptools-22.0.0-py2.7.egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'ns'
@jlucasvt pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns-status/bash/-c "ns-status $*" --
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:47
Hmm… you still don’t have the ns device… Go here openaps/docs#132 Read the section on "add nightscout” when you are done opens device show will have the ns device.
Paul Davis
@SirBinky
Jul 09 2016 20:48
@jlucasvt i'm fighting two fronts atm, one uploading data to nighscout to see the enacted temp basal and it's effect, then also i'm trying to enact my loop by sending a temp basal setting to the pump
the ns device i tried to get

i did Set up ns device
To get your OpenAps viewed onto your Nightscout site, start by using the following tool:

nightscout autoconfigure-device-crud
To view your data on your Nightscout site, start by doing the following: nightscout autoconfigure-device-crud https://yourname.com yourplainapisecret

So this would be your actual https://myname.azurewebsites.net or https://myname.herokuapp.com. Your API_SECRET is listed in your Azure or Heroku settings.

i did that still no ns device
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:49
Yeah but it for some reason did not add it to your openaps.ini
Paul Davis
@SirBinky
Jul 09 2016 20:50
yup it hasn't i dunno why either, that's why i am asking is is ns-status now the new ns
but it doesn't seem to be
so i'm stuck not adding ns but having ns-status
*is if
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:51
You’ll need ns-status
Paul Davis
@SirBinky
Jul 09 2016 20:51
i have it just not ns
Jason Calabrese
@jasoncalabrese
Jul 09 2016 20:51
the docs aren't current, many of the older setups aren't using the ns device yet, so there's some mixed information
as some of you get setup, it would be great if the docs could be updated
Paul Davis
@SirBinky
Jul 09 2016 20:52
@jasoncalabrese right so ns is a new device rather than legacy?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 20:52
yes
Paul Davis
@SirBinky
Jul 09 2016 20:52
@jasoncalabrese i've tried to update some of the docs
i'm in the middle of it
i set up a whole open loop set up
then tried to add the nightscout integration stuff, but bewests stuff is formatted different to the old docs that when i tried to refer back to no longer exist
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:53
the @bewest template and “new style walkthrough” is start to finish super fast setup.
Jason Calabrese
@jasoncalabrese
Jul 09 2016 20:54
yeah, it's the way to go for sure
Paul Davis
@SirBinky
Jul 09 2016 20:54
so now i have an open loop that worked, whilst trying to rectify the new nightscout integration docs, whilst trying to make his stuff work with my old loop
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:54
Where is a good link (i lost it) for mr @SirBinky
Jason Calabrese
@jasoncalabrese
Jul 09 2016 20:54
I used it for the cgm-loop I setup, but haven't gone back to update the main pump loop
Paul Davis
@SirBinky
Jul 09 2016 20:55
there are only the right way to send commands to the pump or cgm but the output files you name yourself
i did the old instructions (3 weeks ago) but then the bewest setup has other json file names, then also the original author favours _ between words, whilst bewest likes - between
Jason Calabrese
@jasoncalabrese
Jul 09 2016 20:55
using the new templates the report names are getting a little more standardized, so that will help
Paul Davis
@SirBinky
Jul 09 2016 20:56
the report names should really have stayed the same as teh command names
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:56
@SirBinky “All the answers I needed were in this one post” openaps/docs#132
Start at "new style walk through:"
you may want to “openaps init” a new directory to give it a try.
Paul Davis
@SirBinky
Jul 09 2016 20:57
hmm
i tried to loot his openaps-example
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:58
well there it is for the looting.
Paul Davis
@SirBinky
Jul 09 2016 20:58
as i thought after hours of trying to recitify his nightscout report names to the names that i had been advised to give int he old walkthrough
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 20:59
you “may” need to change max_iob.json to max-iob.json but i am not sure…..
Paul Davis
@SirBinky
Jul 09 2016 20:59
i might have been trusted enough to look the example and start again with my own device adds and settings but it kept kicking me out of reports and devices show i could only see alias
oh that _ to - i'm sharp to
i get the times when i get the error that this isn't right you need one of these and i look through either see a typo or anew report i need to make and invoke
Paul Davis
@SirBinky
Jul 09 2016 21:06
i'm just trying to get my handle on the docs and ways to do stuff, then it keep changes or being adapted. the g5 setup stuff new didn't work but the old system i had did
@
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:08
Yes I am using a DexG5 Receiver (upgraded G4) plugged in to RPi.
Paul Davis
@SirBinky
Jul 09 2016 21:08
@jlucasvt no it has meow devices etc that sabotaged the thing. it's 95% useful but u can't just run it easily with adding your own devices etc
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:08
It’s all about the journey.
Paul Davis
@SirBinky
Jul 09 2016 21:10
i kept seeing raw data stuff in bewests nightscout alias stuff and was like wtf, there's no not raw you need for the loop and there isn't but you need to convert it to work with nightscout so now it's raw not for the loop but to upload to nightscout to it stays raw for the basal work but converted for the upload
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:10
I had to stop and restart a number of itmes (and flash a new os at least twice) before I got it down. You’ll get there. You get raw then format using reports for the various inputs. Mainly for timezoneing.
Paul Davis
@SirBinky
Jul 09 2016 21:10
@jlucasvt the journey is fascinating i learnt more and more of the ins and outs each day just such a constant learnign curve
timezoning for the ns
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:11
for everything.
Paul Davis
@SirBinky
Jul 09 2016 21:11
yeha as i keep plowing on more an dmore
i see the mistakes the things that work but the docs keep shifting under me too
but i've got back ups etc
i want to once i finally get a working set up to redo it all with a new install
just code what i need no fat
Jason Calabrese
@jasoncalabrese
Jul 09 2016 21:12
@cjo20 where do you think we should format the voltage? I think for display we want (voltage / 1000)v
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:12
yes. Make sure you look through the dev docs master can be a tad old. and Ben’s template is very very powerful.
Paul Davis
@SirBinky
Jul 09 2016 21:12
bens template i only looked at today before i was using walkthrough docs etc but they shifted under me
i've managed to make my old files from the old docs work with newer files with the new json report names etc
still not cracked ns uploading
and still can't enact a set temp basal
Jason Calabrese
@jasoncalabrese
Jul 09 2016 21:14
you can create a new directory, and play with the templates there
some of it you just need to try to get an idea of how it works
Paul Davis
@SirBinky
Jul 09 2016 21:15
i did i tried openaps example was crippled
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:15
@jasoncalabrese has the right idea :+1:
Paul Davis
@SirBinky
Jul 09 2016 21:15
i don't mind really i'm mostly their
*there
it's just the last bits
Paul Martin
@Spazholio
Jul 09 2016 21:15
I’m both curious to check out the new templating, and terrified to try to change what I have working.
Paul Davis
@SirBinky
Jul 09 2016 21:16
@Spazholio invest in a new 8gb micro and try it?
Paul Martin
@Spazholio
Jul 09 2016 21:16
Wouldn’t work with Edison.
And…I could just assemble my new dev rig one of these days. I have all the parts. =)
Paul Davis
@SirBinky
Jul 09 2016 21:17
exactly cheap parts that you need to duplicate
Chris Oattes
@cjo20
Jul 09 2016 21:18
@jasoncalabrese I like having the mV reading, as integers can be nicer to work with. Might be better to add another command line option to select between them?
Paul Davis
@SirBinky
Jul 09 2016 21:24
guys when you temp enact a basal
does the pump make a noise?
like when you test bg with a linked meter
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:27
I think my pump beeps when the temp basal ends. MM 722
Paul Martin
@Spazholio
Jul 09 2016 21:27
Nope. That’d get REALLY irritating REALLY fast
But it will make a small beep at the top of the hour if a temp basal is in progress.
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 21:28
ah is that what that is.
Lynne Butts
@flutelynne_twitter
Jul 09 2016 21:29
@SirBinky As stated already above, but you can verify the temp basal is enacted by pressing at the ESC key on the pump.
Ben West
@bewest
Jul 09 2016 21:29
yes, it beeps at intervals
@mddub added a feature to turn off "active neutral basals" which may cause it to beep less often
at the cost of not doing neutral active temps
Paul Davis
@SirBinky
Jul 09 2016 21:29
@flutelynne_twitter we didn't checkj was the previous rate was, but the current is what was suggested
*what
Lynne Butts
@flutelynne_twitter
Jul 09 2016 21:30
ok
Paul Davis
@SirBinky
Jul 09 2016 21:31
enact didn't work earlier so when i tried again after some tweaks i didn't think it would make a change but then it matched what was suggested and so i wanted to know if it would beep or something so i'd know it either worked or it happened to match what would have been
earlier we'd checked what was the basal and what ti suggested this time the suggested and enacted what we then saw but we didn't take note of what it was before so i asked what she thought it might have been if we hadn't have run the commands
Jason Calabrese
@jasoncalabrese
Jul 09 2016 21:36
Screenshot 2016-07-09 14.33.55.png
@cjo20 ^
Scott Leibrand
@scottleibrand
Jul 09 2016 21:37
@Spazholio nice. How long did you go without bolusing before auto-off kicked in?
Paul Davis
@SirBinky
Jul 09 2016 21:38
@jasoncalabrese what set up guide got you there?
Jason Calabrese
@jasoncalabrese
Jul 09 2016 21:38
I just hack ini files, very bad habit
PR for NS nightscout/cgm-remote-monitor#1849, preparing 1 for oref0 too
Paul Davis
@SirBinky
Jul 09 2016 21:40
pr?
Chris Oattes
@cjo20
Jul 09 2016 21:45
@jasoncalabrese awesome
Pull request
Paul Davis
@SirBinky
Jul 09 2016 21:46
pull request is suggesting change to the common files
Jason Calabrese
@jasoncalabrese
Jul 09 2016 21:49
yeah, what these PRs will do is prepare oref0 and NS to be able to handle the battery voltage
then we can document the device/report setup
for oref0 openaps/oref0#161
Chris Oattes
@cjo20
Jul 09 2016 21:53
:+1:
Paul Davis
@SirBinky
Jul 09 2016 21:55
reporting enact/suggested.json
usage: openaps-report invoke [-h]
{enact/enacted.json,enact/suggested.json,last_four_pump_hours.json,model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/glucose.json,monitor/iob.json,monitor/pumphistory.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/temp_basal.json,nightscout/preflight.json,nightscout/pumphistory-zoned.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,settings/basal_profile.json,settings/bg_targets.json,settings/bg_targets_raw.json,settings/insulin_sensitivities.json,settings/insulin_sensitivities_raw.json,settings/profile.json,settings/selected-basal-profile.json,settings/settings.json}
[{enact/enacted.json,enact/suggested.json,last_four_pump_hours.json,model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/glucose.json,monitor/iob.json,monitor/pumphistory.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,monitor/temp_basal.json,nightscout/preflight.json,nightscout/pumphistory-zoned.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,settings/basal_profile.json,settings/bg_targets.json,settings/bg_targets_raw.json,settings/insulin_sensitivities.json,settings/insulin_sensitivities_raw.json,settings/profile.json,settings/selected-basal-profile.json,settings/settings.json} ...]
openaps-report invoke: error: argument report: invalid choice: 'oref0-enacted/enacted-temp-basal.json' (choose from u'enact/enacted.json', u'enact/suggested.json', u'last_four_pump_hours.json', u'model.json', u'monitor/battery.json', u'monitor/clock-zoned.json', u'monitor/clock.json', u'monitor/glucose.json', u'monitor/iob.json', u'monitor/pumphistory.json', u'monitor/reservoir.json', u'monitor/status.json', u'monitor/temp-basal-status.json', u'monitor/temp_basal.json', u'nightscout/preflight.json', u'nightscout/pumphistory-zoned.json', u'nightscout/recent-missing-entries.json', u'nightscout/recent-treatments.json', u'nightscout/uploaded-entries.json', u'nightscout/uploaded.json', u'settings/basal_profile.json', u'settings/bg_targets.json', u'settings/bg_targets_raw.json', u'settings/insulin_sensitivities.json', u'settings/insulin_sensitivities_raw.json', u'settings/profile.json', u'settings/selected-basal-profile.json', u'settings/settings.json')
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "/usr/local/lib/python2.7/dist-packages/setuptools-22.0.0-py2.7.egg/pkgresources/_init.py", line 719, in run_script
File "/usr/local/lib/python2.7/dist-packages/setuptools-22.0.0-py2.7.egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'ns'
my preflight ns is failed i don't have ns device
how do i add ns as a device?
Ben West
@bewest
Jul 09 2016 21:56
nightscout autoconfigure-device-crud ....
Paul Davis
@SirBinky
Jul 09 2016 21:57
@bewest nightscout autoconfigure-device-crud https://yourname.com yourplainapisecret
it's not doing it
nightscout autoconfigure-device-crud https://sabinat1d.azurewebsites.net MYAPISECERT0
@bewest i only have ns-status not ns is there something i'm missing
Ben West
@bewest
Jul 09 2016 22:05
nightscout ns help should print lots of help
Jason Calabrese
@jasoncalabrese
Jul 09 2016 22:06
I think the issue might be dev vs master
Ben West
@bewest
Jul 09 2016 22:07
sudo npm install -g git://github.com/openaps/oref0.git'#dev'
Paul Davis
@SirBinky
Jul 09 2016 22:07
@bewest right the nightscout auto configure doens't help
@bewest nightscout ns help does show alot of info
but then openaps device show
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns-status/bash/-c "ns-status $*" --
no ns
Ben West
@bewest
Jul 09 2016 22:08
openaps device remove ns-status
sudo npm install -g git://github.com/openaps/oref0.git'#dev'
Paul Davis
@SirBinky
Jul 09 2016 22:09
@bewest
pi@raspberrypi:~/sabina $ sudo npm install -g git://github.com/openaps/oref0.git'#dev'
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
/usr/local/bin/oref0-calculate-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js
/usr/local/bin/oref0-find-insulin-uses -> /usr/local/lib/node_modules/oref0/bin/oref0-find-insulin-uses.js
/usr/local/bin/oref0-detect-sensitivity -> /usr/local/lib/node_modules/oref0/bin/oref0-detect-sensitivity.js
/usr/local/bin/oref0-determine-basal -> /usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js
/usr/local/bin/oref0-meal -> /usr/local/lib/node_modules/oref0/bin/oref0-meal.js
/usr/local/bin/oref0-normalize-temps -> /usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js
/usr/local/bin/send-tempbasal-Azure -> /usr/local/lib/node_modules/oref0/bin/send-tempbasal-Azure.js
/usr/local/bin/oref0-fix-git-corruption -> /usr/local/lib/node_modules/oref0/bin/oref0-fix-git-corruption.sh
/usr/local/bin/oref0-get-profile -> /usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js
/usr/local/bin/oref0-mint-max-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-mint-max-iob.sh
/usr/local/bin/oref0-ifttt-notify -> /usr/local/lib/node_modules/oref0/bin/oref0-ifttt-notify
/usr/local/bin/oref0-raw -> /usr/local/lib/node_modules/oref0/bin/oref0-raw.js
/usr/local/bin/oref0-reset-usb -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-usb.sh
/usr/local/bin/oref0-reset-git -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-git.sh
/usr/local/bin/mm-format-ns-glucose -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-glucose.sh
/usr/local/bin/mm-format-ns-profile -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-profile.sh
/usr/local/bin/mm-format-ns-treatments -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-treatments.sh
/usr/local/bin/mm-format-ns-pump-history -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-pump-history.sh
/usr/local/bin/oref0 -> /usr/local/lib/node_modules/oref0/bin/oref0.sh
/usr/local/bin/mm-stick -> /usr/local/lib/node_modules/oref0/bin/mm-stick.sh
/usr/local/bin/ns-upload-entries -> /usr/local/lib/node_modules/oref0/bin/ns-upload-entries.sh
/usr/local/bin/ns-upload -> /usr/local/lib/node_modules/oref0/bin/ns-upload.sh
/usr/local/bin/ns-get -> /usr/local/lib/node_modules/oref0/bin/ns-get.sh
/usr/local/bin/ns-status -> /usr/local/lib/node_modules/oref0/bin/ns-status.js
/usr/local/bin/nightscout -> /usr/local/lib/node_modules/oref0/bin/nightscout.sh
/usr/local/bin/ns-dedupe-treatments -> /usr/local/lib/node_modules/oref0/bin/ns-dedupe-treatments.sh
/usr/local/bin/oref0-html -> /usr/local/lib/node_modules/oref0/bin/oref0-html.js
/usr/local/bin/oref0-template -> /usr/local/lib/node_modules/oref0/bin/oref0-template.js
/usr/local/bin/oref0-copy-fresher -> /usr/local/lib/node_modules/oref0/bin/oref0-copy-fresher
/usr/local/bin/oref0-pebble -> /usr/local/lib/node_modules/oref0/bin/oref0-pebble.js
oref0@0.2.0 /usr/local/lib/node_modules/oref0
├── yargs@4.3.2 (decamelize@1.2.0, camelcase@2.1.1, y18n@3.2.1, window-size@0.2.0, require-main-filename@1.0.1, yargs-parser@2.4.0, lodash.assign@4.0.9, os-locale@1.4.0, string-width@1.0.1, cliui@3.2.0, pkg-conf@1.1.3, read-pkg-up@1.0.1)
├── share2nightscout-bridge@0.1.5 (request@2.53.0)
└── timezone@0.0.47
Ben West
@bewest
Jul 09 2016 22:09
you need this version of the code ^^^
yeah, now you can run the same step again
Paul Davis
@SirBinky
Jul 09 2016 22:09
ok i just did the last two commands you sent
@bewest pi@raspberrypi:~/sabina $ sudo npm install -g git://github.com/openaps/oref0.git'#dev'
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
/usr/local/bin/oref0-calculate-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js
/usr/local/bin/oref0-find-insulin-uses -> /usr/local/lib/node_modules/oref0/bin/oref0-find-insulin-uses.js
/usr/local/bin/oref0-detect-sensitivity -> /usr/local/lib/node_modules/oref0/bin/oref0-detect-sensitivity.js
/usr/local/bin/oref0-determine-basal -> /usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js
/usr/local/bin/oref0-meal -> /usr/local/lib/node_modules/oref0/bin/oref0-meal.js
/usr/local/bin/oref0-normalize-temps -> /usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js
/usr/local/bin/send-tempbasal-Azure -> /usr/local/lib/node_modules/oref0/bin/send-tempbasal-Azure.js
/usr/local/bin/oref0-fix-git-corruption -> /usr/local/lib/node_modules/oref0/bin/oref0-fix-git-corruption.sh
/usr/local/bin/oref0-get-profile -> /usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js
/usr/local/bin/oref0-mint-max-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-mint-max-iob.sh
/usr/local/bin/oref0-ifttt-notify -> /usr/local/lib/node_modules/oref0/bin/oref0-ifttt-notify
/usr/local/bin/oref0-raw -> /usr/local/lib/node_modules/oref0/bin/oref0-raw.js
/usr/local/bin/oref0-reset-usb -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-usb.sh
/usr/local/bin/oref0-reset-git -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-git.sh
/usr/local/bin/mm-format-ns-glucose -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-glucose.sh
/usr/local/bin/mm-format-ns-profile -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-profile.sh
/usr/local/bin/mm-format-ns-treatments -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-treatments.sh
/usr/local/bin/mm-format-ns-pump-history -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-pump-history.sh
/usr/local/bin/oref0 -> /usr/local/lib/node_modules/oref0/bin/oref0.sh
/usr/local/bin/mm-stick -> /usr/local/lib/node_modules/oref0/bin/mm-stick.sh
/usr/local/bin/ns-upload-entries -> /usr/local/lib/node_modules/oref0/bin/ns-upload-entries.sh
/usr/local/bin/ns-upload -> /usr/local/lib/node_modules/oref0/bin/ns-upload.sh
/usr/local/bin/ns-get -> /usr/local/lib/node_modules/oref0/bin/ns-get.sh
/usr/local/bin/ns-status -> /usr/local/lib/node_modules/oref0/bin/ns-status.js
/usr/local/bin/nightscout -> /usr/local/lib/node_modules/oref0/bin/nightscout.sh
/usr/local/bin/ns-dedupe-treatments -> /usr/local/lib/node_modules/oref0/bin/ns-dedupe-treatments.sh
/usr/local/bin/oref0-html -> /usr/local/lib/node_modules/oref0/bin/oref0-html.js
/usr/local/bin/oref0-template -> /usr/local/lib/node_modules/oref0/bin/oref0-template.js
/usr/local/bin/oref0-copy-fresher -> /usr/local/lib/node_modules/oref0/bin/oref0-copy-fresher
/usr/local/bin/oref0-pebble -> /usr/local/lib/node_modules/oref0/bin/oref0-pebble.js
oref0@0.2.0 /usr/local/lib/node_modules/oref0
├── yargs@4.3.2 (decamelize@1.2.0, camelcase@2.1.1, y18n@3.2.1, window-size@0.2.0, require-main-filename@1.0.1, yargs-parser@2.4.0, lodash.assign@4.0.9, os-locale@1.4.0, cliui@3.2.0, string-width@1.0.1, pkg-conf@1.1.3, read-pkg-up@1.0.1)
├── share2nightscout-bridge@0.1.5 (request@2.53.0)
└── timezone@0.0.47
that is the result of the second line of code you sent after i'd removed ns-status
Ben West
@bewest
Jul 09 2016 22:11
now you can add ns
Paul Davis
@SirBinky
Jul 09 2016 22:11
@bewest pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
how do i add the ns now?
@bewest nightscout autoconfigure-device-crud https://sabinat1d.azurewebsites.net MYAPISECERT0
?
Ben West
@bewest
Jul 09 2016 22:21
yeah
Paul Davis
@SirBinky
Jul 09 2016 22:22
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
Chris Oattes
@cjo20
Jul 09 2016 22:23
@SirBinky It can be easier to read long pastes if you put 3`s on a line before the paste and the same after as part of the same message
it looks more like this
Paul Davis
@SirBinky
Jul 09 2016 22:24
'''pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
'''
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
''' pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
'''
Chris Oattes
@cjo20
Jul 09 2016 22:25
` not '
Paul Davis
@SirBinky
Jul 09 2016 22:25
@cjo20 sorry i'm messing that up
'''pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
'''
Chris Oattes
@cjo20
Jul 09 2016 22:26
``` then shift + enter, then paste, then shift+enter, then the three characters again
Paul Davis
@SirBinky
Jul 09 2016 22:26

'''
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676

'''

Chris Oattes
@cjo20
Jul 09 2016 22:26
it's not '. Not sure where it is on your keyboard, possibly next to 1
Paul Davis
@SirBinky
Jul 09 2016 22:26

"""
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676

"""

Chris Oattes
@cjo20
Jul 09 2016 22:26
you can also edit your message by pressing up
rather than resending it each try :)
Jason Calabrese
@jasoncalabrese
Jul 09 2016 22:27
probably the same key as ~
Paul Davis
@SirBinky
Jul 09 2016 22:27
'''
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
'''
Jason Calabrese
@jasoncalabrese
Jul 09 2016 22:27
it's the backtick
Paul Davis
@SirBinky
Jul 09 2016 22:27
@cjo20 i dunno doesn't matter what format i see it's what's sent so i send each time to see if it works sorry
Paul Martin
@Spazholio
Jul 09 2016 22:27
@scottleibrand It took the full 24h for it to auto-off. I’ve set it to NEVER auto-off now, but this is the first time it’s ever happened.
Paul Davis
@SirBinky
Jul 09 2016 22:28
\\
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
\\
ok that i did 3 and only 2 show.....
Jason Calabrese
@jasoncalabrese
Jul 09 2016 22:29
it's the ` not ' or \
Paul Martin
@Spazholio
Jul 09 2016 22:29
@bewest When using npm is there any way to see which branch something is?
Paul Davis
@SirBinky
Jul 09 2016 22:29
@cjo20 i'm in the uk ~ is same key as # before shift
Chris Oattes
@cjo20
Jul 09 2016 22:29
@SirBinky To the left of 1 then
above tab
Paul Davis
@SirBinky
Jul 09 2016 22:30
pi@raspberrypi:~/sabina $ openaps device show
medtronic://pump
dexcom://g5
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
units://units
timezones://tz
process://ns/nightscout/ns https://sabinat1d.azurewebsites.net 65cc33dc322549a7b0caf7fd866be2cdf270d676
Chris Oattes
@cjo20
Jul 09 2016 22:30
:tada:
much better :)
Paul Davis
@SirBinky
Jul 09 2016 22:30
@cjo20 sorry man this is all so new to me
Chris Oattes
@cjo20
Jul 09 2016 22:31
Don't worry about it :)
Jason Calabrese
@jasoncalabrese
Jul 09 2016 22:31
:+1:
Chris Oattes
@cjo20
Jul 09 2016 22:31
Most people get it wrong the first time
Paul Davis
@SirBinky
Jul 09 2016 22:31
@cjo20 learning linux, bash, etc, then git hub and then gitter.im syntax that key i've never needed to use in the last 23 years of messing with keyboards
Ben West
@bewest
Jul 09 2016 22:32
npm show oref0 version or gitHead
Paul Martin
@Spazholio
Jul 09 2016 22:33
version doesn’t show branch, just…version. gitHead gives me what looks like a commit id, but nothing that just says dev or merge-ama or whatever.
Paul Martin
@Spazholio
Jul 09 2016 22:36
That device works, yes. However, I would highly recommend just getting a TI stick for the cost factor.
clevens
@clevens
Jul 09 2016 22:36
@Spazholio I actually wanted a TI stick for the range too. I am just getting SO worried about the complexity of all of this lol
Paul Davis
@SirBinky
Jul 09 2016 22:37
guys the help docs are changing so fast and often and introducing new ways to do stuff. @bewest you download and install a new report system to openaps.ini but your alias files are so different to 1) the old walkthrough files of naming stuff 2) you prefer - instead of _ to name things so that throws up another line of confusion 3) everyones json files are named so different to the original commands. eg iter_glucose_hours is now cgm history...
Paul Martin
@Spazholio
Jul 09 2016 22:37
Swapping the Carelink for a TI stick is trivial. And the benefits with range are just…night and day.
Paul Davis
@SirBinky
Jul 09 2016 22:38
@bewest i mean in the nightscout setup docs
Ben West
@bewest
Jul 09 2016 22:38
I think the "walkthrough" is maybe giving you wrong perception
clevens
@clevens
Jul 09 2016 22:38
@Spazholio lol i'll order the TI stick then
Ben West
@bewest
Jul 09 2016 22:39
people are doing things in very different ways, and openaps is supporting nearly all of them
Paul Martin
@Spazholio
Jul 09 2016 22:39
@clevens Now, to be clear - you also need another piece of hardware to flash the TI stick. However, if you know someone who has one, they can flash it for you.
fjungman
@fjungman
Jul 09 2016 22:39
Yes, "-" vs "" was killing me! I went with all aliases use "-" and all .json files use ""
Ben West
@bewest
Jul 09 2016 22:39
there's no one way I can instruct you because you want something different from everyone else
in response to everyone asking for different things, I've continued to expand and improve things
Paul Martin
@Spazholio
Jul 09 2016 22:40
@clevens That being said, if you want, I’d be happy to have you mail the thing to me, I’ll flash it, and I’ll send it back. I’ve done it for people before, and I’m happy to do it again. Or, you could just buy it yourself - I’ve found it to be useful to have around.
clevens
@clevens
Jul 09 2016 22:40
@Spazholio hmm. i don't think i do know anyone with that. do you know what that piece is so i can order it too?
Chris Oattes
@cjo20
Jul 09 2016 22:40
It's called CC-debugger
clevens
@clevens
Jul 09 2016 22:40
@Spazholio that would be absolutely amazing if you'd be able to do that!
Paul Martin
@Spazholio
Jul 09 2016 22:41
It’s $50, so it’s not crazy expensive, but it can still be an issue.
clevens
@clevens
Jul 09 2016 22:41
@Spazholio Figuring it out would be a harder issue for me. Should I just order my TI stick to you?
Paul Davis
@SirBinky
Jul 09 2016 22:41
@bewest i get that totally i've been wrong initially to assume that. but setting up a report for monitor/pump-history.json and another part of the walkthrough say to set up monitor/pump_history.json or more confusing openaps gather-profile turns into openaps get-profile in another section
clevens
@clevens
Jul 09 2016 22:42
I'll obviously pay for shipping back to me too and whatever you charge to flash it
Ben West
@bewest
Jul 09 2016 22:42
that seems like a cosmetic issue that we would appreciate help fixing
Paul Martin
@Spazholio
Jul 09 2016 22:42
Oh, I’d be happy to, no problem. Now…to start, you’re probably gonna plug it into a USB port, like the Carelink. After that, you MAY want to use it a different way, via serial. If so, it has to be re-flashed. So either you can get the cc-debugger and do it yourself (it’s easy, I swear) or just send it to me (or someone else) again. =)
clevens
@clevens
Jul 09 2016 22:43
Oh hm.. if it has to be done frequently I'm thinking maybe I should just order it
Paul Martin
@Spazholio
Jul 09 2016 22:43
@clevens Not frequently, but maybe at some point.
Like, if you stop using it via USB and want to get an Edison - most people use it via serial at that point. Takes a quick reflash.
Either way, you decide however you want to go with it, and I’ll be happy to accomodate. Oh, and no charge. That’s silly. =)
Chris Oattes
@cjo20
Jul 09 2016 22:44
I should really reflash mine back to USB and get my PI working with it
Paul Davis
@SirBinky
Jul 09 2016 22:45
@bewest i ran through the walkthrough a few weeks ago so only like a month and i had all my reports setup and the alias's etc, then i tried to do the new nightscout setup that you'd written and it made me download your alias and your reports and it said oh change if yours is different. but it was very hard to work out what yours was compared to what the old docs had told me to name stuff. and the thing is. the commands are all the same that's the unifier but what you name the report json files after is up to you. i think the docs should all just name them the original command names
Ben West
@bewest
Jul 09 2016 22:45
@SirBinky fww, if you use the oref0 template mint stuff, you don't need to do some of that...
it automatically sets up matching reports and aliases
feel free to contribute additional recipes with different names
clevens
@clevens
Jul 09 2016 22:46
@Spazholio so if i order http://www.ti.com/tool/cc1111emk868-915 and that cc debugger link you sent i should be good? thanks for being so helpful!
Paul Davis
@SirBinky
Jul 09 2016 22:46
i've only done the walkthrough then tried to add nightscout and found the old docs i used totally changed!
Ben West
@bewest
Jul 09 2016 22:46
that happens, you should be able to visit an older version using the menu
Paul Davis
@SirBinky
Jul 09 2016 22:46
@bewest what do you mean oref0 template mint
Ben West
@bewest
Jul 09 2016 22:47
try it out and read the help :-) openaps/docs#132
Paul Martin
@Spazholio
Jul 09 2016 22:47
@clevens Yep, that’s all you need. Welll, those two things and the incredibly helpful walkthroughs that @oskarpearson has written: https://github.com/oskarpearson/mmeowlink/wiki
Ben West
@bewest
Jul 09 2016 22:47
there's a "new style walkthroug" that constrains some of the choices and sets up all the matching names for you automatically
it takes about 20 minutes from scratch
clevens
@clevens
Jul 09 2016 22:48
@Spazholio thanks paul. it's weird because it doesn't even say TI stick on that one haha
Ben West
@bewest
Jul 09 2016 22:48
if you're worried about messing up an old environment, you can always set up a brand new one instead of changing the old one
Paul Martin
@Spazholio
Jul 09 2016 22:48
I prefer oref0 template thyme but to each their own, y’know?
Ben West
@bewest
Jul 09 2016 22:48
mint is a verb here
Paul Martin
@Spazholio
Jul 09 2016 22:48
I’m well aware. I’m also just a smartass. =)
Paul Davis
@SirBinky
Jul 09 2016 22:48
@bewest ok will do. just for the record i am in no way having a go about anything. what you guys have done and set up and achieved is amazing and i'm trying to understand and follow it the best i can
Paul Martin
@Spazholio
Jul 09 2016 22:49
@clevens Very true. =)
Ben West
@bewest
Jul 09 2016 22:49
there's a menu in the docs that allows you to navigate versions
so long as the "release" button is hit on github, RTD will permanently host archived versions for comparison/contrast
but all docs change over time... would yo rather have a doc explaining how to do things automatically in 20 minutes or a doc that has you re-type dozens of commands for hours?
Paul Davis
@SirBinky
Jul 09 2016 22:50
@bewest ok cool i will do. the old version i did i kinda followed blindly, the nighscout bit you did that had different report names forced me to understand what you means etc
Ben West
@bewest
Jul 09 2016 22:51
that's probably a good thing...
it's important you understand how this thing works
Paul Davis
@SirBinky
Jul 09 2016 22:51
@bewest oh yes the idea is to know how it works
@bewest again i say i'm not upset i'm just saying it gets confusing. the confusion makes me understand more and more each time and will not make me quit i'm going to make this work.
@bewest i fully understand from my limited knowledge the cleverness of openaps program and how straight forward you've made it to use
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 09 2016 22:58
@bewest is pointing the way..
:+1:
Paul Davis
@SirBinky
Jul 09 2016 23:04
@bewest i'm trying to get the rapsberry pi 3 g5 cgm dexcom with a medtronic pump setup with share on an iphone and a dexcom receiver and carelink stick
clevens
@clevens
Jul 09 2016 23:04
so i've ordered my TI stick, CC debugger, canakit raspberry pi 3. i have my Dexcom 4CGM with Share and a medtronic 723 2.4 firmware. is there any other optional equipment that i really should get?
Paul Davis
@SirBinky
Jul 09 2016 23:05
@bewest with zero t1d experience and limited programming!
Ben West
@bewest
Jul 09 2016 23:08
need to use usb with g5 for now
stephanie chen
@stephaniechen82_twitter
Jul 09 2016 23:09
@shgrady, for our purposes, I am going to try using the slack group Looping-at-school. If you would like to start another slack group for the T1D looping adults with non-technical questions, I leave it to you.
Paul Davis
@SirBinky
Jul 09 2016 23:14
@bewest yup dexcom usb to pi
@bewest initial misunderstanding was connecting the "receiver" to the pi. but an iphone receiver wouldn't connect to the pi you need the dexcom one. which isn't required in the uk so had to buy that extra then add the raspberry pi and carelink and battery
Paul Martin
@Spazholio
Jul 09 2016 23:31
@clevens That sounds very similar to my initial rig. I think you’re good to go!
Paul Davis
@SirBinky
Jul 09 2016 23:32
@clevens battery banks to power it? over 1000maphs or whatever they are
clevens
@clevens
Jul 09 2016 23:34
@Spazholio awesome!! thank you!! how about the SD card and converter? is that something i should need now too?
Paul Martin
@Spazholio
Jul 09 2016 23:39
Oh, you’ll definitely need an SD card. That’s what holds your operating system. Don’t the Canakits come with an SD card though?
Also - converter? What kind of converter?
Paul Davis
@SirBinky
Jul 09 2016 23:42
you need sd card 8gb is cheap and good, and a usb conveter to install in your current setup you download the raspberry pi linux distro to start up the pi