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

25th
Mar 2017
Cameron Chunn
@applehat
Mar 25 2017 00:09
I'm not sure if this is the correct place to ask this, but I have a few questions.
Decocare - basically just a library for talking to a serial port, right? Nothing super specific to the explorer board?
Scott Leibrand
@scottleibrand
Mar 25 2017 00:13
right. decocare was built for the Carelink USB stick
mmeowlink does the cc1110 radio stuff underneath
and subg_rfspy is the firmware that actually runs on the cc1110
Cameron Chunn
@applehat
Mar 25 2017 00:14
Ahh. So in theory someone could flash a different cc1110 based device and use it (if they were willing to experiment)
Scott Leibrand
@scottleibrand
Mar 25 2017 00:15
that's what we all did before we got Morgan to design the Explorer board
originally the TI cc1111 stick was the main mmeowlink radio, along with the Slice of Radio, ERF, etc.
Cameron Chunn
@applehat
Mar 25 2017 00:16
Is there a specific reason Edison's were chosen (beyond the obvious tiny size)?
Scott Leibrand
@scottleibrand
Mar 25 2017 00:17
we designed the Explorer board to not have to solder anything
Cameron Chunn
@applehat
Mar 25 2017 00:18
Ahh. That makes sense.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:18
the other option was the Raspberry Pi, which is huge by comparison, and more importantly very power hungry
sarahspins
@sarahspins
Mar 25 2017 00:19
@applehat yeah, we did... I have like.... 3 different ones sitting in a box that I never really used :P
Cameron Chunn
@applehat
Mar 25 2017 00:19
I've just been tossing around ideas in my head about using a Pi Zero W, tho I do need to look into its power consumption over an Edison.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:19
the Pi Zero almost worked, but it was underpowered and couldn't support something like the Explorer board
Cameron Chunn
@applehat
Mar 25 2017 00:19
Ahh. Well everyone has already done the work for me.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:19
I think the Pi Zero W has most of the same drawbacks, particularly with regard to integrating a radio. so I think the Edison will be the preferred option for quite awhile
only advantage I see with the Pi Zero is base price, but once you factor in the cost of a radio stick and CC-debugger, it's actually more expensive
Cameron Chunn
@applehat
Mar 25 2017 00:20
I guess I won't try and reinvent the wheel. I was mainly tossing around ideas in my head from a cost perspective.
sarahspins
@sarahspins
Mar 25 2017 00:20
@applehat as @scottleibrand mentioned there really isn't another way to do it "cheaper" and be as reliable and easy to support
Cameron Chunn
@applehat
Mar 25 2017 00:20
(and stuff already on hand)
Scott Leibrand
@scottleibrand
Mar 25 2017 00:21
and all things considered, an OpenAPS rig is already pretty cheap, especially when you consider the price of the used pump (plus a backup) vs. a new one
Cameron Chunn
@applehat
Mar 25 2017 00:21
Haha indeed.
sarahspins
@sarahspins
Mar 25 2017 00:21
when I first started trying to do OpenAPS back in July of last year.. there were about 100 different ways to build a rig... and there were about 100 users at the time :P
Scott Leibrand
@scottleibrand
Mar 25 2017 00:21
heh true
sarahspins
@sarahspins
Mar 25 2017 00:21
now it seems like the vast majority are using the edison/explorer block combo, and it's also MUCH simpler to set up
Scott Leibrand
@scottleibrand
Mar 25 2017 00:22
you can even get the Edison pre-flashed with jubilinux now. :)
sarahspins
@sarahspins
Mar 25 2017 00:22
there are of course still others using other rig configurations
Cameron Chunn
@applehat
Mar 25 2017 00:22
That's why I haven't dug into it much until now. I have been looking into this project on and off for a while, and it's finally to a point where it is (relatively) easy to get one going.
sarahspins
@sarahspins
Mar 25 2017 00:22
but if you were to approach OpenAPS today, you'd be told to get an edison, and an explorer board, and skip a whole host of problems that the earlier rigs had to deal with.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:22
It took a lot of work to get to this point
Cameron Chunn
@applehat
Mar 25 2017 00:23
I can tell. I'm a developer, so I can appreciate how much work has gone into this.
sarahspins
@sarahspins
Mar 25 2017 00:23
it took me... I don't know, 3 days to get my first rig "sort of" working 8 months ago... and I ended up giving up on it and hopping over to Loop. Last weekend I built a rig and was looping within a couple of hours (could have been much faster but my internet is painfully slow)
of course I was already looping via Loop so I could almost just plug in my settings and I was good to go.. almost a week later, I'm still tweaking a few things.
Cameron Chunn
@applehat
Mar 25 2017 00:24
The biggest hurdle I've ran into is googling and finding out-of-date docs and not realizing they were out of date. Lol
sarahspins
@sarahspins
Mar 25 2017 00:24
but that, compared to the "challenge" I was presented with 8 months ago.. it's PHENOMENAL how much it all has improved
Cameron Chunn
@applehat
Mar 25 2017 00:25
I've been playing with the OpenAPS tools on my desktop (uploading no nightscout and such) - super cool how it all works :)
Ended up registering a domain to use with my nightscout instance today after my CGM beeped at me telling me I was high and a coworker said "is that your beetus beep?". Beetusbeep.com :p
sarahspins
@sarahspins
Mar 25 2017 00:27
Hahaha... awesome
Cameron Chunn
@applehat
Mar 25 2017 00:28
....Only to discover that free teir Azure doesn't support custom domains.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:29
you could DIY host it if you have a server already
sarahspins
@sarahspins
Mar 25 2017 00:29
heroku does!
you'll want to be on Heroku anyways... OpenAPS doesn't seem to play nice with Azure these days :(
I broke mine about a day after switching over from Loop
and it was down the rest of the day.. so I make a Heroku site to replace it, and quite honestly, I am LOVING heroku :)
Cameron Chunn
@applehat
Mar 25 2017 00:30
Haven't had a personal server running in a bit.
Scott Leibrand
@scottleibrand
Mar 25 2017 00:31
mine's on a digitalocean droplet, along with a bunch of other related stuff
but heroku's probably best if you don't want to admin a server for other reasons
sarahspins
@sarahspins
Mar 25 2017 00:31
and you want free :)
Cameron Chunn
@applehat
Mar 25 2017 00:31
I've heard good things about digital ocean. I honestly wouldn't mind having a box outside of my house for stuff.
sarahspins
@sarahspins
Mar 25 2017 00:32
I could actually use all of the azure I wanted through my husband's MSDN subscription (he gets a stupid amount of server free, but doesn't use it for work stuff), but I wouldn't be able to get in and "fix" stuff as easily since he can't share the login info with me for HIPAA reasons.
Cameron Chunn
@applehat
Mar 25 2017 00:33
I wonder if I get a discount on AWS being an (almost) Amazon employee.
@sarahspins - so heroku has a free teir? I swear when I looked last night they didn't.
I'd prefer heroku, really. Azure is kinda garbage.
Time to go read.
sarahspins
@sarahspins
Mar 25 2017 00:38
yes they do... it's kind of the default when you set it up
I think you do need a CC to verify your account but they don't charge you
Azure was the same, IIRC
it's been a while since I made that account so I don't really remember
Cameron Chunn
@applehat
Mar 25 2017 00:47
I just read it again, and realized I was worried because it says "sleeps after 30 minutes of inactivity"
katie disimone
@Kdisimone
Mar 25 2017 00:49
Yes, looping keeps it awake though...really well. The only difference between the free and the $7 per month heroku plans are that you get site metrics with the paid account. Not worth the $7.
Cameron Chunn
@applehat
Mar 25 2017 00:51
Nice. I'll move it over tonight. Thanks guys
PopcornPam
@PopcornPam_twitter
Mar 25 2017 01:03
Hey all, medtronic question.. I have my 722 looping, but it has a setting to vibrate each 30 minutes when there is a temp basal, which is really annoying when trying to sleep. Anyone know a way to disable it?
sarahspins
@sarahspins
Mar 25 2017 01:07
yeah, there's an alarm setting that will make it beep instead... I don't even hear mine 90% of the time now
for "real" alarms, it tends to be more presistent/annoying so no worries that you'll miss anything critical :)
Utilities > Alarm > Alert Type
Scott Leibrand
@scottleibrand
Mar 25 2017 01:22
FWIW it goes off every hour, not every 30m, for temp basals. If you hear/feel anything at any other time than :00, it's something else (low reservoir, pump suspended, etc.)
j4cbo
@j4cbo
Mar 25 2017 01:25
the fact that the Pi Zero (and W) comes with those 0.1" pads and no header makes it great for one-off stuff and not so great for integration :(
I'm going to be attempting to get a special issuance aviation medical from the FAA in a few months. wonder if I'm better off mentioning looping or not mentioning it... :P
sarahspins
@sarahspins
Mar 25 2017 01:30
as it's not FDA approved, I'd probably go with not mentioning it.. but showcase your CGM data showing time in range, etc :)
j4cbo
@j4cbo
Mar 25 2017 01:30
yeah, I'm told they really like CGMs
sarahspins
@sarahspins
Mar 25 2017 01:31
if THEY ask how you achieve that, then maybe you can let on a little, but I wouldn't lead with it :)
j4cbo
@j4cbo
Mar 25 2017 01:31
there's a periodic fingerstick required while in the air, but I wonder if they'll relax that now that Dexcom is dosing-approved
sarahspins
@sarahspins
Mar 25 2017 01:33
possibly :)
Cameron Chunn
@applehat
Mar 25 2017 01:36
I wouldn't mention looping in the slightest
off-label use of a medical device is a huge liability red flag i'd imagine
Even if it is proven and better, 3 letter government agencies care more about bureaucratic processes then logic =P
j4cbo
@j4cbo
Mar 25 2017 01:41
good point :P
Scott Leibrand
@scottleibrand
Mar 25 2017 01:59
And honestly, it doesn't really matter to them how you keep your BG between the lines, just that you do, and that you can do so no matter what else is going on in the cockpit. CGM (and finger sticks as needed) make that pretty straightforward.
Cameron Chunn
@applehat
Mar 25 2017 02:28
Nightscout in HA
Something I'm playing with while waiting on actual OpenAPS stuff to get here. Pulling latest blood glucose from Nightscout inside HomeAssistant so I can run automations based off my levels.
"Turn on bedroom lights if bloodsugar is low enough to sound alarm on CGM"
garykidd
@garykidd
Mar 25 2017 02:40
how does one refer to network name if it has an apostrophe in the name?
sarahspins
@sarahspins
Mar 25 2017 02:44
did you try leaving it in there?
wpa_supplicant will look for the bytes between the first and the last quote on a line so characters/quotes actually shouldn't matter
Cameron Chunn
@applehat
Mar 25 2017 02:51
Escape the tick with a backslack. 'Network\'s Name'
@garykidd ^
Dana Lewis
@danamlewis
Mar 25 2017 03:12
Really, really proud to represent everyone tonight - the Edison Foundation gives out 3 “Best Use of the Intel Edison Module” awards each year, and the Explorer Board project in use with OpenAPS was one of the three honorees this year! https://twitter.com/danamlewis/status/845470534657761280 (Amazing other projects too - one for an underwater wildlife audio tracker and one for a wearable to help stop human trafficking). For those of you who are newer to OpenAPS and not as familiar with some of the behind the scenes developers and contributors - you may be interested to read about some of their work: https://twitter.com/danamlewis/status/845471189195644928
Scott Leibrand
@scottleibrand
Mar 25 2017 03:15
@garykidd if you can't make it work easily per the other recommendations, you can change the network name on your iPhone to remove the curly apostrophe from the SSID
Sacha M
@coolestkidsever
Mar 25 2017 03:42
quick question.. phase 2 setup says you should get "openaps 0.2.0 "although the number might have incremented.. but.. what if its gone backwards? (0.1.5) ??
Dana Lewis
@danamlewis
Mar 25 2017 03:43
it’s fine - ignore it
Sacha M
@coolestkidsever
Mar 25 2017 03:43
ok cool, just thought I might have gone back in time a bit :-)
danamlewis @danamlewis treks off to put it back
Dana Lewis
@danamlewis
Mar 25 2017 03:44
refresh the page in a minute and it should magically switch back ;)
Sacha M
@coolestkidsever
Mar 25 2017 03:49
haha excellent :-)
Sacha M
@coolestkidsever
Mar 25 2017 03:57
sorry another silly question.. trying to run oref0-setup.sh ... but I get -bash: /root/src/oref0/bin/oref0-setup.sh: No such file or directory
any ideas on what I'm doing wrong please?
(have logged in as root)
Dana Lewis
@danamlewis
Mar 25 2017 03:58
rig online? and did you skip step 0 or step 1?
Sacha M
@coolestkidsever
Mar 25 2017 04:00
I'll try step 0 and 1 again ..
ahh think it needed a reboot.. sorry
Dana Lewis
@danamlewis
Mar 25 2017 04:03
no worries
sarahspins @sarahspins goes to make a PR.. too many people are getting tripped up on that one
Dana Lewis
@danamlewis
Mar 25 2017 04:38
:raised_hands: @sarahspins
sarahspins
@sarahspins
Mar 25 2017 04:40
wait it looks like someone did already update it... but I think moving the note in parentheses out of the output might make it easier for people to realize it's okay if it doesn't match exactly...
Dana Lewis
@danamlewis
Mar 25 2017 04:41
the 0.1.5 fix? yea, did that one in the same fit of “ahhh too much confusion” :) but sure - any language edits most welcome
sarahspins
@sarahspins
Mar 25 2017 04:46
done :)
Dana Lewis
@danamlewis
Mar 25 2017 04:47
merged :) thanks!
sarahspins
@sarahspins
Mar 25 2017 04:48
:+1:
Martin Haeberli
@mhaeberli
Mar 25 2017 06:15
@danamlewis and Explorer board team - congrats on award!
Matthias
@ceben80
Mar 25 2017 06:17
......read this in twitter, here from me congrats too :star2: :star2: :star2:
awesome
Dana Lewis
@danamlewis
Mar 25 2017 06:24
:) <3
Scott Leibrand
@scottleibrand
Mar 25 2017 06:57
for all of y'all who want to loop (or run autosens) less frequently to save battery: openaps/oref0#429
Matthias
@ceben80
Mar 25 2017 07:47
:+1:
Tim Street
@tim2000s
Mar 25 2017 11:34
Congrats @danamlewis !!!
borijess
@borijess
Mar 25 2017 12:05
Hi. I am new to this. Reading documentation so I can get started with my openaps. I have the Med 712 pump.
Matthias
@ceben80
Mar 25 2017 12:12
@borijess do you have a chance to get a x22 pump? Not easy for newbies with a 712 due to the fact some openaps commands does not work, some individual config stuff is required, but in generell it's possible with a 712.....
jcorbett80
@jcorbett80
Mar 25 2017 12:49
CONGRATULATIONS!
borijess
@borijess
Mar 25 2017 13:16
@ceben80 I was able to get an 712 pump from a co-worker. Where can I find a x22 pump?
Matthias
@ceben80
Mar 25 2017 13:24
Ebay for
Example
PieterGit
@PieterGit
Mar 25 2017 14:30
Can anybody explain how to call openaps dexcom methods from a python script, e.g. a call to get ReadBatteryLevel( )
Cameron Chunn
@applehat
Mar 25 2017 15:00
I'm sure it's possible to include the library, but since my python knowledge is pretty low, my suggestion is using subprocess.call['openaps', 'use cgm ReadBatteryLevel']
What size lipo pack are you guys using? Ordering stuff now.
Cameron Chunn
@applehat
Mar 25 2017 15:10
Never mind. Found 2000mAh in the docs.
PieterGit
@PieterGit
Mar 25 2017 15:19
@applehat : thanks, but i would like to avoid using a seperate process to call openaps, and would like to call it from python directly
Cameron Chunn
@applehat
Mar 25 2017 15:28
Yeah, not super helpful there. Sorry.
The explorer block lacks lipo protection right? I need to make sure my cell has its own low voltage cutoff?
Cameron Chunn
@applehat
Mar 25 2017 15:50
Just got a 2000mAh. If I have battery issues, I'll just buy a 2nd and parallel them.
elodaille01
@elodaille01
Mar 25 2017 16:07
blob
hello..what is wrong with the IOB ? the DIA is ok on pump (3) and on NS
Can it be annoying that the nighscout site is currently collecting the manual data I am sending to it via careportal (while I do not live the 722 pump at this time, except for little tests)?
thank you @scottleibrand or anyone else
Mike
@libxmike
Mar 25 2017 16:31
@applehat make sure before you connect them together that they are full charged
Dana Lewis
@danamlewis
Mar 25 2017 16:46
@elodaille01 make sure your pump is in absolute (u/hr) mode and not percentage (%) mode for temp basals.
Scott Leibrand
@scottleibrand
Mar 25 2017 16:56
@applehat I would recommend against putting multiple lipos in parallel, in case they end up with different charge levels. Better to just get a bigger battery IMO, or try to reduce power usage. I just published a save-battery branch that should help there.
The dev branch also has a battery check that powers off the Edison when voltage gets too low.
borijess
@borijess
Mar 25 2017 17:01
Is eBay allowed to sell medical devices? I have never seen a pump on eBay.
elodaille01
@elodaille01
Mar 25 2017 17:03
ok Scott @scottleibrand I'll try it
Scott Leibrand
@scottleibrand
Mar 25 2017 17:12
@borijess eBay has a policy against anything prescription, so they don't have to verify the prescriptions. Craigslist and medwow seem to be the alternatives.
Dana Lewis
@danamlewis
Mar 25 2017 17:15
@elodaille01 looks like you're making progress though - congrats! It should be easy to make that change on the pump and then it should actually enact a temp after that :smile:
@elodaille01 and after that, you may want to read up on the various safety settings - some, like maxiob, you will be able to change. Some are built into the code. More here when you get to that stage: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html
borijess
@borijess
Mar 25 2017 17:21
@scottleibrand Can I start building and learning how to put it together with the 712 until I run into a 522? It's not impossible on the 712 just harder correct?
Darrell Wright
@beached
Mar 25 2017 17:22
I really wish I could find my explorer board
it's with it's battery buddy.
elodaille01
@elodaille01
Mar 25 2017 17:23
thank you Scott !!
Dana Lewis
@danamlewis
Mar 25 2017 17:23
@elodaille01 not scott but you're welcome :smile:
@borijess correct - just requires manually setting up a few files and adjusting a few things compared to normal setup. Definitely doable
Matthias
@ceben80
Mar 25 2017 17:27
@danamlewis fully agree but the x12 pumps need some basic openaps skills, that means not simply going straight forward and a few hours later the loop is running :wink:
elodaille01
@elodaille01
Mar 25 2017 17:32
sorry Dana @danamlewis !!
strange..still the same....
blob
Dana Lewis
@danamlewis
Mar 25 2017 17:40
It may take a few minutes for it to re-pull the pump history and settings again - so give it 20+ minutes to pull that change on the pump settings. (Assuming you made the change on the pump - that's where this setting is, in the basal menu.)
Matthias
@ceben80
Mar 25 2017 17:40
@elodaille01 not really a good idea post your NS URL in a public room
elodaille01
@elodaille01
Mar 25 2017 17:42
let me know that all the values have been entered in the pump , strictly as in NS
;) @ceben80
yes..it's done Dana @danamlewis ..Ok..so ..waiting !
(sorry I wanted to write 'let me tell you'..sorry)
borijess
@borijess
Mar 25 2017 17:52
Ok I will start ordering the parts and will be back for help from this great community.😀
Dana Lewis
@danamlewis
Mar 25 2017 17:52
@borijess sounds good! We'll be here :smile:
borijess
@borijess
Mar 25 2017 17:56
You guys are awesome on what you have provided for all us. #wearenotwaiting
elodaille01
@elodaille01
Mar 25 2017 18:09
@danamlewis no change anymore !!
blob
jcorbett80
@jcorbett80
Mar 25 2017 18:11
@borijess I found both of my pumps on diabetic pa
Diabetic pay it forward
Scott Leibrand
@scottleibrand
Mar 25 2017 18:24
@elodaille01 do you see where it says "temp":"percent"? That means your pump was still in percentage mode at the time it tried to enact the temp. If you're still getting that, then you didn't fix it correctly on the pump.
Dana Lewis
@danamlewis
Mar 25 2017 18:24
https://twitter.com/danamlewis/status/845702568810463232 <--they've been posting articles online from this issue but ours is not online yet, I'll share once I see the article up online for easier reading! Some great pics of folks rigs in there :smile: <3 this community!
PieterGit
@PieterGit
Mar 25 2017 18:26
Is there any volunteer with edison board that can give openaps/oref0#357 a try? You don't have to own a WW pump. I will replace reset_spi_serial.py 2>/dev/null for all users by a python3 script called oref0_init_pump_comms.py that will reset the spi and init the ww pump (if applicable). I would like to know that it doesn't give problems for US pump users / Edison users. Also the bluetooth is upgraded to bluez 5.44.
@ceben80 has tried it on a pi3 with ti usb and it seems to work for him. I use it for several days now.
Mike
@libxmike
Mar 25 2017 18:28
@danamlewis sooooo, they say don't try this at home? what about outside?
PieterGit
@PieterGit
Mar 25 2017 18:28
don't is crossed out
Mike
@libxmike
Mar 25 2017 18:29
yeah, I think I can't read :)
Dana Lewis
@danamlewis
Mar 25 2017 18:29
:smile:
Mike
@libxmike
Mar 25 2017 18:31
or I can type faster as my brain can process pictures :)
@PieterGit I may try with WW, which distro or branch ?
PieterGit
@PieterGit
Mar 25 2017 18:33
this branch: https://github.com/PieterGit/oref0/tree/devww (as described in the pull request :smile: )
to install / test drive:
cd ~/src
mv oref0 oref0.default
git clone https://github.com/PieterGit/oref0.git
cd oref0
sudo npm install -g .
bin/oref0-setup.sh (or your oref0-rerun.sh)
don't forget the . at the end of npm install -g . (otherwise it won't work)
Mike
@libxmike
Mar 25 2017 18:35
will do as I have in my Edison/Ti rig old dev
Scott Leibrand
@scottleibrand
Mar 25 2017 18:35
I would recommend npm run global-install instead of npm install -g .
that will handle any previous installs, and will allow you to update your branch without a complete reinstall except when new packages get added to package.json
Mike
@libxmike
Mar 25 2017 18:37
@scottleibrand in the same sequence as @PieterGit posted?
Scott Leibrand
@scottleibrand
Mar 25 2017 18:37
I wouldn't do the "move oref0 off to a different directory" thing either: that's what git branches are for
the github.com web interface has command line instructions for checking out Pieter's branch at the bottom under the Command Line Instructions link. you just need the first two lines of that
Matthias
@ceben80
Mar 25 2017 18:41
@scottleibrand always the best to run npm run global-install ?
Scott Leibrand
@scottleibrand
Mar 25 2017 18:42
for anything other than the released master, yes
PieterGit
@PieterGit
Mar 25 2017 18:43
@scottleibrand : can you repeat the command's how you would advise it. I always move the original oref0 to a different dir so that restoring it is just rm -rf oref0 ; mv oref0.default oref0. i have more of a hate than love relation with git / github. I also noticed my github.com client messes up the *.sh permissions in the source directory (doesn't matter because npm install will use the correct permissions in /usr/local/bin
this is probably a windows thingy
Scott Leibrand
@scottleibrand
Mar 25 2017 18:44
sure, one sec
I think this is all you need:
cd ~/src/oref0
git checkout -b PieterGit-devww dev
git pull https://github.com/PieterGit/oref0.git devww
npm run global-install
oref0-setup # (or bash ~/myopenaps/oref0-runagain.sh)
elodaille01
@elodaille01
Mar 25 2017 18:49
@scottleibrand I'm sure of myself..
blob
Scott Leibrand
@scottleibrand
Mar 25 2017 18:49
Ok. has it run another loop since you changed that?
elodaille01
@elodaille01
Mar 25 2017 18:50
yes !!
and once again right now
it does not update !
Scott Leibrand
@scottleibrand
Mar 25 2017 18:51
try enacting the temp manually: killall -g openaps; openaps invoke enact/enacted.json
elodaille01
@elodaille01
Mar 25 2017 18:52
blob
ok
Scott Leibrand
@scottleibrand
Mar 25 2017 18:54
ok, looks like you don't have a valid suggested.json at the moment to enact. let's work our way backwards. try killall -g openaps; openaps enact
elodaille01
@elodaille01
Mar 25 2017 18:55
blob
Scott Leibrand
@scottleibrand
Mar 25 2017 18:57
ok, let's drill down into that date of undefined thing. try killall -g openaps; openaps invoke enact/suggested.json
elodaille01
@elodaille01
Mar 25 2017 18:59
blob
Scott Leibrand
@scottleibrand
Mar 25 2017 19:01
ok, so that's happening in determine-basal. it could be one of a few different input files that is messed up, so let's look at which files it's asking for: openaps report show enact/suggested.json --cli
then we'll want to do cat on each of the files listed. so cat monitor/iob.json, then cat monitor/temp_basal.json, etc. for each of the files in your openaps report show enact/suggested.json --cli output
before pasting them all, try cating all the files and see if any of them are obviously broken (maybe containing an error instead of regular contents)
elodaille01
@elodaille01
Mar 25 2017 19:04
ok...thank you very much Scott..I'll do it little bit later (it s time for meal here)
Scott Leibrand
@scottleibrand
Mar 25 2017 19:04
or, it might be easier to read the files by doing cat monitor/iob.json | jq .
ok, enjoy dinner. :)
elodaille01
@elodaille01
Mar 25 2017 19:05
ok @scottleibrand
thanks you
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 19:06
Hi! Trying to set up my edison with explorer board. I wonder if I still need to install the changes in pumpsettings for wwpumps (Oskar Pearson) that is recommended in the docs?
Scott Leibrand
@scottleibrand
Mar 25 2017 19:07
@ellabellakaramella or you could try out the new devww branch we were just discussing above
Dana Lewis
@danamlewis
Mar 25 2017 19:07
@ellabellakaramella during phase 2 oref0-setup.sh, make sure to tell it you have a ww pump and it should do it for you
Or that :smile:
Scott Leibrand
@scottleibrand
Mar 25 2017 19:07
maybe try it the regular oref0-setup way first
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 19:10
I did till it during phase 2 oref0-setup that I have a wwpump. But in the latest docs it still says that I should use the extra by Oskar Pearson. Just wanted to make sure. Thank you very much. :-)
Dana Lewis
@danamlewis
Mar 25 2017 19:11
Latest docs - can you link what page you're on?
PieterGit
@PieterGit
Mar 25 2017 19:13
@ellabellakaramella : the oskar pearson script is integrated into the code currently
it should work with explorer board from master afaict, but requires devww branch for pi rigs
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 19:14
trying to find it :-)
Dana Lewis
@danamlewis
Mar 25 2017 19:14
There might be an old mention that needs to get pulled out; or you could be on an old version of docs, so let us know what page you're on so we can check. Thanks!
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 19:14
@danamlewis sure will.
PieterGit
@PieterGit
Mar 25 2017 19:16
the integration of the ww script is a bit hacky on the current release, and i improved it on the devww branch
Mike
@libxmike
Mar 25 2017 19:28

