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

5th
Oct 2016
David
@davidkeddydb
Oct 05 2016 01:13 UTC
@scottleibrand I think I will have the Edison flashed in the am as I was able to follow @diabeticgonewild example of flashing the card using cgywin. If I use the Oref0 dev set up, as I will be flashing Jubilinux, should I just set it up without mmeowlink initially and just change it after the fact? I think based on the instructions that is the easier way to go.
Scott Leibrand
@scottleibrand
Oct 05 2016 01:14 UTC
oref0-setup will install mmeowlink if it's not present
Hannah Crabtree
@lollydaggle
Oct 05 2016 01:14 UTC
Cool. I'm at the exact same spot.
thanks, @diabeticgonewild . Total lifesaver.
David
@davidkeddydb
Oct 05 2016 01:15 UTC
ok cool so I wont have to put all the tty stuff in as it wont be set yet
Scott Leibrand
@scottleibrand
Oct 05 2016 01:15 UTC
you will want to tell oref0-setup which TTY to use, or it will assume you are using a carelink
I think the /dev/ttyACM0 or whatever will show up even before you install mmeowlink
garykidd
@garykidd
Oct 05 2016 01:16 UTC
Was thinking it might be cool to plot basal IOB on NS---got to imagine thats not too difficult--or has someone done that?
Hannah Crabtree
@lollydaggle
Oct 05 2016 01:17 UTC
my Anker, despite promise in the Amazon FAQs, does not actually do passthrough. Does anyone have an amazon link to a real battery pack that works for them and their Edison rig? Or, should I suck it up and try a polymer lithium ion? If I lose power to my Edison, is it as dire as it was on the Pi?
David
@davidkeddydb
Oct 05 2016 01:18 UTC
@scottleibrand Great. I will be going off the OTG to the TI. Will see what happens tomorrow.
@lollydaggle, @cjo20 told me other day that the little 3350mah battery I have with what we are going to run should do 13 hrs or so pretty easily
signing off. Thanks Monica @diabeticgonewild for directing me to the youtube video. Really helpful. Hopefully will have it flashed tomorrow am.
Scott Leibrand
@scottleibrand
Oct 05 2016 01:22 UTC
@lollydaggle the Edison seems to handle power-off much better than the Pi.
diabeticgonewild
@diabeticgonewild
Oct 05 2016 01:23 UTC
@davidkeddydb @lollydaggle you're welcome
Dana Lewis
@danamlewis
Oct 05 2016 01:26 UTC
@garykidd there’s already an option to visualize basals in NS, or are you talking about something different? https://twitter.com/danamlewis/status/760839954012381186 example of blue line at top is basal visual
garykidd
@garykidd
Oct 05 2016 01:34 UTC
@danamlewis yeah I have that basal line but what I was thinking of was not basal being delivered but tracking--the basal IOB....you can kind of see it with the basal delivery but not really. Another thing would be to see what the basal delivery rate was per hour, or on a rolling 2, 3, or 4 hour basis. It's all good stuff...I think a lot of that data may be able to help set and/or tailor your base basal rates.
Dana Lewis
@danamlewis
Oct 05 2016 01:35 UTC
would you want just basal iob, though, or netiob impact visualized? thinking the latter might be more useful.
I agree for per hour is useful looking back - I think we talked at one point about making that a NS report but never saw if that got completed, but I know Milos & Jason were adding to the reporting capabilities so might check & see what they’ve added there
garykidd
@garykidd
Oct 05 2016 01:39 UTC
regarding the net IOB is that just taking into account basal IOB and any bolus derived IOB? Still being able to see visualize the basal IOB (whether positive or negative) may be pretty insightful into establishing settings and being able to better visualize the effect of the last [4] hours of basal adjustments.
Dana Lewis
@danamlewis
Oct 05 2016 01:39 UTC
are you planning to use it real time or retrospectively?
real time vis is one thing, retrospective reporting and infrequent usage would be a different development scenario
garykidd
@garykidd
Oct 05 2016 01:40 UTC
@danamlewis I love your NS pic though...hope to get closer to that soon.
Dana Lewis
@danamlewis
Oct 05 2016 01:40 UTC
netIOB is both basal and bolus impact
Gina
@gclyon
Oct 05 2016 01:47 UTC
That's an interesting thought
@tim2000s
Gina
@gclyon
Oct 05 2016 01:52 UTC
I had wondered if reason companies were getting FDA approval way sooner than expected, might also be an attempt at regulating open access. (Like black market or something)
Dana Lewis
@danamlewis
Oct 05 2016 01:53 UTC
No. They're all aware of a limited supply of old loopable pumps out there.
I think the writing has been on the wall re loop
Looo
*looping being safer than not looping. And Medtronic did the required studies, but FDA didn't need a long time to figure out it was ok to approve
Gina
@gclyon
Oct 05 2016 01:55 UTC
Writing on the wall---thanks to you guys! 👍👍❤️
Scott Leibrand
@scottleibrand
Oct 05 2016 01:59 UTC
Lots of academic studies all showing the same thing, too.
Dana Lewis
@danamlewis
Oct 05 2016 02:01 UTC
Ya. But I agree the collective voices of our community is probably contributing in a positive way, too :)
garykidd
@garykidd
Oct 05 2016 02:01 UTC
@danamlewis probably both real time visualization and maybe a report to look at historical data better. I think being able to click the 24hr button and see not only a blue line for actual basal being delivered but let's say a red line that would show basal iob would be useful. You'd be able to see straight away if your basal iob may be impacting treatment for example.
Dana Lewis
@danamlewis
Oct 05 2016 02:03 UTC
Was talking something similar the other day with @sulkaharo , but around visualizing impact of any iob
If someone's going to add another real time vis, combined net iob impact would be my vote
And for retrospective, some of the reports to get a feel for any needed basal changes.
Or really, what we need to do is oref0 issue 99, a report to tell you needed basal changes and other setting changes :)

