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

3rd
May 2016
Dan Piessens
@dpiessens
May 03 2016 00:02
I like select, I think it's the common ground between developers and "normals" (I'm a developer so I can say that :smile: )
Ben West
@bewest
May 03 2016 00:18
I went with select
Jason Calabrese
@jasoncalabrese
May 03 2016 00:19
how's it used?
I wrapped it in ns, but all the parts are available as uses for debugging purposes
it's almost identical to treatments though
Jason Calabrese
@jasoncalabrese
May 03 2016 00:30
what are you thinking we'll do with getting status from NS?
that includes settings
Ben West
@bewest
May 03 2016 00:31
preflight
for now..., it's useful to know if NS exists before attempting to cull/gap-sync/upload
Jason Calabrese
@jasoncalabrese
May 03 2016 00:32
ah, I see, I'm hitting that for my wifi check script
might just be doing a ping
Ben West
@bewest
May 03 2016 00:33
yeah, maybe ping the host in preflight
works great, it can miss a few and will fill them in
works better than treatments, actually
Jason Calabrese
@jasoncalabrese
May 03 2016 00:37
that should fix some edges cases with upload
Ben West
@bewest
May 03 2016 00:37
report-nightscout report invoke nightscout/preflight.json nightscout/recent-treatments.json nightscout/uploaded.json nightscout/recent-missing-entries.json nightscout/uploaded-entries.json
Jason Calabrese
@jasoncalabrese
May 03 2016 00:37
NS does upserts too now
so a little overlap if it's not clear is ok
Ben West
@bewest
May 03 2016 00:39
these two gems are in there:
      ns-get host $NIGHTSCOUT_HOST "${TYPE}.json" 'count=300' \
        | openaps use $ZONE  \
          rezone --astimezone --date dateString - \
        | openaps use $ZONE  \
          lsgaps --minutes 5 --after now  --date dateString -
Jason Calabrese
@jasoncalabrese
May 03 2016 00:39
I'd rather use time ranges then count
Ben West
@bewest
May 03 2016 00:39
yeah, the lsgaps stuff is really interesting
Jason Calabrese
@jasoncalabrese
May 03 2016 00:39
like dia * 2
Ben West
@bewest
May 03 2016 00:39
later, what happens, is select is able to take --gaps input
can handle multiple gaps
that's where second gem comes in:
      openaps use ns shell lsgaps ${ZONE} ${TYPE} \
        |  openaps use ${ZONE} select --current now --gaps - ${FILE}  | json
