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

14th
May 2019
SturdiPancreas
@SturdiPancreas
May 14 01:26
@scottleibrand Not sure exactly what I need to be looking for in the install scripts. I also was sent this, but not sure which steps I need to follow. Will this be added to the Dev branch since now both Pi and Edison are using Dev? Also, any ideas what would have caused a previously working edison to now behave this way? And any guesses on why I'm suddenly getting this? "monitor/mmtune.json is empty or does not exist"
Scott Leibrand
@scottleibrand
May 14 01:27
mraa isn’t needed for normal operation, just if you need to reflash a cc1110 with ccprog
openaps/oref0#1253 merged to dev
SturdiPancreas
@SturdiPancreas
May 14 01:31
@scottleibrand right, but aren't the troubleshooting steps for this now incomplete since anyone setting up a new Pi/Edison is now using the Dev branch? Can you give me any more specific direction in how to find the lines I need for mraa?
Scott Leibrand
@scottleibrand
May 14 01:34
Docs are probably incomplete, ya. Not sure if you can just run a master install to get mraa, then move back to dev after reflashing? If not we need to pull out the mraa install commands from master’s install scripts (openaps-bootstrap, openaps-install, or oref0-setup) and run them manually
If you can’t figure it out from that I can look it up when I get back to my laptop.
(Or likely someone else in here could help find them)
SturdiPancreas
@SturdiPancreas
May 14 02:23
Would love it if someone could post those commands - there are several of us having this same issue that have posted on fb about it, and since we are all running Dev now, the suggestions in the docs aren't helping.
Jon Cluck
@cluckj
May 14 02:38
abridged version:
sudo apt-get install -y libpcre3-dev git cmake python-dev swig
cd $HOME/src && rm -rf mraa/
wget https://github.com/intel-iot-devkit/mraa/archive/v1.7.0.tar.gz
tar -xvf v1.7.0.tar.gz && mv mraa-1.7.0/ mraa/
cd $HOME/src/ && mkdir -p mraa/build && cd $_ && cmake .. -DBUILDSWIGNODE=OFF && make && sudo make install
sudo bash -c "grep -q i386-linux-gnu /etc/ld.so.conf || echo /usr/local/lib/i386-linux-gnu/ >> /etc/ld.so.conf && ldconfig"
oleg-post
@oleg-post
May 14 03:07
Hi. I have to reinstall aps on my raspi. Everything works fine now. But NS doesn’t show Aps, IOB, PUMP. How to solve this issue?
There is no document in devicestatus collection.
SturdiPancreas
@SturdiPancreas
May 14 03:51
ChipEraseFailure.JPG
@cluckj and @scottleibrand thanks for that! Now getting this:
oleg-post
@oleg-post
May 14 03:55
OpenAPS and Pump pills not working, but still looping and not displaying temp basals.
Alfredo kachy
@kachytronico
May 14 11:01
Me too. Help
I wanted to say that I also have that problem. It happened 1 h. what can be done?
OpenAPS and Pump pills not working, but still looping and not displaying temp basals.
Alfredo kachy
@kachytronico
May 14 11:07
my platform with edison and master ref0 6.3 had been working correctly for a week.
fidoman
@efidoman
May 14 11:07
There may be other root issues that cause this problem. However, I've cleared this problem in the past by cleaning up some space in the mongoDB. Here's the instructions on how to do that
Alfredo kachy
@kachytronico
May 14 14:17
@efidoman
Thanks, I had to delete data because the database exceeded 240 Mb and could not compact.
Good...
Be done.
Before deleting I shared my data with the OpenAPS Data Commons project
Eric
@ecc1
May 14 14:33
I wonder if hosting precompiled Edison and RPi versions of ccprog would be worthwhile, given the pain of installing mraa?
Scott Leibrand
@scottleibrand
May 14 15:27
Is that all it would take? Perhaps so.
oleg-post
@oleg-post
May 14 17:15
@efidoman this doesn't help me. I have a lot of free space.
Scott Leibrand
@scottleibrand
May 14 17:34
if CGM data is getting added to NS but not treatments data, and you haven't made any changes to your OpenAPS rig, the problem is likely with one of your collections in NS, even if there appears to be enough space overall. if you suspect something you changed might be an issue, you can check /var/log/openaps/ns-loop.log using less to see if it has any details on what exactly is failing from the rig's perspective, and check the NS logs on Heroku to see what it's complaining about
oleg-post
@oleg-post
May 14 17:43
@scottleibrand it is from /var/log/opemaps/ns-loop.log
Refreshed carbhistory; COB: 120
{"status":401,"message":"Unauthorized","description":"Invalid/Missing"} (NOT VALID JSON: jq: error (at <stdin>:1): Cannot index object with number)
Latest NS treatment: 2019-05-14T19:18:27+02:00
Latest NS temptargets: {"target":80,"duration":60,"start":"2019-05-14T15:07:29.653Z"}
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: {"target":80,"duration":60,"start":"2019-05-14T15:07:29.653Z"}
meal.json.new invalid:
{"carbs":180,"nsCarbs":180,"bwCarbs":0,"journalCarbs":0,"mealCOB":120,"currentDeviation":-4.67,"maxDeviation":0,"minDeviation":-4.67,"slopeFromMaxDeviation":0,"slopeFromMinDeviation":0,"allDeviations":[-5,-5,-4,-4,-5],"lastCarbTime":1557850812000,"bwFound":false}
e}
Starting oref0-ns-loop at Tue 14 May 20:37:04 MSK 2019:
Found recent valid BG:
{"glucose":128,"dateString":"2019-05-14T20:29:00+03:00"}
{"sgv":128,"dateString":"2019-05-14T20:29:00+03:00"}
Latest NS temptargets: {"target":80,"duration":60,"start":"2019-05-14T15:07:29.653Z"}
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: {"target":80,"duration":60,"start":"2019-05-14T15:07:29.653Z"}
Refreshed carbhistory; COB: 120
{"status":401,"message":"Unauthorized","description":"Invalid/Missing"} (NOT VALID JSON: jq: error (at <stdin>:1): Cannot index object with number)
Latest NS treatment: 2019-05-14T19:27:17+02:00
{"status":401,"message":"Unauthorized","description":"Invalid/Missing"}
Completed oref0-ns-loop at Tue 14 May 20:38:24 MSK 2019
oleg-post
@oleg-post
May 14 17:50
@scottleibrand NS logs on Heroku looks fine. No error mentioned
Scott Leibrand
@scottleibrand
May 14 17:53
did you set up token auth, or are you still using API secret?
oleg-post
@oleg-post
May 14 17:54
still using AIP_secret
Scott Leibrand
@scottleibrand
May 14 17:54
ok, you may have typo'd something: maybe re-run oref0-setup?
oleg-post
@oleg-post
May 14 17:55
@scottleibrand yes, I did it ones again very carefully
Scott Leibrand
@scottleibrand
May 14 17:56
is your NS site set to readable, or did you disable that to require API secret to see data?
oleg-post
@oleg-post
May 14 17:56
the pill "IOB" display the right data today.
Scott Leibrand
@scottleibrand
May 14 17:57
also maybe double-check that your rig has direct unfiltered Internet access, and that you're using https:// in your NS URL
oleg-post
@oleg-post
May 14 18:03
https is set. No change in WIFi made. Papaertrial in NS shows commands from rig
looks like something with DB
oleg-post
@oleg-post
May 14 18:52
@scottleibrand I didn't touch this
Scott Leibrand
@scottleibrand
May 14 18:55
I would try donating your data to OH, optionally backing it up if you want, and then clearing out the mongodb collections on Heroku. or if you don't want to lose data, try upgrading to a paid plan.
oleg-post
@oleg-post
May 14 19:12
@scottleibrand I will try to double check everything once again.
oleg-post
@oleg-post
May 14 19:24
I cleaned up almost whole DB (i leave only last 10 days) and APS finally displayed in NS.
Scott Leibrand
@scottleibrand
May 14 19:36
👍
Tris
@noturcatdotcom_twitter
May 14 21:58
Hi everyone! I am setting up my openaps rig now and confused with how to start up putty, or even turn my rig on
I put the micro usb card into it and flipped it to "on", and waited until the green light stopped flashing, is the screen on the rig supposed to turn on at all?
Scott Leibrand
@scottleibrand
May 14 22:00
the screen doesn't do anything until you have everything installed and working
are you following the openaps docs?
Tris
@noturcatdotcom_twitter
May 14 22:02
I am trying to follow the directions, it says to log in but I'm not sure where it means to log into, does it mean to log into the putty program?
Scott Leibrand
@scottleibrand
May 14 22:02
which step of which page are you on?
Tris
@noturcatdotcom_twitter
May 14 22:03
step 2-3, setting up raspberry pi, under the "Boot up your Pi and connect to it" section
Scott Leibrand
@scottleibrand
May 14 22:04
can you paste the docs URL you're on so we're looking at the same page?
Scott Leibrand
@scottleibrand
May 14 22:07

logging in is this stuff: "On Mac, open Terminal and use ssh pi@raspberrypi.local

On Windows, use PuTTY and establish an SSH connection, with username pi, to hostname raspberrypi.local. If you receive a warning that the rig’s host key is not yet cached, respond YES to add it."

Tris
@noturcatdotcom_twitter
May 14 22:11
I do not know how to use putty to "establish an ssh connection"
Scott Leibrand
@scottleibrand
May 14 22:12
Tris
@noturcatdotcom_twitter
May 14 22:12
I tried opening through putty, I see where to put the host name, but I do not see where to put the username
Scott Leibrand
@scottleibrand
May 14 22:13
if you don't specify, it'll prompt you to type it I believe
Tris
@noturcatdotcom_twitter
May 14 22:16
Okay so that page is where I was, but I got the error "unable to open port" and did not know what to do so I had gone back to the main instructions
Scott Leibrand
@scottleibrand
May 14 22:18
did you configure the SD card with your wifi? does the rig show online via the methods listed on that page?
if necessary you can also hook up a keyboard and monitor to the Pi to see what it's up to
Tris
@noturcatdotcom_twitter
May 14 22:20
I did, I am going to double check the settings are all correct again though