moonshot

John Benjamin
@Bender1061
Oct 05 2016 02:30 UTC
@scottleibrand when running oref0-setup.sh after I enter all my information in the setup it gets stuck.
Continue? y/[N] y
Checking /home/edison/johnopenaps: Initialized empty Git repository in /home/edison/johnopenaps/.git/
[master (root-commit) b3de1ec] initializing openaps 0.1.6-dev
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 openaps.ini
/home/edison/johnopenaps initialized
/home/edison/src/oref0/ already exists; pulling latest
Already up-to-date.
Checking oref0 installation
it just sits there
that is on oref0-setup branch
Scott Leibrand
@scottleibrand
Oct 05 2016 02:51 UTC
I thought I fixed that in oref0-setup branch.
Try the commands it's running at that step and see which one hangs.
Hannah Crabtree
@lollydaggle
Oct 05 2016 03:48 UTC
I somehow flashed the edison, can't get wifi to work yet. I still have no clue on the battery and I don't know why its so difficult. If I use a polymer lithium ion, I need a sparkfun battery board, correct? Which are on back order.
unless there's some magical battery pack that people are using
or if I can buy multiple battery packs, keeping one always charged and swap them out
Dana Lewis
@danamlewis
Oct 05 2016 03:50 UTC
Soldering to power block would be the only other option. Or a battery block. Or in a month use the explorer board :)
jmcrawford
@jmcrawford
Oct 05 2016 03:50 UTC
@lollydaggle adafruit.com carries LiPo boards as well. Just make sure if you're buying batteries and charging circuit boards that the polarity matches (+/-). I've got a few batteries that are backwards to my charging board.
Mike Stebbins
@mikestebbins
Oct 05 2016 04:08 UTC
@scottleibrand @danamlewis The setup script is amazing, thanks for putting it out there! It was the impetus I needed to update to AMA. Question is, since getting a new rig running with the setup script (using AMA, everything else is default besides max iob and max basal rates, which I changed), I've had two Azure quota-exceeded outages in the last week. I've used Nightscout for 1.5 years, OpenAPS for 5 months now and it's never happened until now. Ideas on what I might do (besides hosting my own mongo/webapp on a cloud-server)?
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:09 UTC
Just FYI, it's absolutely hilarious to watch COPS on TV when high on THC/marijuana...I remember the first time the Marinol high hit me, and I happened to watch TV and COPS was on. It never gets old!!!!
Dana Lewis
@danamlewis
Oct 05 2016 04:09 UTC
You could help us use the NS-device as part of the script. Or swap to heroku in the meantime.
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:10 UTC
I'm blazed right now. Been nauseated lately a lot and don't have school so...might as well be high...
Dana Lewis
@danamlewis
Oct 05 2016 04:10 UTC
We need help optimizing for low data usage if anyone feels strongly about sticking to azure. Scott updated the docs re heroku but may need to make it more prominent
Mike Stebbins
@mikestebbins
Oct 05 2016 04:10 UTC
Sorry, I've only been paying half-attention to gitter the last couple weeks, so I'm not sure what you mean by "use the NS-device as part of the script"?
Dana Lewis
@danamlewis
Oct 05 2016 04:11 UTC
Heh. There's a NS-device that people have been using manually, but is not part of the setup script (yet, until someone helps with that part)
Mike Stebbins
@mikestebbins
Oct 05 2016 04:12 UTC
Got ya. I'll dig in Gitter for the NS-device conversations, and probably quick toss-up a Heroku server. Thank you, @danamlewis .
Dana Lewis
@danamlewis
Oct 05 2016 04:13 UTC
:+1:
Note to @scottleibrand re pulling the wiki and pointing people to dev docs for now since it has the heroku and other notes
Scott Leibrand
@scottleibrand
Oct 05 2016 04:17 UTC
With all the extra stuff everyone wants (like BG uploads, rawbg, etc.) I'm not sure we'll ever get back down below Azure free quotas. But if anyone wants to try optimizing the loop for that, replacing my custom aliases with the proper calls to the ns device is the place to start.
Sulka Haro
@sulkaharo
Oct 05 2016 04:29 UTC
Yeah @garykidd / @danamlewis we could plot a number that was based on expected insulin impact, taking the absorption time into account. IOB on it's own is slightly misleading -> right after a bolus IOB = bolus, but we all know the real impact will only happen once it absorbs. Basal is similar - IOB is very good at modeling the end result of the currently injected insulin but not good at modeling when this will happen.
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:29 UTC
Yay just had to puke. 5th time in 2 days...way to go, gastroparesis.
Mike Stebbins
@mikestebbins
Oct 05 2016 04:30 UTC
@scottleibrand Understood, and I'm certainly not complaining. All things AMA and the setup script are treating me very well! With the amount of sleep I get right (2 month old isn't in a great rhythm yet), I might just pay $7/month for a working solution to keep NS up and running. FYI, only input I had on the setup script was that the wording on entering the device name for mmeowlink confused me: "/dev/ttySOMETHING" made me think that I was supposed to enter "ACM0", instead of "/dev/ttyACM0". Completely my oversight, but it might be clearer if the verbiage in the step-by-step of the script said something like "What you enter will probably look like "/dev/ttySOMETHING", without the quotes".
Scott Leibrand
@scottleibrand
Oct 05 2016 04:32 UTC
That sounds like an excellent thing to PR in. :smile:
Dana Lewis
@danamlewis
Oct 05 2016 04:33 UTC
+1
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:34 UTC
What, you mean my comment about puking?
Sulka Haro
@sulkaharo
Oct 05 2016 04:37 UTC
Git doesn't do Barf Requests yet, can you hold it in until the next version comes out?
Dana Lewis
@danamlewis
Oct 05 2016 04:37 UTC
+1 for a PR by @mikestebbins
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:38 UTC
LMAO!
Scott Leibrand
@scottleibrand
Oct 05 2016 04:40 UTC
LOL @sulkaharo
diabeticgonewild
@diabeticgonewild
Oct 05 2016 04:54 UTC
Hopefully you know I was only joking about the PR...
diabeticgonewild
@diabeticgonewild
Oct 05 2016 05:04 UTC
That was awesome @sulkaharo
diabeticgonewild
@diabeticgonewild
Oct 05 2016 05:11 UTC
Hahaha! I am watching COPS right now and a guy the cops detained "has insulin syringes in his car because he has borderline type 2 diabetes" hahaha
Tim Street
@tim2000s
Oct 05 2016 06:12 UTC
@scottleibrand The 640G allows manual calibration of the sensor, so I'd expect that from the 670 as well.
@danamlewis I've flipped my NS site to heroku and it doesn't suffer the Azure lock out on the $7 plan. It's also estimating that the monthly cost won't exceed the $7. For my money, it's worth swapping over for the certainty.
Scott Leibrand
@scottleibrand
Oct 05 2016 06:34 UTC
:+1:
Tim Street
@tim2000s
Oct 05 2016 06:49 UTC
(But if you're swapping to Heroku for an EU based G5 with Share the instructions are missing some setup details. I'll try and add them later today).
C-Ville
@C-Ville
Oct 05 2016 07:23 UTC
Heroku did not let me set up my page, apparently my e-mail provider was on a black list (web.de)
Tim Street
@tim2000s
Oct 05 2016 07:34 UTC
Oops!
Time for new email address!
C-Ville
@C-Ville
Oct 05 2016 07:44 UTC
@tim2000s I just recently went offline with my loop, so I hope I do not need to switch to Heroku
Tim Street
@tim2000s
Oct 05 2016 08:08 UTC
My issue is Dexcom G5. Can't take that offline without moving to Loop. Which is why I want to port oref0 into Loopkit.
C-Ville
@C-Ville
Oct 05 2016 08:37 UTC
@tim2000s does Xdrip/Xdrip+ in the meanwhile fully supports G5? if so you could go with my poor mans solution and install mongoDB and NS on your Edison. I have my cell run as a hotspot. The only issue there is the limited space on the Edison. My DB has 260 mb after roughly 2 weeks of looping. This is wihtout Autosense and AMA and therefore not so many meal entries.
Tim Street
@tim2000s
Oct 05 2016 09:12 UTC
@C-Ville I'd rather mod xdrip to run on the pi/Edison then have an all in one solution.
C-Ville
@C-Ville
Oct 05 2016 09:13 UTC
@tim2000s sounds like a great idea. I am just so untrained in programming that unfortunately this was not an option for me
Tim Street
@tim2000s
Oct 05 2016 10:00 UTC
The best that I'd describe my attempts are "hacking about" @C-Ville
Tim Street
@tim2000s
Oct 05 2016 11:01 UTC
Anyone running a Pi0 for portability? Looks to have a low power draw.
garykidd
@garykidd
Oct 05 2016 12:11 UTC
how to resolve---am I out of space on micro sd card...
pi@raspberrypi:~/APS401 $ crontab -e
/tmp/crontab.sEpt2Q/crontab: No space left on device
Sandra Keßler
@SandraK82
Oct 05 2016 12:12 UTC
clean your logs
and check with sudo raspi-config if your image is exoanded to whole sd card
Matt Walker
@walker0
Oct 05 2016 12:41 UTC
@tim2000s I used to run a pi zero, the edison is significantly better for size and power draw though and it is easier to interface a battery with in a sleek manner
diabeticgonewild
@diabeticgonewild
Oct 05 2016 13:10 UTC
Man, when I went to bed last night, I felt like I was floating. Pretty crazy.
Had a good sleep though!
Dana Lewis
@danamlewis
Oct 05 2016 13:35 UTC
Morning funny: http://m.xkcd.com/1742/
Scott Leibrand
@scottleibrand
Oct 05 2016 13:36 UTC
Heh
"Anything that requires enough configuration that Scott eventually gets tired of doing it manually and adds it to oref0-setup" ;-)
Dana Lewis
@danamlewis
Oct 05 2016 13:37 UTC
@sjolundjohn re azure limits you described in other channel, did it correlate to using the new setup scripts for first time? see last night convo above, that may be it
John Sjolund
@sjolundjohn
Oct 05 2016 13:41 UTC
@danamlewis yes exactly
It wasn't exactly correlated - it seemed to be more closely aligned with the database upgrade that Azure did as I had the script running 1-2 weeks before
Dana Lewis
@danamlewis
Oct 05 2016 13:42 UTC
K. Short answer is switch to heroku probably though, long answer is help make the data usage more efficient :)
John Sjolund
@sjolundjohn
Oct 05 2016 13:42 UTC

I would actually put my money on it being related to the Azure upload rather than script to be honest. Since last weekend I hit the quota basically everyday.

I have not looked into Heroku - am I right in understanding that I can replace Azure with Heroku and then get a free tier?

OK fair - that is enough - will make the change tomorrow

I just got the last Nightscout Dev branch, is that recommended still?

Dana Lewis
@danamlewis
Oct 05 2016 13:43 UTC
$7/month I think but no one is running over data caps even w extreme usage
Yea I believe everyone is still using NS dev
Matthias
@ceben80
Oct 05 2016 13:44 UTC
That's the reason because I want to get rid of azure and I would like to run the "new" loop, that's great
John Sjolund
@sjolundjohn
Oct 05 2016 13:47 UTC
@danamlewis thanks
Dana Lewis
@danamlewis
Oct 05 2016 13:48 UTC
:+1:
Matthias
@ceben80
Oct 05 2016 13:49 UTC
@danamlewis 7$ per month what is the limit regarding transfer volume :question:
Dana Lewis
@danamlewis
Oct 05 2016 13:51 UTC
Not sure off the top of my not yet awake brain
Matthias
@ceben80
Oct 05 2016 13:52 UTC
Does anybody have a link for setting up ns in Heroku?
Tim Street
@tim2000s
Oct 05 2016 13:53 UTC
I checked out the stats on Azure. Essentially the issue is that if you run the new script with updates every minute you max out the CPU time you get on the Free level, which is a grand total of 3 minutes. With it set to upload to NS and pull data every minute, it maxed out after about 17 hours. With a five minute pump-loop it was taking 19.
I've set up the $7 heroku and don't have any capacity issues. The stats suggest I'm hitting about 56% of max memory and occasionally peaking at 80% of load.
Matthias
@ceben80
Oct 05 2016 13:57 UTC
@sjolundjohn thank you :+1:
John Sjolund
@sjolundjohn
Oct 05 2016 13:57 UTC