@PieterGit

cd ~/src
mv oref0 oref0.default
git clone https://github.com/PieterGit/oref0.git
cd oref0
npm run global-install
bin/oref0-setup.sh (or your oref0-rerun.sh)

isn't there missing something with devww?
like git pull https://github.com/PieterGit/oref0.git devww

Scott Leibrand
@scottleibrand
Mar 25 2017 19:29
try the ones I posted :point_up: March 25, 2017 11:44 AM
Mike
@libxmike
Mar 25 2017 19:30
ok, will do right now
w/o mv oref0 ?
Scott Leibrand
@scottleibrand
Mar 25 2017 19:31
yeah, no point in doing manually what git was designed to do automatically :-)
Mike
@libxmike
Mar 25 2017 19:35
hmmm,
edison@edison1:~/src/oref0 $ git pull https://github.com/PieterGit/oref0.git devww
remote: Counting objects: 741, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 741 (delta 377), reused 375 (delta 375), pack-reused 357
Receiving objects: 100% (741/741), 291.52 KiB | 443.00 KiB/s, done.
Resolving deltas: 100% (521/521), completed with 68 local objects.
From https://github.com/PieterGit/oref0
 * branch            devww      -> FETCH_HEAD
Updating 1f391a1..0d34bd4
error: Your local changes to the following files would be overwritten by merge:
    bin/bt-pan
