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

23rd
Jan 2017
Dana Lewis
@danamlewis
Jan 23 2017 00:00 UTC
(^if someone else wants to jump in and help, I'm on my phone otg so will be slower than usual in responding )
kmoran02
@kmoran02
Jan 23 2017 00:01 UTC
No, it's showing a $300 promotion free for two months. Not sure why. Ends 3/23/17
Dana Lewis
@danamlewis
Jan 23 2017 00:02 UTC
@RosyRed signed up for Google cloud yesterday and didn't see that - she might be able to give some pointers for the Google cloud setup piece or other steps.
jlaes
@jlaes
Jan 23 2017 00:06 UTC
@kmoran02 Google Cloud gives you $300 in free credits and i ran autotune a couple of times altogether a couple of hours and it cost nothing. Setup a new instance and choose this for the OS and no need to touch anythin else:
Dana Lewis
@danamlewis
Jan 23 2017 00:07 UTC
(Thx @jlaes )
kmoran02
@kmoran02
Jan 23 2017 00:08 UTC
I set it back up. Thank you! Now where to go?
jlaes
@jlaes
Jan 23 2017 00:09 UTC
Cant copy and paste on mobile
wait
kmoran02
@kmoran02
Jan 23 2017 00:10 UTC
No, but I found the create instance.
jlaes
@jlaes
Jan 23 2017 00:10 UTC
OS Image Ubuntu 16.0
amd64 yakkety image built on 2017-01-03
no need to change anything else
after you've created it and its up to the very right of the name of the imaage is a small drop down lost for SSH options
kmoran02
@kmoran02
Jan 23 2017 00:12 UTC
It says on the side $25.95 a month?? I have no idea. Let me try going back to the docs.
jlaes
@jlaes
Jan 23 2017 00:13 UTC
those are estimates if you keep it running for a month non-stop
which you wont
kmoran02
@kmoran02
Jan 23 2017 00:13 UTC
Ok
jlaes
@jlaes
Jan 23 2017 00:15 UTC
choose the SSh browser window option and it will connect through a terminal to your newly created VM and you can start copying the commands from the doc into the window normally and press enter after copying to execute the command
kmoran02
@kmoran02
Jan 23 2017 00:15 UTC
I don't think you'll be able to help me. I'm very thankful, but I'm truly clueless with this stuff. I don't even know where to enter the first thing you wrote.
jlaes
@jlaes
Jan 23 2017 00:17 UTC
You don't enter it anywhere. It says Ubuntu as the chosen OS at the center of the screen. There is a button "change" if I remember correctly. Click that and choose the Ubuntu version I described
kmoran02
@kmoran02
Jan 23 2017 00:17 UTC
Ok awesome
jlaes
@jlaes
Jan 23 2017 00:18 UTC
Sorry, I'm on mobile and heading to bed and don't have the screens in front of me
Then scroll down to create it no need to choose or change anything else
kmoran02
@kmoran02
Jan 23 2017 00:18 UTC
That's ok. My choices are ununtub16.04 lts or 16.10
Ubuntu I meant
jlaes
@jlaes
Jan 23 2017 00:20 UTC
16.10
kmoran02
@kmoran02
Jan 23 2017 00:20 UTC
Thanks!
jlaes
@jlaes
Jan 23 2017 00:21 UTC
Select, Ok. Scroll down. Create. Select SSH on the right, browser window option. Start copying the commands from the doc
kmoran02
@kmoran02
Jan 23 2017 00:22 UTC
What about that image part you wrote?
Yakkety?
jlaes
@jlaes
Jan 23 2017 00:22 UTC
That's the Ubuntu. The image part is more detailed info about when the image for the OS version created
kmoran02
@kmoran02
Jan 23 2017 00:23 UTC
Ok thank you so much for getting me going!!
jlaes
@jlaes
Jan 23 2017 00:24 UTC
If you have several options choose the one with the same details. I has issues getting a different image working and can only vouch for this Ubuntu version
Np
Hopefully I can get you through creating the VM and getting the SSH open. I can't help with the actual installation. Don't understand enough about it yet. But I got it working with this Ubuntu version with the instructions
So if you copy & paste from the doc correctly you should get it to work too
PieterGit
@PieterGit
Jan 23 2017 00:28 UTC
@oskarpearson @ecc1 i recompiled the kernel and have a /sys/class/gpio/export now. Unfortuately there something about pin 23 and pin 24. When I try port [9,10.11] i can do echo 9 > /sys/class/gpio/export and it creates the symlinks. But for pin 23 that fails. See details below. Any clue?
# mraa-gpio list
00       J17-1: GPIO PWM
01       J17-2:
02       J17-3:
03       J17-4:
04       J17-5: GPIO
05       J17-6:
06       J17-7: GPIO I2C
07       J17-8: GPIO I2C
08       J17-9: GPIO I2C
09      J17-10: GPIO SPI
10      J17-11: GPIO SPI
11      J17-12: GPIO SPI
12      J17-13:
13      J17-14: GPIO
14       J18-1: GPIO PWM
15       J18-2: GPIO
16       J18-3:
17       J18-4:
18       J18-5:
19       J18-6: GPIO I2C
20       J18-7: GPIO PWM
21       J18-8: GPIO PWM
22       J18-9:
23      J18-10: GPIO SPI
24      J18-11: GPIO SPI
25      J18-12: GPIO
26      J18-13: GPIO UART
27      J18-14:
28       J19-1:
29       J19-2:
30       J19-3:
31       J19-4: GPIO
32       J19-5: GPIO
33       J19-6: GPIO
34       J19-7:
35       J19-8: GPIO UART
36       J19-9: GPIO
37      J19-10: GPIO
38      J19-11: GPIO
39      J19-12: GPIO
40      J19-13: GPIO
41      J19-14: GPIO
42       J20-1:
43       J20-2:
44       J20-3:
45       J20-4: GPIO
46       J20-5: GPIO
47       J20-6: GPIO
48       J20-7: GPIO
49       J20-8: GPIO
50       J20-9: GPIO
51      J20-10: GPIO
52      J20-11: GPIO
53      J20-12: GPIO
54      J20-13: GPIO
55      J20-14: GPIO
# ls -al /sys/class/gpio/export
--w------- 1 root root 4096 Jan  1  2000 /sys/class/gpio/export
# echo 23 > /sys/class/gpio/export
[  451.755406] pinctrl-merrifield pinctrl-merrifield: request() failed for pin 107
[  451.762811] pinctrl-merrifield pinctrl-merrifield: pin-107 (0000:00:0c.0:23) status -16
-bash: echo: write error: Device or resource busy
# reset_spi_serial.py
Traceback (most recent call last):
  File "/usr/local/bin/reset_spi_serial.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/root/src/915MHzEdisonExplorer_SW/spi_serial/scripts/reset_spi_serial.py", line 3, in <module>
    s = spi_serial.SpiSerial()
  File "/root/src/915MHzEdisonExplorer_SW/spi_serial/spi_serial/spi_serial.py", line 7, in __init__
    self.cs0 = m.Gpio(23)
  File "/usr/local/lib/python2.7/dist-packages/mraa.py", line 995, in __init__
    this = _mraa.new_Gpio(pin, owner, raw)
ValueError: Invalid GPIO pin specified
kmoran02
@kmoran02
Jan 23 2017 00:31 UTC
Ok the very first line that is entered (orefo?) there is a straight up and down line at the very end. What the heck is that? Lol!
jlaes
@jlaes
Jan 23 2017 00:32 UTC
Just copy and paste the text from the doc
Don't try to write it
But your commanding your own Virtual Machine now
Congrats
You should be in Step 2 now. After the VM setup… so copy and paste this curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -.
And hit enter
jlaes
@jlaes
Jan 23 2017 00:38 UTC
Only copy the highlighted script parts
Then the VM will go crazy for a while and eventually stop. Then check back to the doc to see if it did what it was supposed to do
jlaes
@jlaes
Jan 23 2017 00:47 UTC
@kmoran02 I need to go to sleep. Good luck with the setup!
Russell Gardner
@RussGG
Jan 23 2017 00:49 UTC
@scottleibrand Thanks Scott! That was it. This was a new edison and once I installed the dependencies it worked. It’s installing now.
kmoran02
@kmoran02
Jan 23 2017 00:51 UTC
Thanks so much @jlaes
Ok on the part where you're putting in your pump settings, what is that very first entry? "Your dia"?
Not sure what that means
Dana Lewis
@danamlewis
Jan 23 2017 00:54 UTC
What is the duration of insulin action logged in your pump?
3, 4, 5, or 6 hours?
kmoran02
@kmoran02
Jan 23 2017 00:54 UTC
Oh ok. It's 4 hours.
So I delete your_dia, and type in 4 hours?
kmoran02
@kmoran02
Jan 23 2017 00:59 UTC
Hmmm. I can't delete what's there and replace it?
Scott Leibrand
@scottleibrand
Jan 23 2017 01:00 UTC
Yes, replace it. If you're using nano, use the arrow keys to move your cursor, and then backspace it.
Just type the number 4, not hours.
kmoran02
@kmoran02
Jan 23 2017 01:04 UTC
Thanks Scott! Now I only have one basal rate, 24/7. So would I enter that per hour?
Dana Lewis
@danamlewis
Jan 23 2017 01:04 UTC
No. Just put it in as the only basal rate
kmoran02
@kmoran02
Jan 23 2017 01:05 UTC
So I would leave all the other basal spots blank? And what would I put for minutes in this case?
kmoran02
@kmoran02
Jan 23 2017 01:14 UTC
My mistake. I see I don't change the minutes. But still leave all the other basal spots blank? Delete them?
Dana Lewis
@danamlewis
Jan 23 2017 01:20 UTC
Delete the extras if you really only have one basal
kmoran02
@kmoran02
Jan 23 2017 01:21 UTC
Yes I have one basal, all the time. So just delete the rest of the lines that have to do with basal?
Dana Lewis
@danamlewis
Jan 23 2017 01:22 UTC
Delete everything else in the basal section after your 0 basal
kmoran02
@kmoran02
Jan 23 2017 01:23 UTC
Ok I wanted to make sure I only enter my 24/7 constant basal once. See why I need this?? No one should have one basal. It's unlikely.
Thanks Dana
Dana Lewis
@danamlewis
Jan 23 2017 01:25 UTC
(This will be easy to come back and edit if needed)
kmoran02
@kmoran02
Jan 23 2017 01:26 UTC
Ok no colorful picture. Let's see what I did wrong...
MelanieMitschke
@MelanieMitschke
Jan 23 2017 01:26 UTC
My Nightscout page says my pump is "device undefined." Do you think I should run the orefo-setup again, so I can re-enter my pump serial number? (I'm using a pi.)
Scott Leibrand
@scottleibrand
Jan 23 2017 01:29 UTC
@kmoran02 you probably left the comma after the }
Dana Lewis
@danamlewis
Jan 23 2017 01:29 UTC
@MelanieMitschke you've been looping successfully before right? How long has it been undefined?
Scott Leibrand
@scottleibrand
Jan 23 2017 01:30 UTC
@kmoran02 valid json only wants commas in between objects, not at the end of one.
kmoran02
@kmoran02
Jan 23 2017 01:32 UTC
Let me try that. Thanks!
MelanieMitschke
@MelanieMitschke
Jan 23 2017 01:38 UTC
Yes., @danamlewis, I've looped successfully before. We left the rig at home for a week at the end of December when we went skiing. It didn't work when we came home.
Dana Lewis
@danamlewis
Jan 23 2017 01:39 UTC
Have you tried a reboot?
MelanieMitschke
@MelanieMitschke
Jan 23 2017 01:41 UTC
@danamlewis I don't remember. I've fiddled around with it some a couple of weeks ago... I'll try that now.
Dana Lewis
@danamlewis
Jan 23 2017 01:42 UTC
Yea. Start with a reboot before bothering to redo setup.
MelanieMitschke
@MelanieMitschke
Jan 23 2017 01:47 UTC
@danamlewis I rebooted and Nightscout is still saying my pump is "undefined."
Dana Lewis
@danamlewis
Jan 23 2017 01:48 UTC
Is it looping successfully?
What does OpenAPS pill say + what do loop logs say?
ejoe132
@ejoe132
Jan 23 2017 01:51 UTC
I need some help getting my edison/explorer setup running if anyone could help itd be greatly appreciated. In the walk through Im at the "Setting up your edison" page, and am under the heading "donwload Image" getting confused with the third bullet point as it says open a terminal window, I dont know what a terminal window is or how to do that. I have jubilinux downloaded and unzipped, and downloaded the other two things I needed (for doing a windows install) What is a terminal window?
Dana Lewis
@danamlewis
Jan 23 2017 01:52 UTC
Are you on PC? If so, putty is your terminal
ejoe132
@ejoe132
Jan 23 2017 01:54 UTC
so skip that step and go to plugging the edison in and finding the COMxx and connecting to it with putty then how do I install the jubilinux, it says do cd jubilinux but that wont be on the edison i dont think
Andrew Ditmer
@aditmer
Jan 23 2017 01:55 UTC
Hi friends, I read that right now Autotune only supports a single ISF. Is that correct? Should I only put a single entry in my profile.json?
Dana Lewis
@danamlewis
Jan 23 2017 01:55 UTC
@aditmer heya. Correct for now
Andrew Ditmer
@aditmer
Jan 23 2017 01:55 UTC
ok... now which one to pick? (hard decision)
Dana Lewis
@danamlewis
Jan 23 2017 01:56 UTC
Heh. How many do you have? You probably won't take isf seriously if you normally have multiples, since it'll tune the entire day around it, but you can always run multiple times w different isf and see what it does
Andrew Ditmer
@aditmer
Jan 23 2017 01:56 UTC
3
and I change them based on whether or not she's at school that day
I'm using the middle one
Dana Lewis
@danamlewis
Jan 23 2017 01:57 UTC
That's not too bad, then
Andrew Ditmer
@aditmer
Jan 23 2017 01:59 UTC
I've thought about maybe building in an activity tracking feature in the Loop app that uses the iPhone's motion coprocessor to auto adjust ISF (and maybe other settings) based on how active she is that day.
Dana Lewis
@danamlewis
Jan 23 2017 02:01 UTC
You should talk w @bustavo , he's starting to look at Moves data. I haven't been able to rationalize real-time changes yet based on activity, so curious if ya'll suss out something more definite about activity patterns in the short term. (Autosens right now with 24h look back has done well enough for me for isf adjustments )
MelanieMitschke
@MelanieMitschke
Jan 23 2017 02:01 UTC
@danamlewis openaps pill has a "!" and says "unknown." When I run a tail, it says error, lock at 'home/pi/my openaps/got/refs/heads/master.lock
Scott Leibrand
@scottleibrand
Jan 23 2017 02:04 UTC
Take a look at how old that lock file is using la -la
Sorry, ls -la
katie disimone
@Kdisimone
Jan 23 2017 02:04 UTC
Just double checking my logic and understanding. If the min_5m_carbimpact value is increased (e.g, 4 vs 3 mg/dl/min), algorithm would be calculating carbs would be decayed faster?
Scott Leibrand
@scottleibrand
Jan 23 2017 02:05 UTC
In situations where BG isn't rising more than that, yes.
katie disimone
@Kdisimone
Jan 23 2017 02:05 UTC
great. thanks!
Scott Leibrand
@scottleibrand
Jan 23 2017 02:05 UTC
(Relative to BGI)
MelanieMitschke
@MelanieMitschke
Jan 23 2017 02:05 UTC
@scottleibrand was comment for me!😳
The ls -la comment
Scott Leibrand
@scottleibrand
Jan 23 2017 02:06 UTC
@MelanieMitschke if I don't tag someone, I'm responding to the last thing above, yes.
MelanieMitschke
@MelanieMitschke
Jan 23 2017 02:06 UTC
Ok, thanks. Can you help me by putting that advice in novice terms?
Scott Leibrand
@scottleibrand
Jan 23 2017 02:07 UTC
@ejoe132 the flashing you do from a windows command prompt. If you can't figure out how to do that, one of the video guides might be useful.
@MelanieMitschke just paste ls -la and then the file name it's complaining about.
katie disimone
@Kdisimone
Jan 23 2017 02:09 UTC
when exiting the preferences.json edits…cntrl-O for write out?
Scott Leibrand
@scottleibrand
Jan 23 2017 02:09 UTC
Or just ctrl-x and yes to save.
katie disimone
@Kdisimone
Jan 23 2017 02:09 UTC
Oddly, I don’t remember getting a prompt after that the first time I edited it, but now I’m seeing a prompt asking for the format
dos or mac
Scott Leibrand
@scottleibrand
Jan 23 2017 02:10 UTC
Odd. Not sure if it matters. Use the default?
katie disimone
@Kdisimone
Jan 23 2017 02:10 UTC
iMac4K_—_ssh_root_edisonhost_local_—_80×24_and_Going_beyond_low_glucose_suspend_mode_—_OpenAPS_0_0_0_documentation_and_Sent_—_iCloud__1038_messages_.jpg
Scott Leibrand
@scottleibrand
Jan 23 2017 02:11 UTC
Oh just hit enter.
katie disimone
@Kdisimone
Jan 23 2017 02:11 UTC
Doh.
that worked
I must not have over-thought it the previous times
Scott Leibrand
@scottleibrand
Jan 23 2017 02:12 UTC
Heh
ejoe132
@ejoe132
Jan 23 2017 02:13 UTC
@scottleibrand I guess im missing the part in the walkthrough that talks about that? Any link to a video?
Andrew Ditmer
@aditmer
Jan 23 2017 02:15 UTC
Cool! I got it working. What do you do w/ the CSF?
Dana Lewis
@danamlewis
Jan 23 2017 02:18 UTC
R. Dennis Steed
@rdsteed
Jan 23 2017 02:19 UTC
I saw the earlier discussion regarding offline G4 and xdrip and thought I would add my thoughts. The Pololu Wixel which is used in xdrip can very nicely attach directly to the Explorer Board and Edison by using the Sparkfun GPIO block. https://www.sparkfun.com/products/13038
Dana Lewis
@danamlewis
Jan 23 2017 02:19 UTC
And yay for it working!
kmoran02
@kmoran02
Jan 23 2017 02:21 UTC
Goodness. Got it set up. (I think). Where do I look to see if it's running?
Dana Lewis
@danamlewis
Jan 23 2017 02:21 UTC
:clap:
Should give you some output. What do you see?
Minus my obvious arrows and comments added on
kmoran02
@kmoran02
Jan 23 2017 02:22 UTC
Ut oh. I saw the colorful graph of my info, and thought I was done and turned the computer off. Dear God say I didn't lose everything.
Dana Lewis
@danamlewis
Jan 23 2017 02:23 UTC
It's easy to run again
kmoran02
@kmoran02
Jan 23 2017 02:24 UTC
I didn't see any recommendations like you posted. But I never put info into nightscout.
Dana Lewis
@danamlewis
Jan 23 2017 02:24 UTC
What step did you last complete from the docs?
kmoran02
@kmoran02
Jan 23 2017 02:24 UTC
Well where is what I just did supposed to be?
Let me check.
Ok i subbbed my nightscout URL and put today's date.
As the start date.
Scott Leibrand
@scottleibrand
Jan 23 2017 02:26 UTC
I think you need to start with yesterday.
Andrew Ditmer
@aditmer
Jan 23 2017 02:27 UTC
Thanks @danamlewis! Yes that is what I saw, I just wasn't sure what CSF was or what to do w/ it. Thanks for the link.
Dana Lewis
@danamlewis
Jan 23 2017 02:27 UTC
:+1:
kmoran02
@kmoran02
Jan 23 2017 02:27 UTC
I didn't have any info in nightscout yesterday.
Where would I log bag into it to change the date to yesterday?
ejoe132
@ejoe132
Jan 23 2017 02:29 UTC
should both red leds be the same intensity on the explorer board when plugged in with both usb cables? ones much brighter than the other, cant get it to show anything in putty, have hit enter to "wake" it up but nothing is coming up
Dana Lewis
@danamlewis
Jan 23 2017 02:30 UTC
@aditmer obviously welcoming PRs to make the docs more easily understandable :+1:
MelanieMitschke
@MelanieMitschke
Jan 23 2017 02:30 UTC
@danamlewis will I harm anything by running the script again, to see if I can get it going?
Andrew Ditmer
@aditmer
Jan 23 2017 02:31 UTC
It was very straight forward once I found all of the docs. They are a bit scattered (or al least I had to keep looking for different parts). Maybe a Table of Contents?
or index
Dana Lewis
@danamlewis
Jan 23 2017 02:32 UTC
@MelanieMitschke no, but you'll want to disable or delete the existing cron so you don't get tripped up by that. And remember to reset your maxiob away from default after you do it again.
kmoran02
@kmoran02
Jan 23 2017 02:32 UTC
So is everything I did gone now, @danamlewis ?
Dana Lewis
@danamlewis
Jan 23 2017 02:33 UTC
@aditmer would welcome PRs to reorganize and make it more intuitive. It had about 50+ live edits yesterday to make it usable.
ejoe132
@ejoe132
Jan 23 2017 02:33 UTC
maybe something is wrong with my edison, in Device manager it shows ok but when I open edison properties it shows a yellow triangle in the Intel Edison usb rndis deivice then in type it says network adapters. I found the line saying serial device (COM7) So im assuming COM7 is what i enter into putty?
MelanieMitschke
@MelanieMitschke
Jan 23 2017 02:33 UTC
@danamlewis are there instructions somewhere on how to delete the cron?
Dana Lewis
@danamlewis
Jan 23 2017 02:33 UTC
@kmoran02 you set up the vm, installed oref0, right? So should be easy to go in again and do step 4 anytime you want with whatever dates you want to run it from
kmoran02
@kmoran02
Jan 23 2017 02:34 UTC
Yes I did all that. But how do I go back to it? Lol!
Dana Lewis
@danamlewis
Jan 23 2017 02:34 UTC
@MelanieMitschke you can just comment out existing cron. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-2/troubleshoot-oref0-setup.html#should-i-enact-cron see bottom for more notes about cron
@kmoran02 how did you log into your vm originally after setting it up? Do those same steps to get into it.
kmoran02
@kmoran02
Jan 23 2017 02:36 UTC
Then just enter yesterday's date and save?
Dana Lewis
@danamlewis
Jan 23 2017 02:36 UTC
Save?
kmoran02
@kmoran02
Jan 23 2017 02:38 UTC
I have no idea how to get back to it. Ugh.
Dana Lewis
@danamlewis
Jan 23 2017 02:38 UTC
How did you log in originally?
kmoran02
@kmoran02
Jan 23 2017 02:38 UTC
On google cloud
Chris Oattes
@cjo20
Jan 23 2017 02:39 UTC
eugh, my edison appears to have killed itself. Just gets stuck on "Ready to receive application" when I start it connected via UART
kmoran02
@kmoran02
Jan 23 2017 02:40 UTC
I'm in there, but it's all gone. Everything I pasted.
Dana Lewis
@danamlewis
Jan 23 2017 02:41 UTC
That's ok. You can just repaste what's in step 4
kmoran02
@kmoran02
Jan 23 2017 02:42 UTC
That alone? With nothing else?
@danamlewis is there a way to post to you a picture of what I see?
Dana Lewis
@danamlewis
Jan 23 2017 02:46 UTC
Yes. Take a screenshot and drag and drop it into Gitter
kmoran02
@kmoran02
Jan 23 2017 02:47 UTC
Gitter is on my cell
Dana Lewis
@danamlewis
Jan 23 2017 02:48 UTC
Ok - then upload to an image sharing site (Dropbox, whatever) and paste a link to the image
You can also get into Gitter from web browser on the computer if that's easier
kmoran02
@kmoran02
Jan 23 2017 02:50 UTC
Can I just post it to my last Facebook post you commented on?
Dana Lewis
@danamlewis
Jan 23 2017 02:50 UTC
I would post here if you want to keep troubleshooting - if you do it on Fbk then not everyone here w the knowledge to help troubleshoot will see it
kmoran02
@kmoran02
Jan 23 2017 02:52 UTC
I have no idea how to get the picture to you here.
I'm completely useless with this stuff.
Dana Lewis
@danamlewis
Jan 23 2017 02:53 UTC
Are you taking a picture with your phone? Or screenshot on your computer?
kmoran02
@kmoran02
Jan 23 2017 02:54 UTC
A picture of my computer with my phone.
Dana Lewis
@danamlewis
Jan 23 2017 02:55 UTC
Ok. So after you take the picture, we need to get it on a photo sharing site - imgur, Dropbox, - anything where you can then share the link here so we can see it.
OR, log into Gitter on your computer and you can drag a screenshot into Gitter there.
katie disimone
@Kdisimone
Jan 23 2017 03:00 UTC
DigitalOcean_Droplet_Console.jpg
kmoran02
@kmoran02
Jan 23 2017 03:00 UTC
I give up. Thank you all SO much for trying!!! It's just above me.
katie disimone
@Kdisimone
Jan 23 2017 03:00 UTC
I’m full of ?? How do I get digital ocean to scroll me up so I can see this
Dana Lewis
@danamlewis
Jan 23 2017 03:01 UTC
@Kdisimone is that terminal? Make terminal bigger, and try trackpad to roll up?
(Or)
katie disimone
@Kdisimone
Jan 23 2017 03:03 UTC
not terminal…it’s the Digital Ocean’s version of terminal I suppose. scrolling only goes through the last command lines. Full screen mode didn’t change anything. Nothing I can grab to see more.
going to google
Dana Lewis
@danamlewis
Jan 23 2017 03:04 UTC
DO console? Try ssh to DO droplet, there should be something in DO that tells you your ip and you can ssh in
katie disimone
@Kdisimone
Jan 23 2017 03:05 UTC
OH…I tried page up. google says it’s SHIFT+page up
google worked
Dana Lewis
@danamlewis
Jan 23 2017 03:05 UTC
But since you have a rig, you don't need DO for autotune - it's in dev branch
Or that :smile:
katie disimone
@Kdisimone
Jan 23 2017 03:06 UTC
I forgot to deploy with dev
:smile:
Dana Lewis
@danamlewis
Jan 23 2017 03:06 UTC
Can checkout dev
katie disimone
@Kdisimone
Jan 23 2017 03:06 UTC
link?
Dana Lewis
@danamlewis
Jan 23 2017 03:08 UTC
openaps/docs#573 this PR might have what you want - if not gimme 5, about to hit elevator dead zone
katie disimone
@Kdisimone
Jan 23 2017 03:08 UTC
perfect
MelanieMitschke
@MelanieMitschke
Jan 23 2017 03:10 UTC
@danamlewis I tried to kill cron, doing "killall -g openaps;openaps <whatever>" but it says "bash: syntax error near unexpected token 'newline'"
Scott Leibrand
@scottleibrand
Jan 23 2017 03:13 UTC
What did you actually put for <whatever>?
MelanieMitschke
@MelanieMitschke
Jan 23 2017 03:14 UTC
Oh, no... I literally put in the word "whatever." Should I have done something else? (You're talking to a band director...)
Aaron Michelson
@Aaybob
Jan 23 2017 03:15 UTC
@RussGG you prob.already got answer but in case: you have to install dependencies.
@MelanieMitschke instead of <whatever> you put in -h, that will show you the commands that are possible.
Scott Leibrand
@scottleibrand
Jan 23 2017 03:16 UTC
@MelanieMitschke you can learn this stuff. It helps to read the commands you're pasting and try to understand what they're doing. That will help you spot stuff like this where the docs want you to modify them
Thx @Aaybob
@MelanieMitschke what command are you trying to run that you need to kill the existing ones? Or what are you trying to do?
MelanieMitschke
@MelanieMitschke
Jan 23 2017 03:19 UTC
I'm trying to stop cron from openaps so I re run the set-up. It was looping successfully, but now won't recognize my pump.
Aaron Michelson
@Aaybob
Jan 23 2017 03:22 UTC
crontab -l will show you your cron file
dash eL
Scott Leibrand
@scottleibrand
Jan 23 2017 03:23 UTC
And crontab -e to edit it.
The killall thing is just to be able to run one command without having to edit cron and reboot.
Aaron Michelson
@Aaybob
Jan 23 2017 03:28 UTC
the set-up is set up to install cron once. So you get the option "schedule jobs" yes/no. Selecting "no" will not un-install cron. But you can easily un-install it yourself. crontab -e is the command. Then you select one of three simple text editors that you need to know. I know nano. select nano for editing then just press the delete button and back arrow until it's empty. Then control X, yes, enter.
JELCRAWFORD
@JELCRAWFORD
Jan 23 2017 03:29 UTC
I
katie disimone
@Kdisimone
Jan 23 2017 03:48 UTC
DigitalOcean_Droplet_Console_and_DigitalOcean_-_openaps-anna.jpg
So where am I going wrong? Just an example of what I’m seeing
Dana Lewis
@danamlewis
Jan 23 2017 03:49 UTC
Maybe paste your profile json? Says carb ratio out of bound?
(And are you still running on phase c instructions or did you switch over to dev branch?)
katie disimone
@Kdisimone
Jan 23 2017 03:50 UTC
still on phase C
Dana Lewis
@danamlewis
Jan 23 2017 03:50 UTC
K. What did you put in for carb ratio?
katie disimone
@Kdisimone
Jan 23 2017 03:51 UTC
8
DigitalOcean_Droplet_Console.jpg
I’d copy and paste but the Digital Ocean console doesn’t let me. And I need to ssh into it, but haven’t setup the key yet…I thought this would be “quick”. famous last words
Russell Gardner
@RussGG
Jan 23 2017 03:53 UTC
@Aaybob Aaron, I copied your messages, from here, walking someone through the BT set up a week + ago and saved it. It took me a few times going through it but as of about 30 minutes ago its working!!!!! Thanks!!!
Aaron Michelson
@Aaybob
Jan 23 2017 03:55 UTC
We didn't PR it to docs because I thought things might change. Thanks for telling me it still works. You used iPhone?
Scott Leibrand
@scottleibrand
Jan 23 2017 03:57 UTC
@Kdisimone check the contents of settings/profile.json and see what it has
it looks like a previous autotune run had an error, and now it's trying to run it with a bad input profile.json
Russell Gardner
@RussGG
Jan 23 2017 03:57 UTC
Yes iPhone. I did some playing with it beyond what you said but the frame work got a non-techie through it.
Scott Leibrand
@scottleibrand
Jan 23 2017 03:57 UTC
@Kdisimone you should be able to look at the files in the autotune/ directory to see what it did and where the error started.
katie disimone
@Kdisimone
Jan 23 2017 04:03 UTC
did i create an autotune dir?
Dana Lewis
@danamlewis
Jan 23 2017 04:03 UTC
@RussGG :+1: please pr whatever those changes are to the docs, as that's a known need. @Aaybob
katie disimone
@Kdisimone
Jan 23 2017 04:04 UTC
Maybe I’ll just scratch phase C and move to other option. LOL
Russell Gardner
@RussGG
Jan 23 2017 04:05 UTC
@Aaybob without that It would have taken me a long time to get it working. I don’t get to spend a lot of time doing this. a couple of hours a couple of nights a week. My guess is it may have taken me a couple of weeks without your help. You should put that down somewhere.
Aaron Michelson
@Aaybob
Jan 23 2017 04:06 UTC
yes, im looking it up.....to save time have you tried setting temp targets?
JELCRAWFORD
@JELCRAWFORD
Jan 23 2017 04:10 UTC
B
Russell Gardner
@RussGG
Jan 23 2017 04:18 UTC
@danamlewis @scottleibrand I want to show you guys something but I don’t know how to put a picture in here
Aaron Michelson
@Aaybob
Jan 23 2017 04:19 UTC
i think it works to press printSCn button. Open paint, paste, crop, select all, coppy, go to write text and do a paste.
Dana Lewis
@danamlewis
Jan 23 2017 04:20 UTC
@RussGG from computer you can drag and drop a screenshot. Or stick it in Dropbox or the like and paste in a link
Russell Gardner
@RussGG
Jan 23 2017 04:20 UTC
Screen Shot 2017-01-22 at 8.14.42 PM.png
Dana Lewis
@danamlewis
Jan 23 2017 04:21 UTC
@Kdisimone also moving this convo here, so others can see it (re having a master, but pulling dev so you can run autotune as one off)
Russell Gardner
@RussGG
Jan 23 2017 04:22 UTC
The beautiful green is my sons first night with OpenAPS. He went to his moms yesterday afternoon. you can see when it turns.
katie disimone
@Kdisimone
Jan 23 2017 04:23 UTC
:+1: @danamlewis
Dana Lewis
@danamlewis
Jan 23 2017 04:23 UTC
@RussGG :confetti_ball:
Russell Gardner
@RussGG
Jan 23 2017 04:24 UTC
@danamlewis @scottleibrand Thank you both!
Dana Lewis
@danamlewis
Jan 23 2017 04:24 UTC
:smile:
Russell Gardner
@RussGG
Jan 23 2017 04:25 UTC
Now that I have BT working, I can work on him having it everywhere.
katie disimone
@Kdisimone
Jan 23 2017 04:25 UTC
alrighty @danamlewis the pull dev is done
Scott Leibrand
@scottleibrand
Jan 23 2017 04:31 UTC
you can skip to step 4 of phase C then
since you already have a profile in your myopenaps directory
Dana Lewis
@danamlewis
Jan 23 2017 04:32 UTC
But start with a single day in 2017 ;)
@Kdisimone ^^^
Scott Leibrand
@scottleibrand
Jan 23 2017 04:33 UTC
if your rig hasn't pulled pump settings yet, and you're impatient, you can also cp ~/myopenaps/settings/profile.json ~/myopenaps/settings/pumpprofile.json if it complains about that
Aaron Michelson
@Aaybob
Jan 23 2017 04:34 UTC
@RussGG Does this look right?:
hciconfig hci0 name $HOSTNAME This will have bluetooth use the name you called Edison.
bluetoothctl
help just to make sure its working.
power on
scan on
devices Your iphone is listed.
agent on
trustAA:BB:CC:DD:EE:FF
pairAA:BB:CC:DD:EE:FF
Open iPhone screen to settings>bluetooth. Look for the name you called Edison and tap its line.
@RussGG BT is a big deal
katie disimone
@Kdisimone
Jan 23 2017 04:38 UTC
@scottleibrand @danamlewis am i running autotune here?
root@edisonhost:~/src/oref0
looks like I’m missing settings/profiles?
d-date=2017-01-21
cp: cannot stat ‘settings/pumpprofile.json’: No such file or directory
cp: cannot stat ‘settings/autotune.json’: No such file or directory
cp: cannot stat ‘autotune/profile.pump.json’: No such file or directory
Grabbing NIGHTSCOUT treatments.json for date range...
nm looks like i need to cd
ok, i’m totally lost.
Dana Lewis
@danamlewis
Jan 23 2017 04:43 UTC
Ls?
(ls to show files in your current directory, so we know if you're in right place)
Scott Leibrand
@scottleibrand
Jan 23 2017 04:46 UTC
if your rig hasn't pulled pump settings yet, and you're impatient, you can also cp ~/myopenaps/settings/profile.json ~/myopenaps/settings/pumpprofile.json if it complains about that
if you haven't re-run the setup script with autotune and let it run in myopenaps for a few minutes to create those files, you'll need to manually cp them over
katie disimone
@Kdisimone
Jan 23 2017 04:50 UTC
iMac4K_—_ssh_root_edisonhost_local_—_123×50.jpg
iMac4K_—_ssh_root_edisonhost_local_—_123×50.jpg
impatience for the win
let me try again now
katie disimone
@Kdisimone
Jan 23 2017 05:03 UTC
not quite there, but closer
iMac4K_—_ssh_root_edisonhost_local_—_142×93.jpg
Scott Leibrand
@scottleibrand
Jan 23 2017 05:03 UTC
you just missed the step to apt-get install jq
katie disimone
@Kdisimone
Jan 23 2017 05:05 UTC
directory dependent?
nm
Dana Lewis
@danamlewis
Jan 23 2017 05:07 UTC
sudo apt-get install jq
katie disimone
@Kdisimone
Jan 23 2017 05:07 UTC
:+1:
Dana Lewis
@danamlewis
Jan 23 2017 05:07 UTC
(sorry, we’re ending up jumping you all around phase c in weird order :) after all)
*phase c instructions
katie disimone
@Kdisimone
Jan 23 2017 05:08 UTC
wait…wait….
scrolllling by…..
YES
Dana Lewis
@danamlewis
Jan 23 2017 05:09 UTC
:D
pic or it didn’t happen? ;)
katie disimone
@Kdisimone
Jan 23 2017 05:09 UTC
iMac4K_—_ssh_root_edisonhost_local_—_142×93.jpg
IS there a happy freaking silly happy dance icon
Dana Lewis
@danamlewis
Jan 23 2017 05:09 UTC
:confetti_ball: is a start
:dancer: or :dancers: , too
that was 1 day? now you can graduate to a week, a month, etc.
katie disimone
@Kdisimone
Jan 23 2017 05:10 UTC
and it looks like my numbers aren’t so bad
Dana Lewis
@danamlewis
Jan 23 2017 05:11 UTC
how much data was that?
katie disimone
@Kdisimone
Jan 23 2017 05:11 UTC
two days
gonna pull a month now
Dana Lewis
@danamlewis
Jan 23 2017 05:12 UTC
:+1:
katie disimone
@Kdisimone
Jan 23 2017 05:12 UTC
this is pretty cool
Scott Leibrand
@scottleibrand
Jan 23 2017 05:14 UTC
:-D
Dana Lewis
@danamlewis
Jan 23 2017 05:25 UTC
Just updated phase a instructions to I think catch everything we had you do, @Kdisimone, but let me know if you remember doing anything that I didn’t catch here: openaps/docs@ee6fd29 (@scottleibrand)
Ryan Packer
@ryanpacker
Jan 23 2017 05:25 UTC
Just got autotune running. Great work! I've wanted to do something like this for a while but never seem to have the time. Thank you! I get why you would want the 20% guard rails on if you were running on openAPS, but for those just running from the command line pulling data from NightScout, is there an option to turn that feature off?
Dana Lewis
@danamlewis
Jan 23 2017 05:26 UTC
@ryanpacker I wouldn’t turn it off since it’s brand new code and needs some broader testing regardless to ensure our math is right :)
katie disimone
@Kdisimone
Jan 23 2017 05:26 UTC
yup, that is what I did. nice @danamlewis and thank you to you too @scottleibrand
Scott Leibrand
@scottleibrand
Jan 23 2017 05:26 UTC
@ryanpacker you can edit the autosens_min and autosens_max just to see what it would do, but I wouldn't use those results for anything other than testing and verification purposes yet.
Dana Lewis
@danamlewis
Jan 23 2017 05:26 UTC
but you could remove the autosens min/max if you really want to know how, but I would urge extreme caution before changing basals, isf, or carb ratio beyond 20% based on that..
Ryan Packer
@ryanpacker
Jan 23 2017 05:26 UTC
That's why I want to turn it off. Not so I can use the new values, but so I can see what they would be.
Dana Lewis
@danamlewis
Jan 23 2017 05:26 UTC
k. glad we’re all on the same page :D
Scott Leibrand
@scottleibrand
Jan 23 2017 05:26 UTC
"for entertainment purposes only"? ;-)
Dana Lewis
@danamlewis
Jan 23 2017 05:26 UTC
@ryanpacker thanks too for the feedback :+1: glad it worked
@Kdisimone cool, thanks. feel free to PR that (or anywhere else, of course :)) to further improve the docs!
Ryan Packer
@ryanpacker
Jan 23 2017 05:31 UTC
Thanks @danamlewis and @scottleibrand. Do I need to change all 3 .json files, or just profile.json?
Dana Lewis
@danamlewis
Jan 23 2017 05:33 UTC
for autosens min/max? yes all 3 to be easiest.
Ryan Packer
@ryanpacker
Jan 23 2017 05:42 UTC
Working great. The --end-date setting is particularly helpful. Unfortunately we have large chunks of missing data on occasion in NS, so using both the start and end date settings helps select good data. If I get a second tomorrow, I'll submit a PR to update docs to mention end date as well.
Dana Lewis
@danamlewis
Jan 23 2017 05:43 UTC
we took that out because it was throwing people off :) but sure, add it back in
Scott Leibrand
@scottleibrand
Jan 23 2017 05:45 UTC
probably put it in as a separate line, rather than making it look like it's required
Dana Lewis
@danamlewis
Jan 23 2017 05:46 UTC
:+1:
Ryan Packer
@ryanpacker
Jan 23 2017 05:47 UTC
agreed. I think the doc as is makes for a perfect "getting started" section. I think adding an "additional options" section or something like that after what you have currently might make sense.
Dana Lewis
@danamlewis
Jan 23 2017 05:47 UTC
thx for the PR on bluetooth, @Aaybob
:+1:
Dana Lewis
@danamlewis
Jan 23 2017 06:09 UTC
@RussGG or @Aaybob - how did you circumvent
Traceback (most recent call last):
  File "/usr/local/bin/bt-pan", line 228, in <module>
    if __name__ == '__main__': sys.exit(main())
  File "/usr/local/bin/bt-pan", line 196, in main
    try: iface = net.Connect(opts.uuid)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
? Keep getting that error for attempting bluetooth pairing
Aaron Michelson
@Aaybob
Jan 23 2017 06:10 UTC
are you running bluetoothctl when you get this error?
Dana Lewis
@danamlewis
Jan 23 2017 06:10 UTC
sudo bt-pan client
is what gets that error
Aaron Michelson
@Aaybob
Jan 23 2017 06:10 UTC
I never run that command
Dana Lewis
@danamlewis
Jan 23 2017 06:11 UTC
we’re able to get it to pair, trust, etc. but never establish bluetooth from the edison rig, and never can keep it for more than a second when I turn it on by tapping bluez from the bluetooth screen
Aaron Michelson
@Aaybob
Jan 23 2017 06:11 UTC
The installation of oref0 should be doing all the techy steps
Dana Lewis
@danamlewis
Jan 23 2017 06:12 UTC
yes - but the steps I tested using your PR did not work
and the instructions that were there before didn’t work
…trying again...
Aaron Michelson
@Aaybob
Jan 23 2017 06:12 UTC
Which one failed?
Dana Lewis
@danamlewis
Jan 23 2017 06:13 UTC
a) suda bt-pan client fails and gives the above error, or b) does not establish connection from the rig or c) does not allow you to connect when tapping bluez from the bluetooth screen
a is the most current error state
Aaron Michelson
@Aaybob
Jan 23 2017 06:14 UTC
Well lets take the steps I PR'd one by one. Did you put in the AA:BB:CC:DD after --bl option when running setup-oref0
Dana Lewis
@danamlewis
Jan 23 2017 06:15 UTC
Yes.
Aaron Michelson
@Aaybob
Jan 23 2017 06:15 UTC
what happens when bltoothcntl is command?
Dana Lewis
@danamlewis
Jan 23 2017 06:16 UTC
I’m able to see all my devices; I’m able to see my iphone; I’m able to pair it; trust it; I get the confirmation screen, etc.
Aaron Michelson
@Aaybob
Jan 23 2017 06:16 UTC
does the curser turn blue and does help work?
Dana Lewis
@danamlewis
Jan 23 2017 06:16 UTC
yes. everything in the PR works…until the end.
then same problem as old directions
Aaron Michelson
@Aaybob
Jan 23 2017 06:18 UTC
you pair on edison , you see <name of edison> in iPhone bluetooth page...
Dana Lewis
@danamlewis
Jan 23 2017 06:18 UTC
yes
Aaron Michelson
@Aaybob
Jan 23 2017 06:18 UTC
you tap it and it connects and then disconnects.
Dana Lewis
@danamlewis
Jan 23 2017 06:18 UTC
yep
starting over again from scratch for the 5th or so time
Aaron Michelson
@Aaybob
Jan 23 2017 06:19 UTC
have you rebooted?
Dana Lewis
@danamlewis
Jan 23 2017 06:19 UTC
yep
Aaron Michelson
@Aaybob
Jan 23 2017 06:24 UTC
how about after "pair", try "connect", and also try "quit" then hciconfig hci0 piscan and "Pair " again...
Dana Lewis
@danamlewis
Jan 23 2017 06:25 UTC
no go. scott gets same errors. we’re trying again, and again, and again.
Tim Street
@tim2000s
Jan 23 2017 06:26 UTC
@scottleibrand Is it worth adding jq to the quickpackages.sh in the prep steps for OpenAPS as both Autotune and Pancreabble use it?
Aaron Michelson
@Aaybob
Jan 23 2017 06:27 UTC
do you have hotspot turned on.....then what got it to work for me was forgetting all existing bluetooth connections.
Dana Lewis
@danamlewis
Jan 23 2017 06:27 UTC
that’s not in the PR ;) fwiw.
Aaron Michelson
@Aaybob
Jan 23 2017 06:27 UTC
I forgot
Dana Lewis
@danamlewis
Jan 23 2017 06:28 UTC
@Aaybob just for kicks, curious - how many things do you have bluetooth paired to your phone?
Aaron Michelson
@Aaybob
Jan 23 2017 06:29 UTC
Dexcom, pebble, red (edison name)
The guy I walked through had none.
Tim Street
@tim2000s
Jan 23 2017 06:30 UTC
Some of us have 6 or 7 🙁
Dana Lewis
@danamlewis
Jan 23 2017 06:30 UTC
yea. that SHOULDN’T be the problem, but...
@tim2000s have you figured out bluetooth pairing successfully?
Tim Street
@tim2000s
Jan 23 2017 06:31 UTC
No. ed210 (my dev Edison) sometimes connects and sometimes doesn't. It paired using Bluetoothctl okay though.
Dana Lewis
@danamlewis
Jan 23 2017 06:31 UTC
yea, I can pair and trust and all the jazz until it gets to actually using.
Tim Street
@tim2000s
Jan 23 2017 06:32 UTC
Having said that, my pebble is paired to my master rig and communicating for pancreabble.
What I notice about the pancreabble connection is that it only connects when it is about to push data.
And that the BLE pairing blows bluez up so I have to use normal BT.
Aaron Michelson
@Aaybob
Jan 23 2017 06:35 UTC
I turn on personal hotspot, and the top of screen turns blue within one minute saying "connection". I tap "red" (name of edison) and it changes to "Connected" and it stays connected.
Tim Street
@tim2000s
Jan 23 2017 06:37 UTC
With all due respect @Aaybob , your wpa_supplicant process works perfectly on your Edi whilst for many of us it doesn't.
(iPhone in particular being very picky)
Aaron Michelson
@Aaybob
Jan 23 2017 06:40 UTC
I didn't intend to sound better than. I'm trying to discover what is different?
Tim Street
@tim2000s
Jan 23 2017 06:41 UTC
Are you running jubilinux?
Scott Leibrand
@scottleibrand
Jan 23 2017 06:46 UTC
@tim2000s to your earlier question, yes, we should probably put jq in the quick-packages. want to PR that?
@tim2000s we are running jubilinux; not sure who you were asking
Aaron Michelson
@Aaybob
Jan 23 2017 06:48 UTC
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
does that mean its not jubilinux?
Scott Leibrand
@scottleibrand
Jan 23 2017 06:55 UTC
it means you probably installed ubilinux originally, not jubilinux. not sure whether or not that matters.
Aaron Michelson
@Aaybob
Jan 23 2017 06:56 UTC
Something sure seems to matter
Dana Lewis
@danamlewis
Jan 23 2017 06:57 UTC
I need to sprinkle cinnamon on my rigs, clearly
(Kidding). Maybe a fresh Edison install next time on top of everything else..
Aaron Michelson
@Aaybob
Jan 23 2017 06:57 UTC
Do you get the same:
oot@ubilinux:~# cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://ww
Scott Leibrand
@scottleibrand
Jan 23 2017 06:58 UTC
root@edison-eb ~ # cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@edison-eb ~ # uname -a
Linux edison-eb 3.10.17-yocto-standard-r2 #7 SMP PREEMPT Thu Feb 26 09:57:06 UTC 2015 i686 GNU/Linux
which iPhone and iOS are you running?
I'm a 7+, and @danamlewis is a 6s. I'm on 10.2 and she's on 9.3.5
Aaron Michelson
@Aaybob
Jan 23 2017 07:00 UTC
~# uname -a
Linux ubilinux 3.10.17-poky-edison+ #6 SMP PREEMPT Wed Mar 23 21:47:59 EDT 2016 i686 GNU/Linux
Scott Leibrand
@scottleibrand
Jan 23 2017 07:02 UTC
@Kdisimone you could do traceroute google.com and see what network it goes out over
hop number 1 or 2 should show you who your ISP is
Aaron Michelson
@Aaybob
Jan 23 2017 07:03 UTC
jubilinux.zip 654,533KB, iPhone 6S, iOS 10.2
Scott Leibrand
@scottleibrand
Jan 23 2017 07:06 UTC
I'm or of ideas. Gonna call it a night.
*out of
katie disimone
@Kdisimone
Jan 23 2017 07:06 UTC
thank you @scottleibrand
Dana Lewis
@danamlewis
Jan 23 2017 07:06 UTC
Ditto. Will try another day. Thx for the help attempting troubleshooting @Aaybob
Aaron Michelson
@Aaybob
Jan 23 2017 07:07 UTC
goodnight all
Aaron Michelson
@Aaybob
Jan 23 2017 07:20 UTC
@RussGG when you got BT going did you have other paired devices going already?
Aaron Michelson
@Aaybob
Jan 23 2017 08:38 UTC
@RussGG is your kernal version number: 3.10.17-poky-edison+ ? uname -a will tell.

