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

4th
May 2016
Iain
@iainct
May 04 2016 01:47
@danamlewis how was this report generated? https://twitter.com/danamlewis/status/697826304310116352 e.g. from night-scout directly, or is there anthing similar that I have not come accross? thanks!
Dana Lewis
@danamlewis
May 04 2016 01:48
@iainct no, it’s a DIYPS report. I want that type of report to be built into Nightscout, just basic net basal adjustments
(but it’s not there yet)
Iain
@iainct
May 04 2016 01:49
i though that maybe the case, is DIYPS your personal dev stuff?
Dana Lewis
@danamlewis
May 04 2016 01:50
yea. DIYPS was created first to give me louder alarms,t hen we added buttons, made predictions, turned it into an algorithm, then automated it. that’s how we ended up with a closed loop. But, I still use DIYPS personally for alarms, data entry, and some reports/visualizations like this that I had set up back at the beginning.
Iain
@iainct
May 04 2016 01:52
niceone, its a very useful report, i'm sure i could easily knock it together in matlab but online into night-scout is outside of my skill set at the moment, but I can learn!
Dana Lewis
@danamlewis
May 04 2016 01:52
:+1:
Dan Piessens
@dpiessens
May 04 2016 01:53
OK so I just got my Edison tonight, and I'm going to build my "Mark 2" (TI and CC Debugger coming next 2 days). Should I use these instructions for the base OS? (https://learn.sparkfun.com/tutorials/loading-debian-ubilinux-on-the-edison) I was going to doc the process and then submit a PR
Dana Lewis
@danamlewis
May 04 2016 01:54
@iainct either @MilosKozak or @jasoncalabrese may be able to provide some pointers. I’m also happy to write up specs if someone wants to knock it out. It’s been really useful
Scott Leibrand
@scottleibrand
May 04 2016 02:00
@dpiessens you might try the Yocto instructions first.
That is the OS preinstalled on the Edison, so it'll be less work than flashing ubilinux.
Dan Piessens
@dpiessens
May 04 2016 02:01
@scottleibrand They mention rebuilding when you install packages, is that true, or is it not that bad
Scott Leibrand
@scottleibrand
May 04 2016 02:02
@amazaheri really likes Yocto. It's a bit different than Debian (Raspbian), but there are instructions for everything you'll need to install.
Dan Piessens
@dpiessens
May 04 2016 02:02
It does look a lot more performant with Yocto
Scott Leibrand
@scottleibrand
May 04 2016 02:02
I already flashed all my Edisons, so I haven't tried yocto yet. Need to in order to try getting BT tethering working though.
I'd try yocto first, and then flash ubilinux if you don't like it.
Dan Piessens
@dpiessens
May 04 2016 02:04
Ah good point, I want to hack my G5 and get that working so I'll stick with yocto and note any deviations
Iain
@iainct
May 04 2016 02:06
@dpiessens when you say hack G5, is that directly read bgl from the sensor to the Edison over bluetooth, or something with the receiver?
Dan Piessens
@dpiessens
May 04 2016 02:07
@iainct Yup directly from the sensor, don't want another device. I can read a G5 receiver now via USB but it sucks my battery
Ben West
@bewest
May 04 2016 02:08
it does?
there's a command to turn it off
to turn off the battery charging on dex while it's plugged in
Dan Piessens
@dpiessens
May 04 2016 02:08
oh, didn't know that
Ben West
@bewest
May 04 2016 02:09
$ openaps use cgm WriteChargerCurrentSetting -h
usage: openaps-use cgm WriteChargerCurrentSetting [-h]
                                                  [--status {Off,Power100mA,Power500mA,PowerMax,PowerSuspended}]
                                                  [--Off] [--Power100mA]
                                                  [--Power500mA] [--PowerMax]
                                                  [--PowerSuspended]

optional arguments:
  -h, --help            show this help message and exit
  --status {Off,Power100mA,Power500mA,PowerMax,PowerSuspended}
  --Off
  --Power100mA
  --Power500mA
  --PowerMax
  --PowerSuspended
Dan Piessens
@dpiessens
May 04 2016 02:09
cool, I'll try that in a bit thanks @bewest
Ben West
@bewest
May 04 2016 02:10
if someone gives me ssh access to their PI with working ble, i'd love to work on g5 ble support
Iain
@iainct
May 04 2016 02:11
@dpiessens i'd like to get bluetooth an edison/pi eventually. Are you using a G5 receiver with an edison at the moment?
Dan Piessens
@dpiessens
May 04 2016 02:11
Thanks @jasoncalabrese That's very helpful
Jason Calabrese
@jasoncalabrese
May 04 2016 02:12
there's some other really helpful stuff in that wiki
Dan Piessens
@dpiessens
May 04 2016 02:12
OK I'll do some reading
Jason Calabrese
@jasoncalabrese
May 04 2016 02:13
I haven't tried yocto, but it's sounding really good
Dan Piessens
@dpiessens
May 04 2016 02:13
@iainct Yes I'm going to setup the edison with a G5
*receiver
@danamlewis :clap:
Iain
@iainct
May 04 2016 02:15
cool, i am planning to do that next, i'd be really curious to follow your development of it. Did you go for serial to a ti stick (soldered) and usb to the G5 receiver?
@danamlewis 56 epic, how much is it accelerating?
Dan Piessens
@dpiessens
May 04 2016 02:16
Just got stuff today, so that's the plan but it's only that at this point
Iain
@iainct
May 04 2016 02:18
cool, like i said i'm keen to follow your development as I will attempt to replicate it. @eszcloud was trying to set up using a G4 direct connect but went back to a Pi.
Ali Mazaheri
@amazaheri
May 04 2016 02:18
That is correct, https://github.com/oskarpearson/mmeowlink/wiki/Prepare-Edison-for-OpenAPS-with-Yocto to start. We are constantly updating it, @ps2 and I been using it in production and happy. There are pros and cons but overall very happy with it.
You need to make sure you are running yocto 3.0
Today we ran the loop for 8 hours with no connection drop (g5+iPhone+Edison) all connected through BT
JaysonEwer
@JaysonEwer
May 04 2016 02:40
💪👏
Jason Calabrese
@jasoncalabrese
May 04 2016 02:55
Does it look like battery life improved?
Ali Mazaheri
@amazaheri
May 04 2016 03:01
slightly. on iPhone for sure comparing to wifi for hotspot
Jason Calabrese
@jasoncalabrese
May 04 2016 03:07
Yeah, was thinking about the phone, not the Edison
Ali Mazaheri
@amazaheri
May 04 2016 03:09
:+1:
Dana Lewis
@danamlewis
May 04 2016 03:40
@iainct quite a bit re: acceleration
@channemann did some good stuff to make this chart:
Screen Shot 2016-05-02 at 10.07.55 PM.png
(and that was 54, I bumped us to 56 but haven’t updated the chart yet) but that gives you an idea of loopers vs loop hours.
and it’s an underestimation, because we assume 20 hours of up time evevn if you say 24/7, and likewise 8 hours if you say overnight only.
so pretty epic on all fronts regardless
Iain
@iainct
May 04 2016 04:03
@danamlewis that is amazing. Awesome chart it matches what I suspected 😀
Scott Leibrand
@scottleibrand
May 04 2016 04:09
Looks like looper growth is running at about 20 people per quarter since December.
Matthias
@ceben80
May 04 2016 04:43
......56, great :tada: :star2:
:cat:
Dana Lewis
@danamlewis
May 04 2016 06:51
:+1:
Jim is CrushingT1D
@CrushingT1D
May 04 2016 07:22
in the docs it says 554 in EU with 2.6 or older works. i assume that also applies to 754? (spoke to a friend in Australia with two 754’s…no testing done yet)
@amazaheri nice!
Ben West
@bewest
May 04 2016 07:51
wow gorgeous kitty :cat2:
Ben West
@bewest
May 04 2016 08:05
I think it's time to dedicate an entire browser window to cats
maybe whole profile even
Hristina Dimova
@xpucuto
May 04 2016 08:08
@CrushingT1D just merged PR , i have done it with 754 :+1:
Hristina Dimova
@xpucuto
May 04 2016 08:15
is it normal everytime when pi die from an empty battery to not be able to recognise the pump ?
i am doing this everyday . When the battery is down i have to remove the pump device and add it again to make it work :(
the main problem is that i have to delete it from the openaps.ini with commands is not possible
Ben West
@bewest
May 04 2016 08:29
sounds like if you do pump.ini it is maybe empty?
that is a known bug, and is my fault :-(
Hristina Dimova
@xpucuto
May 04 2016 08:30
aha ok , i will see whats in there and copy it afterwards . It doesnt want to work also when the receiver isnt calibrated… I will have to see how i can use online uploaded data for calculation ;)
Ben West
@bewest
May 04 2016 08:32
what I recommend is something like openaps device show pump --json | tee backup-pump-device.json
then you can do openaps import backup-pump-device.json
the first one saves it to the json file, the second imports the backup into the current instance
Hristina Dimova
@xpucuto
May 04 2016 08:33
got it, showed all the info of the pump
adding to my notes !!! its a long list :)
Matthias
@ceben80
May 04 2016 08:35
@bewest Recently I didn't shutdown my pi correctly...after powering on, I have experiencing same issue, empty pump.ini
Hristina Dimova
@xpucuto
May 04 2016 08:35
@ceben80 sorry to hear that but it is so good im not alone
@bewest still here ?
Ben West
@bewest
May 04 2016 08:42
sort of
Hristina Dimova
@xpucuto
May 04 2016 08:43
i qill be quick
now my cgm doesnt want to upload
the same as the pump
amy magic command to save the information about it without deleting and adding it
openaps monitor-cgm
cgm://JSON/oref0_glucose/raw-cgm/raw-entries.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 48, in main
    reporters.Reporter(report, device, task)(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 18, in __init__
    self.output = getattr(self.method, 'get_output_stream', default_prep_stream)(self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 5, in default_prep_stream
    return open(reporter.report.name, 'w')
IOError: [Errno 2] No such file or directory: u'raw-cgm/raw-entries.json'
Ben West
@bewest
May 04 2016 08:44
mkdir raw-cgm?
Hristina Dimova
@xpucuto
May 04 2016 08:44
i have it already
oh let me check the dash
  • or _
-
Ben West
@bewest
May 04 2016 08:45
-
mkdir raw-cgm
Hristina Dimova
@xpucuto
May 04 2016 08:46
:+1:
made it
how simple can be this????
when it die some directories get deleted , probably if they were opened right
Ben West
@bewest
May 04 2016 08:48
maybe, that's interesting, the whole directory disappears?
Hristina Dimova
@xpucuto
May 04 2016 08:48
yes
is there any command for openaps to close all directories in case of suddet shutdown or i ask too much
Ben West
@bewest
May 04 2016 08:50
been thinking about oref0 alias-helper sync sync
then you can run openaps sync somewhere, maybe at end
err, oref0 alias-helper sync sync | openaps import to actually import it
Hristina Dimova
@xpucuto
May 04 2016 08:53
it said its synced
i will try it next time ;)
Ben West
@bewest
May 04 2016 08:58
I worked on "gap sync" stuff recently here https://github.com/openaps/docs/issues/129#issuecomment-216394218
it's brand new in oref0#dev, and openaps-contrib
lsgaps looks for gaps, select will try to fill them, the last missing piece is to read a gap and figure out oldest data to fetch, right now it just reads some default check from NS
Hristina Dimova
@xpucuto
May 04 2016 09:09
i was reading it but my blond head can not seem to understand it . i will try again with more reading
Matt Walker
@walker0
May 04 2016 09:13
@xpucuto which firmware do you have on the 754 that is working, I'm looking for a pump at the moment
Hristina Dimova
@xpucuto
May 04 2016 09:13
@walker0 2.6A
bought 2012 , so have it mind
Matt Walker
@walker0
May 04 2016 09:20
@xpucuto thanks, hopefully i'll find a suitable pump soon, i'm regretting choosing the vibe at this point
Hristina Dimova
@xpucuto
May 04 2016 09:29
@walker0 where are you from ? there are a lof of pumps at medwow. i have written to few sellers, if you want wait for them to answer so they dont increase the price ;)
Matt Walker
@walker0
May 04 2016 09:56
Australia and yea I've had a look on medwow, i'd prefer something local though
Hristina Dimova
@xpucuto
May 04 2016 10:13
yes definately local is better. I am waiting former Medtronic distributor here to tell me what old pumps do they have and at what price will they sell them.
Bill Stackpole
@billstackpole
May 04 2016 14:39
anyone have an idea of what an appropriate price should be for a 723 or similar?
Also - anyone have advice on how to get the 0.8 version of subg_rfspy working in a pump that had previously been working w/0.6?
Hristina Dimova
@xpucuto
May 04 2016 14:40
hm not much, have in mind that it will be app 6-7 year old pump . My 722 is from 2007
Bill Stackpole
@billstackpole
May 04 2016 14:41
(just flashed a new TI stick to 0.8 and getting a message to the effect of 0.6 is in the supported list, but not 0.8.
)
Hristina Dimova
@xpucuto
May 04 2016 14:41
in medwow i see pumps are mainly about 800$ which by my opinion is too much for a used pump.
Bill Stackpole
@billstackpole
May 04 2016 14:42
@xpucuto - think that my 723 is from 2012.
(v 2.3a - supported)
Hristina Dimova
@xpucuto
May 04 2016 14:47
Its possible, it depends which model in which contry are being presented. So its pretty new actually my 754 is from 2012 with 2.6A
Colin Lennon
@colinlennon
May 04 2016 14:49
@billstackpole I paid $800 for a 722 on Medwow, plus $60 to have it shipped from the US to the UK. That included around 6 weeks of supplies.
I'm toying with the idea of buying another one as a spare, I really don't like the thought of my one and only pump giving up the ghost unexpectedly
Bill Stackpole
@billstackpole
May 04 2016 14:56
Im of the same mind. Mine works but don't want to be without one should this one fail.
tnx for the info.
Hristina Dimova
@xpucuto
May 04 2016 14:59
My both pumps have faulty plunger , but I glued then with loctite. 722 is working great my 754 is glued again today because didn't want to load reservoir correctly . But I also want one spare working pump . There are a lot 754 in the uk in medwow, higher version I guess?
Chris Oattes
@cjo20
May 04 2016 15:04
not sure I'd be using a pump that I needed to superglue :/
new *54's in the UK aren't controllable by pc, and haven't been for at least 6 months (I can't remember exactly how long)
Hristina Dimova
@xpucuto
May 04 2016 15:10
@cjo20 you are right, doesnt sound fascinating, but i at the moment i have no other choise. Of course if they stop working i have a brand new 640G which i bought for Christmas. But i prefer old glued openaps pump than 640g :D
About the meeting in London, there might be small chance for me to come too. I will be in Dublin that week with my husband so i can fly to London for the meeting and come back to him next day . Can someone tell me if you have already choosed a place for the gathering so i can see which is the closest airport and also any hotel recommendations ?
Matthias
@ceben80
May 04 2016 15:14
@xpucuto haha I have a new Animas Vibe and prefer to use my 754 2.6A :star2:
Hristina Dimova
@xpucuto
May 04 2016 15:20
You can't compare them ;)
Matthias
@ceben80
May 04 2016 16:16
You are absolutely right
Dana Lewis
@danamlewis
May 04 2016 16:22
@xpucuto re London meetup http://whoozin.com/HEE-9P9-CPDV
@oskarpearson or @timomer might have some hotel recommendations. (I am staying at one picked out for me by work)
Hristina Dimova
@xpucuto
May 04 2016 16:25
thanks @danamlewis
Oskar Pearson
@oskarpearson
May 04 2016 16:25
Let me check flight options from Dublin.
Eric
@ecc1
May 04 2016 16:31
I was able to find a few 522/722s by checking craigslist boards for different metro areas, in the $200-$800 range. All the owners were OK with shipping, especially once they understood the reason.
Dana Lewis
@danamlewis
May 04 2016 16:34
:+1: @ecc1
Eric
@ecc1
May 04 2016 16:35
BTW connman is available as a Debian package in sid (unstable). I'm running stretch (testing) on mine, but haven't tried that.
Jason Calabrese
@jasoncalabrese
May 04 2016 16:40
@xpucuto try to find a battery that allows pass through charging, then the pi won't lose power, lots of bad things can happen when power is pulled
could fully corrupt the filesystem
you also should make a backup of the SD card
Hristina Dimova
@xpucuto
May 04 2016 16:47
@jasoncalabrese it's arriving tomorrow I ordered it two weeks ago from the uk . Now I have a battery from a friend. But I have untipical error that it is locked .
I will try to post it
@oskarpearson :blush:
Jason Calabrese
@jasoncalabrese
May 04 2016 16:50
git can get corrupted too
Hristina Dimova
@xpucuto
May 04 2016 16:54
Reinstall it with sudo pip?
Jason Calabrese
@jasoncalabrese
May 04 2016 16:55
don't think the install would be a problem, I was thinking your openaps directory
cd to the directory where openaps.ini is and do git status
Hristina Dimova
@xpucuto
May 04 2016 16:57
ok let me run it first :S
a lot of red :(
pi@raspberrypi:~/bulgaria $ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    modified:   enact/enacted.json
    modified:   enact/suggested.json
    modified:   monitor/battery.json
    modified:   monitor/clock-zoned.json
    deleted:    monitor/clock.json
    modified:   monitor/glucose.json
    modified:   monitor/iob.json
    modified:   monitor/pumphistory-zoned.json
    modified:   monitor/pumphistory.json
    modified:   monitor/reservoir.json
    modified:   monitor/temp_basal.json
    modified:   openaps.ini
    modified:   raw-cgm/raw-entries.json

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    backup-pump-device.json
    calculate-iob.ini
    cgm.ini
    determine-basal.ini
    get-profile.ini
    last_four_cgm_hours.json
    last_four_cgm_hous.json
    last_four_pump_hours.json
    max_iob.json
    max_iob.json.save
    mmeowlink-source/
    monitor/glucose-ns.json
    nightscout/
    ns-status.ini
    ns.ini
    openaps.ini.save
    oref0.ini
    pump.ini
    read_clock.json
    record.txt
    selected.json
    settings/bg_targets-mmol.json
    settings/bg_targets_raw.json
    settings/insulin_sensitivities-raw.json
    settings/insulin_sensitivities_raw.json
    settings/profile.json
    ti.ini
    tz.ini
    units.ini
    veo.ini
Hristina Dimova
@xpucuto
May 04 2016 17:03
pi@raspberrypi:~/bulgaria $ openaps monitor-cgm
cgm://JSON/oref0_glucose/raw-cgm/raw-entries.json
reporting raw-cgm/raw-entries.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 52, in __call__
    self.epilog( )
  File "/usr/local/bin/openaps-report", line 69, in epilog
    super(ReportToolApp, self).epilog( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 75, in epilog
    self.create_git_commit( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 98, in create_git_commit
    self.repo.index.commit(msg)
  File "/usr/local/lib/python2.7/dist-packages/git/index/base.py", line 945, in commit
    author_date=author_date, commit_date=commit_date)
  File "/usr/local/lib/python2.7/dist-packages/git/objects/commit.py", line 392, in create_from_tree
    repo.head.set_commit(new_commit, logmsg=message)
  File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 218, in set_commit
    self.set_object(commit, logmsg)
  File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 247, in set_object
    return self._get_reference().set_object(object, logmsg)
  File "/usr/local/lib/python2.7/dist-packages/git/refs/reference.py", line 64, in set_object
    super(Reference, self).set_object(object, logmsg)
  File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 244, in set_object
    return self.set_reference(object, logmsg)
  File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 315, in set_reference
    fd = lfd.open(write=True, stream=True)
  File "/usr/local/lib/python2.7/dist-packages/gitdb-0.6.4-py2.7-linux-armv7l.egg/gitdb/util.py", line 314, in open
    raise IOError("Lock at %r could not be obtained" % self._lockfilepath())
IOError: Lock at '/home/pi/bulgaria/.git/refs/heads/master.lock' could not be obtained
Oskar Pearson
@oskarpearson
May 04 2016 17:14
@xpucuto try 'sudo chown -R pi:pi .'
Hristina Dimova
@xpucuto
May 04 2016 17:14
missing command after pi:pi
do i have to enter the . ?
Jason Calabrese
@jasoncalabrese
May 04 2016 17:18
yeah, you need the .
git status looked ok
Hristina Dimova
@xpucuto
May 04 2016 17:19
ok nothing happened
i stil have hte lock erro
Jason Calabrese
@jasoncalabrese
May 04 2016 17:32
sometimes that happens when reports are run from the cron and command line
Hristina Dimova
@xpucuto
May 04 2016 17:39
i have stoped the cron stil having an error and not uploading for the last 2 hours
not working also
Hristina Dimova
@xpucuto
May 04 2016 18:15
what should i add to run oref0-fix-git-corruption.sh ? i found it in docs but doestn seem to work with openaps or sudo in main dir
Oskar Pearson
@oskarpearson
May 04 2016 18:17
@xpucuto If you're really having hassles you could do the following:
(It removes your git history... not sure if you need it)
sudo rm -rf ~/bulgaria/.git/
cd ~/bulgaria
git init .
git add -A
git commit -m Fix
Hristina Dimova
@xpucuto
May 04 2016 18:19
ok
i will try it dont have better suggestin :)
Not super cheap unfortunately
Hristina Dimova
@xpucuto
May 04 2016 18:22
@oskarpearson :dancer: its workings !!!!!!!!!!!!!!!!!!!!!!!
Oskar Pearson
@oskarpearson
May 04 2016 18:22
Best airport to arrive at is LCY (London City). It's a small airport and quick to get to the rest of the city. Stanstead is far out - about an hour - and the return ticket is £32... so it's better to spend that £32 on a more expensive flight, imho
Gatwick is fine, as is Heathrow
Hristina Dimova
@xpucuto
May 04 2016 18:23
great thank you for this advice.
Oskar Pearson
@oskarpearson
May 04 2016 18:24
BTW: Both Gatwick and Heathrow have express lines, but honestly you don't need to pay extra for it unless you're running late. It doesn't really save you much, and it's expensive
Hristina Dimova
@xpucuto
May 04 2016 18:24
this meeting will be the best BD present ,
Oskar Pearson
@oskarpearson
May 04 2016 18:24
:)
Hristina Dimova
@xpucuto
May 04 2016 18:28
have you decided where it will be? any hotel recommendations ?
Oskar Pearson
@oskarpearson
May 04 2016 18:28
I don't really have any suggestions on hotels. AirBNB is probably cheapest. Otherwise I've never had issues at http://www.premierinn.com/gb/en/home.html - they are a good cheap-and-cheerful option. No idea if there's one near the food place, but they are pretty popular
Dana Lewis
@danamlewis
May 04 2016 18:29
@xpucuto really hope you’ll be able to come, would be awesome to meet you & so many others IRL!
Hristina Dimova
@xpucuto
May 04 2016 18:29
i have no problems with the subway so all i need is a nearby station ;)
will look for a proper flight, but 99% i will come, this is one time opportunity for me! And knowing what is to have an OpenAPS i have to find a way to express my gratitude to all who ahve helped me trough this tough journej
Dana Lewis
@danamlewis
May 04 2016 18:30
hooray! :)
@TC2013 :D openaps/oref0#99
heh, just realized you can “add a reaction” to a comment in an issue. in case anyone likes the idea and wants to react to it ;)
not sure if that’s new, or I just noticed it.
Jason Calabrese
@jasoncalabrese
May 04 2016 18:35
it's pretty new
Dana Lewis
@danamlewis
May 04 2016 18:36
:+1:
Oskar Pearson
@oskarpearson
May 04 2016 18:37
@xpucuto Fastest lines are Victoria, Jubilee, and Central lines. Try avoid commuting on the District line, Hammermith and City. Circle line is pretty convenient in that it goes lots of places, but it's also a bit slow
There are so many options, of course :)
Hristina Dimova
@xpucuto
May 04 2016 18:47
i will ad that to my list. thanks @oskarpearson
i suppose this is a silly question but i have to ask it. Why sometimes , for example last few days my ssh connection has become very slow ? the internet is very good at home what could be the problem ?
Oskar Pearson
@oskarpearson
May 04 2016 19:02
Is it slow to connect the first time? Or slow to type across an existing connection?
if it's slow to connect, it's probably your dns settings... Try type 'host www.google.com' on the pi and see how long it takes
Hristina Dimova
@xpucuto
May 04 2016 19:06
both are slow
answered right away
in the beginning it wasnt slow , could it be shlow because of low memory on the sd card ? just guessing
William Fallon
@inform880
May 04 2016 20:01
I'm getting the dead stick error more and more often since I got the TI stick. I try and use the command to fix it, but it doesn't work. I'm using a pi 3. The only thing that's fixed it is rebooting it, but that doesn't work 100% of the time. Does anybody have any ideas to try?
Jason Calabrese
@jasoncalabrese
May 04 2016 20:01
you have subg_rfspy 0.8
William Fallon
@inform880
May 04 2016 20:18
@jasoncalabrese Yes
Oh, I forgot to mention the way I mainly fix it is by unplugging it and replugging it in again, but again, that doesn't work sometimes
Toby Canning
@TC2013
May 04 2016 20:34
:point_up: May 4, 2016 1:30 PM :clap: :sparkles: :thumbsup:
Matthias
@ceben80
May 04 2016 21:12

@/all
I have defined in my pump 24 basal rates, but basal_profile.json only contains 20 rates - any idea?

  {
    "i": 19, 
    "start": "19:00:00", 
    "rate": 0.7000000000000001, 
    "minutes": 1140
  }, 
  {
    "i": 20, 
    "start": "20:00:00", 
    "rate": 0.7000000000000001, 
    "minutes": 1200
  }

issue is Error: could not get current basal rate

Dana Lewis
@danamlewis
May 04 2016 21:13
you’re doing it the long way ;)
Matthias
@ceben80
May 04 2016 21:15
sorry I do not understand
Dana Lewis
@danamlewis
May 04 2016 21:16
why do you have basals for every hour if they’re the same?
Matthias
@ceben80
May 04 2016 21:17
due experimental reason - nothing changed....yesterday my loop was working :worried:
Dana Lewis
@danamlewis
May 04 2016 21:18
can you set it back to how you had them before?
Matthias
@ceben80
May 04 2016 21:18
but in the json file 4 basal rates are missing
nothing changed the last time in the pump basal rate stetting
Dana Lewis
@danamlewis
May 04 2016 21:19
@scottleibrand, is this where we put a cap on 20 basals?
Matthias
@ceben80
May 04 2016 21:21
I just looked into a basal_profile.json from my backup.....it also contains 20 rates....hmmm
but I didn't remember getting this error before
Error: could not get current basal rate
Ok, will reduce to 20 in the pump
Ben West
@bewest
May 04 2016 21:24
update openaps/decocare
there was a bug fixed only getting 20 rates when there are in fact more
@ceben80 updating decocare should fix
Matthias
@ceben80
May 04 2016 21:25
ok...how to, pls advice :wink:
Ben West
@bewest
May 04 2016 21:25
ls ~/src
Matthias
@ceben80
May 04 2016 21:26
pi@openapspi3:~/myopenaps $ ls ~/src
decoding-carelink  dexcom_reader  openaps  openaps-contrib  oref0
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:27
hmm
cd ~/src/decoding-carelink; git pull origin; sudo python setup.py develop
Matthias
@ceben80
May 04 2016 21:28
pi@openapspi3:~/myopenaps $ cd ~/src/decoding-carelink; git pull origin; sudo python setup.py develop
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 16 (delta 8), reused 8 (delta 8), pack-reused 5
Unpacking objects: 100% (16/16), done.
From git://github.com/bewest/decoding-carelink
   02e1d9b..6393fa6  dev        -> origin/dev
   8247374..9c2142e  master     -> origin/master
 * [new tag]         0.0.23     -> 0.0.23
 * [new tag]         v0.0.23    -> v0.0.23
Updating 02e1d9b..6393fa6
Fast-forward
 decocare/commands.py | 6 +++++-
 setup.py             | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
running develop
running egg_info
writing requirements to decocare.egg-info/requires.txt
writing decocare.egg-info/PKG-INFO
writing top-level names to decocare.egg-info/top_level.txt
writing dependency_links to decocare.egg-info/dependency_links.txt
reading manifest file 'decocare.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'CHANGES.*'
writing manifest file 'decocare.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/decocare.egg-link (link to .)
decocare 0.0.24-dev is already the active version in easy-install.pth
Installing mm-press-key.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
Installing mm-temp-basals.py script to /usr/local/bin
Installing mm-decode-history-page.py script to /usr/local/bin
Installing mm-latest.py script to /usr/local/bin
Installing mm-bolus.py script to /usr/local/bin
Installing mm-set-rtc.py script to /usr/local/bin
Installing mm-pretty-csv script to /usr/local/bin

Installed /home/pi/src/decoding-carelink
Processing dependencies for decocare==0.0.24-dev
Searching for argcomplete==1.1.1
Best match: argcomplete 1.1.1
Processing argcomplete-1.1.1-py2.7.egg
argcomplete 1.1.1 is already the active version in easy-install.pth
Installing register-python-argcomplete script to /usr/local/bin
Installing python-argcomplete-check-easy-install-script script to /usr/local/bin
Installing activate-global-python-argcomplete script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/argcomplete-1.1.1-py2.7.egg
Searching for python-dateutil==2.5.2
Best match: python-dateutil 2.5.2
Processing python_dateutil-2.5.2-py2.7.egg
python-dateutil 2.5.2 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.2-py2.7.egg
Searching for pyserial==2.6
Best match: pyserial 2.6
pyserial 2.6 is already the active version in easy-install.pth

Using /usr/lib/python2.7/dist-packages
Searching for six==1.8.0
Best match: six 1.8.0
six 1.8.0 is already the active version in easy-install.pth

Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for decocare==0.0.24-dev
pi@openapspi3:~/src/decoding-carelink $
Ben West
@bewest
May 04 2016 21:29
great, now you can get 48 basal rates
Matthias
@ceben80
May 04 2016 21:29
ok....will restart my loop
Ben West
@bewest
May 04 2016 21:29
let's verify:
openaps use pump read_selected_basal_profile
Matthias
@ceben80
May 04 2016 21:33
ok...looks better to me
    "i": 20, 
    "start": "20:00:00", 
    "rate": 0.7000000000000001, 
    "minutes": 1200
  }, 
  {
    "i": 21, 
    "start": "21:00:00", 
    "rate": 0.7000000000000001, 
    "minutes": 1260
  }, 
  {
    "i": 22, 
    "start": "22:00:00", 
    "rate": 0.8, 
    "minutes": 1320
  }, 
  {
    "i": 23, 
    "start": "23:00:00", 
    "rate": 0.8, 
    "minutes": 1380
  }
Ben West
@bewest
May 04 2016 21:33
:-)
Matthias
@ceben80
May 04 2016 21:33
but suggested.json is empty
same Error: could not get current basal rate, but doesn't make sense, the basal rates is available....hmm
Ben West
@bewest
May 04 2016 21:35
hmm
which aliases do just that part?
can double check reports, too, let's update openaps and oref0, since it'll give us tools that help debug things
cd ~/src/openaps; git pull; sudo python setup.py develop
cd ~/src/oref0; git pull; sudo npm install -g
Matthias
@ceben80
May 04 2016 21:36
pi@openapspi3:~/myopenaps $ cd ~/src/openaps; git pull; sudo python develop.py
remote: Counting objects: 46, done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 46 (delta 27), reused 5 (delta 5), pack-reused 3
Unpacking objects: 100% (46/46), done.
From git://github.com/openaps/openaps
   a944252..c94593e  dev        -> origin/dev
   b7614bc..2c9ecf2  master     -> origin/master
 * [new tag]         0.1.0      -> 0.1.0
 * [new tag]         v0.1.0     -> v0.1.0
Updating a944252..c94593e
Fast-forward
 LICENSE.txt               |  22 ++++++++++++++++
 README.md                 |  24 +++++++++++++++++
 openaps/__init__.py       |   2 +-
 openaps/reports/show.py   |   8 +++++-
 openaps/vendors/dexcom.py | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 setup.py                  |   4 +--
 6 files changed, 233 insertions(+), 4 deletions(-)
 create mode 100644 LICENSE.txt
python: can't open file 'develop.py': [Errno 2] No such file or directory
pi@openapspi3:~/src/openaps $
Ben West
@bewest
May 04 2016 21:36
ops
sudo python setup.py develop sorry
Matthias
@ceben80
May 04 2016 21:38

pi@openapspi3:~/src/openaps $ sudo python setup.py develop
running develop
running egg_info
writing requirements to openaps.egg-info/requires.txt
writing openaps.egg-info/PKG-INFO
writing top-level names to openaps.egg-info/top_level.txt
writing dependency_links to openaps.egg-info/dependency_links.txt
writing entry points to openaps.egg-info/entry_points.txt
reading manifest file 'openaps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'openaps.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/openaps.egg-link (link to .)
openaps 0.1.1-dev is already the active version in easy-install.pth
Installing openaps script to /usr/local/bin
Installing openaps-device script to /usr/local/bin
Installing openaps-use script to /usr/local/bin
Installing openaps-report script to /usr/local/bin
Installing openaps-vendor script to /usr/local/bin
Installing openaps-alias script to /usr/local/bin
Installing openaps-import script to /usr/local/bin
Installing git-openaps-init script to /usr/local/bin
Installing openaps-install-udev-rules script to /usr/local/bin

Installed /home/pi/src/openaps
Processing dependencies for openaps==0.1.1-dev
Searching for dexcom-reader==0.0.8
Best match: dexcom-reader 0.0.8
dexcom-reader 0.0.8 is already the active version in easy-install.pth

Using /home/pi/src/dexcom_reader
Searching for decocare==0.0.24-dev
Best match: decocare 0.0.24-dev
decocare 0.0.24-dev is already the active version in easy-install.pth

Using /home/pi/src/decoding-carelink
Searching for nose==1.3.7
Best match: nose 1.3.7
Processing nose-1.3.7-py2.7.egg
nose 1.3.7 is already the active version in easy-install.pth
Installing nosetests script to /usr/local/bin
Installing nosetests-2.7 script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg
Searching for mock==1.3.0
Best match: mock 1.3.0
Processing mock-1.3.0-py2.7.egg
mock 1.3.0 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/mock-1.3.0-py2.7.egg
Searching for GitPython==1.0.2
Best match: GitPython 1.0.2
Processing GitPython-1.0.2-py2.7.egg
GitPython 1.0.2 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/GitPython-1.0.2-py2.7.egg
Searching for argcomplete==1.1.1
Best match: argcomplete 1.1.1
Processing argcomplete-1.1.1-py2.7.egg
argcomplete 1.1.1 is already the active version in easy-install.pth
Installing register-python-argcomplete script to /usr/local/bin
Installing python-argcomplete-check-easy-install-script script to /usr/local/bin
Installing activate-global-python-argcomplete script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/argcomplete-1.1.1-py2.7.egg
Searching for python-dateutil==2.5.2
Best match: python-dateutil 2.5.2
Processing python_dateutil-2.5.2-py2.7.egg
python-dateutil 2.5.2 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.2-py2.7.egg
Searching for pyserial==2.6
Best match: pyserial 2.6
pyserial 2.6 is already the active version in easy-install.pth

Using /usr/lib/python2.7/dist-packages
Searching for six==1.8.0
Best match: six 1.8.0
six 1.8.0 is already the active version in easy-install.pth

Using /usr/lib/python2.7/dist-packages
Searching for pbr==1.8.1
Best match: pbr 1.8.1
Processing pbr-1.8.1-py2.7.egg
pbr 1.8.1 is already the active version in easy-install.pth
Installing pbr script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/pbr-1.8.1-py2.7.egg
Searching for gitdb==0.6.4
Best match: gitdb 0.6.4
Processing gitdb-0.6.4-py2.7-linux-armv7l.egg
gitdb 0.6.4 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/gitdb-0.6.4-py2.7-linux-armv7l.egg
Searching for smmap==0.9.0
Best match: smmap 0.9.0
Processing smmap-0.9.0-py2.7.egg
smmap 0.9.0 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/smmap-0.9.0-py2.7.egg
Finished processing dependencies for openaps==0.1.1-dev
pi@openap

and now cd ~/src/oref0; git pull; sudo npm install -g
Ben West
@bewest
May 04 2016 21:39
yes please
Matthias
@ceben80
May 04 2016 21:40
pi@openapspi3:~/src/openaps $ cd ~/src/oref0; git pull; sudo npm install -g
Already up-to-date.
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
/usr/local/bin/oref0-calculate-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-calculate-iob.js
/usr/local/bin/oref0-find-insulin-uses -> /usr/local/lib/node_modules/oref0/bin/oref0-find-insulin-uses.js
/usr/local/bin/oref0-detect-sensitivity -> /usr/local/lib/node_modules/oref0/bin/oref0-detect-sensitivity.js
/usr/local/bin/oref0-determine-basal -> /usr/local/lib/node_modules/oref0/bin/oref0-determine-basal.js
/usr/local/bin/oref0-meal -> /usr/local/lib/node_modules/oref0/bin/oref0-meal.js
/usr/local/bin/oref0-normalize-temps -> /usr/local/lib/node_modules/oref0/bin/oref0-normalize-temps.js
/usr/local/bin/send-tempbasal-Azure -> /usr/local/lib/node_modules/oref0/bin/send-tempbasal-Azure.js
/usr/local/bin/oref0-fix-git-corruption -> /usr/local/lib/node_modules/oref0/bin/oref0-fix-git-corruption.sh
/usr/local/bin/oref0-get-profile -> /usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js
/usr/local/bin/oref0-mint-max-iob -> /usr/local/lib/node_modules/oref0/bin/oref0-mint-max-iob.sh
/usr/local/bin/oref0-ifttt-notify -> /usr/local/lib/node_modules/oref0/bin/oref0-ifttt-notify
/usr/local/bin/oref0-raw -> /usr/local/lib/node_modules/oref0/bin/oref0-raw.js
/usr/local/bin/oref0-reset-usb -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-usb.sh
/usr/local/bin/oref0-reset-git -> /usr/local/lib/node_modules/oref0/bin/oref0-reset-git.sh
/usr/local/bin/mm-format-ns-glucose -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-glucose.sh
/usr/local/bin/mm-format-ns-profile -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-profile.sh
/usr/local/bin/mm-format-ns-treatments -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-treatments.sh
/usr/local/bin/mm-format-ns-pump-history -> /usr/local/lib/node_modules/oref0/bin/mm-format-ns-pump-history.sh
/usr/local/bin/oref0 -> /usr/local/lib/node_modules/oref0/bin/oref0.sh
/usr/local/bin/mm-stick -> /usr/local/lib/node_modules/oref0/bin/mm-stick.sh
/usr/local/bin/ns-upload-entries -> /usr/local/lib/node_modules/oref0/bin/ns-upload-entries.sh
/usr/local/bin/ns-upload -> /usr/local/lib/node_modules/oref0/bin/ns-upload.sh
/usr/local/bin/ns-get -> /usr/local/lib/node_modules/oref0/bin/ns-get.sh
/usr/local/bin/ns-status -> /usr/local/lib/node_modules/oref0/bin/ns-status.js
/usr/local/bin/nightscout -> /usr/local/lib/node_modules/oref0/bin/nightscout.sh
/usr/local/bin/ns-dedupe-treatments -> /usr/local/lib/node_modules/oref0/bin/ns-dedupe-treatments.sh
/usr/local/bin/oref0-html -> /usr/local/lib/node_modules/oref0/bin/oref0-html.js
/usr/local/bin/oref0-template -> /usr/local/lib/node_modules/oref0/bin/oref0-template.js
/usr/local/bin/oref0-copy-fresher -> /usr/local/lib/node_modules/oref0/bin/oref0-copy-fresher
/usr/local/bin/oref0-pebble -> /usr/local/lib/node_modules/oref0/bin/oref0-pebble.js
oref0@0.1.4 /usr/local/lib/node_modules/oref0
├── yargs@4.3.2 (decamelize@1.2.0, camelcase@2.1.1, y18n@3.2.1, require-main-filename@1.0.1, window-size@0.2.0, yargs-parser@2.4.0, lodash.assign@4.0.8, os-locale@1.4.0, string-width@1.0.1, cliui@3.2.0, pkg-conf@1.1.2, read-pkg-up@1.0.1)
├── share2nightscout-bridge@0.1.5 (request@2.53.0)
└── timezone@0.0.47
pi@openapspi3:~/src/oref0 $
Ben West
@bewest
May 04 2016 21:40
great
back to cd ~/myopenaps?
Matthias
@ceben80
May 04 2016 21:40
jupp
starting loop again?
Ben West
@bewest
May 04 2016 21:41
we can see our reports: openaps report show and openaps report show --cli
and maybe openaps alias show
want to zone in on where the errors are coming from and examine more
seems to be when generating the oref0 profile using get-profile
Matthias
@ceben80
May 04 2016 21:42
pi@openapspi3:~/myopenaps $ openaps report show
pump://JSON/mmtune/monitor/mmtune.json
calculate-iob://JSON/shell/monitor/iob.json
pump://JSON/read_settings/settings/settings.json
pump://JSON/set_temp_basal/enact/enacted.json
pump://JSON/read_bg_targets/settings/bg_targets.json
pump://JSON/read_insulin_sensitivities/settings/insulin_sensitivities.json
pump://JSON/read_selected_basal_profile/settings/basal_profile.json
pump://JSON/read_clock/monitor/clock.json
meal://text/shell/monitor/meal.json
pump://JSON/read_carb_ratios/settings/carb_ratios.json
pump://JSON/model/settings/model.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
curl://text/shell/monitor/glucose.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
tz://JSON/clock/monitor/clock-zoned.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
pump://JSON/reservoir/monitor/reservoir.json
tz://JSON/rezone/monitor/pumphistory-zoned.json
get-profile://text/shell/settings/profile.json
determine-basal://text/shell/enact/suggested.json
ns-status://JSON/shell/monitor/upload-status.json
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:42
ah ok
openaps report show --cli settings/profile.json
this will print the corresponding usage command for that report
cat settings/profile.json hopefully there's an error in there?
Matthias
@ceben80
May 04 2016 21:43
pi@openapspi3:~/myopenaps $ openaps report show --cli settings/profile.json
openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json settings/carb_ratios.json
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:43
try that cat to see what's in there
Matthias
@ceben80
May 04 2016 21:43
pi@openapspi3:~/myopenaps $ cat settings/profile.json
{"error":{"errno":34,"code":"ENOENT","path":"settings/carb_ratios.json","syscall":"open"},"msg":"Could not parse carbratio_data. Feature Meal Assist enabled but cannot find required carb_ratios.","file":"settings/carb_ratios.json"}
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:43
ah
:-)
ok great:
watch this:
openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
notice how I left settings/carb_ratios.json out
Matthias
@ceben80
May 04 2016 21:44
but didn't change anything to yesterday
Ben West
@bewest
May 04 2016 21:44
it's optional
and the error there is saying it doesn't exist
you can confirm yourself using cat or ls: cat settings/carb_ratios.json
if openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json works, suggest we change the report definition to match this
Matthias
@ceben80
May 04 2016 21:45
pi@openapspi3:~/myopenaps/settings $ cat settings/carb_ratios.json
cat: settings/carb_ratios.json: No such file or directory
pi@openapspi3:~/myopenaps/settings $
Ben West
@bewest
May 04 2016 21:46
right, doesn't exist
so let's try it without mentioning it
Matthias
@ceben80
May 04 2016 21:46
but wtf has been changed to yesterday....
Ben West
@bewest
May 04 2016 21:46
well, we just updated
and part of the patch you just got was to make error condition more explicit
and it has successfully found a confusing error condition and now stopped working rather than kind of maybe working
Matthias
@ceben80
May 04 2016 21:47
I'm so tired and want to go to bed starting my loop :worried:
Ben West
@bewest
May 04 2016 21:47
but try that use command: openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
we can change the report, to remove the settings/carb_ratios.json
the test above will confirm if it will work or not
Matthias
@ceben80
May 04 2016 21:48
pi@openapspi3:~/myopenaps $ openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
usage: openaps-use get-profile shell [-h] [--not-json-default]
                                     settings bg_targets isf basal_profile
                                     max_iob carb_ratios ...