Jason Calabrese
@jasoncalabrese
May 03 2016 00:41
zone?
Ben West
@bewest
May 03 2016 00:42
tz, whaver the timezone tool is called
the select and lsgaps bits are implemented in the timezone device
Jason Calabrese
@jasoncalabrese
May 03 2016 00:42
oh, would be nice if it just used tz
some config to override
Ben West
@bewest
May 03 2016 00:43
ah, well this way someone can name their timezone tool slicer and it'll still work
Jason Calabrese
@jasoncalabrese
May 03 2016 00:43
oh, hard to read on phone
Ben West
@bewest
May 03 2016 00:44
here are the equiv openaps report show --cli:
openaps use cgm oref0_glucose --hours "1.0" --threshold "100" --no-raw --glucose "raw-cgm/glucose-raw.json" --sensor "sensor_raw.json"
openaps use ns shell format-recent-type tz entries monitor/glucose.json
openaps use ns shell upload entries.json nightscout/recent-missing-entries.json
openaps use ns shell preflight
I just released openaps-contrib with these patches
Jason Calabrese
@jasoncalabrese
May 03 2016 00:50
Nice, cleaner than the multiple devices I have
Ben West
@bewest
May 03 2016 00:54
openaps use cgm oref0_glucose --hours "2.0" --threshold "100" is what I'm using to get both raw + egv merged, sans zones
Jason Calabrese
@jasoncalabrese
May 03 2016 00:54
I need to play with the gap synching to get a feel for it
Ben West
@bewest
May 03 2016 00:55
that gets zoned as monitor/glucose.json
then it's just those two commands
openaps use ns shell format-recent-type tz entries monitor/glucose.json
openaps use ns shell upload entries.json nightscout/recent-missing-entries.json
Jason Calabrese
@jasoncalabrese
May 03 2016 00:55
Should reduce network use a lot
Ben West
@bewest
May 03 2016 00:55
or increase it
it downloads 1k records from NS every time
could make it report and look at cache somehow
Jason Calabrese
@jasoncalabrese
May 03 2016 00:56
Thought that's what it was doing
Looking for gaps in existing files
Ben West
@bewest
May 03 2016 00:56
it could do that with some slightly different reports/uses
the lsgaps and select tools will really help a lot
but this was quick-shot to just get across some line where NS entries + treatments is all coming from openaps`
blob
this one is all wireless, using TI stick + share+ble
Jason Calabrese
@jasoncalabrese
May 03 2016 01:00
I need to give ble an other try, not sure that it NS auth
*or
dougtakeuti
@dougtakeuti
May 03 2016 01:14
Quick cron question: is sudo crontab -e a bad idea?
Jason Calabrese
@jasoncalabrese
May 03 2016 01:15
That's the root cron
If have a wifi reset script there
Instead of needing a sudo in the cron
Ben West
@bewest
May 03 2016 01:17
you probably want without sudo
dougtakeuti
@dougtakeuti
May 03 2016 01:17
yes, I'm trying to learn bash scripting, but I'm not sure how to run a script that run a sudo in the cron
Ben West
@bewest
May 03 2016 01:17
oh, you need sudo in the cron?
dougtakeuti
@dougtakeuti
May 03 2016 01:17
sudo date
Ben West
@bewest
May 03 2016 01:18
shouldn't need sudo for that
dougtakeuti
@dougtakeuti
May 03 2016 01:19
to set a date in the edison?
Ben West
@bewest
May 03 2016 01:19
ah, I see
yeah, sudo crontab -e
then it's root's cron, not yours
dougtakeuti
@dougtakeuti
May 03 2016 01:21
do I run separate crontabs? like openaps stuff in crontab -e and just what requires sudo in sudo crontab -e?
Ben West
@bewest
May 03 2016 01:22
right
dougtakeuti
@dougtakeuti
May 03 2016 01:22
ok, thanks!
Scott Leibrand
@scottleibrand
May 03 2016 01:37
there is another option as well: set up passwordless sudo, and you can run sudo in your user crontab entries
something like edison ALL=(ALL) NOPASSWD: ALL at the end
dougtakeuti
@dougtakeuti
May 03 2016 01:39
you mean at the end of crontab?
Scott Leibrand
@scottleibrand
May 03 2016 01:39
sorry, at the end of /etc/sudoers
you have to use visudo to edit it
or more likely sudo visudo
dougtakeuti
@dougtakeuti
May 03 2016 01:40
I see. I like that
Scott Leibrand
@scottleibrand
May 03 2016 01:41
since syntax errors would cut your air hose and prevent you from fixing them (unless you log in directly as root), they do a wrapper script to check for those before committing any changes
Hristina Dimova
@xpucuto
May 03 2016 02:46
Good morning everyone. My loop is runnng but the excitement is bigger and scares the sleep away.
By battery will arrive in 3 days and now im powering the pi from either my laptop to power outlet. Sometimes its hard to shut it down from the laptop so i want to be able to access it from my phone, unfortunately it doesnt work. On both Serverauditor and Prompt 2 i have connection error and it can not connect. Any suggestions ?
Dana Lewis
@danamlewis
May 03 2016 02:46
are you on the same network?
Hristina Dimova
@xpucuto
May 03 2016 02:46
yes
Scott Leibrand
@scottleibrand
May 03 2016 02:54
Make sure you're connecting to the right hostname or IP
Sometimes the .local hostnames don't work and you need to use the IP address.
Hristina Dimova
@xpucuto
May 03 2016 02:56
right, with hostname is not woking obviously. I need to find the IP of PI right?
found it, im in :dancer:
Dana Lewis
@danamlewis
May 03 2016 03:21
:+1:
Hristina Dimova
@xpucuto
May 03 2016 03:35
simple advice how to see my cron log file ?
it should be in tee -a /var/log/openaps/loop.log unfortunately google didnt help much .
Ben West
@bewest
May 03 2016 03:37
crontab -l
Hristina Dimova
@xpucuto
May 03 2016 03:38
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
NIGHTSCOUT_HOST=https://***.azurewebsites.net
API_SECRET=e5fd259c0b0ff64d9ae00dce00d0a6a67cfe8861
* * * * * killall -g --older-than 10m openaps
* * * * * cd bulgaria && oref0-reset-git
* * * * * cd bulgaria && ( ps aux | grep -v grep | grep -q 'openaps retry-loop' || openaps retry-loop ) 2>&1 | tee -a /var/log/openaps/loop.log
Andrew Warrington
@andrew-warrington
May 03 2016 06:13
@oskarpearson @colinlennon @timomer and other Londoners @danamlewis for the meetup, I have invited Karl Beetson, a UK diabetes campaigner and key figure in #flyingwithdiabetes. He's very interested in OpenAPS but his pump is incompatible. Thought it would be nice to have both White House and Buckingham Palace invitees in attendance. :) http://www.flyingwithdiabetes.com/
May we settle on May 26th? So he can reserve his train ticket.
Also, any ideas where in London we should meet up? I gather it will be quite informal, at a pub or restaurant?
Colin Lennon
@colinlennon
May 03 2016 06:35
@andrew-warrington Great Andrew! The 26th should be fine for me, if we can confirm a date it'll allow me to book train tickets etc. too.
Oskar Pearson
@oskarpearson
May 03 2016 06:39
I'm able to do 25th or 26th.
We could do the Unboxed office again, but only on the 25th (there's something happening at the offices on the 26th already)
John Sjolund
@sjolundjohn
May 03 2016 07:53
Now back in the saddle after getting last parts together

I am struggling a little with conversion process, I have the units function working, it converts correctly into bg_targets and insulin_sensitivities correctly.

However when trying to run profile.json I run into problems

openaps report add settings/profile.json text get-profile shell settings/settings.json settings/bg_targets_raw.json settings/bg_targets.json settings/insulin_sensitivities_raw.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json

Am I perhaps supposed to use either settings/bg_targets_raw.json OR settings/bg.targets.json depending upon if conversion with units is happening?

Ben West
@bewest
May 03 2016 07:56
what happens when you invoke?
is there error?
what is the equivalent use, it should give more errors
John Sjolund
@sjolundjohn
May 03 2016 07:57
When I invoke profile.json I get:
pi@raspberrypi:~/openaps $ cat settings/profile.json
BG Target data is expected to be expressed in mg/dL. Found mmol/L in settings/bg_targets_raw.json .
Ben West
@bewest
May 03 2016 07:57
aha
hmmm you ran units?
John Sjolund
@sjolundjohn
May 03 2016 07:57
yes, and it works fine as I can tell
Ben West
@bewest
May 03 2016 07:57
openaps report show
this will list all reports
somehow profile use is not getting all inputs as same units
John Sjolund
@sjolundjohn
May 03 2016 07:59
pi@raspberrypi:~/openaps $ openaps report show
ns-status://JSON/shell/monitor/upload-status.json
units://JSON/bg_targets/settings/bg_targets.json
nightscout://JSON/read_settings/settings/settings.json
nightscout://JSON/read_bg_targets/settings/bg_targets_raw.json
nightscout://JSON/read_insulin_sensitivies/settings/insulin_sensitivities_raw.json
nightscout://JSON/read_basal_profile_std/settings/basal_profile.json
get-profile://text/shell/settings/profile.json
nightscout://JSON/iter_pump_hours/monitor/pumphistory.json
nightscout://JSON/read_clock/monitor/clock.json
calculate-iob://JSON/shell/monitor/iob.json
nightscout://JSON/read_temp_basal/monitor/temp_basal.json
dexcom://JSON/iter_glucose/monitor/glucose.json
determine-basal://text/shell/enact/suggested.json
units://JSON/insulin_sensitivities/settings/insulin_sensitivities.json
Ben West
@bewest
May 03 2016 07:59
openaps --version ?
John Sjolund
@sjolundjohn
May 03 2016 07:59
Need to figure command for that, just reinstalled everything from master yesterdy
Ben West
@bewest
May 03 2016 08:00
interesting, you named your pump nightscout :-)
let
let's look at aliases as well: openaps alias show
John Sjolund
@sjolundjohn
May 03 2016 08:02
any chance when I add the profile.json that it looks for info from both bg_targets and bg_targets_raw.json?
pi@raspberrypi:~/openaps $ openaps alias show
gather-profile report invoke settings/settings.json settings/bg_targets_raw.json settings/bg_targets.json settings/insulin_sensitivities_raw.json settings/insulin_sensitivities.json settings/basal_profile.json settings/profile.json
monitor-pump report invoke monitor/clock.json monitor/temp_basal.json monitor/pumphistory.json monitor/iob.json
monitor-cgm report invoke monitor/glucose.json
Ben West
@bewest
May 03 2016 08:03
openaps --version
John Sjolund
@sjolundjohn
May 03 2016 08:04
0.1.0
Ben West
@bewest
May 03 2016 08:04
i'm tempted to have you try: openaps/docs#132
oh beautiful
what about
npm show -g oref0 gitHead
John Sjolund
@sjolundjohn
May 03 2016 08:05
Long number, what is this?
Ben West
@bewest
May 03 2016 08:06
it's version of oref0 that is installed
John Sjolund
@sjolundjohn
May 03 2016 08:06
36264a03051e81e00aea9040109757824d8518e1
Ben West
@bewest
May 03 2016 08:06
$ npm show -g oref0 gitHead
36264a03051e81e00aea9040109757824d8518e1
oh wow
you already have some devices added
would try: openaps/docs#132
but for you...
your device is named pump so...
oref0 template mint reports medtronic-pump --name nightscout
replace that --name nightscout for you in the comments in the issue
John Sjolund
@sjolundjohn
May 03 2016 08:10
I have already setup essentially all reports, alias etc, can I run this process and still be in good shape?
Ben West
@bewest
May 03 2016 08:11
it just prints the json template
for preview
I recommend trying it out in a new openaps init foobar
you can import it adding | openaps import to the end
that's what actually imports the report definitions to your openaps
I designed them so they should not interfere with the docs
there's no aliases, but maybe the aliases in the comments might help
John Sjolund
@sjolundjohn
May 03 2016 08:14
To repeat back to be sure I get it:
Colin Lennon
@colinlennon
May 03 2016 08:14
@sjolundjohn You aren't using a US pump, are you? I had a mmol/l vs mg/dl issue and it was because I'm using mmol/l with a US pump. If you are, let me know and I can find the details
John Sjolund
@sjolundjohn
May 03 2016 08:15
@colinlennon this is correct. I have a US Dexcom and a non-US pump
@bewest
1) Setup a new openaps instance
2) Follow instructions in the section comment 'new style walkthrough'
3)
Ben West
@bewest
May 03 2016 08:18
num 2 in your list is good to understand what impact it will have on your instance
it should mostly just create bunch f reports for you:
Colin Lennon
@colinlennon
May 03 2016 08:18
@sjolundjohn Ah, it won't be the same issue then, if your pump is a European one.
Ben West
@bewest
May 03 2016 08:19
when you do openaps report show, instead of pump:// it should say nightscout:// for you

get-profile://text/shell/oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json
determine-basal://text/shell/oref0-predict/oref0.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
pump://JSON/read_clock/raw-pump/clock-raw.json
tz://JSON/clock/monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
pump://JSON/model/model.json
pump://JSON/reservoir/monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
oref0://JSON/shell/settings/settings.json
pump://JSON/read_settings/raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
pump://JSON/read_temp_basal/raw-pump/temp-basal-status.json
pump://JSON/reservoir/raw-pump/reservoir.json
pump://JSON/read_status/raw-pump/status.json
pump://JSON/read_battery_status/raw-pump/battery.json
ns://JSON/shell/nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
John Sjolund
@sjolundjohn
May 03 2016 08:19
@colinlennon I think it is the same issue, it is conversion which is the problem
Ben West
@bewest
May 03 2016 08:20
the template command prints json, which you can | openaps import to import the reports
John Sjolund
@sjolundjohn
May 03 2016 08:21
@bewest getting it setup right now
oref0 template mint device oref0 | openaps import
Kicks up lots of errors for me
pi@raspberrypi:~/test_openaps $ oref0 template mint device oref0 | openaps import
Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.0', 'openaps-import')
  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.0-py2.7.egg/EGG-INFO/scripts/openaps-import", line 89, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.0-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.0-py2.7.egg/EGG-INFO/scripts/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 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Ben West
@bewest
May 03 2016 08:37
err
$ oref0 template mint device oref0
[{"extra":{"fields":"","cmd":"oref0","args":""},"type":"device","name":"oref0","oref0":{"vendor":"openaps.vendors.process","extra":"oref0.ini"}},{"extra":{"fields":"settings bg-targets insulin-sensitivities basal-profile max-iob","cmd":"oref0","args":"get-profile"},"type":"device","name":"get-profile","get-profile":{"vendor":"openaps.vendors.process","extra":"get-profile.ini"}},{"type":"device","calculate-iob":{"vendor":"openaps.vendors.process","extra":"calculate-iob.ini"},"name":"calculate-iob","extra":{"fields":"pump-history oref0-profile clock","cmd":"oref0","args":"calculate-iob"}},{"determine-basal":{"vendor":"openaps.vendors.process","extra":"determine-basal.ini"},"type":"device","name":"determine-basal","extra":{"fields":"oref0-iob temp-basal glucose oref0-profile","cmd":"oref0","args":"determine-basal"}}]
I get something like that
oh curious
 oref0 template mint device oref0 | openaps import
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
openaps device show
John Sjolund
@sjolundjohn
May 03 2016 08:41
pi@raspberrypi:~/test_openaps $ openaps device show
process://oref0/oref0/
medtronic://nightscout
only dif I see is you did not use | openaps import
Ben West
@bewest
May 03 2016 08:43
$  oref0 template mint device oref0 | openaps import
process://oref0/oref0/
process://get-profile/oref0/get-profile
process://calculate-iob/oref0/calculate-iob
process://determine-basal/oref0/determine-basal
the gitHead seemed the same, so seems like you should get similar output
John Sjolund
@sjolundjohn
May 03 2016 08:45
I had trouble installing the plugins, perhaps that is why?
Ben West
@bewest
May 03 2016 08:45
maybe
which plugins?
John Sjolund
@sjolundjohn
May 03 2016 08:46
openaps vendor add mmeowlink.vendors.mmeowlink
openaps vendor add openapscontrib.timezones
openaps vendor add openapscontrib.mmhistorytools
Ben West
@bewest
May 03 2016 08:46
have timezones and mmhistory tools
John Sjolund
@sjolundjohn
May 03 2016 08:46
Those did not work for me, could that do it?
Ben West
@bewest
May 03 2016 08:46
oh?
openaps vendor show
err
I'm fading very quickly, apolgies
getting quite late here
John Sjolund
@sjolundjohn
May 03 2016 08:47
openaps vendor show
That is likely it, no vendors in there
No problem, I have the advantage of it being my morning
Ben West
@bewest
May 03 2016 08:49
openaps vendor add openapscontrib.timezones
err, sorry
yeah
John Sjolund
@sjolundjohn
May 03 2016 08:50
I am going to reinstall from scratch, I didn't install from git and didn't use dev. Fixing now
Ben West
@bewest
May 03 2016 08:51
you actually were up to date
that what we checked with openaps --version and npm show -g oref0 githead
John Sjolund
@sjolundjohn
May 03 2016 08:52
pi@raspberrypi:~/test_openaps/tutorial $ openaps vendor add openapscontrib.timezones
No module named recurrent
openapscontrib.timezones doesn't seem to be an importable python module
If it is a python module, try using --path to influence
PYTHONPATH
wrong directory
2/3 plugins worked, timezone did not
Ben West
@bewest
May 03 2016 08:54
I see
I had a problem with this
mmhistorytools is fighting with timezones due to a mistake on my part
I haven't quite solved it, I had to delete mmhistorytools in meantime
John Sjolund
@sjolundjohn
May 03 2016 08:56
I installed timezones first, before mmhistorytools and still got error
Hristina Dimova
@xpucuto
May 03 2016 08:59
@bewest @sjolundjohn regarding the poblem with the units from the start of the conversation i have sent a PR, where i remove the two raw files when making settings/profile.json and since then it works perfectly .
i have tried it couple of times when i was testing and as soon as i add them i had the same error for mmol detected
John Sjolund
@sjolundjohn
May 03 2016 09:00
I am testing this now also
Hristina Dimova
@xpucuto
May 03 2016 09:00
:+1:
Ben West
@bewest
May 03 2016 09:00
thanks, feel free to link it
also, I'm faded
Hristina Dimova
@xpucuto
May 03 2016 09:01
i did. Scott has reviewed it, probably he has forgotton to merge it.
bewest @bewest is a pumpkin
Hristina Dimova
@xpucuto
May 03 2016 09:01
This message was deleted
John Sjolund
@sjolundjohn
May 03 2016 09:02
Got it:
openaps report add settings/profile.json text get-profile shell settings/settings.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json max_iob.json
just removed references to raw in there
Hristina Dimova
@xpucuto
May 03 2016 09:02
great .
bewest @bewest sleeps better
Hristina Dimova
@xpucuto
May 03 2016 09:04
sleep weel @bewest .
John Sjolund
@sjolundjohn
May 03 2016 09:08
Thanks for the help @bewest
Hristina Dimova
@xpucuto
May 03 2016 09:14
:+1: i will try with the new gapsync tools later today ;)
John Sjolund
@sjolundjohn
May 03 2016 12:37
$ openaps vendor add openapscontrib.timezones
This sucker is causing some problems when trying to add still
Jarred Yaw
@jyaw
May 03 2016 12:37
Hey everyone! New here, so I'm looking for info and piecing together my system. I can't carry a phone with me at work most of the time and was looking to find some way to upload data directly to a watch from a pi/edison (local nightscout instance?) - Anybody seen this done?
tazitoo
@tazitoo
May 03 2016 13:20
@jyaw - I've seen this: https://github.com/mddub/pancreabble (sorry don't have experience with smart watches)
John Sjolund
@sjolundjohn
May 03 2016 13:24
@bewest I am playing around with enacted.json - which is working, but considering how and if additional logic needs to be inserted into it, beyond what it already gets from earlier reports / commands. Any suggested places to start thinking / reading?
John Sjolund
@sjolundjohn
May 03 2016 13:43
Correct syntax?
openaps alias add enact "openaps preflight && openaps gather"
Colin Lennon
@colinlennon
May 03 2016 13:44
Hey all
A week or two back, there was some chat about the possibility of hosting a Nightscout instance on a Raspberry Pi and running OpenAPS alongside it
I managed to get this working. I need an offline rig for the occasions where I'm out of mobile and WiFi range
I don't have a G4 receiver, only the transmitter and I use xDrip to get my readings into Nightscout
It works well. I used this repo - https://github.com/dhermanns/rpi-nightscout - which is a docker container with a MongoDB instance and a node.js instance running Nightscout 0.8.0
I installed Docker on top of standard Jessie
If anyone is interested, let me know and I can share some more details.
Colin Lennon
@colinlennon
May 03 2016 13:50
And thanks to @dhermanns - your work made this nice and easy for me! :clap: :smile:
Jarred Yaw
@jyaw
May 03 2016 13:56
@tazitoo that's exactly what I'd want to do while at work, thanks!
Dana Lewis
@danamlewis
May 03 2016 14:02
@colinlennon would be great to throw even a one line note in the docs to say it's possible and link to that repo :)
Colin Lennon
@colinlennon
May 03 2016 14:03
@danamlewis Sure, I've forked the docs to add the BLE tethering instructions already, so I'll add that in while I'm there
While you're here @danamlewis , can you remind me which date we settled on for the London meetup? 25th or 26th?
Dana Lewis
@danamlewis
May 03 2016 14:31
Awesome @colinlennon
26th.
Colin Lennon
@colinlennon
May 03 2016 14:33
:+1:
Dana Lewis
@danamlewis
May 03 2016 14:33
@oskarpearson Aisling also offered to get us a space, or we can pick a restaurant. I'm fine with either, but knowing I have to eat at some point ;) leaning slightly toward that unless someone has a stronger reason to pick otherwise
Chris Oattes
@cjo20
May 03 2016 14:57
@danamlewis I've not been paying enough attention here recently, are there firm plans for a meetup yet?
Dana Lewis
@danamlewis
May 03 2016 15:00
26 May!
Chris Oattes
@cjo20
May 03 2016 15:01
Of course it'd be a thursday :P I'll try to be there
Dana Lewis
@danamlewis
May 03 2016 15:02
I land at 6am Wednesday and will be working all day, so I thought I'd be a little more awake/with it for Thursday instead ;)
Chris Oattes
@cjo20
May 03 2016 15:04
sounds good
where will you be staying?
Dana Lewis
@danamlewis
May 03 2016 15:14
@cjo20 Shoreditch I believe. Can't remember what neck of the woods everyone said they're in. But I have a dinner suggestion: http://www.nichefoodanddrink.com
dhermanns
@dhermanns
May 03 2016 15:23
@colinlennon Great to hear that it was helpful!
Oskar Pearson
@oskarpearson
May 03 2016 15:25
The last meetup I hosted was very lacking on the food-and-drinks front, so that works for me. :)
Chris Oattes
@cjo20
May 03 2016 15:26
That's pretty easy for me to get to (I get in to London Euston)
Oskar Pearson
@oskarpearson
May 03 2016 15:27
Siobhan will be overjoyed on the Gluten Free front :)
Dana Lewis
@danamlewis
May 03 2016 15:27
:)
Colin Lennon
@colinlennon
May 03 2016 15:35
Looks good to me!
I'm currently on master, but I'd like to get AMA set up. Am I best to switch to the dev branch first and get that working?
Dana Lewis
@danamlewis
May 03 2016 16:00
@colinlennon @oskarpearson @cjo20 @andrew-warrington & anyone else for London meetup on 26 May: http://whoozin.com/HEE-9P9-CPDV - would be great to RSVP here for you and any +1s so I can track numbers and make a reservation. (If we have >8, I’ll find an alternative location for us.)
Oskar Pearson
@oskarpearson
May 03 2016 16:02
I've captured myself. I've asked for confirmation from Siobhan - we both booked both evenings in our diary just in case, so it shouldn't be a problem. But she's a midwifery student so they change her work nights whenever someone feels like it :)
Dana Lewis
@danamlewis
May 03 2016 16:03
:) thx on both fronts!
Andrew Warrington
@andrew-warrington
May 03 2016 17:50
I've captured me and my son. Will forward the info to Karl Beetson so he can register himself if he can make it.
Dana Lewis
@danamlewis
May 03 2016 17:53
:+1:
benhamou
@benhamou
May 03 2016 18:05
@xpucuto how was ur loop
Scott Leibrand
@scottleibrand
May 03 2016 18:07
@colinlennon yes, start with dev and set up meal assist etc.
Colin Lennon
@colinlennon
May 03 2016 18:10
Thanks @scottleibrand , that should keep me busy for a while :smile:
Hristina Dimova
@xpucuto
May 03 2016 18:11
@benhamou working, not very hard due to the lack if proper battery but from thursday things will be different. Are you looping ?
benhamou
@benhamou
May 03 2016 18:14
no unfortunatetly not
Hristina Dimova
@xpucuto
May 03 2016 18:14
there is no going back ;)
benhamou
@benhamou
May 03 2016 18:14
I think my next steps are to upload my treatment I can run manually
and then the cron
i am sure that there is no way back, i am desperate to do soo
i improved my health soo much by cgm but i think the next step loop will be a big step forward again
are u doin meal assist
@xpucuto
Hristina Dimova
@xpucuto
May 03 2016 18:17
yes , its awesome. no i dont i cant count carbs
benhamou
@benhamou
May 03 2016 18:17
why not
Dana Lewis
@danamlewis
May 03 2016 18:17
@xpucuto what do you mean, you can’t count carbs? How do you bolus for meals?
benhamou
@benhamou
May 03 2016 18:18
will there be any looper meetup again
Dana Lewis
@danamlewis
May 03 2016 18:18
@benhamou where are you located?
benhamou
@benhamou
May 03 2016 18:18
germany
Hristina Dimova
@xpucuto
May 03 2016 18:20
i bolus average amount of units , i was 11 when diagnosed and my mom used to take care of me, and there wasn’t so much information about carbs etc here in Bulgaria
now things are different with internet you can find anything
i entr carbs only if it is calculated on the label but rarely eat such foods
benhamou
@benhamou
May 03 2016 18:21
u need to estimate at least
Hristina Dimova
@xpucuto
May 03 2016 18:23
well yeah but its not always precise :(
benhamou
@benhamou
May 03 2016 18:24
certainly not
Dana Lewis
@danamlewis
May 03 2016 18:24
@xpucuto good to know, and I wouldn’t recommend using meal-assist if you’re not comfortable with how precise you are. thanks for sharing.
benhamou
@benhamou
May 03 2016 18:24
what does watchface mean
Hristina Dimova
@xpucuto
May 03 2016 18:24
@danamlewis thanks Dana i read about it and definately decided its not for me :)
Dana Lewis
@danamlewis
May 03 2016 18:24
:)
choices! choices are great :)
benhamou
@benhamou
May 03 2016 18:25
yeah
black eyed peas said once choose or lose much sense in it
Hristina Dimova
@xpucuto
May 03 2016 18:25
watchface is the type of screen you have on your pebble/ apple watch
benhamou
@benhamou
May 03 2016 18:25
argh, thank u i feel sooo old fashioned
Dana Lewis
@danamlewis
May 03 2016 18:26
@benhamou we make up words all the time around here :)
Hristina Dimova
@xpucuto
May 03 2016 18:26
@danamlewis is there a setup guide for the Auto-sensitivity mode ?more intrested in this feature
but as always, probably could use some edits and a PR to improve :)
Hristina Dimova
@xpucuto
May 03 2016 18:27
lovely :bouquet:
as i have promised i will make PR when i setup my second rig ;)
Dana Lewis
@danamlewis
May 03 2016 18:28
;) :+1:
Matthias
@ceben80
May 03 2016 18:54
@xpucuto wow...speedy rig builder :smile:
I'm currently build my 3rd (Edison) rig :tada:
1st is pi2 with Carelink, 2nd pi3 with TI-Stick :star2:
Hristina Dimova
@xpucuto
May 03 2016 18:56
:P except my back up rig there is a long list of people who want me to help them setup . Help in native language is always preffered ;)
So i have no choice but learn fast
alright i have a lot of questions for Edison but there is still time for it :)
i’ll have you on my mind ;)
can yo uhelp with mmeowlink ?
Matthias
@ceben80
May 03 2016 18:57
And then 4 rig are missing....for each day of the week a APS :smile:
Hristina Dimova
@xpucuto
May 03 2016 18:57
:D
like pill box one for each day
Jason Calabrese
@jasoncalabrese
May 03 2016 18:58
a fleet of rigs
Matthias
@ceben80
May 03 2016 18:58
yes I hope :wink:
Hristina Dimova
@xpucuto
May 03 2016 18:58
i will ask it there
Matthias
@ceben80
May 03 2016 18:58
My wife shakes her head.....crazy diabetic husband
Hristina Dimova
@xpucuto
May 03 2016 18:59
oh i dont wnt you get in trouble
i wil fix it tomorrow
no worries
@jasoncalabrese how many rigs do you have ? i am sure you a lot of them ….
Dana Lewis
@danamlewis
May 03 2016 19:01
How many rigs is too many? ;)
Jason Calabrese
@jasoncalabrese
May 03 2016 19:01
4 edisons, 2 pis, and 2 pi zeros that I play with
Dana Lewis
@danamlewis
May 03 2016 19:02
I think I have 8 right now? :)
@jasoncalabrese :clap:
Hristina Dimova
@xpucuto
May 03 2016 19:02
OMG thats a real fortune ….
in a good way of course
Andrew Warrington
@andrew-warrington
May 03 2016 19:02
rig envy. i think it's time here for a second rig.
Jason Calabrese
@jasoncalabrese
May 03 2016 19:02
need at least 2, but 3 is good, then more is more
Dana Lewis
@danamlewis
May 03 2016 19:03
yea. 2 is good (1 home/1mobile, or 1 production/1 dev)
Hristina Dimova
@xpucuto
May 03 2016 19:03
and as everything else you get addicted
Andrew Warrington
@andrew-warrington
May 03 2016 19:03
yeah 1 dev I need.
keep testing in prod
Hristina Dimova
@xpucuto
May 03 2016 19:03
3 is my lucky number
i will achieve it someday
Dana Lewis
@danamlewis
May 03 2016 19:04
:)
Hristina Dimova
@xpucuto
May 03 2016 19:04
or late night :D
Andrew Warrington
@andrew-warrington
May 03 2016 19:05
on an unrelated note, I changed the colour of mine. and brought it to the airport today to ask security whether I was going to get shot on May 24th when I fly to London. Well I didn't actually ask it that way...
they scanned it, then said "no problem".
Jason Calabrese
@jasoncalabrese
May 03 2016 19:07
surprised they would scan it without a boarding pass
Andrew Warrington
@andrew-warrington
May 03 2016 19:07
yep. well smaller airport.
let's see what happens when I try to come back from London. :)
Jason Calabrese
@jasoncalabrese
May 03 2016 19:08
I had my backpack with 4 rigs in it, they didn't even open it
or even do the wipe for explosives
Andrew Warrington
@andrew-warrington
May 03 2016 19:08
THAT is something to think about when you fly.
Dana Lewis
@danamlewis
May 03 2016 19:08
none of the big or small airports ever notice or care even with 6+ rigs, batteries, cords, etc.
Andrew Warrington
@andrew-warrington
May 03 2016 19:09
Yeah this one has that intricately soldered remote control, some of you might remember the pics from months ago. embedded in a package soldered to its battery... etc.
but what I understand now I think is that they can see what the materials are in the scanner, not only the shape
so they know the batts are batts, and that there is no explosive.
i think.
Jason Calabrese
@jasoncalabrese
May 03 2016 19:10
yeah, they know what a bomb looks like and what are generic electronics
but juice boxes, those are super dangerous and sometimes need a supervisor
Andrew Warrington
@andrew-warrington
May 03 2016 19:10
haha!
i went to the airport with cover. brought two of my kids aged 9 and 11 hoping they would profile me as a harmless person when I opened the device.
afterwards my 11 year old told me one of the security people looked scared. i didn't notice, i was talking to the supervisor.
:P anyhow. it's all fine apparently.
Jason Calabrese
@jasoncalabrese
May 03 2016 19:16
would be fun to test with different stereotypes
next time shave your head and grow a long beard
Jason Calabrese
@jasoncalabrese
May 03 2016 19:24
maybe it's advanced enough that it's not like that now
Scott Leibrand
@scottleibrand
May 03 2016 19:29
they stereotype still in terms of choosing who gets selected for additional screening, but regardless of what level of screening you get, they know the difference between electronics and explosives (unlike certain school officials in Texas), so you won't get any trouble from carrying electronics onto the plane.
Jason Calabrese
@jasoncalabrese
May 03 2016 20:14
wow, Tandem stock down 20% on the United Health/Medtronic deal
Dana Lewis
@danamlewis
May 03 2016 20:15
sigh
Jason Calabrese
@jasoncalabrese
May 03 2016 20:17
we're going to need to build our own pump
Dana Lewis
@danamlewis
May 03 2016 20:17
that’s not an area that I’d probably get into
Bill McBain
@mcbill
May 03 2016 20:31
So sad from an innovation point of view
My tslim warranty is up in Dec and I have UHC. Maybe I'll be switching from my wife's to my own company's insurance next year. oOr hopefully I'll be looping fulltime with my old 722
William Fallon
@inform880
May 03 2016 20:47

I'm getting this error, and I have no idea what to do about it:

pi@raspberrypi:~/myopenaps $ openaps report invoke monitor/glucose.json
cgm://JSON/iter_glucose/monitor/glucose.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-report", line 82, 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-report", line 75, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/pi/src/openaps/openaps/reports/invoke.py", line 48, in main
    reporters.Reporter(report, device, task)(output)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 18, in __init__
    self.output = getattr(self.method, 'get_output_stream', default_prep_stream)(self)
  File "/home/pi/src/openaps/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'monitor/glucose.json'

Any ideas?

Jason Calabrese
@jasoncalabrese
May 03 2016 20:48
the monitor directory exists?
William Fallon
@inform880
May 03 2016 20:49
Nope! Just found that out. This happened when I had to unplug my pi, it disconnected from the wifi for some reason.
Jason Calabrese
@jasoncalabrese
May 03 2016 20:51
hopefully you didn't loose much else
William Fallon
@inform880
May 03 2016 20:56
I seem to have gotten it working again. Does anybody else have a lot of issues with a dead stick, even with the ti stick?
Ben West
@bewest
May 03 2016 20:59
no, not with TI stick
William Fallon
@inform880
May 03 2016 21:00
The TI stick cut it down a lot for me compared to the carelink, but I still get it sometimes
Jason Calabrese
@jasoncalabrese
May 03 2016 21:01
I get it some, and need to do the reset
Colin Lennon
@colinlennon
May 03 2016 21:30
Okay, I think I have submitted a PR to add BLE tethering instructions to the dev docs - specifically, to docs/docs/docs/walkthrough/phase-0/rpi.md @scottleibrand @danamlewis
Not 100% sure I've did it correctly though!
I can certainly see my changes in the openaps/docs repo, so hopefully it has worked. Any problems, please let me know
Dana Lewis
@danamlewis
May 03 2016 21:32
@colinlennon I see the commit note, but not sure it’s a PR that I can merge
let me take a closer look
Colin Lennon
@colinlennon
May 03 2016 21:34
thanks
Dana Lewis
@danamlewis
May 03 2016 21:35
i see the commit in your docs, so I think you still need to create a PR and target openaps dev
can you try a PR from your docs to openaps dev? then it should p ull that change in
Colin Lennon
@colinlennon
May 03 2016 21:36
yip I think that's it... 2 minutes...
That should be it I think...
Dana Lewis
@danamlewis
May 03 2016 21:37
I see a PR! woohoo
Colin Lennon
@colinlennon
May 03 2016 21:38
:smile:
Dana Lewis
@danamlewis
May 03 2016 21:40
merged. :confetti_ball: