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

26th
Jul 2016
Paul Martin
@Spazholio
Jul 26 2016 00:02
@rafaelmatuk Do you have your serial and/or mac address entered in the requisite .ini file?
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:02
yes - I have both
I may just re do the rig - seems odd
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:13
just one question though: should I install openxshareBLE and the rest of the bluetooth components as edison or as root? that may be the issue I think
Paul Martin
@Spazholio
Jul 26 2016 00:16
I do everything as edison but invoke sudo as needed.
Are you using the Edison breakout board? Or the Sparkfun?
val-albany
@val-albany
Jul 26 2016 00:18
I have Sparkfun.
Paul Martin
@Spazholio
Jul 26 2016 00:19
@val-albany How about you? Sparkfun or the Edison breakout?
I think @jasoncalabrese is using the breakout, as am I. I’m wondering if this issue is specific to the Sparkfun?
val-albany
@val-albany
Jul 26 2016 00:19
Would the board really matter?
Paul Martin
@Spazholio
Jul 26 2016 00:19
I’m looking for commonalities here.
val-albany
@val-albany
Jul 26 2016 00:20
Understood :)
Jason Calabrese
@jasoncalabrese
Jul 26 2016 00:20
I'm using the Intel breakout board, but it shouldn't matter
Paul Martin
@Spazholio
Jul 26 2016 00:20
I mean, using the Pi3, I couldn’t get this working with the onboard BT. No matter WHAT I tried. Popped in a BT dongle and BAM! Worked like a champ. There’s no reason that should be, but…there it was.
Jason Calabrese
@jasoncalabrese
Jul 26 2016 00:21
Using Ubilinux, updated to Jessie?
Paul Martin
@Spazholio
Jul 26 2016 00:21
@jasoncalabrese Have you ever used the Sparkfun to get this working? I agree, it shouldn’t matter, but even though there’s only two people, these two people have the same thing in common, and they’re each getting the exact same error.
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:22
@jasoncalabrese I am using the sparkfun for the edison using ubilinux upgraded as per the instructions. openaps with the TI stick works well...
Jason Calabrese
@jasoncalabrese
Jul 26 2016 00:22
I haven't tried my sparkfun rig with bluez 1.37, but I couldn't get it to work with 1.35
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:23
you mean 5.37?
brb
Jason Calabrese
@jasoncalabrese
Jul 26 2016 00:23
1 of my rigs it wouldn't work, but since that was my first rig I reflashed and stared from scratch
Yes, 5.37
Just remember the last 2 digits
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 26 2016 00:25
@GabeA23 yes and 50$ for the TI Debugger if your loading firmware. The most money to be made in the software business is in developer tools. No doubt iOS is a premium brand. Not necessarily better but a brand. It's much less than my 5000$ for a Microsoft MSDN Lic. And then 25$ for Android.
The RL can be used without iOS but Loop well it's an iOS app. We can put it in the Loop Docs I was thinking of putting together a list of costs in my walkthrough and will put it in. Thanks
val-albany
@val-albany
Jul 26 2016 00:28
I am using the ubilinix as well.. followed directions from the mmeowlink wiki, with side trip into https://github.com/scottleibrand/aps-scripts/blob/master/openxshareble_instructions.md for the openxshareble stuff
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:34
I am going to try once more and reflash...this does not work on the RPi, right? The whole thing is that I want a small rig for complete mobility without the need for internet access, specially during the long commutes or during long travel
val-albany
@val-albany
Jul 26 2016 00:37
hey I do have one side issue I have noticed with my edison.. when it boots it always says in the putty window on my PC "Give root password for maintenance (or type control-d to continue) and until I do that in putty I can't ssh to it from my mac.. any idea where to look to turn that off?
rafaelmatuk
@rafaelmatuk
Jul 26 2016 00:38
val-albany
@val-albany
Jul 26 2016 00:41
thanks - missed that somehow. Probably missed something else, which is why the darn thing isn't working... sigh. Signing off now, I get up early and need to find something less frustrating for a little bit before bed. I probably won't have time to do much until thursday after work, but I will keep up with the postings and hope there is a silver bullet for this :)
Paul Martin
@Spazholio
Jul 26 2016 00:47
I religiously followed the directions step-by-step the last time I did this - and still missed something. It was a little thing, and easily remedied, but it just goes to show that it can happen. =)
GabeA23
@GabeA23
Jul 26 2016 00:55
@jlucasvt Holy crap! It costs $5,000 to develop windows apps? I'm happy to pay the $99 (all of the openAPS tools are worth well beyond their start-up costs) I just think it would be nice to be able to estimate costs up front. I think adding it to the walkthrough is a great idea!
Jason Calabrese
@jasoncalabrese
Jul 26 2016 00:56
It's always a little thing
Jeremy M Lucas (GetRileyLink.org)
@jlucasvt
Jul 26 2016 01:15
Yep Visual Studio Enterprise with MSDN 5999$. Per year.
Paul Martin
@Spazholio
Jul 26 2016 01:22
Is the Enterprise version necessary?
Because if so…holy hell.
Julie
@julieraines
Jul 26 2016 01:28

I’m trying to learn how to decipher some exceptions in my loop so when I see this:

Traceback (most recent call last):

do I look at the previous line to see where the exception is occurring? (i.e. reporting raw-pump/bg-targets-raw.json)

Scott Leibrand
@scottleibrand
Jul 26 2016 01:29
no, the last one of the following output
Julie
@julieraines
Jul 26 2016 01:31

So I’m focusing on the keyerror?Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')

blah blah blah>>>>>
device = app.devices[report.fields['device']]
KeyError: 'units'

Ben West
@bewest
Jul 26 2016 01:34
it's trying to run some report, but it's not clear which one
there's something about the config for that report that is causing it to fail, it looks likely that maybe it's trying to use a device called units, but not 100% sure
Julie
@julieraines
Jul 26 2016 01:37
Here is the entire enchilada (and I don’t have a device called units so if it’s trying to use one then that would definitely kick it back - not sure how I would end up with a report that does that)
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'units'
Ben West
@bewest
Jul 26 2016 01:51
usually when reports invoke, it prints, the name of the report to invoke, then invokes it, then prints the report that was invoked
when there's an error, usually the snippet right above will say which report it was trying to invoke when the error happened
Julie
@julieraines
Jul 26 2016 01:55
which makes sense because that was:
reporting raw-pump/bg-targets-raw.json
so I looked at my pump bg-targets and they look fine on the pump and the units are set correctly mg/dl
Ali Mazaheri
@amazaheri
Jul 26 2016 01:56
@GabeA23 @jlucasvt not related to the topics for this channel, but you don't need to pay $5000 to build apps for Windows, the cost is $19 for individual and $99 for companies. You can for sure use the free Visual Studio Community edition or open source version Code for your development. Not related to OpenAPS or Loop. $5000 comes with access to enterprise features, a whole lot of software and services.
Ben West
@bewest
Jul 26 2016 02:03
@julieraines try: openaps report invoke raw-pump/bg-targets-raw.json
if it's that one, it should produce the same error, right?
mariano42
@mariano42
Jul 26 2016 02:21
@Aaybob thanks! yes, @dm61 's suggestion worked.
Mitchell Slep
@moomoobloo
Jul 26 2016 04:21
what do I need to upload pump data to the Medtronic Carelink site for sharing with our endo? Can this be done with a TI stick or only with the official Carelink stick?
Dana Lewis
@danamlewis
Jul 26 2016 04:30
Do you need to share it via carelink? Nightscout reports might be more useful?
Mitchell Slep
@moomoobloo
Jul 26 2016 04:31
actually I want to get it into Tidepool, but it seems Tidepool just syncs with Carelink
I'll check out the Nightscout reports but our practice mostly uses Tidepool so it would be nice to get the data there
mariano42
@mariano42
Jul 26 2016 04:54
ahh.. finally got my uploads to NS working. Still need to add it to my cron, but I am ending the note on a good night with awesome visualizations. :)
Dana Lewis
@danamlewis
Jul 26 2016 04:55
@mariano42 awesome! :)
@moomoobloo there's a Tidepool channel if you want to pop over and ask them
Mitchell Slep
@moomoobloo
Jul 26 2016 04:59
@danamlewis thanks, will ask over there. I take it that means there are no OpenAPS or oref0 tools for uploading to Carelink? I see that Nightscout has a feature to sync data from Carelink but it doesn't look it goes the other direction.
Dana Lewis
@danamlewis
Jul 26 2016 05:00
I don't think anyone's tried to shove data back into Carelink, but @bewest might know?
Martin Haeberli
@mhaeberli
Jul 26 2016 05:32
@danamlewis I had a discussion on one of these channels about a week ago with someone intending to use the Tidepool API to push data from Nightscout into Tidepool, which isn't the same thing but which would also come in very handy. I'll try to remember to track it down in the AM and link to it...
Mitchell Slep
@moomoobloo
Jul 26 2016 05:42
@mhaeberli Nightscout directly to Tidepool would be even better, that way I wouldn't need to use Carelink at all
John Dodds
@johners97
Jul 26 2016 10:10
i have been invoking all the reports in openaps.ini and making sure all the names match where they have to but there is something wrong with oref0
Chris Oattes
@cjo20
Jul 26 2016 10:13
What do you mean by "something wrong"?
Chris Oattes
@cjo20
Jul 26 2016 11:52
Has anyone from the UK tried getting an OpenAPS compatiable pump from medtronic?
Dave Ewall
@daveewall
Jul 26 2016 12:12

@Spazholio It's been a while since you mentioned the 80 character screen issue on the Edison, but I found a fix. Add this to your /etc/screenrc on the Edison (hopefully it comes out right):

  termcapinfo  xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

There's a similar line that has extra stuff at the beginning (search on "80" in the config file), so I commented that out and put the above line in instead. I also added this to my ~/.profile:

export TERM=xterm

Exiting and re-entering screen now widens properly for me, and I use a screen inside a screen. And Ctrl-a,F fixes the issue temporarily if necessary (or Ctrl-a,a,F since I'm in a screen rabbithole). Just thought I'd pass it along.

maciorowski
@maciorowski
Jul 26 2016 13:47

Hi everyone, a quick question from a newb: I am trying to execute 'sudo easy_install -Z openaps
' on raspberry pi 3 model b and get this error:Searching for openaps
Reading https://pypi.python.org/simple/openaps/
Best match: openaps 0.1.5
Downloading https://pypi.python.org/packages/a5/4b/e286078073a257633cfe5e82c0b44b3e95951ef324485fa865a20f01b8a4/openaps-0.1.5-py2.7.egg#md5=6de31eb735b4b27da179a30fdf48746d
Processing openaps-0.1.5-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg
Extracting openaps-0.1.5-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding openaps 0.1.5 to easy-install.pth file
Installing openaps-device script to /usr/local/bin
Installing openaps-report script to /usr/local/bin
Installing openaps-alias script to /usr/local/bin
Installing openaps-use script to /usr/local/bin
Installing openaps-install-udev-rules script to /usr/local/bin
Installing openaps script to /usr/local/bin
Installing git-openaps-init script to /usr/local/bin
Installing openaps-import script to /usr/local/bin
Installing openaps-vendor script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg
Processing dependencies for openaps
Searching for dexcom-reader>=0.1.8
Reading https://pypi.python.org/simple/dexcom_reader/
Best match: dexcom-reader 0.1.10
Downloading https://pypi.python.org/packages/f8/b6/553601a17d28f4860db8051a2574b120bdfb133f0355316278e05cff9f50/dexcom_reader-0.1.10-py2.7.egg#md5=b67fae45be5324c442d4014d51bb70f5
Processing dexcom_reader-0.1.10-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/dexcom_reader-0.1.10-py2.7.egg
Extracting dexcom_reader-0.1.10-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding dexcom-reader 0.1.10 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/dexcom_reader-0.1.10-py2.7.egg
Searching for decocare>0.0.26
Reading https://pypi.python.org/simple/decocare/
Best match: decocare 0.0.30
Downloading https://pypi.python.org/packages/63/8c/19831e693b227cfa81cf3aea5bd89bbd93a3f392ca5ca43c170240a674d7/decocare-0.0.30-py2.7.egg#md5=10c844bb8765125dbf9a3644a9841b40
Processing decocare-0.0.30-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg
Extracting decocare-0.0.30-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding decocare 0.0.30 to easy-install.pth file
Installing mm-set-rtc.py script to /usr/local/bin
Installing mm-pretty-csv script to /usr/local/bin
Installing mm-press-key.py script to /usr/local/bin
Installing mm-temp-basals.py script to /usr/local/bin
Installing mm-bolus.py script to /usr/local/bin
Installing mm-latest.py script to /usr/local/bin
Installing mm-decode-history-page.py script to /usr/local/bin
Installing mm-send-comm.py script to /usr/local/bin
Installing mm-set-suspend.py script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg
Searching for nose
Reading https://pypi.python.org/simple/nose/
Best match: nose 1.3.7
Downloading https://pypi.python.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz#md5=4d3ad0ff07b61373d2cefc89c5d0b20b
Processing nose-1.3.7.tar.gz
Writing /tmp/easy_install-vUlV1f/nose-1.3.7/setup.cfg
Running nose-1.3.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vUlV1f/nose-1.3.7/egg-dist-tmp-o9al6v
no previously-included directories found matching 'doc/.build'
Adding nose 1.3.7 to easy-install.pth file
Installing nosetests script to /usr/local/bin
Installing nosetests-2.7 script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg
Searching for mock
Reading https://pypi.python.org/simple/mock/
Best match: mock 2.0.0
Downloading https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz#md5=0febfafd14330c9dcaa40de2d82d40ad
Processing mock-2.0.0.tar.gz
Writing /tmp/easy_install-zM0USC/mock-2.0.0/setup.cfg
Running mock-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zM0USC/mock-2.0.0/egg-dist-tmp-IKVWy1
Searching

Searching for mock
Reading https://pypi.python.org/simple/mock/
Best match: mock 2.0.0
Downloading https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz#md5=0febfafd14330c9dcaa40de2d82d40ad
Processing mock-2.0.0.tar.gz
Writing /tmp/easy_install-zM0USC/mock-2.0.0/setup.cfg
Running mock-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zM0USC/mock-2.0.0/egg-dist-tmp-IKVWy1
Searching for setuptools>=17.1
Reading https://pypi.python.org/simple/setuptools/
Best match: setuptools 25.1.0
Downloading https://pypi.python.org/packages/29/c1/33ab781160aede84140523f2fd0685b0bbe46b2d0b7aa9b033a9665cabc4/setuptools-25.1.0.zip#md5=3a2ef546a9f30c41bfc74b6df2e7be5b
Processing setuptools-25.1.0.zip
Writing /tmp/easy_install-zM0USC/mock-2.0.0/temp/easy_install-scljRB/setuptools-25.1.0/setup.cfg
Running setuptools-25.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zM0USC/mock-2.0.0/temp/easy_install-scljRB/setuptools-25.1.0/egg-dist-tmp-DDr41e
warning: no files found matching '*' under directory 'setuptools/_vendor'

Installed /tmp/easy_install-zM0USC/mock-2.0.0/setuptools-25.1.0-py2.7.egg
Searching for pbr>=1.3
Reading https://pypi.python.org/simple/pbr/
Best match: pbr 1.10.0
Downloading https://pypi.python.org/packages/c3/2c/63275fab26a0fd8cadafca71a3623e4d0f0ee8ed7124a5bb128853d178a7/pbr-1.10.0.tar.gz#md5=8e4968c587268f030e38329feb9c8f17
Processing pbr-1.10.0.tar.gz
Writing /tmp/easy_install-zM0USC/mock-2.0.0/temp/easy_install-e8zF3I/pbr-1.10.0/setup.cfg
Running pbr-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zM0USC/mock-2.0.0/temp/easy_install-e8zF3I/pbr-1.10.0/egg-dist-tmp-C84CEU

Installed /tmp/easy_install-zM0USC/mock-2.0.0/pbr-1.10.0-py2.7.egg
Marker evaluation failed, see the following error. For more information see: http://docs.openstack.org/developer/pbr/compatibility.html#evaluate-marker
ERROR:root:Error parsing
Traceback (most recent call last):
File "/tmp/easy_install-zM0USC/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/tmp/easy_install-zM0USC/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
kwargs = setup_cfg_to_setup_kwargs(config, script_args)
File "/tmp/easy_install-zM0USC/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
if pkg_resources.evaluate_marker('(%s)' % env_marker):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in evaluate_marker
return cls.interpret(parser.expr(text).totuple(1)1)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1341, in interpret
return op(nodelist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1254, in atom
return cls.interpret(nodelist[2])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1341, in interpret
return op(nodelist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1275, in comparison
raise SyntaxError(msg)
SyntaxError: '<' operator not allowed in environment markers
error: Setup script exited with error in setup command: Error parsing /tmp/easy_install-zM0USC/mock-2.0.0/setup.cfg: SyntaxError: '<' operator not allowed in environment markers

Eric Jensen
@elnjensen
Jul 26 2016 13:53
@maciorowski Looks like it's an error while installing the 'pbr' package, one of the dependencies for openaps. Do you get the same error if you just run sudo easy_install -Z pbr ?
What does setuptools --version return?
John Dodds
@johners97
Jul 26 2016 14:02
 openaps report invoke settings/insulin   sensitivities-raw.json
insulin_pump://JSON/read_insulin_sensitivities/settings/insulin-sensitivities-ra   w.json
settings/insulin-sensitivities-raw.json  raised  Attempting to use a port that i   s not open
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_r   esources/__init__.py", line 719, in run_script
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_r   esources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/   scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/c   li/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/   scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/c   li/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/r   eports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/u   ses/use.py", line 44, in __call__
    self.before_main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/v   endors/medtronic.py", line 61, in before_main
    self.setup_medtronic( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/v   endors/medtronic.py", line 160, in setup_medtronic
    self.uart.open( )
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/stick.py", line 874, in open
    log.info('%s' % self.product_info( ))
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/stick.py", line 515, in product_info
    return self.query(ProductInfo)
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/stick.py", line 509, in query
    return self.process( )
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/stick.py", line 490, in process
    raw = self.send_force_read( )
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/stick.py", line 606, in send_force_read
    self.link.write(reader.format( ))
  File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.30-py2.7.egg/decocar   e/link.py", line 47, in write
    r = self.serial.write( string )
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 466, in wr   ite
    if not self._isOpen: raise portNotOpenError
ValueError: Attempting to use a port that is not open
Chris Oattes
@cjo20
Jul 26 2016 14:04
@johners97 I'd guess you've got the wrong device set up
John Dodds
@johners97
Jul 26 2016 14:04
Nope, is it possible I need to be in range of carelink?
Wait do you mean virtual devices?
or...
Chris Oattes
@cjo20
Jul 26 2016 14:05
I mean the /dev/tty* device
or it's being blocked by another process
John Dodds
@johners97
Jul 26 2016 14:07
So how do I fix that?
Chris Oattes
@cjo20
Jul 26 2016 14:08
first, check you're using the correct device in the config file (I believe that part is documented)
second, try unplugging the stick then plugging it back in
John Dodds
@johners97
Jul 26 2016 14:10
I use units, will that have something to do with it
Chris Oattes
@cjo20
Jul 26 2016 14:11
no
John Dodds
@johners97
Jul 26 2016 14:13
Ok, in the report insulin-sentitivities-raw I changed device from insulin_pump to units
and it seems to work?
but that could be because I did what you said to plug it back it back in and out again
Never mind, it's working fine now
Chris Oattes
@cjo20
Jul 26 2016 14:15
units is just something to convert between mmol/l and mg/dl, it doesn't have the ability to read data from an insulin pump, which is what read_insulin_sensitivities does (I think)
Paul Martin
@Spazholio
Jul 26 2016 14:16
@daveewall I’m going to give that a shot - thanks!
John Dodds
@johners97
Jul 26 2016 14:16
pi@johnjohnjohn:~/my_openaps $ cat settings/profile.json
BG Target data is expected to be expressed in mg/dL. Found mmol/L in settings/bg-targets.json .
Chris Oattes
@cjo20
Jul 26 2016 14:16
Yes, that's a different issue
John Dodds
@johners97
Jul 26 2016 14:16
After I invoked settings/profile.json
Chris Oattes
@cjo20
Jul 26 2016 14:17
what does settings/insulin-sensitivities-raw.json contain?
John Dodds
@johners97
Jul 26 2016 14:18
my sensitivities in mmol/L
Chris Oattes
@cjo20
Jul 26 2016 14:20
what is the output of cat settings/insulin-sensitivities-raw.json?
John Dodds
@johners97
Jul 26 2016 14:21
~/my_openaps $ cat settings/insulin-sensitivities-raw.json
{
  "units": "mmol/L",
  "sensitivities": [
    {
      "i": 0,
      "start": "00:00:00",
      "sensitivity": 0.9,
      "offset": 0,
      "x": 0
    },
    {
      "i": 12,
      "start": "06:00:00",
      "sensitivity": 0.9,
      "offset": 360,
      "x": 1
    },
    {
      "i": 24,
      "start": "12:00:00",
      "sensitivity": 1.2,
      "offset": 720,
      "x": 2
    },
    {
      "i": 26,
      "start": "13:00:00",
      "sensitivity": 1.2,
      "offset": 780,
      "x": 3
    }
  ],
  "first": 2
Chris Oattes
@cjo20
Jul 26 2016 14:21
and what does the [report "settings/insulin-sensitivities-raw.json"] section in openaps.ini say?
John Dodds
@johners97
Jul 26 2016 14:22
[report "settings/insulin-sensitivities-raw.json"]
device = insulin_pump
use = read_insulin_sensitivities
reporter = JSON
Chris Oattes
@cjo20
Jul 26 2016 14:24
ok. You can't pass the -raw version of that (or bg-target) in to profile.json, you need to run it through the units device to convert to mg/dL
John Dodds
@johners97
Jul 26 2016 14:25
So I change to device = units for settings/insulin...raw.json
?
Why do I have to convert to mg/dL? I thought I had to have it in mmol/L as im in uk
:)
Ok so once it goes through units it goes into settings/insulin-sensitivities.json ?
John Dodds
@johners97
Jul 26 2016 14:32
```
[report "settings/bg_targets.json"]
device = units
to = mmol/L
use = bg_targets
input = settings/bg_targets_raw.json
reporter = JSON

[report "settings/insulin_sensitivities.json"]
device = units
to = mmol/L
use = insulin_sensitivities
input = settings/insulin-sensitivities-raw.json
reporter = JSON
Chris Oattes
@cjo20
Jul 26 2016 14:34
yes, but it needs to be converted to mg/dL. oref0 uses mg/dL internally
John Dodds
@johners97
Jul 26 2016 14:34
Ok, thats fine
John Dodds
@johners97
Jul 26 2016 14:40
So mmol/L is being converted to mg/dL?
which means raw-insulin.. and raw-bftargets... have to use devices as units?
It gets so confusing when you have to deviate from the documentation for something that is "unusual" then you're completely lost
Chris Oattes
@cjo20
Jul 26 2016 14:45
I think this is documented
the -raw reports use the pump device
the units device is then used to produce the non-raw version, which is in mg/dL
John Dodds
@johners97
Jul 26 2016 14:46
sorry, I misinterpreted what you said previously. Thank you :)
John Dodds
@johners97
Jul 26 2016 14:51
Thank you so much @cjo20 ! I understand now
John Dodds
@johners97
Jul 26 2016 15:01
~/my_openaps $ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json

module.js:485
    throw err;
          ^
SyntaxError: /home/pi/my_openaps/preferences.json: Unexpected token “
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:482:27)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:60:23)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
reporting settings/profile.json
There's a problem, not involving the units. The profile.json outputs nothing
Chris Oattes
@cjo20
Jul 26 2016 15:02
You've got an extra " somewhere
John Dodds
@johners97
Jul 26 2016 15:02
an extra?
Chris Oattes
@cjo20
Jul 26 2016 15:02
yes
John Dodds
@johners97
Jul 26 2016 15:03
Ok i will check that out
Chris Oattes
@cjo20
Jul 26 2016 15:03
somewhere you have a " where there shouldn't be one. I think in one of the .ini files.
mariano42
@mariano42
Jul 26 2016 15:18
hey @bewest I don't see anything in any documentation (perhaps I just missed it), but curios about your alias in your sample project named "do-cleaned-predictions"... I assume these are your own reports you are creating. Some of the names piqued my interest.. is there anything available to understand what you are doing there?
John Dodds
@johners97
Jul 26 2016 15:21
in preferences.json{"max_iob": 0}
is that what's wrong?
are the " marks supposed to be there
"
[report "settings/profile.json"]
use = shell
bg-targets = settings/bg-targets.json
preferences = preferences.json
settings = settings/settings.json
basal-profile = settings/basal-profile.json
reporter = text
json_default = True
device = get-profile
remainder =
max-iob = preferences.json
insulin-sensitivities = settings/insulin-sensitivities.json
is it maybe because preferences and max-iob are being used simultaneously with the same json file, or is that supposed to be there?
Chris Oattes
@cjo20
Jul 26 2016 15:26
why do you have max-iob there?
John Dodds
@johners97
Jul 26 2016 15:27
The documentation told me to...
I realize now
Like 2 seconds before you messaged
Chris Oattes
@cjo20
Jul 26 2016 15:27
Where did it tell you to add max-iob to get-profile?
John Dodds
@johners97
Jul 26 2016 15:28
In two different lines of documentation, one was "latest" the other was "in development" (I think, I could be wrong)
Chris Oattes
@cjo20
Jul 26 2016 15:30
can you give me a link to where it told you to add the max-iob option to that report
John Dodds
@johners97
Jul 26 2016 15:30
Ok, but it's still not working :(
Does it have to be in order down the list ?
Chris Oattes
@cjo20
Jul 26 2016 15:30
no
John Dodds
@johners97
Jul 26 2016 15:31
Right, i will have a look
Chris Oattes
@cjo20
Jul 26 2016 15:31
if you could give me a link to the page you were on where it said to add max-iob to that report
Chris Oattes
@cjo20
Jul 26 2016 15:35
ok, where on that page does it say to add a seperate max-iob entry for that report?
John Dodds
@johners97
Jul 26 2016 15:38
I can't find it! Maybe I'm mistaken...sorry
Chris Oattes
@cjo20
Jul 26 2016 15:39
give it another go following the docs :)
John Dodds
@johners97
Jul 26 2016 15:42
/my_openaps $ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json

module.js:485
    throw err;
          ^
SyntaxError: /home/pi/my_openaps/preferences.json: Unexpected token “
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:482:27)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:60:23)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
reporting settings/profile.json
Still outputting this... (PS I might have imagined it I was pretty tired when I was doing it yesterday)
And I have looked for extra "
look again?
Chris Oattes
@cjo20
Jul 26 2016 15:42
so what does your settings/profile.json look like in openaps.ini?
live4sw
@live4sw
Jul 26 2016 15:47
Quick q - traveling for the first time post-OpenAPS. I understand that putting the rig + TI stick through the X-ray is fine, but do you guys put your Dexcom + uploader phone through the belt as well?
Dana Lewis
@danamlewis
Jul 26 2016 15:47
yes
no problems, ever, with any devices. pump stays on the body.
live4sw
@live4sw
Jul 26 2016 15:48
Great, thanks! Will hopefully be pretty easy just walking through the metal detector with the pump. I am mailing a backup rig ahead of me to be super-safe but that's great to hear.
Dana Lewis
@danamlewis
Jul 26 2016 15:49
:+1:
Chris Oattes
@cjo20
Jul 26 2016 15:50
I left my pancreas at home this afternoon :(
Dana Lewis
@danamlewis
Jul 26 2016 15:50
aw :(
John Dodds
@johners97
Jul 26 2016 15:51
[report "settings/profile.json"]
use = shell
bg-targets = settings/bg-targets.json
preferences = preferences.json
settings = settings/settings.json
basal-profile = settings/basal-profile.json
reporter = text
json_default = True
device = get-profile
remainder =
In openaps.ini
My pancreas hasn't been developed yet lol
Is ur blood sugar ok
John Dodds
@johners97
Jul 26 2016 15:58
feeling so impinged right now hahaha.
try alias-ing it?
Chris Oattes
@cjo20
Jul 26 2016 16:06
what is the output of cat preferences.json
and 10 mmol/L at the moment. It's been running high for a couple of days,not sure why
John Dodds
@johners97
Jul 26 2016 16:10
{“max_iob”: 0}
Mine have been a bit funny today as well, had 1 strawberry and it jumped from 4 to 8
Should have done a bolus for it mind you
Chris Oattes
@cjo20
Jul 26 2016 16:12
Those look like weird quotes
John Dodds
@johners97
Jul 26 2016 16:13
Do they?
Chris Oattes
@cjo20
Jul 26 2016 16:13
yes
John Dodds
@johners97
Jul 26 2016 16:13
You're right
I think you're a genius
hahah
It worked
Yup :)
I hate Windows Remote Desktop... Someone put in "it's crap don't use it"
Sticking to nano
Or rather, it's incompatible with this
John Dodds
@johners97
Jul 26 2016 17:01
The json files in settings have disappeared after I made the alias
for get-profile
Ignore me
mariano42
@mariano42
Jul 26 2016 17:41
so last night i got ns visualization to work for a bit, but since then my loop stopped running. I get the same error when i run the loop that i do when i simply do openaps report show or openaps device show.. so i was thinking i somehow corrupted my openaps.ini file. But so far, i havent found anything that looks off with it and actually removed the reports that i added yesterday hoping to get it back up and running. File "usr/local/bin/openaps-report, line 4 in <module> import_('pkg_resources'). run_script ('openaps==0.1.5', 'openaps-report') Then a bunch of other stuff that doesnt seem to helpful before it raises 'GitCommandError: 'git diff --abbrev=40 --full-index -M --raw --no_color' returned with exit code 128 stderr: 'error: object file .git/objects/2e/f2dedc899e2e02cefc2b7f2eeb19a90cce01ff is empty fatalL unable to read 2ef2dedc899e2e02cefc2b7f2eeb19a90cce01ff " ... i ran the git corruption stuff from troubleshooting, but that hasnt done anything. I still think its something in an .ini, but I dont know what
Ditman Johnson
@ditmanj
Jul 26 2016 17:55

Attempting to install Watchdog, and have run into the following. Any ideas?d pi@raspberrypi:~ $ sudo apt-get install watchdog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
watchdog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 78.1 kB of archives.
After this operation, 179 kB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main watchdog armhf 5.14-3
Could not resolve 'mirrordirector.raspbian.org'
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/w/watchdog/watchdog_5.14-3_armhf.deb Could not resolve 'mirrordirector.raspbian.org'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?hcp

Paul Martin
@Spazholio
Jul 26 2016 18:00
Is your network set up properly? That sounds like an error with DNS.
Ditman Johnson
@ditmanj
Jul 26 2016 18:06
Perhaps not. I had a wifi connection yesterday, but am no longer able to connect. I'll check this. Thanks.
Aaron Michelson
@Aaybob
Jul 26 2016 18:29

trying to troubleshoot
pi@raspberrypi:~/apg $ openaps report invoke settings/basal_profile.json
pumpbuilding://JSON/read_basal_profile_std/settings/basal_profile.json
reporting settings/basal_profile.json
pi@raspberrypi:~/apg $ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
pi@raspberrypi:~/apg $ openaps loop
"2016-07-26T11:24:03" is the time and Preflight check is complete. Ready:

/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8
var basalRate = basalprofile_data[basalprofile_data.length-1].rate
^
TypeError: Cannot read property 'rate' of undefined
at Object.basalLookup (/usr/local/lib/node_modules/oref0/lib/profile/basal.js:8:66)
at generate (/usr/local/lib/node_modules/oref0/lib/profile/index.js:27:33)
at Object.<anonymous> (/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:58:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
pi@raspberrypi:~/apg $

Aaron Michelson
@Aaybob
Jul 26 2016 18:39
I think it may be an intermitant carelink stick communication even with carelink directly near the pump but on a 12 foot extension chord. I'll try the 6 foot cord tonight. Last night I had working awhile off awhile cycle.
Aaron Michelson
@Aaybob
Jul 26 2016 18:45
Although it was working fine for months. would that trick to increase the power to the usb help?
Ditman Johnson
@ditmanj
Jul 26 2016 19:11

@Spazholio I no longer have wifi connection to the Pi When I hover over the icon next to bluetooth icon, it says " wlan0 is not associated". I wonder if this occurred when I attempted to "configure wifi settings." This is how I changed the file, from "manual" to "dhcp" : GNU nano 2.2.6 File: /etc/network/interfaces Modified

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

manual# interfaces(5) file used by ifup(8) and ifdown(8)

Please note that this file is written to be used with dhcpcd

For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

Include files from /etc/network/interfaces.d:

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Aaron Michelson
@Aaybob
Jul 26 2016 19:14
@ditmanj I reboot my desktop computer to restore ssh connection to RPi2.
Ditman Johnson
@ditmanj
Jul 26 2016 19:28
@Aaybob I am connected with an ethernet cord from desktop to RPi2. I cannot connect the RPi2 to wifi.
RPi2 says "no wireless interfaces found"
John Dodds
@johners97
Jul 26 2016 19:53
Reset you router
mariano42
@mariano42
Jul 26 2016 20:19
sorry to re-ask a question, but I am stuck and don't even know where else to look... any openaps command returns 'GitCommandError: 'git diff --abbrev=40 --full-index -M --raw --no_color' returned with exit code 128 stderr: 'error: object file .git/objects/2e/f2dedc899e2e02cefc2b7f2eeb19a90cce01ff is empty fatal unable to read 2ef2dedc899e2e02cefc2b7f2eeb19a90cce01ff " . Everything was working for me last night, then it started spitting this out and i havent been able to get it back up and running since
Jason Calabrese
@jasoncalabrese
Jul 26 2016 20:21
sounds like you git repo is corrupted, that happens when power gets pulled
mariano42
@mariano42
Jul 26 2016 20:22
shouldnt oref0-fix-git-corruption fix it?
lemme go clean up the latter one
mariano42
@mariano42
Jul 26 2016 20:23
@scottleibrand i tried both of those and it tells me nothing is corrupted
Scott Leibrand
@scottleibrand
Jul 26 2016 20:24
k. there was a fix in dev oref0 to detect corruption with git diff in addition to git status. you might need that
mariano42
@mariano42
Jul 26 2016 20:24
ok.. let me see if i can find it
found it.. thanks! i will give it a try
Jason Calabrese
@jasoncalabrese
Jul 26 2016 20:26
an other option is to start with a new git repo, from your loop dir: rm -rf .git; cd ..; openaps init your-loop-dir
Gina
@gclyon
Jul 26 2016 20:55

I can't seem to get the settings/profile.json file to invoke. I've verified that all needed arguments (reports) are there...

pi@raspberrypi:~/myopenaps $ openaps report invoke settings/profile.json
get-profile://text/shell/settings/profile.json
settings/profile.json raised [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkg_resources.py", line 492, in run_script
def contains(self, dist):
File "build/bdist.linux-armv7l/egg/pkg_resources.py", line 1350, in run_script
op = cls.values[name]
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 40, in main
output = task.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 98, in main
proc = subprocess.Popen(command, stdout=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

japrobo
@japrobo
Jul 26 2016 20:57
Any thoughts on upgrading to dexcom G5 or is G4 better for openaps?
Jason Calabrese
@jasoncalabrese
Jul 26 2016 21:04
g5 is good for the iOS Loop app, but in most other cases G4 is better
Dragan Maksimovic
@dm61
Jul 26 2016 21:34
@gclyon looks like at least one of the required reports is missing; you may try openaps report show settings/profile.json --cli to see what it's actually looking for
Gina
@gclyon
Jul 26 2016 22:11
openaps report show settings/profile.json --cli
openaps use get-profile shell settings/settings.json settings/bg_targets_raw.json settings/insulin_sensitivities_raw.json settings/basal_profile.json preferences.json
those are all there
Dragan Maksimovic
@dm61
Jul 26 2016 22:21
what happens if you do openaps use get-profile shell settings/settings.json settings/bg_targets_raw.json settings/insulin_sensitivities_raw.json settings/basal_profile.json preferences.json, instead of invoking the report, same error?
japrobo
@japrobo
Jul 26 2016 22:25
@jasoncalabrese what is the iOS loop app?
Gina
@gclyon
Jul 26 2016 22:37
yes same error
Paul Martin
@Spazholio
Jul 26 2016 22:43
@gclyon Are you certain that ALL of those files exist? Pay careful attention to - vs _. If so, can you cat each of them to see what’s in ‘em?
Gina
@gclyon
Jul 26 2016 22:43
yes, i've catted every one. they were all invoked, and have data
John Dodds
@johners97
Jul 26 2016 22:44
Check settings and see if the file names match, too
Paul Martin
@Spazholio
Jul 26 2016 22:46
The other option is to type it all out, using tab-completion. Don’t copy/paste what’s here, don’t use the output of openaps report show —cli. Type it all to ensure that you’re pointing to the right files. I only say this because I’ve done the exact same dance you’re doing right now. In my case, it was a misspelled filename, but that helped me track it down.
Ben West
@bewest
Jul 26 2016 22:48
curious what openaps device show get-profile --json says
Gina
@gclyon
Jul 26 2016 22:50
openaps device show get-profile --json
{"extra": {"fields": "settings bg_targets insulin_sensitivities basal_profile preferences", "cmd": "oref0", "args": "get-profile"}, "type": "device", "name": "get-profile", "get-profile": {"vendor": "openaps.vendors.process", "extra": "get-profile.ini"}}
Paul Martin
@Spazholio
Jul 26 2016 22:52
Just an an FYI, you can put multi-line code between three backticks to have it show in a code block.
Ben West
@bewest
Jul 26 2016 22:57
that looks fine
Gina
@gclyon
Jul 26 2016 22:59
'''pi@raspberrypi:~/myopenaps $ cat settings/bg_targets_raw.json
{
"units": "mg/dL",
"raw": "0x01 0x00 0x6e 0x82 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00",
"targets": [
{
"high": 130,
"start": "00:00:00",
"low": 110,
"offset": 0,
"i": 0,
"x": 0
}
],
"first": 1
}pi@raspberrypi:~/myopenaps $cat preferences.json
{"max_iob": 0}
pi@raspberrypi:~/myopenaps $ cat settings/bg_targets_raw.json
{
"units": "mg/dL",
"raw": "0x01 0x00 0x6e 0x82 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00",
"targets": [
{
"high": 130,
"start": "00:00:00",
"low": 110,
"offset": 0,
"i": 0,
"x": 0
}
],
"first": 1
}pi@raspberrypi:~/myopenaps $ cat settings/settings.json
{
"low_reservoir_warn_point": 20,
"keypad_lock_status": 0,
"maxBasal": 3.0,
"temp_basal": {
"percent": 100,
"type": "Percent"
},
"low_reservoir_warn_type": 0,
"insulinConcentration": 100,
"audio_bolus_enable": false,
"variable_bolus_enable": false,
"alarm": {
"volume": 2,
"mode": 2
},
"rf_enable": false,
"auto_off_duration_hrs": 0,
"block_enable": false,
"timeformat": 120,
"insulin_action_curve": 4,
"audio_bolus_size": 0,
"selected_pattern": 0,
"patterns_enabled": false,
"maxBolus": 10.0,
"paradigm_enabled": 1
}pi@raspberrypi:~/myopenaps $ cat settings/basal_profile.json
[
{
"i": 0,
"start": "00:00:00",
"rate": 1.05,
"minutes": 0
},
{
"i": 1,
"start": "08:00:00",
"rate": 1.2000000000000002,
"minutes": 480
}
]pi@raspberrypi:~/myopenaps $ cat settings/insulin_sensitivities_raw.json
{
"units": "mg/dL",
"sensitivities": [
{
"i": 0,
"start": "00:00:00",
"sensitivity": 25,
"offset": 0,
"x": 0
},
{
"i": 13,
"start": "06:30:00",
"sensitivity": 30,
"offset": 390,
"x": 1
},
{
"i": 24,
"start": "12:00:00",
"sensitivity": 30,
"offset": 720,
"x": 2
},
{
"i": 37,
"start": "18:30:00",
"sensitivity": 25,
"offset": 1110,
"x": 3
}
],
"first": 1
}pi@raspberrypi:~/myopenaps $ cat preferences.json
{"max_iob": 0}'''
sorry, i tried the backticks
Ben West
@bewest
Jul 26 2016 23:00
usually, when the use fails like that, it says which file it did not find
Scott Leibrand
@scottleibrand
Jul 26 2016 23:04
@gclyon backticks (`) are on the ~ key, not the " key
and the three backticks need to be on a separate line, not right after/before other text
Paul Martin
@Spazholio
Jul 26 2016 23:05
So like:
```
Code goes here
```
Scott Leibrand
@scottleibrand
Jul 26 2016 23:05
@Spazholio how did you do the example without it rendering?
Paul Martin
@Spazholio
Jul 26 2016 23:05
Escape the backticks.
Ben West
@bewest
Jul 26 2016 23:05
looks like this:
```
stuff in the middle
of the fence
```
Scott Leibrand
@scottleibrand
Jul 26 2016 23:05
@Spazholio with \ ?
Paul Martin
@Spazholio
Jul 26 2016 23:05
Correct.
Scott Leibrand
@scottleibrand
Jul 26 2016 23:06
cool
Ben West
@bewest
Jul 26 2016 23:06
if you pad by 4 spaces, that's also it's own code block
so if you pad everything by 4 spaces you can introduce the tick itself
Paul Martin
@Spazholio
Jul 26 2016 23:06
@bewest Hey, learn something new everyday. Neat, thanks.
I don’t know if it matters, but my preferences.json file has more than just that single line in it. I don’t know that it’s what’s causing @gclyon’s error, but maybe it’s contributing?
Gina
@gclyon
Jul 26 2016 23:12
sweet
Scott Leibrand
@scottleibrand
Jul 26 2016 23:13
@Spazholio no, that shouldn't matter: that file used to be called max_iob.json and just have the single thing in it. all the others are optional.
Paul Martin
@Spazholio
Jul 26 2016 23:13
k
@gclyon What happened when you typed everything in using tab-completion?
Scott Leibrand
@scottleibrand
Jul 26 2016 23:14
it looks like it's complaining about not being able to write to settings/profile.json. does that directory and/or file already exist?
Gina
@gclyon
Jul 26 2016 23:20
i can't get it to make that file:
/myopenaps $ cat settings/profile.json
cat: settings/profile.json: No such file or directory
Scott Leibrand
@scottleibrand
Jul 26 2016 23:22
try ls -la settings/
Gina
@gclyon
Jul 26 2016 23:28
myopenaps $ ls -la settings/
total 24
drwxr-xr-x 2 pi pi 4096 Jul 26 16:19 .
drwxr-xr-x 6 pi pi 4096 Jul 25 20:51 ..
-rw-r--r-- 1 pi pi  187 Jul 25 22:32 basal_profile.json
-rw-r--r-- 1 pi pi  518 Jul 25 22:32 bg_targets_raw.json
-rw-r--r-- 1 pi pi  536 Jul 25 22:32 insulin_sensitivities_raw.json
-rw-r--r-- 1 pi pi  595 Jul 25 22:32 settings.json