If @RussGG also had no other devices active for initial pairing. Then let me try to convince you @danamlewis , @scottleibrand that "forget" may help.
Connection Interval – The smaller the interval the better because data is exchanged faster.

The connection interval depends on both devices in the connection. For example, Android allows up to 7.5ms, while iOS allows 30ms.

Android or iOS device that has to communicate with multiple devices may need to use a longer connection interval to be able to service all devices. This can cause all kind of issues from low throughput to disconnect.

scarral
@scarral
Jan 23 2017 09:32 UTC
OK it seems I managed to fix the broke package mysql, but now I get the following error message:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Any idea how I can go about this problem?
Tim Street
@tim2000s
Jan 23 2017 09:52 UTC
@scarral What did you run to get that output?
StuArnold
@StuArnold
Jan 23 2017 10:13 UTC
I had that message as well and used Aptitude to install nodejs-legacy and then re-ran the curl command and it then seemed to install OK
I had to say no to the first option that Aptitude gave me and then I think it installed two packages and rolled back another which allowed it to install on my Pi. I am trying to set up Autotune with just NS data so not the full openAPS.
Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:27 UTC
Autotune seems to crash on larger datasets. doing jan20- works fine. jan01 - jan07 works fine. jan01- crashes
scarral
@scarral
Jan 23 2017 10:29 UTC
@timomer here's the whole thing:

$ sudo curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:3 http://linux.dropbox.com/ubuntu wily InRelease
Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Hit:5 http://archive.canonical.com xenial InRelease
Get:6 http://linux.dropbox.com/ubuntu wily Release [6.596 B]
Hit:7 http://at.archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23,9 kB]
Hit:9 http://at.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:10 https://repo.skype.com/deb stable InRelease
Hit:11 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:12 http://at.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:13 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial InRelease
Hit:14 https://deb.nodesource.com/node_7.x xenial InRelease
Get:15 http://at.archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]
Fetched 386 kB in 0s (497 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
python-numpy is already the newest version (1:1.11.0-1ubuntu1).
python-numpy set to manually installed.
python-pip is already the newest version (8.1.1-2ubuntu0.4).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:31 UTC
p50deviation: -0.655 p50BGI -3.165 p50ratios: 1.257 Old ISF: 65.914 fullNewISF: 82.854 newISF: 67.608
totalMealCarbs: 50 totalDeviations: 107.80000000000003 fullNewCSF: 2.16 newCSF: 2.12
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-10.json > autotune.1.2017-01-10.json
/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94
            var BGDate = new Date(glucoseDatum.date);
                                              ^

TypeError: Cannot read property 'date' of undefined
    at categorizeBGDatums (/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94:47)
    at generate (/home/parallels/src/oref0/lib/autotune-prep/index.js:22:30)
    at Object.<anonymous> (/home/parallels/src/oref0/bin/oref0-autotune-prep.js:91:27)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-10.json profile.json profile.pump.json > newprofile.1.2017-01-10.json
Could not parse input data:  [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-11.json > autotune.1.2017-01-11.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-11.json profile.json profile.pump.json > newprofile.1.2017-01-11.json
/home/parallels/src/oref0/lib/autotune/index.js:14
    var ISF = isfProfile.sensitivities[0].sensitivity;
                        ^
--
and some more of those, then this:
--

Autotune pump profile recommendations:
---------------------------------------------------------
Recommendations Log File: /home/parallels/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/parallels/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/parallels/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter      | Current  | Autotune 
-------------------------------------
ISF            | 58.500   | 0.000    
CSF            | n/a      | 0.000    
Carb Ratio     | 20.000   | 0.000    
Basal Profile  |          |          
  00:00        | 0.85     |          
  00:30        |          |          
  01:00        |          |          
  01:30        |          |          
  02:00        |          |          
  02:30        |          |
StuArnold
@StuArnold
Jan 23 2017 10:31 UTC

Can anybody point me in the right direction for this error when I run Autotune Running oref0-autotune --dir=/home/pi/myopenaps --ns-host=https://nslarnold.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://nslarnold.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+0000&find\[created_at\]\[$lte\]=2017-01-23T00:00+0000
-rw-r--r-- 1 pi pi 1206 Jan 23 10:29 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://nslarnold.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-r--r-- 1 pi pi 122240 Jan 23 10:29 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json

/home/pi/src/oref0/nodemodules/timezone/index.js:153
} else if (/^\w{2,3}
\w{2}$/.test(argument.name)) {
^
TypeError: Cannot read property 'name' of undefined
at Object.convert (/home/pi/src/oref0/node_modules/timezone/index.js:153:51)
at /home/pi/src/oref0/node_modules/timezone/index.js:347:39
at calcTempTreatments (/home/pi/src/oref0/lib/iob/history.js:110:44)
at generate (/home/pi/src/oref0/lib/iob/index.js:9:22)
at categorizeBGDatums (/home/pi/src/oref0/lib/autotune-prep/categorize.js:167:19)
at generate (/home/pi/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/pi/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected end of input]

Autotune pump profile recommendations:

Recommendations Log File: /home/pi/myopenaps/autotune/autotune_recommendations.log

jq: error: Cannot iterate over null
jq: error: Cannot iterate over null
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 85.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 5.000 | 0.000

@danibjor that looks very similar to what I am seeing
Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:33 UTC
just installed the latest bits (half an hour ago) on a clean ubuntu vm
@StuArnold try with a different data-range
@StuArnold works on smaller datasets here, but on on a 3-week range
my guess is there is some data that autotune don't understand in the selected data-range that makes it blow up
StuArnold
@StuArnold
Jan 23 2017 10:38 UTC
that was meant to be one day - the 22/01. Is setting an end date the obvious command?
Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:40 UTC
oref0-autotune --dir=~/myopenaps --ns-host=https://xx.azurewebsites.net --start-date=2017-01-01 --end-date=2017-01-07
StuArnold
@StuArnold
Jan 23 2017 10:40 UTC
OK - same messages x 3 when I tried to run a different period
Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:40 UTC
that's the command I'm running (form the docs, but tested with --end-date)
scarral
@scarral
Jan 23 2017 10:42 UTC
I think the problem is when running sudo apt-get install npm. Apparently that's to be avoided: http://askubuntu.com/questions/462337/couldnt-install-npm-on-ubuntu. I already have npm installed: $ npm -v
4.0.5
I solved the problem! I just ran the following commands from the quick-packages.sh script:
sudo apt-get install watchdog
sudo pip install -U openaps
sudo pip install -U openaps-contrib
sudo openaps-install-udev-rules
sudo activate-global-python-argcomplete
sudo npm install -g json oref0
echo openaps installed
openaps --version
and I got
$ echo openaps installed
openaps installed
scarral@shevek:~$ openaps --version
openaps 0.1.5
scarral
@scarral
Jan 23 2017 10:47 UTC
Yuppie!
StuArnold
@StuArnold
Jan 23 2017 10:51 UTC
@danibjor seems to be right format as it selected the three days I choose but still not running. first error seems to refer to timezone files so perhaps I need to set that somewhere
Daniel Bjørnbakk
@danibjor
Jan 23 2017 10:57 UTC
@StuArnold are you running this on a PI - or a *nix virtual box?
StuArnold
@StuArnold
Jan 23 2017 11:02 UTC
physical pi
running Ubuntu
Then I created a sample.json file in my directory ~/myopenaps/settings$ and copied the following text in it:
kmoran02
@kmoran02
Jan 23 2017 11:04 UTC
If anyone is up at this ungodly hour, can you please tell me if you have to run the fourth step each time you want to see if there are any change suggestions?
scarral
@scarral
Jan 23 2017 11:04 UTC
{
"min_5m_carbimpact": 3,
"dia": your_dia,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": your_basal
},
{
"i": 1,
"start": "08:00:00",
"minutes": 480,
"rate": your_basal
},
{
"i": 2,
"start": "13:00:00",
"minutes": 780,
"rate": your_basal
},
{
"i": 3,
"start": "21:00:00",
"minutes": 1260,
"rate": your_basal
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": your_isf,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
then tried to run jp . sample.json
and I got the following:
The program 'jp' is currently not installed. You can install it by typing:
sudo apt install sat-xmpp-jp
So I installed it with sudo apt install sat-xmpp-jp
and now when I run jp . sample.json I get:
usage: jp [-h] [--version]
{info,ad-hoc,bookmarks,file,message,params,profile,pipe} ...
jp: error: argument subparser_name: invalid choice: '.' (choose from 'info', 'ad-hoc', 'bookmarks', 'file', 'message', 'params', 'profile', 'pipe')
And I get the same message when I change your_dia and such to numbers.
StuArnold
@StuArnold
Jan 23 2017 11:08 UTC
think it is jq not jp
D. Verify your profile.json is valid json by running jq . profile.json
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:10 UTC
@scarral you need to edit the config and add your own values where it says your_dia, your_basal, your_isf
kmoran02
@kmoran02
Jan 23 2017 11:10 UTC
@scarral I had the same issue. Someone helped me by telling me to only leave the commas between items, and none at the ends. It worked.
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:11 UTC
I ran step 2-3-4 from the quick guide in a new ubuntu VM
works on some data, but some data-ranges blow up
scarral
@scarral
Jan 23 2017 11:12 UTC
Yes I know I have to put my profile, but it should work with the sample file! I have now profile.json as follows:

{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": 0.05
},
{
"i": 1,
"start": "03:00:00",
"minutes": 180,
"rate": 0.05
},
{
"i": 2,
"start": "04:00:00",
"minutes": 240,
"rate": 0.1
},
{
"i": 3,
"start": "05:00:00",
"minutes": 300,
"rate": 0.1
},
{
"i": 4,
"start": "09:00:00",
"minutes": 540,
"rate": 0.1
},
{
"i": 5,
"start": "17:00:00",
"minutes": 1020,
"rate": 0.175
},
{
"i": 6,
"start": "19:00:00",
"minutes": 1140,
"rate": 0.25
},
{
"i": 7,
"start": "20:00:00",
"minutes": 1200,
"rate": 0.750
},
{
"i": 8,
"start": "21:00:00",
"minutes": 1260,
"rate": 0.55
},
{
"i": 9,
"start": "22:00:00",
"minutes": 1320,
"rate": 0.225
},
{
"i": 10,
"start": "23:00:00",
"minutes": 1380,
"rate": 0.15
}

],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 225,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 30
}

which I'm hoping it's correct (comma wise and the like).
Then I run this command
oref0-autotune --dir=~/myopenaps --ns-host=https://mynightscout.azurewebsites.net --start-date=YYYY-MM-DD
with my website and yesterday's date, and I get the following:

Running oref0-autotune --dir=/home/scarral/myopenaps --ns-host=https://scarralnew.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
cp: cannot stat 'settings/pumpprofile.json': No such file or directory
cp: cannot stat 'settings/autotune.json': No such file or directory
cp: cannot stat 'autotune/profile.pump.json': No such file or directory
Grabbing NIGHTSCOUT treatments.json for date range...
https://scarralnew.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+01:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+01:00
-rw-rw-r-- 1 scarral scarral 2 Jän 23 12:10 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://scarralnew.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485039600000&find\[date\]\[$lte\]=1485126000000&count=1000
-rw-rw-r-- 1 scarral scarral 29850 Jän 23 12:10 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
cp: cannot stat 'profile.json': No such file or directory
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: { Error: ENOENT: no such file or directory, open 'profile.json'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.<anonymous> (/home/scarral/src/oref0/bin/oref0-autotune-prep.js:48:42)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'profile.json' }
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: { Error: ENOENT: no such file or directory, open 'profile.json'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at Object.<anonymous> (/home/scarral/src/oref0/bin/oref0-autotune-core.js:46:52)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'profile.json' }

Autotune pump profile recommendations:

Recommendations Log File: /home/scarral/myopenaps/autotune/autotune_recommendations.log

jq: error: Could not open file /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
jq: error: Could not open file /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
cat: /home/scarral/myopenaps/autotune/profile.pump.json: No such file or directory
jq: error (at /home/scarral/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/scarral/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/bin/oref0-autotune-recommends-report: line 62: [: !=: unary operator expected
/usr/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 0,000 | 0,000
CSF | n/a | 0,000
Carb Ratio | 0,000 | 0,000
Basal Profile | |
00:00 | |
00:30 | |
01:00 | |
01:30 | |

So where's the problem?
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:15 UTC
after you edited your config, did you run these commands?
D. Verify your profile.json is valid json by running jq . profile.json - if it prints a colorful version of your profile.json, you’re good to proceed. If not, go back and edit your profile.json to fix the error.
E. Create a pumpprofile.json that is the same as your settings.json. On the command line run: cp profile.json pumpprofile.json
F. Create a third file from the command line by running: cp profile.json autotune.json
then run the autotune command
scarral
@scarral
Jan 23 2017 11:16 UTC
I'm running it from the ~/myopenaps/settings directory, where I only have profile.json and sample.json files. Where should it take pumpprofile.json, autotune.json and profile.pump.json from? Should I create them as well?
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:16 UTC
the commands cp - copies the profile.json to the two new files
scarral
@scarral
Jan 23 2017 11:17 UTC
jq . profile.json prints profile in colour!
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:17 UTC
good
scarral
@scarral
Jan 23 2017 11:17 UTC
which is the settings.json? I only have profile.json.
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:17 UTC
thats a typo
run
cp profile.json pumpprofile.json && cp profile.json autotune.json
then autotune with start date yesterday
scarral
@scarral
Jan 23 2017 11:18 UTC
copied.
OK now it runs but I get the following:

Parameter | Current | Autotune

ISF | 225,000 | 225,000
CSF | n/a | 0,000
Carb Ratio | 30,000 | 30,000
Basal Profile | |
00:00 | 0,000 | 0,000
00:30 | |
01:00 | | 0,000
01:30 | |
02:00 | | 0,000
02:30 | |
03:00 | 0,000 | 0,000
03:30 | |
04:00 | 0,000 | 0,000
04:30 | |
05:00 | 0,000 | 0,000
05:30 | |
06:00 | | 0,000
06:30 | |
07:00 | | 0,000
07:30 | |
08:00 | | 0,000
08:30 | |
09:00 | 0,000 | 0,000
09:30 | |
10:00 | | 0,000
10:30 | |
11:00 | | 0,000
11:30 | |
12:00 | | 0,000
12:30 | |
13:00 | | 0,000
13:30 | |
14:00 | | 0,000
14:30 | |
15:00 | | 0,000
15:30 | |
16:00 | | 0,000
16:30 | |
17:00 | 0,000 | 0,000
17:30 | |
18:00 | | 0,000
18:30 | |
19:00 | 0,000 | 0,000
19:30 | |
20:00 | 0,000 | 0,000
20:30 | |
21:00 | 0,000 | 0,000
21:30 | |
22:00 | 0,000 | 0,000
22:30 | |
23:00 | 0,000 | 0,000
23:30 | |
I don't have any current basals set at 0.000
OK I see there are no treatments from yesterday. They should come from HAPP. I'll have a look at that later. Thanks for your help!
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:23 UTC
np
Matthias
@ceben80
Jan 23 2017 11:23 UTC
@colinlennon doesn' work as expected, I have switched off mongodb upload that means no actual xdrip data is uploading to ns, but in this case xdrip/glucose.json won't be newer, no actual BGs in this file
Sandra Keßler
@SandraK82
Jan 23 2017 11:24 UTC
@scarral i See , in your Output. To solve those errors set your locale to en_us and it will do
can anyone see that picture? This is what I get. Is it set up wrong?
I cant figure out how to get the photo to show
Chris Oattes
@cjo20
Jan 23 2017 11:39 UTC
If you're on the web client you should be able to paste images in directly, don't have to go via Fb
kmoran02
@kmoran02
Jan 23 2017 11:40 UTC
I just hit copy and paste, but it put up a link
Chris Oattes
@cjo20
Jan 23 2017 11:41 UTC
I mean when you have the image on your computer, grab the file and drag it in here
kmoran02
@kmoran02
Jan 23 2017 11:41 UTC
its only on my phone, and on fb
Chris Oattes
@cjo20
Jan 23 2017 11:41 UTC
hi.png
kmoran02
@kmoran02
Jan 23 2017 11:43 UTC
16266346_10211732625141716_7640841766035900398_n.jpg
yay!!
I wonder if its because I only have one constant basal?
Chris Oattes
@cjo20
Jan 23 2017 11:44 UTC
That's the same error that scarral, danibjor and StuArnold were getting I think
No, that shouldn't be it
kmoran02
@kmoran02
Jan 23 2017 11:45 UTC
ok I am completely clueless about this stuff. Any idea how to fix it?
Chris Oattes
@cjo20
Jan 23 2017 11:47 UTC
I've not looked in to it.
Daniel Bjørnbakk
@danibjor
Jan 23 2017 11:47 UTC
@cjo20 No, mine kinda works - just not on all dates :P
16229986_10156104228514988_64096522_o.jpg
16197029_10156104315024988_332437753_o.png
kmoran02
@kmoran02
Jan 23 2017 12:01 UTC
Did anyone else see my photo above that may know what's wrong?
Daniel Bjørnbakk
@danibjor
Jan 23 2017 12:06 UTC
@kmoran02 how does your config look like?
Matt Walker
@walker0
Jan 23 2017 12:09 UTC
@kmoran02 ^ that is what i was asking on Facebook. You can check by changing the directory to the settings directory and then running jq . profile.json changing directory is accomplished by running cd ~/myopenaps/settings which will get you to the settings folder
kmoran02
@kmoran02
Jan 23 2017 12:10 UTC
let me see if I can try that
goldenowner@instance-1:~$ cd ~/myopenaps/settings
goldenowner@instance-1:~/myopenaps/settings$ profile.json
profile.json: command not found
scarral
@scarral
Jan 23 2017 12:12 UTC
@SandraK82 how/where do I change my locale to us_en?
Matt Walker
@walker0
Jan 23 2017 12:12 UTC
@kmoran02 when you are posting output in gitter put three ``` on a top line and then three more at the very bottom on their own line and it will be formatted much more legibly
kmoran02
@kmoran02
Jan 23 2017 12:13 UTC
'''goldenowner@instance-1:~$ cd ~/myopenaps/settings
goldenowner@instance-1:~/myopenaps/settings$ profile.json
profile.json: command not found"
goldenowner@instance-1:~$ cd ~/myopenaps/settings goldenowner@instance-1:~/myopenaps/settings$ profile.json profile.json: command not found
thank you
Matt Walker
@walker0
Jan 23 2017 12:15 UTC
it looks like you are in the right location but you need to run the full jq . profile.json
copy paste the full command
kmoran02
@kmoran02
Jan 23 2017 12:15 UTC
so paste that and hit enter?
Matt Walker
@walker0
Jan 23 2017 12:15 UTC
yes
kmoran02
@kmoran02
Jan 23 2017 12:16 UTC
now I see this
  "min_5m_carbimpact": 3,
  "dia": 4,
  "basalprofile": [
    {
      "i": 0,
      "start": "00:00:00",
      "minutes": 0,
      "rate": 0.1
    }
  ],
  "isfProfile": {
    "sensitivities": [
      {
        "i": 0,
        "start": "00:00:00",
        "sensitivity": 70,
        "offset": 0,
        "x": 0,
        "endOffset": 1440
      }
    ]
  },
  "carb_ratio": 8,
  "autosens_max": 1.2,
  "autosens_min": 0.7
}
goldenowner@instance-1:~/myopenaps/settings$
Matt Walker
@walker0
Jan 23 2017 12:17 UTC
ok that means that your profile is valid
which is good
kmoran02
@kmoran02
Jan 23 2017 12:17 UTC
yay! So why isn't it working? Lol!
Matt Walker
@walker0
Jan 23 2017 12:17 UTC
Run it again just for 1 days worth of data
kmoran02
@kmoran02
Jan 23 2017 12:18 UTC
ok there was some confusion about this last night...do I put in yesterdays date?
Matt Walker
@walker0
Jan 23 2017 12:18 UTC
If you put in yesterdays date it will run for yesterday and today. That's fine though
kmoran02
@kmoran02
Jan 23 2017 12:19 UTC
ok let me try
now I still see this:

```goldenowner@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:20 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:20 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]

Autotune pump profile recommendations:

Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | | ```

I think I did that wrong. Can you read it?
Matt Walker
@walker0
Jan 23 2017 12:21 UTC
Your ``` needs to be on seperate lines at the top and bottom. Can you edit it so it is easy to read
3 dots on the right when you hover near the time has the edit option
Chris Oattes
@cjo20
Jan 23 2017 12:22 UTC
(or press 'up')
kmoran02
@kmoran02
Jan 23 2017 12:24 UTC
```goldenowner@instance-1:~/myopenaps/settings$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
              "rate": .1
        ..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:20 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:20 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data:  [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data:  [SyntaxError: Unexpected token .]

Autotune pump profile recommendations:
---------------------------------------------------------
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter      | Current  | Autotune 
-------------------------------------
ISF            | 70.000   | 0.000    
CSF            | n/a      | 0.000    
Carb Ratio     | 8.000    | 0.000    
Basal Profile  |          |          
  00:00        | 0.1      |          
  00:30        |          |          
  01:00        |          |          
  01:30        |          |          
  02:00        |          |          
  02:30        |          |          
  03:00        |          |          
  03:30        |          |          
  04:00        |          |          
  04:30        |          |          
  05:00        |          |          
  05:30        |          |          
  06:00        |          |          
  06:30        |          |          
  07:00        |          |          
  07:30        |          |          
  08:00        |          |          
  08:30        |          |          
  09:00        |          |          
  09:30        |          |          
  10:00        |          |          
  10:30        |          |          
  11:00        |          |          
  11:30        |          |          
  12:00        |          |          
  12:30        |          |          
  13:00        |          |          
  13:30        |          |          
  14:00        |          |          
  14:30        |          |          
  15:00        |          |          
  15:30        |          |          
  16:00        |          |          
  16:30        |          |          
  17:00        |          |          
  17:30        |          |          
  18:00        |          |          
  18:30        |          |          
  19:00        |          |          
  19:30        |          |          
  20:00        |          |          
  20:30        |          |          
  21:00        |          |          
  21:30        |          |          
  22:00        |          |          
  22:30        |          |          
  23:00        |          |
should I try running it with todays date?
Matt Walker
@walker0
Jan 23 2017 12:26 UTC
No it seems to be an issue with the syntax in one of the profile files
Chris Oattes
@cjo20
Jan 23 2017 12:26 UTC
grep -r "rate: .1" myopenaps
kmoran02
@kmoran02
Jan 23 2017 12:26 UTC
Ok could it be that I deleted all the other basal areas?
Sandra Keßler
@SandraK82
Jan 23 2017 12:27 UTC
@scarral please google for you os usually you can export the locales prior to execution of the autotune
Chris Oattes
@cjo20
Jan 23 2017 12:29 UTC
@kmoran02 see my last message
kmoran02
@kmoran02
Jan 23 2017 12:30 UTC
you want me to copy that in?
Chris Oattes
@cjo20
Jan 23 2017 12:30 UTC
run that command
and then put the output here
kmoran02
@kmoran02
Jan 23 2017 12:31 UTC
goldenowner@instance-1:~/myopenaps/settings$ grep -r "rate: .1" myopenaps grep: myopenaps: No such file or directory goldenowner@instance-1:~/myopenaps/settings$
ok
Chris Oattes
@cjo20
Jan 23 2017 12:31 UTC
cd ~ then run it
kmoran02
@kmoran02
Jan 23 2017 12:33 UTC
same result as before
Chris Oattes
@cjo20
Jan 23 2017 12:34 UTC
Paste the output
kmoran02
@kmoran02
Jan 23 2017 12:36 UTC

```goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:35 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:35 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]

Autotune pump profile recommendations:

Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30

ugh!
Chris Oattes
@cjo20
Jan 23 2017 12:36 UTC
no, I meant to run grep again
kmoran02
@kmoran02
Jan 23 2017 12:36 UTC

```goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps
goldenowner@instance-1:~$ cd ~
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
json: error: input is not JSON: Unexpected '.' at line 9, column 15:
"rate": .1
..............^
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 12:35 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 12:35 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected token .]

Autotune pump profile recommendations:

Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30

Chris Oattes
@cjo20
Jan 23 2017 12:36 UTC
you needed to run grep again, not autotune
kmoran02
@kmoran02
Jan 23 2017 12:37 UTC
I'm so sorry! Let me try again
Like this?
goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps goldenowner@instance-1:~$ cd ~ goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps goldenowner@instance-1:~$
StuArnold
@StuArnold
Jan 23 2017 12:41 UTC
I think I may understand my issue now but not sure how to fix it. When I run a date range I see a string of commands to pull data from my site that are in this format https://nslarnolddev.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1484956800000&find\[date\]\[$lte\]=1485043200000&count=1000.
kmoran02
@kmoran02
Jan 23 2017 12:42 UTC
now run autotune?
Matt Walker
@walker0
Jan 23 2017 12:43 UTC
@kmoran02 no just run the commands that @cjo20 posted cd ~ and then grep -r "rate: .1" myopenaps
and post the output
StuArnold
@StuArnold
Jan 23 2017 12:43 UTC
if I go to that address whatever the date ranges in the address it is always today going backwards. If I remove the \ after date etc it gives the right data
Matt Walker
@walker0
Jan 23 2017 12:44 UTC
@StuArnold does autotune work if you run it over a few days?
kmoran02
@kmoran02
Jan 23 2017 12:44 UTC
goldenowner@instance-1:~$ cd ~ goldenowner@instance-1:~$ grep -r "rate: .1" myopenaps goldenowner@instance-1:~$
StuArnold
@StuArnold
Jan 23 2017 12:45 UTC
@walker0 It runs but gives errors
Chris Oattes
@cjo20
Jan 23 2017 12:46 UTC
Hmm. What about grep -r "rate: .1" .
kmoran02
@kmoran02
Jan 23 2017 12:46 UTC
Matt that's all there is that's new
same thing
goldenowner@instance-1:~$ cd ~ goldenowner@instance-1:~$ grep -r "rate: .1" . goldenowner@instance-1:~$
kmoran02
@kmoran02
Jan 23 2017 12:51 UTC
Sorry I meant Chris
Chris Oattes
@cjo20
Jan 23 2017 12:54 UTC
So autotune is reporting an error that one of the input files has "rate: .1" in it somewhere. But grep can't find that file
try taking out the space between : .1
kmoran02
@kmoran02
Jan 23 2017 12:55 UTC
ok
scarral
@scarral
Jan 23 2017 12:55 UTC
OK so I have LC_TIME=en_US.UTF-8 and there's no change...
Colin Lennon
@colinlennon
Jan 23 2017 12:55 UTC
@ceben80 Ah, okay, thanks. I guess that CGM data is still being pulled from NS, even though it's not latest, so the NS glucose.json will still have a new timestamp. That will sometimes prevent it from being overwritten by the xDripAPS glucose.json. I think the issue I have is that my rig isn't switching properly between using bnep0 and wlan0. I will need to fix that before I can test out the update I'm trying to make to xDripAPS. I'll go ahead and document it as it is now, based on the Edison and the phone being connected via BT or WiFi hotspot 24/7.
scarral
@scarral
Jan 23 2017 12:56 UTC
oref0-autotune --dir=~/myopenaps --ns-host=https://scarralnew.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/scarral/myopenaps --ns-host=https://scarralnew.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://scarralnew.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+01:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+01:00
-rw-rw-r-- 1 scarral scarral 2 Jan 23 13:54 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://scarralnew.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485039600000&find\[date\]\[$lte\]=1485126000000&count=1000
-rw-rw-r-- 1 scarral scarral 29850 Jan 23 13:54 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Hour 0 basal adjustment needed: 0 U/hr
Hour 1 basal adjustment needed: 0 U/hr
Hour 2 basal adjustment needed: 0 U/hr
Hour 3 basal adjustment needed: 0 U/hr
Hour 4 basal adjustment needed: 0 U/hr
Hour 5 basal adjustment needed: 0 U/hr
Hour 6 basal adjustment needed: 0 U/hr
Hour 7 basal adjustment needed: 0 U/hr
Hour 8 basal adjustment needed: 0 U/hr
Hour 9 basal adjustment needed: 0 U/hr
Hour 10 basal adjustment needed: 0 U/hr
Hour 11 basal adjustment needed: 0 U/hr
Hour 12 basal adjustment needed: 0 U/hr
Hour 13 basal adjustment needed: 0 U/hr
Hour 14 basal adjustment needed: 0 U/hr
Hour 15 basal adjustment needed: 0 U/hr
Hour 16 basal adjustment needed: 0 U/hr
Hour 17 basal adjustment needed: 0 U/hr
Hour 18 basal adjustment needed: 0 U/hr
Hour 19 basal adjustment needed: 0 U/hr
Hour 20 basal adjustment needed: 0 U/hr
Hour 21 basal adjustment needed: 0 U/hr
Hour 22 basal adjustment needed: 0 U/hr
Hour 23 basal adjustment needed: 0 U/hr
[ { i: 0, start: '00:00:00', minutes: 0, rate: 0.05 },
{ i: 1, start: '01:00:00', minutes: 60, rate: 0.05 },
{ i: 2, start: '02:00:00', minutes: 120, rate: 0.05 },
{ i: 3, start: '03:00:00', minutes: 180, rate: 0.05 },
{ i: 4, start: '04:00:00', minutes: 240, rate: 0.1 },
{ i: 5, start: '05:00:00', minutes: 300, rate: 0.1 },
{ i: 6, start: '06:00:00', minutes: 360, rate: 0.1 },
{ i: 7, start: '07:00:00', minutes: 420, rate: 0.1 },
{ i: 8, start: '08:00:00', minutes: 480, rate: 0.1 },
{ i: 9, start: '09:00:00', minutes: 540, rate: 0.1 },
{ i: 10, start: '10:00:00', minutes: 600, rate: 0.1 },
{ i: 11, start: '11:00:00', minutes: 660, rate: 0.1 },
{ i: 12, start: '12:00:00', minutes: 720, rate: 0.1 },
{ i: 13, start: '13:00:00', minutes: 780, rate: 0.1 },
{ i: 14, start: '14:00:00', minutes: 840, rate: 0.1 },
{ i: 15, start: '15:00:00', minutes: 900, rate: 0.1 },
{ i: 16, start: '16:00:00', minutes: 960, rate: 0.1 },
{ i: 17, start: '17:00:00', minutes: 1020, rate: 0.175 },
{ i: 18, start: '18:00:00', minutes: 1080, rate: 0.175 },
{ i: 19, start: '19:00:00', minutes: 1140, rate: 0.25 },
{ i: 20, start: '20:00:00', minutes: 1200, rate: 0.75 },
{ i: 21, start: '21:00:00', minutes: 1260, rate: 0.55 },
{ i: 22, start: '22:00:00', minutes: 1320, rate: 0.225 },
{ i: 23, start: '23:00:00', minutes: 1380, rate: 0.15 } ]
p50deviation: 0 p50BGI 0 p50ratios: 0 Old ISF: 225 fullNewISF: 225 newISF: 225
totalMealCarbs: 0 totalDeviations: 0 fullNewCSF: 7.5 newCSF: 7.5
kmoran02
@kmoran02
Jan 23 2017 12:56 UTC
chris no it didn't work
scarral
@scarral
Jan 23 2017 12:56 UTC

Autotune pump profile recommendations:

Recommendations Log File: /home/scarral/myopenaps/autotune/autotune_recommendations.log

/usr/bin/oref0-autotune-recommends-report: line 65: printf: 7.5: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.05: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.1: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 106: printf: 0.175: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.25: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.25: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.75: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.75: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.55: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.55: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.225: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.225: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.15: invalid number
/usr/bin/oref0-autotune-recommends-report: line 110: printf: 0.15: invalid number

Parameter | Current | Autotune

ISF | 225,000 | 225,000
CSF | n/a | 0,000
Carb Ratio | 30,000 | 30,000
Basal Profile | |
00:00 | 0,000 | 0,000
00:30 | |
01:00 | | 0,000
01:30 | |
02:00 | | 0,000
02:30 | |
03:00 | 0,000 | 0,000
03:30 | |
04:00 | 0,000 | 0,000
04:30 | |
05:00 | 0,000 | 0,000
05:30 | |
06:00 | | 0,000
06:30 | |
07:00 | | 0,000
07:30 | |
08:00 | | 0,000
08:30 | |
09:00 | 0,000 | 0,000
09:30 | |
10:00 | | 0,000
10:30 | |
11:00 | | 0,000
11:30 | |
12:00 | | 0,000
12:30 | |
13:00 | | 0,000
13:30 | |
14:00 | | 0,000
14:30 | |
15:00 | | 0,000
15:30 | |
16:00 | | 0,000
16:30 | |
17:00 | 0,000 | 0,000
17:30 | |
18:00 | | 0,000
18:30 | |
19:00 | 0,000 | 0,000
19:30 | |
20:00 | 0,000 | 0,000
20:30 | |
21:00 | 0,000 | 0,000
21:30 | |
22:00 | 0,000 | 0,000
22:30 | |
23:00 | 0,000 | 0,000
23:30 | |
Chris Oattes
@cjo20
Jan 23 2017 12:57 UTC
@kmoran02 What do you mean "didn't work"?
kmoran02
@kmoran02
Jan 23 2017 12:58 UTC
wait! now I see this:
goldenowner@instance-1:~$ cd ~ goldenowner@instance-1:~$ grep -r "rate:.1" . ./src/oref0/tests/profile.test.js: {minutes: 0, rate: 1} ./src/oref0/tests/iob.test.js: , {_type: 'TempBasal', rate: 1, date: timestampEarly, timestamp: timestampEarly} ./src/oref0/tests/iob.test.js: , {_type: 'TempBasal', rate: 1, date: timestamp, timestamp: timestamp} goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 12:58 UTC
That's not it
ah, I know what it might be
kmoran02
@kmoran02
Jan 23 2017 12:59 UTC
darn! let me try again without the space, and without the period at the end
Chris Oattes
@cjo20
Jan 23 2017 12:59 UTC
grep -r "rate:\s*\.1" myopenaps
Daniel Bjørnbakk
@danibjor
Jan 23 2017 13:00 UTC
since grep uses regex, shouldn't you escape the . in the search pattern
scarral
@scarral
Jan 23 2017 13:00 UTC
I get files written in ~/myopenaps/autotune:
autotune.1.2017-01-22.json autotune_recommendations.log
autotune.2017-01-23-121001.log newprofile.1.2017-01-22.json
autotune.2017-01-23-121838.log ns-entries.2017-01-22.json
autotune.2017-01-23-132023.log ns-treatments.json
autotune.2017-01-23-134146.log profile.1.2017-01-22.json
autotune.2017-01-23-135133.log profile.json
autotune.2017-01-23-135419.log profile.pump.json
Daniel Bjørnbakk
@danibjor
Jan 23 2017 13:00 UTC
@cjo20 you beat me to it :P
kmoran02
@kmoran02
Jan 23 2017 13:01 UTC
goldenowner@instance-1:~$ cd ~ goldenowner@instance-1:~$ grep -r "rate:\s*\.1" myopenaps goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 13:04 UTC
cat myopenaps/settings/autotune.json
kmoran02
@kmoran02
Jan 23 2017 13:06 UTC
```goldenowner@instance-1:~$ cat myopenaps/settings/autotune.json
{
"min_5m_carbimpact": 3,
"dia": 4,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate": .1
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 70,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
goldenowner@instance-1:~$
goldenowner@instance-1:~$ cat myopenaps/settings/autotune.json { "min_5m_carbimpact": 3, "dia": 4, "basalprofile": [ { "i": 0, "start": "00:00:00", "minutes": 0, "rate": .1 } ], "isfProfile": { "sensitivities": [ { "i": 0, "start": "00:00:00", "sensitivity": 70, "offset": 0, "x": 0, "endOffset": 1440 } ] }, "carb_ratio": 8, "autosens_max": 1.2, "autosens_min": 0.7 } goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 13:06 UTC
argh, I see why it wasn't picking it up
ok, edit that file, change "rate": .1 to "rate": 0.1
kmoran02
@kmoran02
Jan 23 2017 13:07 UTC
I messed something up deleting basals, right?
ok, copy that in and just make that change?
Chris Oattes
@cjo20
Jan 23 2017 13:08 UTC
just edit that file to add the '0' before the '.1'
kmoran02
@kmoran02
Jan 23 2017 13:09 UTC
so go back to the settings like before?
Chris Oattes
@cjo20
Jan 23 2017 13:10 UTC
I don't know what you mean by "like before"
nano ~/myopenaps/settings/autotune.json
kmoran02
@kmoran02
Jan 23 2017 13:10 UTC
I don't know how to change it to add the zero. Or where to change it
Chris Oattes
@cjo20
Jan 23 2017 13:10 UTC
then add the 0 before the .1
then ctrl+o, enter, ctrl+x
Daniel Bjørnbakk
@danibjor
Jan 23 2017 13:14 UTC
p50deviation: -1.6800000000000002 p50BGI -2.6 p50ratios: 1.735 Old ISF: 57.495 fullNewISF: 99.754 newISF: 61.721
totalMealCarbs: 50 totalDeviations: 108.99000000000001 fullNewCSF: 2.18 newCSF: 2.783
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-10.json > autotune.1.2017-01-10.json
/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94
            var BGDate = new Date(glucoseDatum.date);
                                              ^

TypeError: Cannot read property 'date' of undefined
    at categorizeBGDatums (/home/parallels/src/oref0/lib/autotune-prep/categorize.js:94:47)
    at generate (/home/parallels/src/oref0/lib/autotune-prep/index.js:22:30)
    at Object.<anonymous> (/home/parallels/src/oref0/bin/oref0-autotune-prep.js:91:27)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-10.json profile.json profile.pump.json > newprofile.1.2017-01-10.json
Could not parse input data:  [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-11.json > autotune.1.2017-01-11.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-11.json profile.json profile.pump.json > newprofile.1.2017-01-11.json
/home/parallels/src/oref0/lib/autotune/index.js:14
    var ISF = isfProfile.sensitivities[0].sensitivity;
manage to track it down to a single day that has a problem in some of the data. This single day crashes the autotune, others before and after works fine. Not sure what the problem is - but if anyone could point me in the right direction, ill try and look for whatever could be the problem in the dataset
kmoran02
@kmoran02
Jan 23 2017 13:15 UTC
Chris, that is done. Now what?
Chris Oattes
@cjo20
Jan 23 2017 13:15 UTC
Try autotune again
kmoran02
@kmoran02
Jan 23 2017 13:16 UTC
ok
```goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 13:14 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 13:14 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
start carb absorption
1 mealCOB: 89.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:21:19 GMT+0000 (UTC) dev: 8.50 avgDelta: 8.50 csf
1 mealCOB: 87.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:26:18 GMT+0000 (UTC) dev: 10.75 avgDelta: 10.75 csf
1 mealCOB: 86.5 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:31:18 GMT+0000 (UTC) dev: 11.50 avgDelta: 11.50 csf
1 mealCOB: 85.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:36:19 GMT+0000 (UTC) dev: 8.00 avgDelta: 8.00 csf
1 mealCOB: 85.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:41:19 GMT+0000 (UTC) dev: 5.25 avgDelta: 5.25 csf
1 mealCOB: 84.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:46:19 GMT+0000 (UTC) dev: 1.25 avgDelta: 1.25 csf
0 mealCOB: 84.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:51:19 GMT+0000 (UTC) dev: -3.25 avgDelta: -3.25 csf
0 mealCOB: 83.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:56:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 83.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:01:19 GMT+0000 (UTC) dev: -9.25 avgDelta: -9.25 csf
0 mealCOB: 83.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:06:18 GMT+0000 (UTC) dev: -8.75 avgDelta: -8.75 csf
0 mealCOB: 82.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:11:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 82.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:16:18 GMT+0000 (UTC) dev: -3.50 avgDelta: -3.50 csf
0 mealCOB: 82.2 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:21:19 GMT+0000 (UTC) dev: -1.25 avgDelta: -1.25 csf
1 mealCOB: 79.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:31:23 GMT+0000 (UTC) dev: 20.25 avgDelta: 20.25 csf
1 mealCOB: 77.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:36:18 GMT+0000 (UTC) dev: 24.75 avgDelta: 24.75 csf
1 mealCOB: 73.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:41:19 GMT+0000 (UTC) dev: 28.50 avgDelta: 28.50 csf
1 mealCOB: 70.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:46:19 GMT+0000 (UTC) dev: 30.75 avgDelta: 30.75 csf
1 mealCOB: 69.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:51:18 GMT+0000 (UTC) dev: 11.00 avgDelta: 11.00 csf
1 mealCOB: 68.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:56:18 GMT+0000 (UTC) dev: 6.50 avgDelta: 6.50 csf
1 mealCOB: 68.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:01:19 GMT+0000 (UTC) dev: 2.00 avgDelta: 2.00 csf
0 mealCOB: 67.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:06:19 GMT+0000 (UTC) dev: -0.50 avgDelta: -0.50 csf
0 mealCOB: 67.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:11:19 GMT+0000 (UTC) dev: -2.75 avgDelta: -2.75 csf
0 mealCOB: 66.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:16:19 GMT+0000 (UTC) dev: -4.25 avgDelta: -4.25 csf
0 mealCOB: 66.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:21:18 GMT+0000 (UTC) dev: -4.75 avgDelta: -4.75 csf
0
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-21T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00
-rw-rw-r-- 1 goldenowner goldenowner 1241 Jan 23 13:14 ns-treatments.json
Grabbing NIGHTSCOUT entries/sgv.json for date range...
https://kellytype1d.azurewebsites.net/api/v1/entries/sgv.json?find\[date\]\[$gte\]=1485043200000&find\[date\]\[$lte\]=1485129600000&count=1000
-rw-rw-r-- 1 goldenowner goldenowner 35729 Jan 23 13:14 ns-entries.2017-01-22.json
Running 1 runs from 2017-01-22 to 2017-01-22
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
start carb absorption
1 mealCOB: 89.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:21:19 GMT+0000 (UTC) dev: 8.50 avgDelta: 8.50 csf
1 mealCOB: 87.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:26:18 GMT+0000 (UTC) dev: 10.75 avgDelta: 10.75 csf
1 mealCOB: 86.5 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:31:18 GMT+0000 (UTC) dev: 11.50 avgDelta: 11.50 csf
1 mealCOB: 85.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:36:19 GMT+0000 (UTC) dev: 8.00 avgDelta: 8.00 csf
1 mealCOB: 85.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:41:19 GMT+0000 (UTC) dev: 5.25 avgDelta: 5.25 csf
1 mealCOB: 84.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:46:19 GMT+0000 (UTC) dev: 1.25 avgDelta: 1.25 csf
0 mealCOB: 84.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:51:19 GMT+0000 (UTC) dev: -3.25 avgDelta: -3.25 csf
0 mealCOB: 83.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 00:56:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 83.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:01:19 GMT+0000 (UTC) dev: -9.25 avgDelta: -9.25 csf
0 mealCOB: 83.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:06:18 GMT+0000 (UTC) dev: -8.75 avgDelta: -8.75 csf
0 mealCOB: 82.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:11:19 GMT+0000 (UTC) dev: -6.00 avgDelta: -6.00 csf
0 mealCOB: 82.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:16:18 GMT+0000 (UTC) dev: -3.50 avgDelta: -3.50 csf
0 mealCOB: 82.2 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:21:19 GMT+0000 (UTC) dev: -1.25 avgDelta: -1.25 csf
1 mealCOB: 79.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:31:23 GMT+0000 (UTC) dev: 20.25 avgDelta: 20.25 csf
1 mealCOB: 77.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:36:18 GMT+0000 (UTC) dev: 24.75 avgDelta: 24.75 csf
1 mealCOB: 73.8 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:41:19 GMT+0000 (UTC) dev: 28.50 avgDelta: 28.50 csf
1 mealCOB: 70.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:46:19 GMT+0000 (UTC) dev: 30.75 avgDelta: 30.75 csf
1 mealCOB: 69.1 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:51:18 GMT+0000 (UTC) dev: 11.00 avgDelta: 11.00 csf
1 mealCOB: 68.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 01:56:18 GMT+0000 (UTC) dev: 6.50 avgDelta: 6.50 csf
1 mealCOB: 68.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:01:19 GMT+0000 (UTC) dev: 2.00 avgDelta: 2.00 csf
0 mealCOB: 67.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:06:19 GMT+0000 (UTC) dev: -0.50 avgDelta: -0.50 csf
0 mealCOB: 67.3 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:11:19 GMT+0000 (UTC) dev: -2.75 avgDelta: -2.75 csf
0 mealCOB: 66.9 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:16:19 GMT+0000 (UTC) dev: -4.25 avgDelta: -4.25 csf
0 mealCOB: 66.6 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0 at Sun Jan 22 2017 02:21:18 GMT+0000 (UTC) dev: -4.75 avgDelta: -4.75 c
Chris Oattes
@cjo20
Jan 23 2017 13:19 UTC
You don't need to keep pasting it :) Just see whether it finishes correctly or not
kmoran02
@kmoran02
Jan 23 2017 13:20 UTC
I'm sorry. I'm truly trying my best.
Chris Oattes
@cjo20
Jan 23 2017 13:20 UTC
no need to apologise
kmoran02
@kmoran02
Jan 23 2017 13:22 UTC
it still says .1 instead of .01?
Chris Oattes
@cjo20
Jan 23 2017 13:22 UTC
You were meant to change it to 0.1
not .01
kmoran02
@kmoran02
Jan 23 2017 13:23 UTC
let me try changing it again. Thank you for being so patient!!!
Chris Oattes
@cjo20
Jan 23 2017 13:23 UTC
What does the final table at the end show?
kmoran02
@kmoran02
Jan 23 2017 13:29 UTC
now it shows 0.1

```Autotune pump profile recommendations:

Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |

18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | | ```

Chris Oattes
@cjo20
Jan 23 2017 13:29 UTC
Ok, so that was the first error fixed now
kmoran02
@kmoran02
Jan 23 2017 13:29 UTC

```Autotune pump profile recommendations:

Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |

18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |

sorry
Chris Oattes
@cjo20
Jan 23 2017 13:31 UTC
If you paste something incorrectly, edit the entry instead of pasting it again
And stop aplogising :P
kmoran02
@kmoran02
Jan 23 2017 13:32 UTC
lol!
Chris Oattes
@cjo20
Jan 23 2017 13:33 UTC
cat /home/goldenowner/myopenaps/autotune/profile.json | json
Just delete that message (select it all, then delete)
I changed the command
kmoran02
@kmoran02
Jan 23 2017 13:39 UTC
cat /home/goldenowner/myopenaps/autotune/profile.json | json
Chris Oattes
@cjo20
Jan 23 2017 13:39 UTC
you need to paste the output of that command
kmoran02
@kmoran02
Jan 23 2017 13:39 UTC
tell me what that means lol
Chris Oattes
@cjo20
Jan 23 2017 13:40 UTC
So you've just copied the command I put in here and pasted it in here. I want you to run it on the edison and copy the result here.
kmoran02
@kmoran02
Jan 23 2017 13:41 UTC
I pasted it and it just went to the next line
Chris Oattes
@cjo20
Jan 23 2017 13:41 UTC
wc -l /home/goldenowner/myopenaps/autotune/profile.json
kmoran02
@kmoran02
Jan 23 2017 13:43 UTC
same thing. Just went to the next line
Chris Oattes
@cjo20
Jan 23 2017 13:45 UTC
ok, so autotune isn't creating the autotune/profile.json file it needs to make the recommendations
ls ~/myopenaps | grep autotune
kmoran02
@kmoran02
Jan 23 2017 13:47 UTC
this is all I see
ls ~/myopenaps | grep autotune
_
Chris Oattes
@cjo20
Jan 23 2017 13:47 UTC
mkdir ~/myopenaps/autotune
then run autotune again
kmoran02
@kmoran02
Jan 23 2017 13:48 UTC
ok
mkdir ~/myopenaps/autotune oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22 oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
now it doesn't run?
Chris Oattes
@cjo20
Jan 23 2017 13:52 UTC
It looks like you have both commands on the same line
kmoran02
@kmoran02
Jan 23 2017 13:53 UTC
let me try again
oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
nothing after
scarral
@scarral
Jan 23 2017 13:56 UTC
OK now I changed the locale to LC_NUMERIC=en_US.UTF-8, and I get the following for yesterday:

Parameter | Current | Autotune

ISF | 225.000 | 225.000
CSF | n/a | 7.500
Carb Ratio | 30.000 | 30.000
Basal Profile | |
00:00 | 0.050 | 0.050
00:30 | |
01:00 | | 0.050
01:30 | |
02:00 | | 0.050
02:30 | |
03:00 | 0.050 | 0.050
03:30 | |
04:00 | 0.100 | 0.100
04:30 | |
05:00 | 0.100 | 0.100
05:30 | |
06:00 | | 0.100
06:30 | |
07:00 | | 0.100
07:30 | |
08:00 | | 0.100
08:30 | |
09:00 | 0.100 | 0.100
09:30 | |
10:00 | | 0.100
10:30 | |
11:00 | | 0.100
11:30 | |
12:00 | | 0.100
12:30 | |
13:00 | | 0.100
13:30 | |
14:00 | | 0.100
14:30 | |
15:00 | | 0.100
15:30 | |
16:00 | | 0.100
16:30 | |
17:00 | 0.175 | 0.175
17:30 | |
18:00 | | 0.175
18:30 | |
19:00 | 0.250 | 0.250
19:30 | |
20:00 | 0.750 | 0.750
20:30 | |
21:00 | 0.550 | 0.550
21:30 | |
22:00 | 0.225 | 0.225
22:30 | |
23:00 | 0.150 | 0.150
23:30 | |
Chris Oattes
@cjo20
Jan 23 2017 14:01 UTC
@kmoran02 Nothing I've said should cause it to not output anything
scarral
@scarral
Jan 23 2017 14:02 UTC
But I don't get the start carb absorption table that kmoran02 gets...
1 mealCOB: 89.0 mealCarbs: 90 basalBGI: 0.6 BGI: 0.0
Chris Oattes
@cjo20
Jan 23 2017 14:03 UTC
@kmoran02 cp settings/profile.json autotune/profile.json
Sandra Keßler
@SandraK82
Jan 23 2017 14:04 UTC
I still Hang at:
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-13.json > autotune.1.2017-01-13.json
Error: carb_ratio 2.742 out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-13.json profile.json profile.pump.json > newprofile.1.2017-01-13.json
/root/src/oref0/lib/autotune/index.js:77
        for (var i=0; i < basalGlucose.length; ++i) {
                                      ^

TypeError: Cannot read property 'length' of undefined
    at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:77:39)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:974:3
kmoran02
@kmoran02
Jan 23 2017 14:04 UTC
ok Chris I put that in. Now run Autotune?
Chris Oattes
@cjo20
Jan 23 2017 14:04 UTC
yes
scarral
@scarral
Jan 23 2017 14:04 UTC
I get:
p50deviation: 0 p50BGI 0 p50ratios: 0 Old ISF: 225 fullNewISF: 225 newISF: 225
totalMealCarbs: 0 totalDeviations: 0 fullNewCSF: 7.5 newCSF: 7.5
even when I run it from a different date, when I had treatments.
kmoran02
@kmoran02
Jan 23 2017 14:05 UTC
Chris it didn't run it
Chris Oattes
@cjo20
Jan 23 2017 14:06 UTC
what did it do? copy and paste it here
kmoran02
@kmoran02
Jan 23 2017 14:06 UTC
cp settings/profile.json autotune/profile.json oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-22
it is on two separate lines, not sure why its pasting that way
Chris Oattes
@cjo20
Jan 23 2017 14:07 UTC
because you're not putting the ``` on a line of their own most likely
kmoran02
@kmoran02
Jan 23 2017 14:07 UTC
ahhh ok
Chris Oattes
@cjo20
Jan 23 2017 14:08 UTC
press ctrl+c, then try running cp settings/profile.json autotune/profile.json then autotune again
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:08 UTC
@kmoran02 looks like your azure site is not configured properly
Chris Oattes
@cjo20
Jan 23 2017 14:09 UTC
I don't think it's that
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:09 UTC
i tested with my setup (that works) - but pointed it to his azure
dont get much autotune recomenndations
kmoran02
@kmoran02
Jan 23 2017 14:10 UTC

```Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log

jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | | ```
goldenowner@instance-1:~$

Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:10 UTC
Skjermbilde 2017-01-23 kl. 15.09.08.png
Skjermbilde 2017-01-23 kl. 15.09.01.png
if you look at the documentation for autotune, it lists a few plugins that you need to enable
compare your plugin list in azure with ours
Skjermbilde 2017-01-23 kl. 15.11.53.png
scarral
@scarral
Jan 23 2017 14:14 UTC
I have these plugins, is there some missing?
Show Plugins
Insulin-on-Board
Carbs-on-Board
Care Portal
OpenAPS
Bolus Wizard Preview
Cannula Age
Sensor Age
Insulin Age
Basal Profile
Bolus Wizard
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:15 UTC
Skjermbilde 2017-01-23 kl. 15.13.54.png
These are enabled on our end
basal bwp cage careportal cob rawbg sage iob iage treatmentnotify boluscalc profile maker loop pump bridge timeago sensorage
scarral
@scarral
Jan 23 2017 14:15 UTC
I have the first 4 and Basal Profile ticked.
Chris Oattes
@cjo20
Jan 23 2017 14:16 UTC
@danibjor where in the documenation does it show which plugins you need?
kmoran02
@kmoran02
Jan 23 2017 14:17 UTC
I don't have any of those....is that even in English?? lol!
Chris Oattes
@cjo20
Jan 23 2017 14:17 UTC
The stuff in one of the images isn't English
kmoran02
@kmoran02
Jan 23 2017 14:17 UTC
i have careportal and iob
Chris Oattes
@cjo20
Jan 23 2017 14:18 UTC
I can't see anywhere in the docs that mentions "plugin"
Chris Oattes
@cjo20
Jan 23 2017 14:19 UTC
so just the "openaps" plugin
and DEVICESTATUS_ADVANCED=true
kmoran02
@kmoran02
Jan 23 2017 14:19 UTC
oh my goodness. Now how do I do that?
on Azure somewhere I assume?
Chris Oattes
@cjo20
Jan 23 2017 14:20 UTC
yes, in the application settings
kmoran02
@kmoran02
Jan 23 2017 14:20 UTC
let me get there
Chris Oattes
@cjo20
Jan 23 2017 14:22 UTC
Before you do that, can you do ls ~/myopenaps | grep autotune?
kmoran02
@kmoran02
Jan 23 2017 14:22 UTC
ok I'm in settings on Azure. Now where do I go?
goldenowner@instance-1:~$ ls ~/myopenaps | grep autotune
goldenowner@instance-1:~$
Recommendations Log File: /home/goldenowner/myopenaps/autotune/autotune_recommendations.log
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)
jq: error (at /home/goldenowner/myopenaps/autotune/profile.json:1): Cannot iterate over null (null)

/usr/local/bin/oref0-autotune-recommends-report: line 61: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 65: printf: null: invalid number
/usr/local/bin/oref0-autotune-recommends-report: line 67: printf: null: invalid number
Parameter      | Current  | Autotune 
-------------------------------------
ISF            | 70.000   | 0.000    
CSF            | n/a      | 0.000    
Carb Ratio     | 8.000    | 0.000    
Basal Profile  |          |          
  00:00        | 0.1      |          
  00:30        |          |          
  01:00        |          |          
  01:30        |          |          
  02:00        |          |          
  02:30        |          |          
  03:00        |          |          
  03:30        |          |          
  04:00        |          |          
  04:30        |          |          
  05:00        |          |          
  05:30        |          |          
  06:00        |          |          
  06:30        |          |          
  07:00        |          |          
  07:30        |          |          
  08:00        |          |          
  08:30        |          |          
  09:00        |          |          
  09:30        |          |          
  10:00        |          |          
  10:30        |          |          
  11:00        |          |          
  11:30        |          |          
  12:00        |          |          
  12:30        |          |          
  13:00        |          |          
  13:30        |          |          
  14:00        |          |          
  14:30        |          |          
  15:00        |          |          
  15:30        |          |          
  16:00        |          |          
  16:30        |          |          
  17:00        |          |          
  17:30        |          |          
  18:00        |          |          
  18:30        |          |          
  19:00        |          |          
  19:30        |          |          
  20:00        |          |          
  20:30        |          |          
  21:00        |          |          
  21:30        |          |          
  22:00        |          |          
  22:30        |          |          
  23:00        |          |          
  23:30        |          |          
goldenowner@instance-1:~$
why can I not paste that correctly??
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:26 UTC
you need to have the 3 first ```on their own line
scarral
@scarral
Jan 23 2017 14:26 UTC
I had DEVICESTATUS_ADVANCED=false, I changed that to true now and restarted the NS website. Same issue.
kmoran02
@kmoran02
Jan 23 2017 14:29 UTC
I'm just using a dexcom and a tandem x2 pump. Does that matter at all?
Chris Oattes
@cjo20
Jan 23 2017 14:31 UTC
It's nothing wrong with azure. I can run it locally with data from that site and it works.
Sandra Keßler
@SandraK82
Jan 23 2017 14:32 UTC
@scottleibrand ok, found my error, my std carb Ratio is 3, therefore if it gets lower then this your scripts terminates :) maybe minimal carb Ratio needs to be adjustable too
line 54 of oref0-autotune-prep.js:
// disallow impossibly low carbRatios due to bad decoding
    if ( typeof(profile_data.carb_ratio) == 'undefined' || profile_data.carb_ratio < 3 ) {
Chris Oattes
@cjo20
Jan 23 2017 14:32 UTC
@SandraK82 you do 1u for every 2.something grams of carb?
Sandra Keßler
@SandraK82
Jan 23 2017 14:33 UTC
i use 1U per 3 grams
and autotune seems to suggest even lower values of 2.742
Chris Oattes
@cjo20
Jan 23 2017 14:35 UTC
@kmoran02 cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
kmoran02
@kmoran02
Jan 23 2017 14:41 UTC
did that and ran autotune, but now nothing
Chris Oattes
@cjo20
Jan 23 2017 14:41 UTC
I wanted to see the output
of the command
(not of autotune)
I'll tell you when you need to try running autotune again
kmoran02
@kmoran02
Jan 23 2017 14:42 UTC
cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
theres nothing'
Chris Oattes
@cjo20
Jan 23 2017 14:43 UTC
ls ~/myopenaps/settings
kmoran02
@kmoran02
Jan 23 2017 14:44 UTC
ok just went to the next line
scarral
@scarral
Jan 23 2017 14:44 UTC
When I run autotune from 01 of January I get the same for each day, like this:
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Hour 0 basal adjustment needed: 0 U/hr
Hour 1 basal adjustment needed: 0 U/hr
Hour 2 basal adjustment needed: 0 U/hr
Hour 3 basal adjustment needed: 0 U/hr
Hour 4 basal adjustment needed: 0 U/hr
Hour 5 basal adjustment needed: 0 U/hr
Hour 6 basal adjustment needed: 0 U/hr
Hour 7 basal adjustment needed: 0 U/hr
Hour 8 basal adjustment needed: 0 U/hr
Hour 9 basal adjustment needed: 0 U/hr
Hour 10 basal adjustment needed: 0 U/hr
Hour 11 basal adjustment needed: 0 U/hr
Hour 12 basal adjustment needed: 0 U/hr
Hour 13 basal adjustment needed: 0 U/hr
Hour 14 basal adjustment needed: 0 U/hr
Hour 15 basal adjustment needed: 0 U/hr
Hour 16 basal adjustment needed: 0 U/hr
Hour 17 basal adjustment needed: 0 U/hr
Hour 18 basal adjustment needed: 0 U/hr
Hour 19 basal adjustment needed: 0 U/hr
Hour 20 basal adjustment needed: 0 U/hr
Hour 21 basal adjustment needed: 0 U/hr
Hour 22 basal adjustment needed: 0 U/hr
Hour 23 basal adjustment needed: 0 U/hr
[ { i: 0, start: '00:00:00', minutes: 0, rate: 0.05 },
{ i: 1, start: '01:00:00', minutes: 60, rate: 0.05 },
{ i: 2, start: '02:00:00', minutes: 120, rate: 0.05 },
{ i: 3, start: '03:00:00', minutes: 180, rate: 0.05 },
{ i: 4, start: '04:00:00', minutes: 240, rate: 0.1 },
{ i: 5, start: '05:00:00', minutes: 300, rate: 0.1 },
{ i: 6, start: '06:00:00', minutes: 360, rate: 0.1 },
{ i: 7, start: '07:00:00', minutes: 420, rate: 0.1 },
{ i: 8, start: '08:00:00', minutes: 480, rate: 0.1 },
{ i: 9, start: '09:00:00', minutes: 540, rate: 0.1 },
{ i: 10, start: '10:00:00', minutes: 600, rate: 0.1 },
{ i: 11, start: '11:00:00', minutes: 660, rate: 0.1 },
{ i: 12, start: '12:00:00', minutes: 720, rate: 0.1 },
{ i: 13, start: '13:00:00', minutes: 780, rate: 0.1 },
{ i: 14, start: '14:00:00', minutes: 840, rate: 0.1 },
{ i: 15, start: '15:00:00', minutes: 900, rate: 0.1 },
{ i: 16, start: '16:00:00', minutes: 960, rate: 0.1 },
{ i: 17, start: '17:00:00', minutes: 1020, rate: 0.175 },
{ i: 18, start: '18:00:00', minutes: 1080, rate: 0.175 },
{ i: 19, start: '19:00:00', minutes: 1140, rate: 0.25 },
{ i: 20, start: '20:00:00', minutes: 1200, rate: 0.75 },
{ i: 21, start: '21:00:00', minutes: 1260, rate: 0.55 },
{ i: 22, start: '22:00:00', minutes: 1320, rate: 0.225 },
{ i: 23, start: '23:00:00', minutes: 1380, rate: 0.15 } ]
p50deviation: 0 p50BGI 0 p50ratios: 0 Old ISF: 225 fullNewISF: 225 newISF: 225
totalMealCarbs: 0 totalDeviations: 0 fullNewCSF: 7.5 newCSF: 7.5
kmoran02
@kmoran02
Jan 23 2017 14:45 UTC
try autotune now?
Chris Oattes
@cjo20
Jan 23 2017 14:45 UTC
@kmoran02 no, you haven't changed anything
kmoran02
@kmoran02
Jan 23 2017 14:45 UTC
ok
Chris Oattes
@cjo20
Jan 23 2017 14:45 UTC
ls ~/myopenaps
kmoran02
@kmoran02
Jan 23 2017 14:46 UTC
just went to next line
Chris Oattes
@cjo20
Jan 23 2017 14:46 UTC
copy and paste it
kmoran02
@kmoran02
Jan 23 2017 14:46 UTC
ls ~/myopenaps
Chris Oattes
@cjo20
Jan 23 2017 14:46 UTC
That's the whole line?
kmoran02
@kmoran02
Jan 23 2017 14:47 UTC
yes
Chris Oattes
@cjo20
Jan 23 2017 14:47 UTC
ctrl+c then cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
you need to make sure you don't end up with ` at the start or end of the command from copying+pasting
kmoran02
@kmoran02
Jan 23 2017 14:49 UTC
goldenowner@instance-1:~$ ls ~/myopenapsautotune settings```goldenowner@instance-1:~$
that wassupposed to be three lines
Chris Oattes
@cjo20
Jan 23 2017 14:50 UTC
ctrl+c then cat ~/myopenaps/settings/profile.json && cat ~/myopenaps/settings/autotune.json && cat ~/myopenaps/settings/pumpprofile.json
kmoran02
@kmoran02
Jan 23 2017 14:52 UTC
{
  "min_5m_carbimpact": 3,
  "dia": 4,
  "basalprofile": [
    {
      "i": 0,
      "start": "00:00:00",
      "minutes": 0,
      "rate"= 0.1
    }
  ],
  "isfProfile": {
    "sensitivities": [
      {
        "i": 0,
        "start": "00:00:00",
        "sensitivity": 70,
        "offset": 0,
        "x": 0,
        "endOffset": 1440
      }
    ]
  },
  "carb_ratio": 8,
  "autosens_max": 1.2,
  "autosens_min": 0.7
}

{
  "min_5m_carbimpact": 3,
  "dia": 4,
  "basalprofile": [
    {
      "i": 0,
      "start": "00:00:00",
      "minutes": 0,
      "rate": .1
    }
  ],
  "isfProfile": {
    "sensitivities": [
      {
        "i": 0,
        "start": "00:00:00",
        "sensitivity": 70,
        "offset": 0,
        "x": 0,
        "endOffset": 1440
      }
    ]
  },
  "carb_ratio": 8,
  "autosens_max": 1.2,
  "autosens_min": 0.7
}
goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 14:53 UTC
cat ~/myopeanps/settings/profile.json
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:54 UTC
there is another .1 there - change that to 0.1
Chris Oattes
@cjo20
Jan 23 2017 14:54 UTC
danibjor: please wait
Daniel Bjørnbakk
@danibjor
Jan 23 2017 14:54 UTC
k
kmoran02
@kmoran02
Jan 23 2017 14:54 UTC
goldenowner@instance-1:~$ cat ~/myopeanps/settings/profile.json cat: /home/goldenowner/myopeanps/settings/profile.json: No such file or directory goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 14:54 UTC
typo in the directory
cat ~/myopenaps/settings/profile.json
kmoran02
@kmoran02
Jan 23 2017 14:55 UTC
yay! We know the issue!!
goldenowner@instance-1:~$ cat ~/myopenaps/settings/profile.json { "min_5m_carbimpact": 3, "dia": 4, "basalprofile": [ { "i": 0, "start": "00:00:00", "minutes": 0, "rate": .1 } ], "isfProfile": { "sensitivities": [ { "i": 0, "start": "00:00:00", "sensitivity": 70, "offset": 0, "x": 0, "endOffset": 1440 } ] }, "carb_ratio": 8, "autosens_max": 1.2, "autosens_min": 0.7 } goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 14:56 UTC
ok, nano ~/myopenaps/settings/profile.json, change "rate": .1 to "rate": 0.1, ctrl+o, enter, ctrl+x
then cat ~/myopenaps/settings/profile.json
kmoran02
@kmoran02
Jan 23 2017 14:58 UTC
goldenowner@instance-1:~$ cat ~/myopenaps/settings/profile.json { "min_5m_carbimpact": 3, "dia": 4, "basalprofile": [ { "i": 0, "start": "00:00:00", "minutes": 0, "rate": 0.1 } ], "isfProfile": { "sensitivities": [ { "i": 0, "start": "00:00:00", "sensitivity": 70, "offset": 0, "x": 0, "endOffset": 1440 } ] }, "carb_ratio": 8, "autosens_max": 1.2, "autosens_min": 0.7 } goldenowner@instance-1:~$
I wont touch anything until you say! Lol!
Chris Oattes
@cjo20
Jan 23 2017 14:59 UTC
cp myopenaps/settings/profile.json myopenaps/settings/autotune.json
then cp myopenaps/settings/profile.json myopenaps/settings/pumpprofile.json
then re-run autotune
kmoran02
@kmoran02
Jan 23 2017 15:00 UTC
goldenowner@instance-1:~$ cp myopenaps/settings/profile.json myopenaps/settings/autotune.json
goldenowner@instance-1:~$
ok
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23 Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23 --runs=1 --end-date=2017-01-22 Grabbing NIGHTSCOUT treatments.json for date range... https://kellytype1d.azurewebsites.net/api/v1/treatments.json?find\[created_at\]\[$gte\]=2017-01-22T20:00+00:00&find\[created_at\]\[$lte\]=2017-01-23T00:00+00:00 -rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json
Chris Oattes
@cjo20
Jan 23 2017 15:02 UTC
You still aren't putting ``` on it's own line at the start and end too
kmoran02
@kmoran02
Jan 23 2017 15:03 UTC
``goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23```
shoot! I'm trying
Chris Oattes
@cjo20
Jan 23 2017 15:04 UTC
Type ```, then press shift+enter, then ctrl+v
then ctrl+enter
kmoran02
@kmoran02
Jan 23 2017 15:05 UTC
goldenowner@instance-1:~$ oref0-autotune --dir=~/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23
Running oref0-autotune --dir=/home/goldenowner/myopenaps --ns-host=https://kellytype1d.azurewebsites.net --start-date=2017-01-23 --runs=1 --end-date=2017-01-22
Grabbing NIGHTSCOUT treatments.json for date range...
```-rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json
Chris Oattes
@cjo20
Jan 23 2017 15:08 UTC
Did it finish running?
kmoran02
@kmoran02
Jan 23 2017 15:09 UTC

is that right?

it still says the same thing

Chris Oattes
@cjo20
Jan 23 2017 15:09 UTC
the final table?
kmoran02
@kmoran02
Jan 23 2017 15:09 UTC
nope. Only what I last posted
no table at all
Chris Oattes
@cjo20
Jan 23 2017 15:10 UTC
So it got to what you last posted, that ended with -rw-rw-r-- 1 goldenowner goldenowner 333 Jan 23 15:01 ns-treatments.json and it hasn't printed anything else at all?
kmoran02
@kmoran02
Jan 23 2017 15:11 UTC
no, nothing else
Chris Oattes
@cjo20
Jan 23 2017 15:11 UTC
What if you press "page down"
kmoran02
@kmoran02
Jan 23 2017 15:13 UTC
if I press page down I see these: ^[[6~^[[6~^[[6~^[[6~^[[6~^[
as I press page down, it makes those marks
try running again?
maybe a different date?? I have no clue
Chris Oattes
@cjo20
Jan 23 2017 15:14 UTC
Is it still running?
porkupan
@porkupan
Jan 23 2017 15:14 UTC
ns-fail-high.PNG
I wonder if there is something we can do (besides doing a manual bolus) to get the OpenAPS to try being a bit more aggressive when the BG is significantly high? I have the max_iob=6, and maximum basal rate on the pump is set to 6 u/hour, yet the OpenAPS never set the basal rate above 3 during last night all-night high. I finally did the manual bolus at 5am, and the BG came down.
kmoran02
@kmoran02
Jan 23 2017 15:15 UTC
its not doing anything at all
Chris Oattes
@cjo20
Jan 23 2017 15:15 UTC
Ctrl+c, then try it again with start date set to yesterday
kmoran02
@kmoran02
Jan 23 2017 15:15 UTC
ok
Chris Oattes
@cjo20
Jan 23 2017 15:15 UTC
You've currently got it starting today and ending yesterday
@porkupan it's limited to 3xcurrent basal
kmoran02
@kmoran02
Jan 23 2017 15:17 UTC
Basal Profile | | 00:00 | 0.1 | 00:30 | | 01:00 | | 01:30 | | 02:00 | | 02:30 | | 03:00 | | 03:30 | | 04:00 | | 04:30 | | 05:00 | | 05:30 | | 06:00 | | 06:30 | | 07:00 | | 07:30 | | 08:00 | | 08:30 | | 09:00 | | 09:30 | | 10:00 | | 10:30 | | 11:00 | | 11:30 | | 12:00 | | 12:30 | | 13:00 | | 13:30 | | 14:00 | | 14:30 | | 15:00 | | 15:30 | | 16:00 | | 16:30 | | 17:00 | | 17:30 | | 18:00 | | 18:30 | | 19:00 | | 19:30 | | 20:00 | | 20:30 | | 21:00 | | 21:30 | | 22:00 | | 22:30 | | 23:00 | | 23:30 | |
porkupan
@porkupan
Jan 23 2017 15:17 UTC
@cjo20 that's not good.
basically, means the OpenAPS wouldn't attempt to lower the high BG.
kmoran02
@kmoran02
Jan 23 2017 15:18 UTC

Parameter | Current | Autotune

ISF | 70.000 | 0.000
CSF | n/a | 0.000
Carb Ratio | 8.000 | 0.000
Basal Profile | |
00:00 | 0.1 |
00:30 | |
01:00 | |
01:30 | |
02:00 | |
02:30 | |
03:00 | |
03:30 | |
04:00 | |
04:30 | |
05:00 | |
05:30 | |
06:00 | |
06:30 | |
07:00 | |
07:30 | |
08:00 | |
08:30 | |
09:00 | |
09:30 | |
10:00 | |
10:30 | |
11:00 | |
11:30 | |
12:00 | |
12:30 | |
13:00 | |
13:30 | |
14:00 | |
14:30 | |
15:00 | |
15:30 | |
16:00 | |
16:30 | |
17:00 | |
17:30 | |
18:00 | |
18:30 | |
19:00 | |
19:30 | |
20:00 | |
20:30 | |
21:00 | |
21:30 | |
22:00 | |
22:30 | |
23:00 | |
23:30 | |
goldenowner@instance-1:~$
Chris Oattes
@cjo20
Jan 23 2017 15:18 UTC
@kmoran02 ``` on a line on their own. Make sure they are before you send the message :)
And edit your message instead of sending it again
Makes it really hard to look back at what's happened if there are pages and pages of reattempted pastes
porkupan
@porkupan
Jan 23 2017 15:20 UTC
@cjo20 is "3x the current bolus" configurable? Would like it to be higher, perhaps proportional to the BG.
Chris Oattes
@cjo20
Jan 23 2017 15:21 UTC
@porkupan it isn't a bad thing. It's a safety feature, because you can only low-temp by a certain amount. If the sensor goes bad during the night and reads high for an hour and you set the maximum to 6x current basal, it will take 6 hours of 0-temp to counteract it, which isn't good (or possible, the DIA will have ended before you've low-temped enough)
kmoran02
@kmoran02
Jan 23 2017 15:25 UTC
is that correct Chris?
porkupan
@porkupan
Jan 23 2017 15:26 UTC
@cjo20 Ok, I understand (although my experience with bad sensors seems to indicate erratic readings and not consistently higher than normal readings). Any idea why the NS High alarm doesn't seem to go when the OpenAPS is operational? I would have waken up, but there was no alarm.
Chris Oattes
@cjo20
Jan 23 2017 15:26 UTC
@kmoran02: it looks like you've just put ``` at the start and end of each line
it needs to look like this before you press enter
```
Thing you want to paste
lots of lines
pages of data
```
Sandra Keßler
@SandraK82
Jan 23 2017 15:27 UTC
with patched oref0-autotune-prep.js i can now look at my data, really high suggestions altough :)
kmoran02
@kmoran02
Jan 23 2017 15:28 UTC
I put ``` before and after
Chris Oattes
@cjo20
Jan 23 2017 15:28 UTC
before and after what?
You should have one ``` on a line on it's own, then the stuff you want to paste, then one more ``` on a line on it's own
kmoran02
@kmoran02
Jan 23 2017 15:29 UTC
each line as it looks on my screen,except that the 0's are more under autotune
Chris Oattes
@cjo20
Jan 23 2017 15:30 UTC
You don't put the ``` on each line. You need two. One on a line on it's own at the start, and one on a line on it's own at the end
So the first line should be ``` with nothing else on it, and the last line should be ``` with nothing else on it
There shouldn't be any other ```
kmoran02
@kmoran02
Jan 23 2017 15:31 UTC
That's what I did. Each line on my screen, I put ``` before the line, and after the line.
Chris Oattes
@cjo20
Jan 23 2017 15:31 UTC
no
not each line on your screen
if you want to paste 100 lines, you have
```
1
2
3
...
98
99
100
```
That's what you need to do
kmoran02
@kmoran02
Jan 23 2017 15:32 UTC
it wont let me copy the lines vertically
Chris Oattes
@cjo20
Jan 23 2017 15:33 UTC
@porkupan Yes, usually sensors fail erratically, but oref0 is designed to be as safe as possible, so if a sensor fails by just reading 270 constantly, it won't kill people
@kmoran02 In the terminal screen, you hilight everything you want to copy at once, ctrl+c, put ``` on the first line in here, go to the second line and hit paste, then go to a new line and type ``` once more
kmoran02
@kmoran02
Jan 23 2017 15:34 UTC
```
Chris Oattes
@cjo20
Jan 23 2017 15:34 UTC
you go to a new line by pressing shift+enter
porkupan
@porkupan
Jan 23 2017 15:34 UTC
@cjo20 So what about that "Urgent High Alarm"? Enabled, but doesn't trigger when OpenAPS.
Chris Oattes
@cjo20
Jan 23 2017 15:34 UTC
@porkupan high alarms work for me
kmoran02
@kmoran02
Jan 23 2017 15:35 UTC

Parameter      | Current  | Autotune 
-------------------------------------
ISF            | 70.000   | 0.000    
CSF            | n/a      | 0.000    
Carb Ratio     | 8.000    | 0.000    
Basal Profile  |          |          
  00:00        | 0.1      |          
  00:30        |          |          
  01:00        |          |          
  01:30        |          |          
  02:00        |          |          
  02:30        |          |          
  03:00        |          |          
  03:30        |          |          
  04:00        |          |          
  04:30        |          |          
  05:00        |          |          
  05:30        |          |          
  06:00        |          |          
  06:30        |          |          
  07:00        |          |          
  07:30        |          |          
  08:00        |          |          
  08:30        |          |          
  09:00        |          |          
  09:30        |          |          
  10:00        |          |          
  10:30        |          |          
  11:00        |          |          
  11:30        |          |          
  12:00        |          |          
  12:30        |          |          
  13:00        |          |          
  13:30        |          |          
  14:00        |          |          
  14:30        |          |          
  15:00        |          |          
  15:30        |          |          
  16:00        |          |          
  16:30        |          |          
  17:00        |          |          
  17:30        |          |          
  18:00        |          |          
  18:30        |          |          
  19:00        |          |          
  19:30        |          |          
  20:00        |          |          
  20:30        |          |          
  21:00        |          |          
  21:30        |          |          
  22:00        |          |          
  22:30        |          |          
  23:00        |          |          
  23:30        |          |          
goldenowner@instance-1:~$

``

```