openaps-use get-profile shell: error: too few arguments
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:49
ah, the device definition
ok:
Matthias
@ceben80
May 04 2016 21:49
sorry Ben, poor concentration from my side at the moment....
Ben West
@bewest
May 04 2016 21:50
openaps device show get-profile --json | json -e "this.extra.fields = 'settings bg-targets insulin-sensitivities basal-profile max-iob'" | openaps import
that will tweak the device config to allow this :-)
Matthias
@ceben80
May 04 2016 21:51
pi@openapspi3:~/myopenaps $ openaps device show --json | json -e "this.extra.fields = this.extra.fields = 'settings bg-targets insulin-sensitivities basal-profile max-iob'" | openaps import
json: error: input is not JSON: Syntax error at line 2, column 1:
        {"type": "device", "cgm": {"vendor": "openaps.vendors.dexcom", "extra": "cgm.ini"}, "name": "cgm", "extra": {}}
        ^
Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-import", line 89, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-import", line 77, in run
    candidates = json.load(args.input)
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 369, in decode
    raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 2 column 1 - line 12 column 1 (char 247 - 2279)
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:52
oy, this time without badness:
openaps device show get-profile --json | json -e "this.extra.fields = 'settings bg-targets insulin-sensitivities basal-profile max-iob'" | openaps import
Matthias
@ceben80
May 04 2016 21:53
pi@openapspi3:~/myopenaps $ openaps device show get-profile --json | json -e "this.extra.fields = 'settings bg-targets insulin-sensitivities basal-profile max-iob'" | openaps import
process://get-profile/oref0/get-profile
pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:54
if openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json now works, here's the report add to change it, make it permanent: openaps report remove settings/profile.json; openaps report add settings/profile.json JSON get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
Matthias
@ceben80
May 04 2016 21:55
pi@openapspi3:~/myopenaps $ openaps use get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
{
  "max_bg": 90,
  "dia": 3,
  "min_bg": 90,
  "max_iob": 8,
  "sens": 30,
  "max_daily_basal": 1.2,
  "type": "current",
  "current_basal": 0.8,
  "max_basal": 7
}pi@openapspi3:~/myopenaps $
Ben West
@bewest
May 04 2016 21:55
nice
great, now we just save the report definition like that to match
Matthias
@ceben80
May 04 2016 21:55
then the report remove?
Ben West
@bewest
May 04 2016 21:55
yeah
Matthias
@ceben80
May 04 2016 21:56
pi@openapspi3:~/myopenaps $ openaps report remove settings/profile.json; openaps report add settings/profile.json JSON get-profile shell settings/settings.jsn settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
removed get-profile://text/shell/settings/profile.json
added get-profile://JSON/shell/settings/profile.json
Ben West
@bewest
May 04 2016 21:56
ok, now the aliases should work
bewest @bewest crosses finger
Ben West
@bewest
May 04 2016 21:56
it should solve that problem
Matthias
@ceben80
May 04 2016 21:56
ok will start my loop...one sec
meanwhile looking for my chat for a final photo for today :cat2:
Ben West
@bewest
May 04 2016 21:59
hehehe, you have some of the best so far
Matthias
@ceben80
May 04 2016 22:00
great
blob
Ben West
@bewest
May 04 2016 22:00
we're back :-D
Matthias
@ceben80
May 04 2016 22:00
but before bedtime I'll send you a cat photo to say thanks
wait....where is Virginia....
Ben West
@bewest
May 04 2016 22:01
I'm curious if determine-basal printed any errors about auto-sens and stuff, for now it's disabled, in the future we can look at getting carb_ratios and other stuff to enable it
but for now, it should be the classic oref0 stuff enabled at least
Matthias
@ceben80
May 04 2016 22:07
I found the cat in my son's room....both are sleeping, but here for YOU Ben this photo
blob
Ben West
@bewest
May 04 2016 22:07
:-D
thanks
Matthias
@ceben80
May 04 2016 22:08
Ben....thank you very much for support - great :tada: :tada: :tada:
now I'll go to bed - good night....APS attached :+1:
Dana Lewis
@danamlewis
May 04 2016 22:16
:)
Matthias
@ceben80
May 04 2016 22:18
Oh Dana I'm so happy my 2nd rig is working again, otherwise rig number 1 is waiting for looping in terms of "disaster" hehe
Ben West
@bewest
May 04 2016 22:22
:-)
Matthias
@ceben80
May 04 2016 22:25
u know fathers day ??
....tomorrow in Germany :smile:
so now finally, good night and thanks again for excellent support @bewest
cheers