Please, commit your changes or stash them before you can merge.
Aborting
Scott Leibrand
@scottleibrand
Mar 25 2017 19:35
yeah, @PieterGit has some messed up permissions on his .sh files from Windows. let me see if I can fix those
for now you can just git stash and continue
Mike
@libxmike
Mar 25 2017 19:35
re-run after git stash?
Scott Leibrand
@scottleibrand
Mar 25 2017 19:36
yeah
PieterGit
@PieterGit
Mar 25 2017 19:37
@libxmike @scottleibrand did i mention i love git :worried: . If there is a way I can restore the permissions, please let me know
Scott Leibrand
@scottleibrand
Mar 25 2017 19:37
I think I have permissions to fix it: trying now
Mike
@libxmike
Mar 25 2017 19:39
@PieterGit are you changes just for USB Ti or also for serial ? or general for WW ?
Scott Leibrand
@scottleibrand
Mar 25 2017 19:40
pushed my changes: feel free to try again if you like
PieterGit
@PieterGit
Mar 25 2017 19:41
@libxmike : it will read the port from your pump.ini so should work with serial as well. i think the issue with hanging reset.py and disappearing port when used with TI USB only happens with TI USB
Mike
@libxmike
Mar 25 2017 19:41
already done with npm run global-install
Scott Leibrand
@scottleibrand
Mar 25 2017 19:41
@libxmike :+1: no need to re-do then
Mike
@libxmike
Mar 25 2017 19:41
@PieterGit OK, then will also run it on my 2nd Rpi3 which is just for tests
now installing it on edison/Ti serial
PieterGit
@PieterGit
Mar 25 2017 19:43
@scottleibrand : i think you forgot bin/oref0-upload-profile.js 100755 → 100644
Mike
@libxmike
Mar 25 2017 19:43
which was (and hope still is :) ) my main mobile rig
Scott Leibrand
@scottleibrand
Mar 25 2017 19:43
@PieterGit yeah, I only did .sh
there, I just fixed that one too
PieterGit
@PieterGit
Mar 25 2017 19:44
@scottleibrand : just checking: the removal of the azure script on dev was intentional? i needed to remove the file from package.json otherwise the global-install failed
Scott Leibrand
@scottleibrand
Mar 25 2017 19:45
yes, I removed it, but apparently merge conflicts or something made me miss that
thx
that was something from the (n=1)*2 days that hasn't been used since :)
oops, forgot to change bluez back to 5.37 before running oref0-setup on this rig. guess it'll be out of commission for an hour. good thing Dana isn't using it. :)
scottleibrand @scottleibrand cancels that
Scott Leibrand
@scottleibrand
Mar 25 2017 19:47
was 5.44 required for anything?
PieterGit
@PieterGit
Mar 25 2017 19:47
no, but i have some problems with the bt setup, so wanted to see if 5.44 fixed that
Scott Leibrand
@scottleibrand
Mar 25 2017 19:47
did it change anything?
if not, any objection if I git revert 741280a6af6d33606a038b76f0f810bfd0d1b746?
PieterGit
@PieterGit
Mar 25 2017 19:48
i only use bluetooth for connecting to pebble. need to debug that further, but haven't have time yet. no objections to revert it
Scott Leibrand
@scottleibrand
Mar 25 2017 19:48
k, done
Mike
@libxmike
Mar 25 2017 19:49

I entered my serial Ti /dev/ttyMFD1 in Are you using mmeowlink (i.e. with a TI stick)? If not, press enter. If so, what TTY port (full port address, looks like "/dev/ttySOMETHING" without the quotes - you probably want to copy paste it)? /dev/ttyMFD1
but now is asking

Ok, If you have a TI USB stick and a WW pump and a Raspberry PI, you might want to reset the USB subsystem if it can't be found during a mmtune process
Do you want to reset the USB system in case the TI USB stick can't be found during a mmtune proces? Use y if so. Otherwise just hit enter (default no):

ignore it ? is is relevant for serial Ti?

PieterGit
@PieterGit
Mar 25 2017 19:49
just answer no (or anything starting with a Y of y
afaict it's not relevant for serial connection
Scott Leibrand
@scottleibrand
Mar 25 2017 19:50
Does that question show up if you say yes to having an Explorer board?
PieterGit
@PieterGit
Mar 25 2017 19:50
should not, but let me check
Mike
@libxmike
Mar 25 2017 19:50
I said no to Explorer board
Scott Leibrand
@scottleibrand
Mar 25 2017 19:51
grep: .bash_profile: No such file or directory
/usr/local/bin/oref0-log-shortcuts: line 13: /root/.bash_profile: No such file or directory
not related to ww stuff, but a bug we should fix (or maybe an unimportant warning we should hide)
hmm:
bash: oref0_init_pump_comms.py: command not found
scottleibrand @scottleibrand tries again
Mike
@libxmike
Mar 25 2017 19:52
error:
Continue? y/[N] y
Checking /home/edison/myopenaps: /home/edison/myopenaps already exists
/home/edison/src/oref0/ already exists; pulling latest
remote: Counting objects: 1956, done.
remote: Compressing objects: 100% (73/73), done.
remote: Total 1956 (delta 1123), reused 1075 (delta 1075), pack-reused 808
Receiving objects: 100% (1956/1956), 321.69 KiB | 291.00 KiB/s, done.
Resolving deltas: 100% (1319/1319), completed with 121 local objects.
From git://github.com/openaps/oref0
   1f391a1..e45df52  dev        -> origin/dev
 * [new branch]      floating-carbs -> origin/floating-carbs
   06f447a..5e55ece  master     -> origin/master
 * [new branch]      save-battery -> origin/save-battery
 * [new branch]      wip/mmhistorytools-integration -> origin/wip/mmhistorytools-integration
 * [new tag]         v0.4.0     -> v0.4.0
 * [new tag]         v0.4.1     -> v0.4.1
 * [new tag]         v0.4.2     -> v0.4.2
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> PieterGit-devww

Couldn't pull latest oref0
Scott Leibrand
@scottleibrand
Mar 25 2017 19:53
ah, that's a limitation of the commands I had you run
let me come up with something more robust, one second
PieterGit
@PieterGit
Mar 25 2017 19:55
@scottleibrand : the missing oref0_init_pump_comms.py should be installed with npm install. @ceben80 had the same but the script was installed with a npm install -g .
Scott Leibrand
@scottleibrand
Mar 25 2017 19:55
This should work:
cd ~/src/oref0
git checkout dev
git pull https://github.com/PieterGit/oref0.git devww
npm run global-install
oref0-setup # (or bash ~/myopenaps/oref0-runagain.sh)
instead of making a new branch, this will just merge devww into your local dev branch. if you want to go back you can git checkout dev && git reset --hard origin/dev
Mike
@libxmike
Mar 25 2017 19:59
did git stash
Please, commit your changes or stash them before you can switch branches.
Aborting
edison@edison1:~/src/oref0 $ git stash
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 19:59
More help please! Trying to add one more wifi adress. When trying to save and exit with :wq it says it is in "only in read mode". Does this mean it is running and I have to stop it? If so what command should I wright?
Scott Leibrand
@scottleibrand
Mar 25 2017 20:00
@ellabellakaramella that probably means you aren't logged in as root like you should be (assuming this is an Explorer board)
PieterGit
@PieterGit
Mar 25 2017 20:00
@ellabellakaramella : did you add sudo to the command
Scott Leibrand
@scottleibrand
Mar 25 2017 20:01
anything you ran while logged in as edison you'll want to re-do / re-check as root

still getting this after re-running npm run global-install:

bash: oref0_init_pump_comms.py: command not found

investigating

PieterGit
@PieterGit
Mar 25 2017 20:02
i'll be back in an hour or so. @scottleibrand and @libxmike keep up the good work! :smile: i hope you have shiny new working rigs when i get back
@scottleibrand : i think sudo npm install -g . fixes that, but i agree the global-install should also work
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 20:03
Ok, it is a expl board and I was not logged in as root. Thanks
Scott Leibrand
@scottleibrand
Mar 25 2017 20:04
@PieterGit this looks like a bug:
root@edison-eb5 ~/myopenaps # ~/src/oref0/bin/oref0_init_pump_comms.py
2017-03-25 13:03:54,290 ERROR radio_locale is not set in pump.ini. Please set radio_locale=WW in your pump.ini
Mike
@libxmike
Mar 25 2017 20:05
@scottleibrand
is it correct? that * master part?
Continue? y/[N] y
Checking /home/edison/myopenaps: /home/edison/myopenaps already exists
/home/edison/src/oref0/ already exists; pulling latest
Already up-to-date.
Checking oref0 installation
* master
Installing latest oref0 package
as I'm installing dev
PieterGit
@PieterGit
Mar 25 2017 20:06
@scottleibrand does your pump.ini has radio_locale=US in it?
Scott Leibrand
@scottleibrand
Mar 25 2017 20:06
that's running if git branch | grep "* master"; then
@PieterGit no, that is the default
@libxmike run cd ~/src/oref0 && git branch?
PieterGit
@PieterGit
Mar 25 2017 20:07
aha, i thought the scripts would always add it (even if it was default: python zen: explicit is better than implicit). should i remove the test or is it better to always add it to pump.ini?
Scott Leibrand
@scottleibrand
Mar 25 2017 20:08
I think it would actually be NA not US. probably easier to remove the check, but if you'd prefer to have oref0-setup add the default if it's missing, I'd be ok with that too, just requires more testing
PieterGit
@PieterGit
Mar 25 2017 20:09
i'll be back later, and will apply a solution for scotts finding. meanwhile add radio_locale=US to pump.ini if it's not there
Scott Leibrand
@scottleibrand
Mar 25 2017 20:10
looks like the oref0_init_pump_comms.py thing may be 644 permissions. fixing that, and renaming it to match the - naming convention instead of _
Mike
@libxmike
Mar 25 2017 20:10
@scottleibrand install done
edison@edison1:~ $ cd ~/src/oref0 && git branch
  PieterGit-devww
* dev
Scott Leibrand
@scottleibrand
Mar 25 2017 20:11
@libxmike ok, I think something is wrong with that master vs. dev version check thing: we should troubleshoot that
Mike
@libxmike
Mar 25 2017 20:12
@scottleibrand also if we chose NS as CGM then this
* * * * * cd /home/edison/myopenaps && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; cat cgm/glucose.json | json -a sgv dateString | head -1 ) | tee -a /var/log/openaps/cgm-loop.log
should be removed from cronetab
as I always do
Scott Leibrand
@scottleibrand
Mar 25 2017 20:12
"choose NS as CGM" is not possible
you have to choose a CGM type in addition to NS
and then it tries both the configured CGM and pulling from NS, and uses whichever one provides the most recent valid data
Mike
@libxmike
Mar 25 2017 20:13
sorry, I mean if you just hit enter
Scott Leibrand
@scottleibrand
Mar 25 2017 20:13
if you press enter, g4-local-only is the default
Mike
@libxmike
Mar 25 2017 20:13
I use only NS
Scott Leibrand
@scottleibrand
Mar 25 2017 20:13
the reasoning is, you should be able to just plug in a CGM if you feel like it without reconfiguring
if you never do so, it doesn't hurt anything
Mike
@libxmike
Mar 25 2017 20:14
I use Freestyle Libre with Limitter and xDrip+
Scott Leibrand
@scottleibrand
Mar 25 2017 20:14
there is an xDrip CGM source I believe
Mike
@libxmike
Mar 25 2017 20:14
no
only if you setup xDrip for offline
Scott Leibrand
@scottleibrand
Mar 25 2017 20:15
yes, that
Mike
@libxmike
Mar 25 2017 20:15
I did it once for test
Scott Leibrand
@scottleibrand
Mar 25 2017 20:15
any reason you can't set up xDrip offline, even if you don't use it often?
Mike
@libxmike
Mar 25 2017 20:16
I'm thinking about it, I may do it
just have to get to it
Scott Leibrand
@scottleibrand
Mar 25 2017 20:17
the oref0-setup script's assumption is based on the opinion that you should set up your CGM for both online and offline usage, even if you don't end up using offline
Mike
@libxmike
Mar 25 2017 20:17
did not think about it this way, good point
Scott Leibrand
@scottleibrand
Mar 25 2017 20:18
if there is a case where that isn't possible, we might want to add another option for that, but otherwise I think the assumption is better all around
Sacha M
@coolestkidsever
Mar 25 2017 20:18
Hey all.. I use MMcommander/C111chip to upload CGM data from pump to NS, (which with OTG cable/Andriod phone is a bit buggy). Can i use openaps (which I have running) to provide the NS BG data instead of the MMCommander ... I can't figure out what I need to change in NS to do this. If there is no MMcommander running, then NS receives no BG data.. but OpenAPS still runs/works ok.
scottleibrand @scottleibrand is nothing if not opinionated :)
Scott Leibrand
@scottleibrand
Mar 25 2017 20:18
@coolestkidsever what kind of CGM? Enlite?
Sacha M
@coolestkidsever
Mar 25 2017 20:19
yeah enlite
Scott Leibrand
@scottleibrand
Mar 25 2017 20:19
did you run oref0-setup answering MDT to the CGM type?
Sacha M
@coolestkidsever
Mar 25 2017 20:19
sure did
Scott Leibrand
@scottleibrand
Mar 25 2017 20:20
ok, you might need to do openaps first-upload from your ~/myopenaps directory to kickstart it then
if that doesn't work, we'll need to look at logs to see why it's not uploading
Sacha M
@coolestkidsever
Mar 25 2017 20:20
ah, i figured it would need adjustments to NS setup, as it didn't work using RaspPi either
(now on edison)
Scott Leibrand
@scottleibrand
Mar 25 2017 20:21
is treatments data being uploaded to NS?
Sacha M
@coolestkidsever
Mar 25 2017 20:21
I get the warnings (like meter bg etc) in NS visual
only using it at night at this stage, so not many treatments going in
Mike
@libxmike
Mar 25 2017 20:23

@scottleibrand should I be concern about :

Starting pump-loop at Sat Mar 25 21:19:15 CET 2017:
bash: oref0_init_pump_comms.py: command not found
mmtune: pump://JSON/mmtune/monitor/mmtune.json
...

?

but pump communication works and is looping
Scott Leibrand
@scottleibrand
Mar 25 2017 20:24
@libxmike I just fixed that. re-pull the devww branch and re-run npm run global-install and try again?
Mike
@libxmike
Mar 25 2017 20:24
also oref0 setup?
Scott Leibrand
@scottleibrand
Mar 25 2017 20:25
yeah. or wait, I'm still seeing the issue even with my fix
heh, somehow I just got "916.396", 2, -93 from mmtune even though the pump is 1000 miles away and 7 miles up in the air. :)
Mike
@libxmike
Mar 25 2017 20:26
wow you must have attached big antenna to you rig :)
short wave signal :)
Scott Leibrand
@scottleibrand
Mar 25 2017 20:29
looks like npm isn't installing any of the python scripts for me
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:34
Hi all, I can't get my rig to connect to my iphone hotspot. I think I have everything entered correctly, and it connects to my home wifi fine. The hotspot connects to my ipad and computer fine
Mike
@libxmike
Mar 25 2017 20:35
@PopcornPam_twitter did you set password and name in your rig correct?
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:36
I think so.. I entered it exactly as it shows on my phone
Scott Leibrand
@scottleibrand
Mar 25 2017 20:37
does it have an apostrophe in it?
yeah, that's probably your problem
iOS uses curly apostrophes, not straight ones
easiest fix is just to change the hotspot name to not have an apostrophe at all
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:37
Curly apostrophes?
Scott Leibrand
@scottleibrand
Mar 25 2017 20:38
Pamela’s iPhone vs. Pamela's iPhone
save yourself the headache and just rename it :)
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:38
ah, gotcha
Scott Leibrand
@scottleibrand
Mar 25 2017 20:39
also, you did Iphone vs. iPhone, which might matter
Mike
@libxmike
Mar 25 2017 20:39
use just one word, no spaces
Dana Lewis
@danamlewis
Mar 25 2017 20:40
You may also want to delete that image or change pword
Scott Leibrand
@scottleibrand
Mar 25 2017 20:42
@libxmike I think I found the * master bug: pushing a fix now
that was also the cause of not having the .py scripts: it was reinstalling the packaged install instead of our dev one
Mike
@libxmike
Mar 25 2017 20:43
just installed on my Rpi3 Ti USB rig :) I should have waited :)
say when done, will re-run on both
Scott Leibrand
@scottleibrand
Mar 25 2017 20:44
fix is already pushed: testing it now
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:45
hmm.. still doesn't seem to pick up the hotspot
KS615
@KS615
Mar 25 2017 20:45
blob
Scott Leibrand
@scottleibrand
Mar 25 2017 20:46
very pretty :-p
KS615
@KS615
Mar 25 2017 20:46
Hi all, something has happened to my Edison, see the pic above
Scott Leibrand
@scottleibrand
Mar 25 2017 20:46
try unplugging and re-plugging the cable from the UART port
KS615
@KS615
Mar 25 2017 20:46
when I try to log in, these images show up
Scott Leibrand
@scottleibrand
Mar 25 2017 20:46
and swapping cables if needed
also, you should be logging in with ssh once you have networking working
you only need console to get that set up
KS615
@KS615
Mar 25 2017 20:47
oh ok, maybe its because I keep logging in as serial, will try to log in with SSH
oh wait, that was the main issue, last weekend, when I tried to follow the instructions to tether my phone's BT, the wifi quit working. Then these images showed up (I was logged in via serial at that time too). So, I gave up and was going back in to try to fix it today, but now can't get logged on to try to look at the wifi set up
Scott Leibrand
@scottleibrand
Mar 25 2017 20:54
ok, try swapping the USB cables then. also make sure you're choosing the correct putty settings from the docs (like 115200)
KS615
@KS615
Mar 25 2017 20:55
ok, swapped cables and was able to log on with SSH
Scott Leibrand
@scottleibrand
Mar 25 2017 20:55
heh, nice. that might mean you're connected via the usb0 interface instead of the wlan0 wifi one
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:56
When I enter "ifup wlan0" I get "ifup: interface wlan0 already configured" instead of the long message it shows in the dogs
Scott Leibrand
@scottleibrand
Mar 25 2017 20:56
but either way it means you can work on fixing your wifi now
@PopcornPam_twitter that's because you already did that part
KS615
@KS615
Mar 25 2017 20:56
when I ping google.com, it says, unknown host. Am i able to fix the network wifi with SSH?
ok great, thank you @scottleibrand
PopcornPam
@PopcornPam_twitter
Mar 25 2017 20:56
hmm.. it still won't connect
Scott Leibrand
@scottleibrand
Mar 25 2017 20:56
@KS615 yeah, you should be able to. you're connected via a different interface, so as long as you don't touch the usb0 config it should be unaffected by anything you do to wifi
KS615
@KS615
Mar 25 2017 20:57
great
Mike
@libxmike
Mar 25 2017 21:02
@scottleibrand I did re-run but error
pi@RPi3-2:~/src/oref0 $ npm run global-install