ahhhhhhh!! Yay!!!
so is it working now?
porkupan
@porkupan
Jan 23 2017 15:36 UTC
Well, maybe I effed something up in the NS settings then... Because they definitely did work, and now they definitely don't seem to.
Chris Oattes
@cjo20
Jan 23 2017 15:38 UTC
kmoran02: seems to be
kmoran02
@kmoran02
Jan 23 2017 15:38 UTC
OMG!!! Thank you SOOO much Chris!!!
so if it wanted me to change someyhing it would be under autotune?
Chris Oattes
@cjo20
Jan 23 2017 15:39 UTC
hmm, actually, it doesn't seem to be recommending any changes, which isn't what I see when I run your data. What day did you run for?
scarral
@scarral
Jan 23 2017 15:43 UTC
I'm not getting any changes either. It would be nice to fibd out why.
kmoran02
@kmoran02
Jan 23 2017 16:14 UTC
sorry chris, I stepped out. Its not recommending any changes because I only just yesterday evening started entering in carbs and insulin. At least I'm pretty sure that's why.
Chris Oattes
@cjo20
Jan 23 2017 16:19 UTC
Which date did you run it for?
Also, which version of oref0 are you using? dev?
Roumen Georgiev
@PoweRGbg
Jan 23 2017 16:29 UTC
Guys I'm trying to run autotune from command line but it's non-responsive for more than 15 mins now ( only 1 day of data )
it creates ns-treatments.json and stucks
Chris Oattes
@cjo20
Jan 23 2017 16:46 UTC
what command did you try running?
Roumen Georgiev
@PoweRGbg
Jan 23 2017 16:48 UTC
oref0-autotune --dir=~/myopenaps --ns-host=https://roumen.azurewebsites.net --start-date=2017-01-21
i tried running it for 20017-01-21
sorry
Chris Oattes
@cjo20
Jan 23 2017 16:54 UTC
If someone asks what you ran, it's generally better to copy and paste what you ran rather than retyping it
because then they get to see if you made any typos
Roumen Georgiev
@PoweRGbg
Jan 23 2017 16:56 UTC
I'm sorry but my virtual machine dosn't support copy-paste :(
Dana Lewis
@danamlewis
Jan 23 2017 17:27 UTC
@scarral wondering - by any chance so you have xdrip as your data source in NS?
Dana Lewis
@danamlewis
Jan 23 2017 17:37 UTC
@cjo20 @walker0 :+1: and thanks for helping out w troubleshooting
Chris Oattes
@cjo20
Jan 23 2017 17:38 UTC
:) No problem. Not sure how much I achieved :P
Dana Lewis
@danamlewis
Jan 23 2017 17:40 UTC
@PoweRGbg did you try to cancel (control c) and do with another date of data instead? Any different results?
Tim Street
@tim2000s
Jan 23 2017 17:42 UTC
@porkupan It depends on the sensors. I was running using the 640G for a bit to provide glucose levels and when it went in to calibration mode it consistently provided a glucose level of 44. I wasn't aware that it did this (nor was anyone else it seems) and obviously it high temped. Having the safety catch in place stopped me from suffering issues. The other point is that oref0 can only ever offer up a TBR, and that's over 30 mins by the way the pump operates. If you are very high and need to come down, you're far safer doing a correction bolus based on the difference between the predicted glucose level and your target glucose level.
porkupan
@porkupan
Jan 23 2017 17:49 UTC
@tim2000s I guess I need to try to figure out why I don't seem to be getting the "Urgent High" alarm then. It's enabled, and threshold set to 260. Never triggered. Son's BG was > 300 most of the night.
As far as allowing to set the basal > 3x normal rate, this (in my opinion) should be allowed when stubborn high is detected. If not allowed, an alarm to user prompting to check BG and bolus might help.
Chris Oattes
@cjo20
Jan 23 2017 17:51 UTC
porkupan: How do you differentiate between a stubborn high and a bad sensor?
Tim Street
@tim2000s
Jan 23 2017 17:51 UTC
@porkupan It's possible to set the max basal rate higher. You just need to be comfortable that you know what you're doing and understand the consequences.
Chris Oattes
@cjo20
Jan 23 2017 17:51 UTC
And the alarm is what NS is for, I don't know why yours isn't working
Tim Street
@tim2000s
Jan 23 2017 17:51 UTC
Is your sound turned off?
Dana Lewis
@danamlewis
Jan 23 2017 17:52 UTC
@porkupan yea, sounds like you might want to check NS settings for alarms, and reconsider how you have your CGM alarm, too, if wanting more alerts for BG at certain levels
But also, if BG that high that long, there might be something else going on that needs investigating (bad site, etc) too
taylorfowler
@taylorfowler
Jan 23 2017 17:53 UTC
heeeeey guys,
quick auto tune question
porkupan
@porkupan
Jan 23 2017 17:54 UTC
@cjo20 Well, I am not sure how to differentiate. Should be able to rely upon Dexcom algorithm though - if it thinks it's able to detect BG, assume it's not a bad sensor?
taylorfowler
@taylorfowler
Jan 23 2017 17:55 UTC