I just finished setup, took 10 minutes, very easy.

Will take another 30 to test and configure likely

The deploy to Heroku button is right at the top Readme.md section of git, took me a moment to find it
Dana Lewis
@danamlewis
Oct 05 2016 13:59 UTC
Wow good to know its that fast @sjolundjohn
Matthias
@ceben80
Oct 05 2016 13:59 UTC
Sounds great....I think will try it
John Sjolund
@sjolundjohn
Oct 05 2016 14:00 UTC
It is totally blank without any data, so let's not be sure until working. Off to get my twins so will have to figure out the rest this evening
Matt Walker
@walker0
Oct 05 2016 14:05 UTC
If you are outside the US and pulling data from share you need to add the BRIDGE_SERVER EU setting. Works the same as in azure settings but is missing from the steps and I had completely forgotten about it so it took me a little while to figure it out.
Tim Street
@tim2000s
Oct 05 2016 14:09 UTC
That got me too.
I host my NS and mongodb on Google Cloud. Deployment is completely DIY, but with looping it's still only about $5/mo.
Dana Lewis
@danamlewis
Oct 05 2016 15:18 UTC
Digital ocean is another popular DIY option.
garykidd
@garykidd
Oct 05 2016 15:56 UTC
is there like a safe mode boot up for Rp3....intereuppted power seems to have corrupted sd card and it wont boot
it'd be awesome to see some instructions on how to use digital ocean or google cloud instead...I just switched to 55 azure plan as the free plan was exhausted.....but sounds like there ar ebetter options out there
Scott Leibrand
@scottleibrand
Oct 05 2016 16:26 UTC
IMO if you need directions for how to self-host, you should be using Heroku.
Brandon Faloona
@bfaloona
Oct 05 2016 16:27 UTC
Looking forward to meeting everyone in SF! @danamlewis @jasoncalabrese @moomoobloo Any suggestions on a nearby hotel for my mom and I to stay?
Scott Leibrand
@scottleibrand
Oct 05 2016 16:27 UTC
Administering your own cloud server with a full Linux stack (particularly one controlling a medical device dosing life-critical medication) is not something to take on lightly if you don't already have experience doing it securely.
Brandon Faloona
@bfaloona
Oct 05 2016 16:31 UTC
@moomoobloo I'd love a quick tour of Google. :)
garykidd
@garykidd
Oct 05 2016 16:44 UTC
I just tried to deploy a new heroku site....ummm how to I change the ENABLE variables--can't seem to find them...azure might have been easier for me actually
I think I just entered my incorrect bridge credentials
David
@davidkeddydb
Oct 05 2016 16:51 UTC
@garykidd Just under settings, reveal config vars
diabeticgonewild
@diabeticgonewild
Oct 05 2016 17:02 UTC
I got mio infusion sets through Solara Medical on Friday. I just opened the shipment. 2 out of 3 of the mio boxes seals were broken, but the lot numbers on the outside of the boxes match the lot numbers of the infusion sets inside the box.
Should I be concerned?
They said that they sometimes "break the seals on infusion set boxes to check inventory"...does this sound like BS?
I switched from Medtronic as a distributor because they treat Medicare patients pretty crappy...hence solara medical...and they actually let me order online for Medicare orders...
Chris Oattes
@cjo20
Oct 05 2016 17:07 UTC
Call Medtronic and ask them
diabeticgonewild
@diabeticgonewild
Oct 05 2016 17:09 UTC
Yeah, that's what I was thinking of doing...
garykidd
@garykidd
Oct 05 2016 17:10 UTC
@diabeticgonewild regardless, like they couldn't tell how many were in a sealed box. I'll bet they are fine but that does sound like a bs answer.
diabeticgonewild
@diabeticgonewild
Oct 05 2016 17:12 UTC
Medtronic said it was fine...
garykidd
@garykidd
Oct 05 2016 17:33 UTC
M
So if I can't boot my pi no chance of recovering as catd...,is that right?
Catd = sd card/rig.
Lots of ways to recover, depending on what other gear you have. SD card reader on another Linux machine? Mount it there and make sure filesystem is OK. Spare SD card? Get raspbian going again and copy relevant files. Etc. etc.
Plus serial console during boot sequence, dropping into U-Boot or whatever it uses.
Scott Leibrand
@scottleibrand
Oct 05 2016 17:55 UTC
when we were using Pi's a lot, I found that if an SD card won't boot, it's best to reimage it from a backup or a fresh Raspbian install. having an already-imaged backup SD card really helped too
PieterGit
@PieterGit
Oct 05 2016 17:58 UTC
@scottleibrand : should i use dev or oref0-setup for pullrequests, see openaps/oref0#239
Scott Leibrand
@scottleibrand
Oct 05 2016 17:59 UTC
for something small it doesn't matter. but would be better to start with a branch that doesn't have the openaps/oref0#232 stuff in it
you could start a new branch off oref0-setup or dev, and then git cherry-pick a7262458b2f7721325283fbeb230febc5e57af39
PieterGit
@PieterGit
Oct 05 2016 18:01 UTC
i'll try next time
Scott Leibrand
@scottleibrand
Oct 05 2016 18:03 UTC
if you don't get to it before me, I can cherry-pick it over myself
garykidd
@garykidd
Oct 05 2016 19:24 UTC
@ecc1 maybe I can try and load sd card on my imac. I suspect the file system may be shot, however. IT seems to just hanf with a blinking "_"
Is U_boot a feature of raspi Jessie?
Matthias
@ceben80
Oct 05 2016 19:56 UTC
less than 24 hours looping my azure contingent has been exceeded, web app is stopped, really annoying. The new loop is very data consuming.
Tim Street
@tim2000s
Oct 05 2016 19:56 UTC
@ceben80 Go and make a Heroku app. Get a new email address for it if neccessary
Matthias
@ceben80
Oct 05 2016 19:57 UTC
But it is not running 24 h without a break....the free one
Tim Street
@tim2000s
Oct 05 2016 19:58 UTC
No, but Heroku (the paid one) is $7 a month. The alternative is to modify the ns device to be less data intensive.
Matthias
@ceben80
Oct 05 2016 19:59 UTC
That works with autosens?
Tim Street
@tim2000s
Oct 05 2016 20:00 UTC
Yes - I've been running it for hte last two days
C-Ville
@C-Ville
Oct 05 2016 20:01 UTC
what in the ns device makes the new loop so data intensive?
Scott Leibrand
@scottleibrand
Oct 05 2016 20:02 UTC
well, there's the fact that oref0-setup.sh is still using dumb curls for upload, and not using the ns device at all except for BG download
Matthias
@ceben80
Oct 05 2016 20:04 UTC
As many megabytes of data will be transmitted. I am very amazed compared to my old loop
But I love the new one except this azure stuff
iananders
@iananders
Oct 05 2016 20:05 UTC
just switched my nightscout instance to heroku - i find it much easier to configure and understand - and $7/month is obviously very straightforward
Scott Leibrand
@scottleibrand
Oct 05 2016 20:06 UTC
:+1:
Matthias
@ceben80
Oct 05 2016 20:10 UTC
Now I have attach my Dexcom, N8 to all :wink:
Finally my day ends with a 5.5 A1C :star2:
mm22dl
@mm22dl
Oct 05 2016 20:18 UTC
Hey all! Been scrolling up but didn't see any mention of Animas warning its customers one (or some?) of their pumps can be hacked... has the openaps community anything to do with that? :)
Scott Leibrand
@scottleibrand
Oct 05 2016 20:21 UTC
I think most of us saw it. I'm sure Jay was aware of @mariusae's work, but didn't cite it explicitly AFAIK
garykidd
@garykidd
Oct 05 2016 20:21 UTC
hmmmm....doubting my share u/n p/w.
where can I login to confirm again?
been awhile since I've done it manually
John Benjamin
@Bender1061
Oct 05 2016 21:20 UTC
can someone give me an example of how the variables can be passed to the oref0-setup.sh when you run the .sh file. I was able to get it to work with Scotts old script, but the new stuff is throwing me. I've been testing a lot of times, and it would be nice to do it all at once without the interactive script.
Scott Leibrand
@scottleibrand
Oct 05 2016 21:27 UTC
Most of them are printed in the first line.
John Benjamin
@Bender1061
Oct 05 2016 21:28 UTC
ah ok
Scott Leibrand
@scottleibrand
Oct 05 2016 21:28 UTC
Is that line just invisible? Or is it not detailed enough? Or ?
Ideas/PRs for clarification welcome.
John Benjamin
@Bender1061
Oct 05 2016 21:28 UTC
I'll play with what I'm seeing and see what works
it took me a few times to understand your older stuff. So I have someplace to start
what I had to do with my problem last night was do the npm run global-install after I pulled it. Would that have something to do with switching branches?
Scott Leibrand
@scottleibrand
Oct 05 2016 21:34 UTC
yeah, when a new branch has a new tool, you have to run that to install it
Hardwick1973
@Hardwick1973
Oct 05 2016 21:36 UTC
Hi, I am struggling to get my openaps information into Nightscout. Nightscout is pulling information from a G5 bridge but I can't get the upload working from my Pi. Not too sure where to get help...can somebody point me in the right direction?
Scott Leibrand
@scottleibrand
Oct 05 2016 21:39 UTC
have you tried oref0-setup yet?
John Benjamin
@Bender1061
Oct 05 2016 21:43 UTC
This message was deleted
jwedding
@jwedding
Oct 05 2016 21:57 UTC
Sorry I missed the converstation last night around services,) I'll throw it out there again, the Nightscout Foundation has essentially free machines on Azure. If you're paying for any of it, we'd be happy to hook you up with a VM/Webapp/whatever to make your looping less costly.
Scott Leibrand
@scottleibrand
Oct 05 2016 22:01 UTC
@jwedding do we have any way to do that at scale for anyone who wants to use azure with openaps?
David Cintron
@loudestnoise
Oct 05 2016 22:31 UTC
@jwedding I’d actually love that. I’ve been fighting with getting Nightscout to run on a Digital Ocean VPS and just about have given up
John Benjamin
@Bender1061
Oct 05 2016 22:38 UTC
@scottleibrand looks like you forgot to add the -g to the sort in the oref0-set-system-clock.sh in branch oref0-setup
Matt Walker
@walker0
Oct 05 2016 22:38 UTC
@scottleibrand I'm not actually using heroku in anger as i'm under the free quota Azure even with Loop/openaps info. But it appears to me that you could use heroku free if you have verified a credit card (extra 450hours free dyno time ) and use uptime robot to keep the site awake. Is there something I'm missing?
Scott Leibrand
@scottleibrand
Oct 05 2016 22:45 UTC
maybe. but if you're relying on NS to get BG data to your loop, I would rather pay the $7/mo vs. relying on an uptime robot to circumvent heroku's design
Matt Walker
@walker0
Oct 05 2016 22:48 UTC
True, it is probably worth it for the peace of mind
garykidd
@garykidd
Oct 05 2016 23:08 UTC
so how should I handle?
pi@raspberrypi:~/APS401 $ crontab -e
/tmp/crontab.Ys7Wg8: No space left on device
Creation of temporary crontab file failed - aborting
Scott Leibrand
@scottleibrand
Oct 05 2016 23:17 UTC
This message was deleted
This message was deleted
oh wait, this is a Pi
that won't do any good
have you run sudo raspi-config and expanded the file system?
garykidd
@garykidd
Oct 05 2016 23:19 UTC
I believe I did that through the GUI on RP3...but let me that again.
Scott Leibrand
@scottleibrand
Oct 05 2016 23:20 UTC
if you've already done, that, take a look at the output of df -h and cd / && sudo du -xh -d 3 | egrep "[0-9]G|[0-9][0-9][0-9]M" to see what's using up all the space on the disk that's full
garykidd
@garykidd
Oct 05 2016 23:23 UTC
368M    ./var/cache/apt
377M    ./var/cache
101M    ./var/lib
8.0K    ./var/tmp/systemd-private-f#####################e0ef-rtkit-daemon.service-iujA9G
8.0K    ./var/tmp/systemd-private-###################303-rtkit-daemon.service-aJ7GFI
104M    ./var/log
685M    ./var
102M    ./opt/sonic-pi
651M    ./opt/Wolfram/WolframEngine
651M    ./opt/Wolfram
797M    ./opt
101M    ./lib/modules
148M    ./lib
2.4G    ./home/pi/APS401
173M    ./home/pi/src
2.7G    ./home/pi
2.7G    ./home
456M    ./usr/lib/arm-linux-gnueabihf
206M    ./usr/lib/libreoffice
166M    ./usr/lib/jvm
1.3G    ./usr/lib
207M    ./usr/share/locale
104M    ./usr/share/doc
871M    ./usr/share
115M    ./usr/include/boost
145M    ./usr/include
2.4G    ./usr
6.7G    .
Scott Leibrand
@scottleibrand
Oct 05 2016 23:23 UTC
2.4G ./home/pi/APS401
that is excessive
also looks like you did a full GUI install with lots of packages you don't need, like libreoffice, Wolfram, and sonic-pi
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n will show your installed packages in size order, largest package last (http://unix.stackexchange.com/a/107039)
then you can do sudo apt-get purge <packagename> on stuff you don't need
garykidd
@garykidd
Oct 05 2016 23:27 UTC
what about in my instance directory...how do I drill down in that and remove excess baggage
Scott Leibrand
@scottleibrand
Oct 05 2016 23:27 UTC
it'll be the .git directory most likely. cd into that directory and run the sudo du part there
you can just rm -rf .git and then oref0-reset-git to re-create an empty one
unless you need git history for forensics on something that happened recently, that shouldn't affect your loop at all
garykidd
@garykidd
Oct 05 2016 23:29 UTC
git direcotry under APS401?
Scott Leibrand
@scottleibrand
Oct 05 2016 23:29 UTC
ya
garykidd
@garykidd
Oct 05 2016 23:29 UTC
not there
Scott Leibrand
@scottleibrand
Oct 05 2016 23:29 UTC
it's .git not git
it won't show up on standard ls: you have to do ls -la
garykidd
@garykidd
Oct 05 2016 23:31 UTC

OK, do you have to pass a qualifier to make it show maybe?
gat it
got it
so after sudo du ....lot of lines withone jumping out...

2359388 ./objects/pack

Scott Leibrand
@scottleibrand
Oct 05 2016 23:32 UTC
once you're messing around inside .git it's safest to delete the whole thing
garykidd
@garykidd
Oct 05 2016 23:32 UTC
whats the -rf part?
recursive
?
Scott Leibrand
@scottleibrand
Oct 05 2016 23:32 UTC
-r is recursive. -f is force
garykidd
@garykidd
Oct 05 2016 23:32 UTC
got it
oref0-reset-git from APS instance main directory?
pi@raspberrypi:~/APS401 $ oref0-reset-git
Attempting to fix git corruption.  Please wait 15s.
/usr/local/bin/oref0-fix-git-corruption: line 7: cannot create temp file for here-document: No space left on device
Git repo does not appear to be corrupt.
/usr/local/bin/oref0-reset-git: line 52:  4930 Terminated              ( sleep 15; killall oref0-fix-git-corruption )
Scott Leibrand
@scottleibrand
Oct 05 2016 23:35 UTC
you need to rm -rf .git first
garykidd
@garykidd
Oct 05 2016 23:35 UTC
OK...maybe I did that in the wrong directory...
ahhh
finally
garykidd
@garykidd
Oct 05 2016 23:42 UTC
also I sudo apt-get purge libreoffice-common
seemed to hang on Processing triggers for gnome-icon-theme (3.12.0-1) ...
but after like 3 mins...it finally completed successfully.
presuming sudo apt-get purge wolfram-engine will be fine as well?
I guess I can always reload it.
Scott Leibrand
@scottleibrand
Oct 05 2016 23:47 UTC
yep and yep
and sonic, and probably some others
garykidd
@garykidd
Oct 05 2016 23:48 UTC
that should give me quite a bit more room I would think
gonna make an image copy of card here in a bit so as not to lose all the work (especially with mmtune/ mmeowlink and the like).
I have a couple of SOR modules en route--wonder if they'll behave the same way (I suspect they will). But I will know for sure soon.
pi@raspberrypi:~/APS401 $ cd / && sudo du -xh -d 3 | egrep "[0-9]G|[0-9][0-9][0-9]M"
368M    ./var/cache/apt
377M    ./var/cache
8.0K    ./var/tmp/systemd-private--rtkit-daemon.service-iujA9G
8.0K    ./var/tmp/systemd-private--rtkit-daemon.service-aJ7GFI
104M    ./var/log
682M    ./var
101M    ./lib/modules
148M    ./lib
173M    ./home/pi/src
313M    ./home/pi
313M    ./home
456M    ./usr/lib/arm-linux-gnueabihf
166M    ./usr/lib/jvm
1.1G    ./usr/lib
207M    ./usr/share/locale
104M    ./usr/share/doc
834M    ./usr/share
115M    ./usr/include/boost
145M    ./usr/include
2.2G    ./usr
3.4G    .
Scott Leibrand
@scottleibrand
Oct 05 2016 23:53 UTC
:+1:
garykidd
@garykidd
Oct 05 2016 23:53 UTC
that's 3.4 Gb used..right
Scott Leibrand
@scottleibrand
Oct 05 2016 23:53 UTC
ya. df -h will show the free
feel free to paste from dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n if you want more input on things to remove
garykidd
@garykidd
Oct 05 2016 23:55 UTC
from 10,000 down...or up depending on how you look at it....
10000    greenfoot
10299    libqtgui4
10440    systemd
10715    gnome-icon-theme
10720    fonts-freefont-ttf
10774    perl
10970    libstdc++-4.9-dev
11332    libruby1.9.1
11680    omxplayer
11853    poppler-data
12000    libgl1-mesa-dri
12033    raspberrypi-bootloader
12810    ri1.9.1
12871    libruby2.1
12955    coreutils
13218    desktop-base
13344    cpp-4.9
13431    pypy-lib
13515    libavcodec56
14087    adwaita-icon-theme
14352    gcc-4.9
15108    perl-modules
16136    iso-codes
16266    locales
17009    libc6-dbg
17942    samba-libs
18542    git
18681    binutils
19400    gputils-common
19671    libflite1
20709    libgtk2.0-common
21367    g++-4.9
22684    libgtk-3-common
24828    libpython2.7-dev
26095    libwebkitgtk-3.0-0
26531    libicu52
27472    libqtwebkit4
32846    libllvm3.7
32888    pypy
33041    libraspberrypi-doc
33224    freepats
34217    libicu-dev
44964    nuscratch
45673    scratch
47401    libpython3.4-dev
91230    libboost1.55-dev
104882    raspberrypi-kernel
168481    oracle-java8-jdk