> oref0@0.5.0-dev global-install /home/pi/src/oref0
> npm install && sudo npm install -g && sudo npm link && sudo npm link oref0

npm WARN package.json mocha@2.5.3 No README data
npm ERR! Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/bt-pan'
npm ERR!  { [Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/bt-pan']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: '/home/pi/src/oref0/node_modules/oref0/bin/bt-pan' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.4.50-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/src/oref0
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /home/pi/src/oref0/node_modules/oref0/bin/bt-pan
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, chmod '/home/pi/src/oref0/node_modules/oref0/bin/bt-pan'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/src/oref0/npm-debug.log
npm ERR! not ok code 0

npm ERR! oref0@0.5.0-dev global-install: `npm install && sudo npm install -g && sudo npm link && sudo npm link oref0`
npm ERR! Exit status 50
npm ERR! 
npm ERR! Failed at the oref0@0.5.0-dev global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install && sudo npm install -g && sudo npm link && sudo npm link oref0
npm ERR! You can get their info via:
npm ERR!     npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.50-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /home/pi/src/oref0
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/src/oref0/npm-debug.log
npm ERR! not ok code 0
Scott Leibrand
@scottleibrand
Mar 25 2017 21:05
that probably means you used sudo at some point in the past when you shouldn't have
I would sudo rm -r /home/pi/src/oref0/node_modules/ and re-run
Mike
@libxmike
Mar 25 2017 21:06
did run few minutes ago w/o sudo, hmm
Scott Leibrand
@scottleibrand
Mar 25 2017 21:06
or you could chown -R it to be owned by pi
Mike
@libxmike
Mar 25 2017 21:06
will chown
no, I did rm now runs
strange, I run on Rpi always as pi user
and same run 10min ago w/o issue
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:10
Ok, tried erasing and re-doing the entry for the hotspot, no luck. Also tried adding my wife's hotspot (also an iphone), and also no luck, but both phones WILL connect to computers as hotspots
Scott Leibrand
@scottleibrand
Mar 25 2017 21:11
do you have the hotspots turned on?
you have to open the Personal Hotspot screen and leave it open until something connects and you get the blue bar
@libxmike @PieterGit ok, the fixes I pushed seem to have fixed all the errors I was seeing
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:12
Yes, and it WILL connect to the computers, just doesn't pick up the openaps rig
as soon as I turn home wifi back on it is fine on the regular wifi network
Scott Leibrand
@scottleibrand
Mar 25 2017 21:14
paste the configs again with the password redacted?
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:15
Screen Shot 2017-03-25 at 5.14.39 PM.png
I have tried with and without spaces in the network name
Scott Leibrand
@scottleibrand
Mar 25 2017 21:16
did you change the name on the iPhone too?
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:17
yes
Scott Leibrand
@scottleibrand
Mar 25 2017 21:17
not sure then
KS615
@KS615
Mar 25 2017 21:19
Ok, now my rig should be online with my home wifi again, but not connecting to my pump. When I look at the logs, it still seems stalled at the place it was last weekend when everything shut down (with the final step of BT pairing). Is there a way to jump start it?
blob
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:20
Will setting it up so the dexcom is plugged into the explorer board allow for most of the functioning when I am not home (if I can't get the hotspot working)?
Dana Lewis
@danamlewis
Mar 25 2017 21:24
Yes but hotspot we still want to get working so you can use NS while on the go too
PopcornPam
@PopcornPam_twitter
Mar 25 2017 21:25
hmm... I can't figure out if this is an iphone or edison issue
Patrik Nilsson
@ellabellakaramella
Mar 25 2017 21:29
@danamlewis Found it in the docs, now when reinstalling everything. Under step 2, far down it says for"Worldwide pump users" and it leads you to Oskar Pearson.
Dana Lewis
@danamlewis
Mar 25 2017 21:29
Link please
Matthias
@ceben80
Mar 25 2017 21:32
@scottleibrand great fixing work on the devww branch, on my pi today it worked w/o errors
Mike
@libxmike
Mar 25 2017 21:33
@scottleibrand did re-run, no errors, thx!
Dana Lewis
@danamlewis
Mar 25 2017 21:33
Nice @libxmike @ceben80
Mike
@libxmike
Mar 25 2017 21:34
@danamlewis are you already on the ground?
Dana Lewis
@danamlewis
Mar 25 2017 21:35
@libxmike yup. Short flight today :smile:
@ellabellakaramella ahh see it now - thanks
KS615
@KS615
Mar 25 2017 21:43
blob
Ok, back again, now it looks like my Orefo is not found...how is that possible, it was working last weekend! I went in to check to see what the settings area
*are
elodaille01
@elodaille01
Mar 25 2017 21:44
@scottleibrand sorry but the command 'cat monitor/iob.json | jq ' you recommand me to run instead of cat monitor/iob.json doesn't work
LeeS
@Lee-S
Mar 25 2017 21:44
Hi. I’ve just switched from Sparkfun block / TI stick to the Explorer board – I’m using WW Pump and the Medtronic CGM. I’m now getting a quite a bit of ‘Error decoding FourBySix’ and ‘Timed out or other comms error’. Some data is getting through. I’ve tried pulling a small data set (read_clock / iter_glucose 10) this looks ok. I can run mmtune ("868.342", 5, -82 ) and am running versions subg_rfspy 0.8 / mmeowlink 0.11.0. Any help greatly appreciated?
Scott Leibrand
@scottleibrand
Mar 25 2017 21:45
@elodaille01 ok, never mind jq then. Just look at the files with cat.
elodaille01
@elodaille01
Mar 25 2017 21:47
@scottleibrand
It was probably to facilitate the reading so I am a taker indeed ;)
KS615
@KS615
Mar 25 2017 21:48
Nevermind, I'm re-running the orefo set up dependencies again and hopefully that will re-set up my open aps
elodaille01
@elodaille01
Mar 25 2017 21:49
so..never mind indeed @scottleibrand
elodaille01
@elodaille01
Mar 25 2017 21:54
@scottleibrand this has no sense (cat monitor/temp_basal.json)
root@OpenAPSLucile:~/OpenAPSLulu# cat monitor/temp_basal.json
{
"duration": 30,
"rate": 0.85,
"temp": "absolute"
this corresponds to the basal value I had yesterday when we were observing the basal values given by Openaps (at the moment of observation, we were on that value of basal)
and it was absolutely not a temp basal in fact !!
Scott Leibrand
@scottleibrand
Mar 25 2017 22:03
You're looking for a file that should have a date field but is actually blank, or has an error.
KS615
@KS615
Mar 25 2017 22:06
Well, still running into trouble. Twice now I've gotten this message from puTTy
PopcornPam
@PopcornPam_twitter
Mar 25 2017 22:06
A friend not familiar with openaps suggested "It's probably something simpler than this but check the wpa encryption type, if you are using a macbook and iPhone, they use AES by default while the Intel board and home router probably use tkip. Just switch everything to the same, doesn't matter which."
KS615
@KS615
Mar 25 2017 22:06
blob
elodaille01
@elodaille01
Mar 25 2017 22:07
@scottleibrand what should I do about it ?
Scott Leibrand
@scottleibrand
Mar 25 2017 22:08
You still need to find the erroneous json file.
KS615
@KS615
Mar 25 2017 22:09
blob
And, now with the logs, I get the following:
(see pic above), and here is more of the log
blob
elodaille01
@elodaille01
Mar 25 2017 22:11
@scottleibrand Among other files in the list, no other apparent errors
Scott Leibrand
@scottleibrand
Mar 25 2017 22:12
Maybe try openaps invoke on each of them then.
elodaille01
@elodaille01
Mar 25 2017 22:12
ok @scottleibrand
Scott Leibrand
@scottleibrand
Mar 25 2017 22:13
@KS615 looks like it recovered
KS615
@KS615
Mar 25 2017 22:14
@scottleibrand I think so too, but my heroku site still lists pump as "undefined"
i'm rebooting everything to see if that fixes it
francesc0-cgm
@francesc0-cgm
Mar 25 2017 22:15
I have a problem. I restarted openaps after a week of loop because i have to tweak some settings before sending him school with openaps. All is working fine but on NS i can see only iob and cob. I have no BGs and openaps pill...last sunday all was working fine
KS615
@KS615
Mar 25 2017 22:15
BUT, now after reboot I see a temp basal on my pump!!
well, at least the pump and rig are communicating, i'll keep tinkering with it to see why heroku isn't showing anything
thank you again!!
francesc0-cgm
@francesc0-cgm
Mar 25 2017 22:22
Time on the site and on openaps are the same
PopcornPam
@PopcornPam_twitter
Mar 25 2017 22:27
is there a way to the change wpa encryption type on the edison?
elodaille01
@elodaille01
Mar 25 2017 22:29
@scottleibrand I started to invoke on the very first file (because I do not like it) : openaps invoke monitor/iob.json
iob://text/shell/monitor/iob.json
reporting monitor/iob.json
...what should I do with this ?
Scott Leibrand
@scottleibrand
Mar 25 2017 22:32
If the invoke gives no errors, just cat the file again and make sure it looks ok.
@popcornpam the default encryption settings are correct for iPhone hotspots.
elodaille01
@elodaille01
Mar 25 2017 22:32
aha...my 'l' command looks correct ..
ok I do this @scottleibrand
PopcornPam
@PopcornPam_twitter
Mar 25 2017 22:33
ok, back the the drawing board
elodaille01
@elodaille01
Mar 25 2017 22:35
sorry Scott, I do the invoke on the wrong file
PopcornPam
@PopcornPam_twitter
Mar 25 2017 22:41
is there a way to add wifi networks that require a username AND a password? And also, what do you put for a wifi network that does NOT have a password?
PieterGit
@PieterGit
Mar 25 2017 22:43
@scottleibrand : python file names should not use - but _. Otherwise import is not possible. That's why I used oref0_subg_ww_radio_parameters.py instead of oref0-subg-ww-radio-parameters.py
elodaille01
@elodaille01
Mar 25 2017 22:43
whatever, monitor/temp_basal.json is no longer blocked on the same value
so..it seems fine to me
Scott Leibrand
@scottleibrand
Mar 25 2017 22:44
@PieterGit ugh, ok. Turns out the problem was just the chmod +x, so you can revert those name change commits.
elodaille01
@elodaille01
Mar 25 2017 22:50
@scottleibrand However, I still have this error message when I run tail : glucose.json newer than pumphistory: Refreshed pumphistory
Could not parse input data: [TypeError: Cannot read property 'date' of undefined]
But it may be just because I have too few values ​​at the moment in the pump
Scott Leibrand
@scottleibrand
Mar 25 2017 22:52
Could be, not sure. Is it looping otherwise?
elodaille01
@elodaille01
Mar 25 2017 22:52
yes !!
PieterGit
@PieterGit
Mar 25 2017 23:01
@scottleibrand @libxmike @ceben80 : thanks for testing the ww branch (openaps/oref0#357 ) . With a bit of polish tomorrow, I hope it can be merged to dev tommorow
Scott Leibrand
@scottleibrand
Mar 25 2017 23:05
If someone can run it interactively on an Explorer board and make sure it doesn't ask any irrelevant questions, I think it'll be about ready to merge.
elodaille01
@elodaille01
Mar 25 2017 23:12
@scottleibrand it's looping...but ..the current basal given by NS is totally wrong..it tells us that there's a temp basal running..but it is false..
elodaille01
@elodaille01
Mar 25 2017 23:23
blob
Rick Warren
@riwarren
Mar 25 2017 23:26
Hey can anyone answer a simple question about getting openaps to communicate with my pump?
does my medtronic sensor need to be out of warm up mode before it will work?
or have I got something setup incorrectly?

out of warm-up mode now actually. still saying the following:

Radio ok, Listening: .No pump comms detected from other rigs
MDT cgm data retrieveError, retrying

anyone able to assist? I'm a senior developer for a distance ed school so I am more than technically inclined. I'm using medtronic 754 Canadian version revision 2.7A

Dana Lewis
@danamlewis
Mar 25 2017 23:33
If you don't have bgs it won't loop
Rick Warren
@riwarren
Mar 25 2017 23:33
it just started working
MDT cgm data retrieved
MDT cgm data reformatted
Old pumphistory: Refresh
Dana Lewis
@danamlewis
Mar 25 2017 23:33
:+1:
Rick Warren
@riwarren
Mar 25 2017 23:33
atleast I hope its about to start working. not in temp basal mode yet
Dana Lewis
@danamlewis
Mar 25 2017 23:34
See notes in the docs about it likely taking 15-20 minutes to do everything the first time
But if no bg it won't be setting any temps even once it reads everything
Rick Warren
@riwarren
Mar 25 2017 23:35
sensor is working now so it should be fine.
how long of a history does it need of sensor readings to start working?
I see now. forgot to set time zone :) thanks a bunch!
PopcornPam
@PopcornPam_twitter
Mar 25 2017 23:37
I can't figure out how to see log info that is older than the most recent, terminal won't let me scroll up. Trying to figure out why after a basal of 0 it decided a basal of .4 more than my normal rate
Rick Warren
@riwarren
Mar 25 2017 23:38
nano /var/log/logfile?
PopcornPam
@PopcornPam_twitter
Mar 25 2017 23:39
it doesn't show anything
Rick Warren
@riwarren
Mar 25 2017 23:39
replace logfile with the name of the log file. I don't know what it is off hand
Dana Lewis
@danamlewis
Mar 25 2017 23:40
Easiest for that imo is scrolling back on NS to read the pill during that time
PopcornPam
@PopcornPam_twitter
Mar 25 2017 23:40
It only shows the basal and bg, not the logic
Dana Lewis
@danamlewis
Mar 25 2017 23:42
Tap the OpenAPS pill
PopcornPam
@PopcornPam_twitter
Mar 25 2017 23:43
as I was trying to figure out the logic, it brought up new data, so I can't get the data from 7:15
elodaille01
@elodaille01
Mar 25 2017 23:46
@danamlewis please, what should I have in cat monitor/temp_basal.json if all was correct ? nothing, I guess when there's no basal temp running..In my case, it is as if there were always a temp basal
root@OpenAPSLucile:~/OpenAPSLulu# cat monitor/temp_basal.json
{
"duration": 21,
"rate": 0.0,
"temp": "absolute"
always a 30 minutes lasting temp basal running..never the same ..and with no reason to exist !
@danamlewis @scottleibrand or is it what Openaps want to do at the current time ?
elodaille01
@elodaille01
Mar 25 2017 23:52
but I saw previously something super strange : a big temp basal when the BG was really correct and decreasing