running in a vm, and getting this error:
'''
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
/home/taylor/src/oref0/nodemodules/timezone/index.js:153
} else if (/^\w{2,3}
\w{2}$/.test(argument.name)) {
^

TypeError: Cannot read property 'name' of undefined
at Object.convert (/home/taylor/src/oref0/node_modules/timezone/index.js:153:51)
at /home/taylor/src/oref0/node_modules/timezone/index.js:347:39
at calcTempTreatments (/home/taylor/src/oref0/lib/iob/history.js:110:44)
at generate (/home/taylor/src/oref0/lib/iob/index.js:9:22)
at categorizeBGDatums (/home/taylor/src/oref0/lib/autotune-prep/categorize.js:167:19)
at generate (/home/taylor/src/oref0/lib/autotune-prep/index.js:22:30)
at Object.<anonymous> (/home/taylor/src/oref0/bin/oref0-autotune-prep.js:91:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
Could not parse input data: [SyntaxError: Unexpected end of input]
'''

ugh stupid markdown...you get the idea though. Spits out the table, but no reccomendations
porkupan
@porkupan
Jan 23 2017 17:55 UTC
@tim2000s Max basal set to 6. Normal basal for the night set to 0.75.
Roumen Georgiev
@PoweRGbg
Jan 23 2017 17:56 UTC
@danamlewis sorry but the error was a typo for now it outputs something but no results, and I'm trying to find out what's wrong ( no CSF in settings )
Chris Oattes
@cjo20
Jan 23 2017 17:56 UTC
If you're not sure how to differentiate, I'm not sure how you expect the dexcom to differentiate. The software gets a number from the hardware. It reports that number. It can't check whether it's right or not. The safety features are there to protect people in case those numbers aren't reliable.
Dana Lewis
@danamlewis
Jan 23 2017 17:57 UTC
@porkupan that's why. Setting a basal of 6 when normal is .75 is pretty extreme. Do you consistently get highs? Then maybe underlying basal too low? If this was a not usual situation, then miscalculated carbs, or bad site or sensor?
porkupan
@porkupan
Jan 23 2017 17:58 UTC
@danamlewis The NS alarm settings appear to be correct. They have not changed since before enabling the OpenAPS. Son routinely sleeps through CGM receiver alarms (I don't).
Dana Lewis
@danamlewis
Jan 23 2017 17:58 UTC
@taylorfowler which directions are you following? Phase a or phase c?
taylorfowler
@taylorfowler
Jan 23 2017 17:58 UTC
C
Dana Lewis
@danamlewis
Jan 23 2017 17:58 UTC
@porkupan is volume on, though? Might want to do some testing to ensure.
taylorfowler
@taylorfowler
Jan 23 2017 17:58 UTC
Just running it in a vm at work
looks like NS data loads fine
Dana Lewis
@danamlewis
Jan 23 2017 17:59 UTC
@taylorfowler k. But you have an OpenAPS profile.json...check all 3 profile files, one might have gotten messed up
taylorfowler
@taylorfowler
Jan 23 2017 17:59 UTC
Yeah
that's where I started
porkupan
@porkupan
Jan 23 2017 17:59 UTC
@danamlewis Yes, volume is on.
Chris Oattes
@cjo20
Jan 23 2017 18:00 UTC
@porkupan persistent highs are dealt with to an extent by autosens. But you still don't want the pump to be able to push 8 hours worth of insulin in 1 hour.
taylorfowler
@taylorfowler
Jan 23 2017 18:00 UTC
still no dice
eventualy just blew them all away and used the example json with rates plugged in
Dana Lewis
@danamlewis
Jan 23 2017 18:00 UTC
@porkupan I'm not the best person to help troubleshoot whAt NS alarm settings should be at - might be worth posting in CGMITC there? Someone can help you check all the places alarms and volumes are set...
@taylorfowler and did that work? If not, maybe paste your example profile so we can help spot what might be the problem there
porkupan
@porkupan
Jan 23 2017 18:01 UTC
@cjo20 / @danamlewis We don't routinely get stubborn highs like this. That's probably a consequence of a swim team pasta party last night.
Dana Lewis
@danamlewis
Jan 23 2017 18:02 UTC
Oomph,sounds like.
Chris Oattes
@cjo20
Jan 23 2017 18:02 UTC
Then don't circumvent safety measures for a one-off
Dana Lewis
@danamlewis
Jan 23 2017 18:02 UTC
Miscalculated carbs then. And ^^ ditto. Better to rely on alarms and manually fix for that scale of miscalculation.
StuArnold
@StuArnold
Jan 23 2017 18:03 UTC
blob
@taylorfowler I think I am getting the same error as you on a raspi2 and now on a HP 40L
porkupan
@porkupan
Jan 23 2017 18:03 UTC
Yeah, that's why I am concerned that the alarms didn't show last night...
Dana Lewis
@danamlewis
Jan 23 2017 18:04 UTC
@StuArnold is your BG source xdrip or ? And you have treatment data in NS ?
taylorfowler
@taylorfowler
Jan 23 2017 18:04 UTC
@danamlewis
'
{
"min_5m_carbimpact": 3,
"dia": 3.5,
"basalprofile": [
{
"i": 0,
"start": "00:00:00",
"minutes": 0,
"rate":1.0
}
],
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 25,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 8,
"autosens_max": 1.2,
"autosens_min": 0.7
}
'
StuArnold
@StuArnold
Jan 23 2017 18:04 UTC
yes we use xdrip and we have treatments (inc temp basal) in Careportal
Dana Lewis
@danamlewis
Jan 23 2017 18:04 UTC
@taylorfowler for kicks, change your 3.5 to either 3 or 4 and see what that does
@StuArnold ah, that may be it
We need some help testing to validate that from xdrip sources
taylorfowler
@taylorfowler
Jan 23 2017 18:05 UTC
@dana kk. It does look like the same error as @StuArnold and I'm also using Xdrip...
Dana Lewis
@danamlewis
Jan 23 2017 18:05 UTC
Check out autotune-MDI instead of dev
Ok do that :smile: branch to test
taylorfowler
@taylorfowler
Jan 23 2017 18:05 UTC
Whoops, wrong Dana...
Dana Lewis
@danamlewis
Jan 23 2017 18:05 UTC
No worries ;)
taylorfowler
@taylorfowler
Jan 23 2017 18:06 UTC
Willlll do. will report back if that fixes it
David Cintron
@loudestnoise
Jan 23 2017 18:06 UTC
I’m getting something similar :cry:
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-20.json profile.json profile.pump.json > newprofile.1.2017-01-20.json
/root/src/oref0/lib/autotune/index.js:49
        hourlyBasalProfile[i].i=i;
                               ^

TypeError: Cannot set property 'i' of undefined
    at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:49:32)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-21.json > autotune.1.2017-01-21.json
Could not parse input data:  [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-21.json profile.json profile.pump.json > newprofile.1.2017-01-21.json
Could not parse input data:  [SyntaxError: Unexpected end of input]
~/src/oref0/bin/oref0-autotune-prep.js ns-treatments.json profile.json ns-entries.2017-01-22.json > autotune.1.2017-01-22.json
Error: carb_ratio undefined out of bounds
~/src/oref0/bin/oref0-autotune-core.js autotune.1.2017-01-22.json profile.json profile.pump.json > newprofile.1.2017-01-22.json
/root/src/oref0/lib/autotune/index.js:14
    var ISF = isfProfile.sensitivities[0].sensitivity;
                        ^

TypeError: Cannot read property 'sensitivities' of undefined
    at tuneAllTheThings (/root/src/oref0/lib/autotune/index.js:14:25)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-autotune-core.js:59:27)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
trying out this fancy pants autotune
Dana Lewis
@danamlewis
Jan 23 2017 18:06 UTC
See https://github.com/openaps/oref0/issues/341#issuecomment-274401041 and please comment there if that fixes @taylorfowler @StuArnold and anyone else with x drip as BG data source for NS
I also have a hunch that a .5 dia may mess it up, so please confirm with a test of a whole number dia too at some point
Roumen Georgiev
@PoweRGbg
Jan 23 2017 18:07 UTC
I'm also using xdrip+ as a soft uploading BG
taylorfowler
@taylorfowler
Jan 23 2017 18:08 UTC
@danamlewis :thumbsup: Will do.
Dana Lewis
@danamlewis
Jan 23 2017 18:08 UTC
Thx
StuArnold
@StuArnold
Jan 23 2017 18:09 UTC
will do - is the switch to the other branch just the 2 lines of step 2 switching dev for autotune-mdi instead
David Cintron
@loudestnoise
Jan 23 2017 18:10 UTC
does my profile.json look right? I only have one basal, so I removed the other ones from the example
{
  "min_5m_carbimpact": 3,
  "dia": 3,
  "basalprofile": [
    {
      "i": 0,
      "start": "00:00:00",
      "minutes": 1440,
      "rate": 1.7
    }
  ],
  "isfProfile": {
    "sensitivities": [
      {
        "i": 0,
        "start": "00:00:00",
        "sensitivity": 28,
        "offset": 0,
        "x": 0,
        "endOffset": 1440
      }
    ]
  },
  "carb_ratio": 12,
  "autosens_max": 1.2,
  "autosens_min": 0.7
}
I wasn’t sure if I was supposed to put something for minutes for the basal profile
since my one and only basal lasts all day, 1440 minutes
StuArnold
@StuArnold
Jan 23 2017 18:11 UTC
I also have a 2.5 in my DIA so will check that out later
Scott Leibrand
@scottleibrand
Jan 23 2017 18:11 UTC
First basal profile should have minutes as zero. It's start time, not duration.
Dana Lewis
@danamlewis
Jan 23 2017 18:11 UTC
@StuArnold correct, and thanks
David Cintron
@loudestnoise
Jan 23 2017 18:12 UTC
Roger that @scottleibrand
ooooh it worked
neato
Dana Lewis
@danamlewis
Jan 23 2017 18:14 UTC
:+1:
Does it think you should only have one basal?
David Cintron
@loudestnoise
Jan 23 2017 18:14 UTC
ha, nope
it’s recommending less than a unit difference though throughout the day
I had it use just the last 3 days
let me see what it says with more days in there
StuArnold
@StuArnold
Jan 23 2017 18:19 UTC
blob
Thanks @danamlewis That worked I now have some recommendations even with the 2.5 still in place
Thank you so much this is really going to be a great help
Dana Lewis
@danamlewis
Jan 23 2017 18:20 UTC
Great!
(Maybe run with a full number dia and same set of data, just to see if it does something different for isf?)
Also: https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-4/understanding-autotune.md everyone should also be reading and sharing this, when helping others troubleshoot - if people are missing data, this is a general what output you would want to consider vs what we know you should not consider, based on inputs
PRs (edits, additions) welcome to improve both pages of the docs, of course :smile:
Roumen Georgiev
@PoweRGbg
Jan 23 2017 18:26 UTC
blob
Any ideas ?
Dana Lewis
@danamlewis
Jan 23 2017 18:27 UTC
Paste your sensitivities from profile.json?
Roumen Georgiev
@PoweRGbg
Jan 23 2017 18:28 UTC
"isfProfile": {
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 58,
"offset": 0,
"x": 0,
"endOffset": 1440
}
]
},
"carb_ratio": 10,
"autosens_max": 1.2,
"autosens_min": 0.7
}
Chris Oattes
@cjo20
Jan 23 2017 18:30 UTC
oh dear. "Tune All the things" <- good function naming
Dana Lewis
@danamlewis
Jan 23 2017 18:30 UTC
;)
Chris Oattes
@cjo20
Jan 23 2017 18:33 UTC
The error looks like it's in profile.pump.json
katie disimone
@Kdisimone
Jan 23 2017 18:34 UTC
Can anyone please help me setup server auditor app?
Roumen Georgiev
@PoweRGbg
Jan 23 2017 18:35 UTC
profile.pump.json doesn't exist and pumpprofile.json is a copy of profile.json
katie disimone
@Kdisimone
Jan 23 2017 18:35 UTC
I have my Edison connected via hotspot to my iPhone. Have scanned and gotten rig's IP address. But now not able to figure out how to get server auditor host/terminal entered and working correctly.
Scott Leibrand
@scottleibrand
Jan 23 2017 18:36 UTC
@Kdisimone I'm not quite following: what is the question?
katie disimone
@Kdisimone
Jan 23 2017 18:37 UTC
@scottleibrand I am just unable to figure out what to put on which lines in the app to get ssh working with that app
like these lines…I think?
16251467_10154909785501168_1151181035_o.jpg
Scott Leibrand
@scottleibrand
Jan 23 2017 18:40 UTC
those look correct. maybe give that config an alias too. what happens when you save that?
I think alias is optional, though, and it will just show the root@172.20.10.15 if you don't want to specify it
katie disimone
@Kdisimone
Jan 23 2017 18:41 UTC
I get “search permission is denied for a component of the path prefix"
16229757_10154909559311168_2062277733_o.png
assuming I interpreted my IP addresses correctly from scanning while edison was connected to my hotspot?
Scott Leibrand
@scottleibrand
Jan 23 2017 18:42 UTC
yeah, that IP is correct. I can't be sure it's your rig, but it exists
I've never heard of "search permission is denied for a component of the path prefix" - where do you see that?
scarral
@scarral
Jan 23 2017 18:44 UTC
Hi, @danamlewis ! The SG values are uploaded with the 640G uploader to my NS website, the treatments are sent by HAPP through NS Client.
I don't have xDrip.
katie disimone
@Kdisimone
Jan 23 2017 18:44 UTC
16325438_10154909823251168_156380381_o.jpg
Scott Leibrand
@scottleibrand
Jan 23 2017 18:44 UTC
@scarral you might have yet another format for your carbs and insulin data then
katie disimone
@Kdisimone
Jan 23 2017 18:45 UTC
It feels like my rig is locking me out?
Scott Leibrand
@scottleibrand
Jan 23 2017 18:45 UTC
@Kdisimone some googling shows that error is actually a really low level BSD thing. seems more like an iOS thing
if your rig were rejecting your ssh attempt you'd get a more sensible error
scarral
@scarral
Jan 23 2017 18:46 UTC
@scottleibrand how can we find out what format my treatments are in?
Scott Leibrand
@scottleibrand
Jan 23 2017 18:46 UTC
look at the ns-treatment.json file in the autotune directory
we probably only need to see one example that has carbs and insulin
StuArnold
@StuArnold
Jan 23 2017 18:47 UTC
@danamlewis tried DIA at 2 and 3 instead of 2.5 and results are identical. I amended all 3 files the same and ran for the same time periods
Scott Leibrand
@scottleibrand
Jan 23 2017 18:47 UTC
@StuArnold good feedback, thx
scarral
@scarral
Jan 23 2017 18:48 UTC
That directory has all kinds of files with the date of today and lots of different times (when I've run autotune): newprofile, autotune, profile, ns-entries, but only one ns-treatments.json file which is empty: []
katie disimone
@Kdisimone
Jan 23 2017 18:48 UTC
So i can start crying now? i hate finding errors like these. :sad:
scarral
@scarral
Jan 23 2017 18:48 UTC
Maybe autotune doesn't understand what HAPP uploads to NS?
Scott Leibrand
@scottleibrand
Jan 23 2017 18:49 UTC
@scarral that is my theory, yes. but sounds like it's not autotune that's the problem, if it can't even download your treatments
want to PM me your NS URL?
k
Geoff Aumaugher
@geoffro10
Jan 23 2017 18:51 UTC
Does the exercise option in care portal have any use in any of the OpenAPS/oref0 calculations?
Dana Lewis
@danamlewis
Jan 23 2017 18:52 UTC
@geoffro10 no, not right now
Geoff Aumaugher
@geoffro10
Jan 23 2017 18:52 UTC
:+1:
scarral
@scarral
Jan 23 2017 18:56 UTC
Oh now I get data in ns-treatments.json. I just have to start from a date that had data!
Dana Lewis
@danamlewis
Jan 23 2017 18:56 UTC
:+1:
Scott Leibrand
@scottleibrand
Jan 23 2017 18:56 UTC
ah, that'd do it. :)
scarral
@scarral
Jan 23 2017 18:56 UTC
here's the first bit of the file:
[{"_id":"5877c3338b924f1820351358","insulin":0.85,"note":"bolus","eventType":"Bolus","created_at":"2017-01-12T18:55+0100","enteredBy":"HAPP_App","aps_integration_id":"7c4ab356-8107-48c1-b6c5-2f4fce67a062","NSCLIENT_ID":1484243740076,"carbs":null},{"_id":"5877c31a8b924f1820351357","carbs":24,"eventType":"Carbs","created_at":"2017-01-12T18:55+0100","enteredBy":"HAPP_App","aps_integration_id":"b6ffcda4-106a-4149-853c-ec68d7d3bafd","NSCLIENT_ID":1484243731071,"insulin":null},{"_id":"5876ba699d898d281fbc6b21","eventType":"Temp Basal","absolute":0,"duration":30,"created_at":"2017-01-12T00:03+0100","enteredBy":"HAPP_App","aps_integration_id":"47d599c5-7284-43df-9a90-a7cf3e983e6b","NSCLIENT_ID":1484175837694,"carbs":null,"insulin":null},{"_id":"5876b1399d898d281fbc6b19","insulin":0.125,"note":"correction","eventType":"Bolus","created_at":"2017-01-11T23:26+0100","enteredBy":"HAPP_App","aps_integration_id":"c66c848a-44c7-49a7-b828-edfb7688accb","NSCLIENT_ID":1484173601318,"carbs":null},{"_id":"5876a5e19d898d281fbc6b0e","insulin":0.25,"note":"correction","eventType":"Bolus","created_at":"2017-01-11T22:38+0100","enteredBy":"HAPP_App","aps_integration_id":"419920c6-0221-40ea-b851-5d652922cccd","NSCLIENT_ID":1484170693000,"carbs":null},{"_id":"5876a0bd9d898d281fbc6b08","eventType":"Temp Basal","created_at":"2017-01-11T22:15+0100","enteredBy":"HAPP_App","aps_integration_id":"762d54be-c4ab-4e2a-b664-50a9be73fc9b","NSCLIENT_ID":1484169362954,"carbs":null,"insulin":null},{"_id":"5876999e9d898d281fbc6b01","eventType":"Temp Basal","absolute":0,"duration":30,"created_at":"2017-01-11T21:45+0100","enteredBy":"HAPP_App","aps_integration_id":"fe85d82e-7120-4ada-9550-c3ea3ec044ae","NSCLIENT_ID":1484167558937,"carbs":null,"insulin":null}
Scott Leibrand
@scottleibrand
Jan 23 2017 18:57 UTC
I think that'll require the autotune-mdi branch to parse properly
katie disimone
@Kdisimone
Jan 23 2017 18:58 UTC
@scottleibrand if I scan the ports on that IP address that appears to be my edison, it says no open ports. Does this mean a problem?
Scott Leibrand
@scottleibrand
Jan 23 2017 18:58 UTC
@Kdisimone at this point I would log into the Edison via USB console and do ifconfig on it to confirm its IP
taylorfowler
@taylorfowler
Jan 23 2017 19:01 UTC
@danamlewis @scottleibrand @scarral mdi branch worked (I'm using xdrip + Happ, too)
Dana Lewis
@danamlewis
Jan 23 2017 19:01 UTC
@taylorfowler great, thanks for the feedback!
katie disimone
@Kdisimone
Jan 23 2017 19:02 UTC
Ok…here’s where I’m still more confused.
Scott Leibrand
@scottleibrand
Jan 23 2017 19:03 UTC
@Kdisimone the only way to tell for sure if your rig is online is to log into it. and the only way to do that reliably if you're not sure if/how it's online is via the USB UART port, like you did when first flashing it
katie disimone
@Kdisimone
Jan 23 2017 19:04 UTC
iMac4K_—_ssh_root_edisonhost_local_—_107×58.jpg
@Kdisimone so your rig is on your home wifi, not your hotspot
192.168.1.12 is its wifi IP address
katie disimone
@Kdisimone
Jan 23 2017 19:05 UTC
So, my computer is connected to the internet via my hotspot right now….
taylorfowler
@taylorfowler
Jan 23 2017 19:05 UTC
Also, @danamlewis it worked fine with the 3.5 DIA
Scott Leibrand
@scottleibrand
Jan 23 2017 19:06 UTC
did you configure your rig to connect to the hotspot?
taylorfowler
@taylorfowler
Jan 23 2017 19:06 UTC
(and the 4 obvs)
Tim Street
@tim2000s
Jan 23 2017 19:06 UTC
@Kdisimone there your problem. You were trying to connect to something on your iPhone.
katie disimone
@Kdisimone
Jan 23 2017 19:06 UTC
i’m trying to figure out a way to still post screen shots on gitter…not the easiest.
Dana Lewis
@danamlewis
Jan 23 2017 19:06 UTC
@taylorfowler 10:4, thank you!
katie disimone
@Kdisimone
Jan 23 2017 19:06 UTC
oh god, guys, i’m sorry im so turned around right now. feel like i need to start over
Tim Street
@tim2000s
Jan 23 2017 19:06 UTC
You need to connect you iPhone to your hotspot
Scott Leibrand
@scottleibrand
Jan 23 2017 19:06 UTC
@tim2000s I think her iPhone is her hotspot
katie disimone
@Kdisimone
Jan 23 2017 19:06 UTC
MY iphone is my hotspot?
Scott Leibrand
@scottleibrand
Jan 23 2017 19:06 UTC
lol
katie disimone
@Kdisimone
Jan 23 2017 19:06 UTC
yes
Scott Leibrand
@scottleibrand
Jan 23 2017 19:07 UTC
@Kdisimone did you ever edit wpa_supplicant to add your iphone hotspot as a network?
katie disimone
@Kdisimone
Jan 23 2017 19:07 UTC
iMac4K_—_ssh_root_edisonhost_local_—_107×58.jpg
and I feel like it IS connected to my iphone wifi
i mean iphone hotspot
Scott Leibrand
@scottleibrand
Jan 23 2017 19:07 UTC
ah, you may be right
katie disimone
@Kdisimone
Jan 23 2017 19:07 UTC
that’s the name of it.
Scott Leibrand
@scottleibrand
Jan 23 2017 19:07 UTC
it may just not have gotten a new IP address properly
try running oref0-online on the rig: it'll check if it can ping Google, and if not, will reset the wifi
Tim Street
@tim2000s
Jan 23 2017 19:07 UTC
It hasn't.
It's got the standard home router ip
katie disimone
@Kdisimone
Jan 23 2017 19:08 UTC
I get a prompt asking for IP
then error cycling network
Scott Leibrand
@scottleibrand
Jan 23 2017 19:09 UTC
then what ESSID and IP address after it's done?
katie disimone
@Kdisimone
Jan 23 2017 19:09 UTC
ahhh...
iMac4K_—_ssh_root_edisonhost_local_—_107×58_and_Facebook.jpg
Scott Leibrand
@scottleibrand
Jan 23 2017 19:10 UTC
if you install oref0 dev with the bluetooth option, it puts oref0-online into cron. but that might also be useful just for wifi switching
* * * * * ps aux | grep -v grep | grep -q "oref0-online" || oref0-online >> /var/log/openaps/network.log
katie disimone
@Kdisimone
Jan 23 2017 19:13 UTC
well the app doesn’t connect using that IP address either
wait…had typo
Tim Street
@tim2000s
Jan 23 2017 19:13 UTC
While we're discussing networks, @scottleibrand have you ever seen the Edison lose its DNS on the network (host name and IP address becomes unreachable) whilst retaining full network connectivity and allowing uploading and downloading with NS? It's happened twice to me today.
katie disimone
@Kdisimone
Jan 23 2017 19:15 UTC
logout << oops, wrong screen
Dana Lewis
@danamlewis
Jan 23 2017 19:16 UTC
@scarral @StuArnold @taylorfowler and anyone else who got troubleshooting help this morning on autotune - I just added a new section to the docs (https://github.com/openaps/docs/blob/master/docs/docs/walkthrough/phase-4/autotune.md#why-isnt-it-working-at-all) to try to capture the most common things we know people run into. Does this cover what you had to do to fix your error? If not, let me know and I can add it in, or you can PR this page and make the fix yourself :). Other PRs to make this section of the docs more helpful are welcome as well!
katie disimone
@Kdisimone
Jan 23 2017 19:19 UTC
i’m getting connection timeout errors on the app now
when i use the 70.213.10.255 IP address
Dana Lewis
@danamlewis
Jan 23 2017 19:20 UTC
awesome @taylorfowler - thanks for the PR :)
taylorfowler
@taylorfowler
Jan 23 2017 19:21 UTC
@danamlewis :thumbsup:
katie disimone
@Kdisimone
Jan 23 2017 19:21 UTC
16231295_10154909937196168_456109611_o.jpg
is my concept here correct? like it seems like i have a good IP address for the rig? just unknown why it isn’t connecting?
alternateal
@alternateal
Jan 23 2017 19:27 UTC
@Kdisimone - keep digging, I have been having this problem where my rig connects to my iPhone, I get the blue bar and then nothing happens...so I am listening out to this one to see if I can fix. I have got round it for now by using a mifi hub :-(
katie disimone
@Kdisimone
Jan 23 2017 19:28 UTC
LOL, I had the opposite problem I think last night. Rig was connected to hotspot, no blue bar. But looping was going. BIZARRE
And I swear it was on my hotspot home wifi was unplugged and off