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

28th
Jan 2016
Scott Leibrand
@scottleibrand
Jan 28 2016 00:00
didn't touch https://github.com/oskarpearson/mmeowlink/wiki/TI-USB-stick yet, though, as I haven't actually written subg_rfspy to anything yet
Jim Matheson
@jmatheson
Jan 28 2016 00:01
Here is my project for 2016 https://github.com/jmatheson/murselessaps
Dana Lewis
@danamlewis
Jan 28 2016 00:01
hahahaha
you might regret that naming in the future ;) but fun and distinct so that’s a win ;) :)
Jason Calabrese
@jasoncalabrese
Jan 28 2016 00:22
@scottleibrand the same wiring from the edison should work with the ti
think it's the same pins, just different sizes
Ben West
@bewest
Jan 28 2016 00:27
blob
Jason Calabrese
@jasoncalabrese
Jan 28 2016 00:29
an angry unicorn, ha
Ben West
@bewest
Jan 28 2016 00:30
is it just me?
their whole site seems down
Dana Lewis
@danamlewis
Jan 28 2016 00:30
it’s github
got it for the docs, too
they can’t handle our awesomeness :)
Jim Matheson
@jmatheson
Jan 28 2016 00:30
yea, down
Ben West
@bewest
Jan 28 2016 00:31
ok, good
Jim Matheson
@jmatheson
Jan 28 2016 00:31
probably all the traffic to my murseless page
Ben West
@bewest
Jan 28 2016 00:31
their status site was also down briefly
but it's now reporting everything is fine
Jason Calabrese
@jasoncalabrese
Jan 28 2016 00:32
was just looking at that
now red, but timestamps are weird https://status.github.com/messages
Dana Lewis
@danamlewis
Jan 28 2016 00:33
@jmatheson totally ;)
Ben West
@bewest
Jan 28 2016 00:38
wow, wonder what happened there
Tim Howard
@tghoward
Jan 28 2016 00:39
I've still got the angry unicorn!
Ben West
@bewest
Jan 28 2016 00:40
yeah, apparently git push/pull still works
but their api/web interfaces are down down down
Jason Calabrese
@jasoncalabrese
Jan 28 2016 00:40
a push failed for me
remote: Unexpected system error after push was received.
remote: These changes may not be reflected on github.com!
Tim Howard
@tghoward
Jan 28 2016 00:42
anyone know if oref0 had a recent change in determine-basal?
/home/pi/src/oref0/bin/oref0-determine-basal.js:63
        bgTime = new Date(glucose_data[0].display_time.replace('T', ' '));
                                                       ^
TypeError: Object 1453939560000 has no method 'replace'
Dana Lewis
@danamlewis
Jan 28 2016 00:42
no…might be related to current github downtime? Also, are you in dev or master?
meal assist has been the main WIP that I can think of
Ben West
@bewest
Jan 28 2016 00:43
no, that's a bug
Jason Calabrese
@jasoncalabrese
Jan 28 2016 00:43
display_time might not be a string, maybe a data issue?
Ben West
@bewest
Jan 28 2016 00:43
or data issue
Tim Howard
@tghoward
Jan 28 2016 00:43
I'm feeding it data like this, cleaned up by nates glucosetools
[
  {
    "display_time": 1453939560000, 
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 9, 
    "dateString": "2016-01-27T19:06:00-0500", 
    "packet_size": 0, 
    "op": 57, 
    "device": "openaps://medtronic/pump/cgm",
Ben West
@bewest
Jan 28 2016 00:43
ah
Tim Howard
@tghoward
Jan 28 2016 00:44
so i'm wondering if display_time needs to be like dateString all of a sudden
used to work like this
Ben West
@bewest
Jan 28 2016 00:44
I think some of it got cut off
missing the bottom
or, that one is incomplete
Tim Howard
@tghoward
Jan 28 2016 00:45
yes, that's just all I got from head
Ben West
@bewest
Jan 28 2016 00:45
ah, try head -n 20
Tim Howard
@tghoward
Jan 28 2016 00:46
here's the first record, in full
[
  {
    "display_time": 1453939560000, 
    "name": "GlucoseSensorData", 
    "date_type": "prevTimestamp", 
    "_tell": 9, 
    "dateString": "2016-01-27T19:06:00-0500", 
    "packet_size": 0, 
    "op": 57, 
    "device": "openaps://medtronic/pump/cgm", 
    "type": "sgv", 
    "glucose": 114
  },
Ben West
@bewest
Jan 28 2016 00:46
ah, very nice
hmm
what happens if you run mm-format-ns-glucose --orefo on that?
display_time looks wrong somehow
hmm
nothing
actually, it's worse, heh
this is MM cgm data
Tim Howard
@tghoward
Jan 28 2016 00:50
yep, that's right .. MM cgm data
:smile:
that's why it got run through openaps-glucosetools
I can tweak with a json -e call
but I just did a big upgrade and the old code that used to work is getting stuck here. That's why I asked if there had been a tweak to oref0. @scottleibrand ?
Chris Oattes
@cjo20
Jan 28 2016 00:53
in case you didn't know, github is currently deaded
Tim Howard
@tghoward
Jan 28 2016 00:54
yep. angry unicorn!
Chris Oattes
@cjo20
Jan 28 2016 00:54
cool rainbow hair though :P
Scott Leibrand
@scottleibrand
Jan 28 2016 00:55
@tghoward you can do git blame to see when and by whom that line of code was last updated
unfortunately I didn't write any of it with MDT data in mind, so that still needs to be fixed. I think there might be a PR to do so...
Tim Howard
@tghoward
Jan 28 2016 00:56
really? cool, that's a new one to me. I'll google the syntax
Scott Leibrand
@scottleibrand
Jan 28 2016 00:58
and when github comes back, check out openaps/oref0#54
FWIW, the "These changes may not be reflected on github.com!" message doesn't seem to break git pushes and pulls
I just pushed a change, got that, and was still able to pull it from another box
Ben West
@bewest
Jan 28 2016 01:01
the message is correct, I guess
it is not reflected on github.com
Scott Leibrand
@scottleibrand
Jan 28 2016 01:02
yeah, that part is true. the git repo itself is separate though.
Ben West
@bewest
Jan 28 2016 01:02
right
Tim Howard
@tghoward
Jan 28 2016 01:02
@scottleibrand so the line in question, you added/modified on 9-13, which almost certainly was before my last big update, so that isn't the problem. drat.
scottleibrand @scottleibrand nods
Scott Leibrand
@scottleibrand
Jan 28 2016 01:03
you may have had some very specific workarounds in place to get the fields into expected format
you may need to do that again, or help review openaps/oref0#54 and get it to handle your format
Ben West
@bewest
Jan 28 2016 01:03
does oref0 expect same as NS?
Tim Howard
@tghoward
Jan 28 2016 01:03
Yes, I'll step through things and dig them up.
Ben West
@bewest
Jan 28 2016 01:03
was thinking we might add a docs directory to oref0
Dana Lewis
@danamlewis
Jan 28 2016 01:04
for glossary, or ?
Ben West
@bewest
Jan 28 2016 01:04
each tool needs it's own foobar.md file to describe what it does, the inputs it expects, etc
Dana Lewis
@danamlewis
Jan 28 2016 01:04
:+1:
Ben West
@bewest
Jan 28 2016 01:05
I stared including similar for each use in medtronic, added help output that included example json docs as well specifying which fields were required and what they were
but I can't remember what oref0 needs vs NS vs what mm vs dexcom does off hand anymore
dougtakeuti
@dougtakeuti
Jan 28 2016 01:08
@scottleibrand and @bewest I still get the same error and cannot generate monitor/upload-status.json. Any other ideas?
Jim Matheson
@jmatheson
Jan 28 2016 01:09
i got my keyboard delivered before github is back up :)
Scott Leibrand
@scottleibrand
Jan 28 2016 01:09
:-)
Ben West
@bewest
Jan 28 2016 01:09
lol
Scott Leibrand
@scottleibrand
Jan 28 2016 01:10
@juliatakeuti your gist is inaccessible now that github is down. can you paste the latest error?
Ben West
@bewest
Jan 28 2016 01:10
impressive that gitter is still working
I bet people can't sign in on another device or similar though
Scott Leibrand
@scottleibrand
Jan 28 2016 01:11
@juliatakeuti also, can you try running the command manually?
Tim Howard
@tghoward
Jan 28 2016 01:13
aha! glucosetools just got a rehab. I bet that's my problem.
dougtakeuti
@dougtakeuti
Jan 28 2016 01:14
openaps report invoke monitor/upload-status.json
ns-status://JSON/shell/monitor/upload-status.json
monitor/upload-status.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.0.9', 'openaps-report')
  File "/usr/local/lib/python2.7/dist-packages/setuptools-19.6-py2.7.egg/pkg_resources/__init__.py", line 727, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/setuptools-19.6-py2.7.egg/pkg_resources/__init__.py", line 1652, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-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.0.9-py2.7.egg/openaps/cli/subcommand.py", line 50, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.9-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.0.9-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.0.9-py2.7.egg/openaps/vendors/process.py", line 81, 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
Scott Leibrand
@scottleibrand
Jan 28 2016 01:15
ok, try running ns-statusmanually (not part of the report) with all the appropriate arguments, and see what you get there
dougtakeuti
@dougtakeuti
Jan 28 2016 01:22
Is the syntax openaps ns-status args or just ns-status args ?
Scott Leibrand
@scottleibrand
Jan 28 2016 01:23
Try it. :-)
Use -h
dougtakeuti
@dougtakeuti
Jan 28 2016 01:26
so that's it: command not found
this is what I have in openaps.ini:
[device "ns-status"]
fields = clock iob suggested enacted battery reservoir status
cmd = ns-status
vendor = openaps.vendors.process
args =
and then
ns-status monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/current_battery_status.json monitor/reservoir.json monitor/current_pump_status.json
-bash: ns-status: command not found
or
pi@raspberrypi:~/jujuba $ openaps ns-status monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/current_battery_status.json monitor/reservoir.json monitor/current_pump_status.json
openaps: 'ns-status' is not an openaps command. See 'openaps --help'.
Scott Leibrand
@scottleibrand
Jan 28 2016 01:31
Is your oref0 up to date?
not sure if that one requires running dev
dougtakeuti
@dougtakeuti
Jan 28 2016 01:32
how do I check that?
Scott Leibrand
@scottleibrand
Jan 28 2016 01:34
Did you install from source or packages?
I'd re-run quick-packages.sh or quick-src.sh
i think you can also do npm -ls oref0
JaysonEwer
@JaysonEwer
Jan 28 2016 01:36
+1 for the murselessaps! :-D @jmatheson @danamlewis @scottleibrand
Scott Leibrand
@scottleibrand
Jan 28 2016 01:38
Guess it's actually npm ls oref0
dougtakeuti
@dougtakeuti
Jan 28 2016 01:39
I installed it using the package manager
``
pi@raspberrypi:~/jujuba $ npm ls oref0
/home/pi/jujuba
└── (empty)
Scott Leibrand
@scottleibrand
Jan 28 2016 01:47
Hmm
dougtakeuti
@dougtakeuti
Jan 28 2016 01:47
pi@raspberrypi:~/jujuba $ curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-src.sh | bash -
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html>'
Scott Leibrand
@scottleibrand
Jan 28 2016 01:56
yeah, github is down. :(
ah: npm ls -g oref0
without the -g you have to be in the oref0 directory (which I was) :)
Scott Leibrand
@scottleibrand
Jan 28 2016 02:04
0.1.2 (the latest release of master) has ns-status
if you have an older version, you'll need to do an npm install -g oref0 to updated it
Jim Matheson
@jmatheson
Jan 28 2016 02:04
Now they are just down for “maintenance”…. riiiight
Scott Leibrand
@scottleibrand
Jan 28 2016 02:05
emergency maintenance to fix the problem. :)
JaysonEwer
@JaysonEwer
Jan 28 2016 02:10
I much prefer the Unicorn. :D
Dana Lewis
@danamlewis
Jan 28 2016 02:24
:+1:
dougtakeuti
@dougtakeuti
Jan 28 2016 02:24
@scottleibrand it worked! thanks a lot for your help and patience! Time to go to bed, but it is so tempting to just carry on to see this uploading...
Dana Lewis
@danamlewis
Jan 28 2016 02:28
:) :) :)
Jim Matheson
@jmatheson
Jan 28 2016 02:35
it’s baaak
JaysonEwer
@JaysonEwer
Jan 28 2016 02:55
@jmatheson I just submitted my first PR to jmatheson/murselessaps @danamlewis is going to be mad ad me for not doing a PR here first! ;-)
Dana Lewis
@danamlewis
Jan 28 2016 02:56
hehehe. mad? no. your guilty conscience will prompt you to do a PR to openaps docs soon as a result though ;)
Jim Matheson
@jmatheson
Jan 28 2016 02:56
nice.
JaysonEwer
@JaysonEwer
Jan 28 2016 02:56
@juliatakeuti Perhaps this is my problem too. Which update method did you use? I'm able to do a manual update of my NS site using ns-update, but i'm unable to add it to my loop. What problems were you seeing?
Jim Matheson
@jmatheson
Jan 28 2016 02:57
the project is really getting a head of steam quickly.
JaysonEwer
@JaysonEwer
Jan 28 2016 02:58
@danamlewis I"m starting to get the hang of this PR stuff. I had it all wrong in my head earlier. I worked with @jmatheson for almost 2 hours and then @jasoncalabrese helped get me sorted. I think @jmatheson and I learned something?
Dana Lewis
@danamlewis
Jan 28 2016 02:59
I’m sure you did :) #followthetrailofgreenbuttons
and when it doesn’t work, reverse the head, and try again ;)

zombiePRapproach

dougtakeuti
@dougtakeuti
Jan 28 2016 03:01
@JaysonEwer I used npm install -g oref0
JaysonEwer
@JaysonEwer
Jan 28 2016 03:02
@juliatakeuti Sweet, I'll make sure I've got the latest, just to make sure that's not my problem. Thank you.
dougtakeuti
@dougtakeuti
Jan 28 2016 03:03
but my problem was that I simply could not generate a monitor/upload-status.json report
JaysonEwer
@JaysonEwer
Jan 28 2016 03:03
@jmatheson That image of your MUCH IMPROVED murse, looks awesome! Thanks for accepting my PR into master!
Ah, ok, i've got that report working. I'm still missing something though, because I can't figure out why I"m unable to add openaps status-upload to my loop and have it work, but when I issue it from the cli it works fine.
Cosmo Wolfe
@cozmo
Jan 28 2016 03:05
Does anyone here remember the remotes some older medtronic pumps came with? I think they were marketed for parents to control their kid’s pumps from afar. They looked like old style car remotes (http://ecx.images-amazon.com/images/I/51vzpJ2sdUL._AC_UL320_SR294,320_.jpg) and basically had the up down escape and activate buttons?
Jim Matheson
@jmatheson
Jan 28 2016 03:05
I have one
Dana Lewis
@danamlewis
Jan 28 2016 03:05
Yep, they’re still in circulation @cozmo
Jim Matheson
@jmatheson
Jan 28 2016 03:06
we can thank those for leaving access for openaps
Cosmo Wolfe
@cozmo
Jan 28 2016 03:06
Is there any reason the carelink stick is used over those? As I understand the carelink stick gives more control but the remotes have a longer range no?
Or is the carelink stick used for reading medtronic CGM data?
Jim Matheson
@jmatheson
Jan 28 2016 03:07
no basal
Dana Lewis
@danamlewis
Jan 28 2016 03:07
@cozmo yes. those remotes only do bolus and suspend. OpenAPS is built around temporary basal rates
and yes, carelinnk can also read medtronic CGM data if you’re using that CGM. the remote has no ‘read’ capabilities
Cosmo Wolfe
@cozmo
Jan 28 2016 03:08
Do the remotes still work even if you have the newer medtronic firmware?
(that doesn’t support open APS)
Scott Leibrand
@scottleibrand
Jan 28 2016 03:08
carelink stick is also required to read off bolus and temp basal history to determine IOB
Dana Lewis
@danamlewis
Jan 28 2016 03:08
there’s been some cool hardware work and some options over the carelink that significantly improve range, though - workign on getting those documented, but my test runs are pretty stellar compared to what I was seeing with the carelink.
Martin Haeberli
@mhaeberli
Jan 28 2016 03:09
@danamlewis color me very interested … !
Scott Leibrand
@scottleibrand
Jan 28 2016 03:10
yes, remotes allow you to easy bolus or suspend a newer pump (523 or 530). I believe @andrew-warrington is using that approach with a newer pump. problem with that approach is it's not walk-away or dead-battery safe: if the pump is suspended when the pump battery dies, it won't unsuspend itself, and you may wake up at 400.
Dana Lewis
@danamlewis
Jan 28 2016 03:10
@mhaeberli here’s a pic of the three hardware setups: https://twitter.com/danamlewis/status/691827539661168641
Scott Leibrand
@scottleibrand
Jan 28 2016 03:11
so much better to go with a 522 or older 523, and use a carelink stick or one of the replacement radio sticks to talk to the pump
Cosmo Wolfe
@cozmo
Jan 28 2016 03:11
@scottleibrand Makes sense. Just trying to get a lay of the land, option wise.
Martin Haeberli
@mhaeberli
Jan 28 2016 03:11
@danamlewis thx ! (from > 30,000 ft via JetBlue)
Dana Lewis
@danamlewis
Jan 28 2016 03:12
:) yay, modern technology!
JaysonEwer
@JaysonEwer
Jan 28 2016 03:46
@danamlewis regarding the Ti stick and Reiley in your tweet above.
Dana Lewis
@danamlewis
Jan 28 2016 03:47
@JaysonEwer yup?
JaysonEwer
@JaysonEwer
Jan 28 2016 03:53
Oops sorry I was composing that on my phone an accidentally sent it. Just wondering which has the better range, the TI or the RL?
I'm debating which route I want to take!
Dana Lewis
@danamlewis
Jan 28 2016 03:55
Ha, no worries. Close to body, same for range. (I ran with RL on my left arm and pump was on left hip, and it did great). My TI with Pi reads across the room, but RL isn't getting quite that distance. So in order, I would say Carelink -> RileyLink -> TI in terms of range. (And my current setup is one Pi/Carelink under the bed; Edison/RL for bedside table and when I go out; and then Pi/TI to cover my (large) living room.)
Scott Leibrand
@scottleibrand
Jan 28 2016 03:56
But depending on where the pump is in relation to the TI & RL, sometimes the
RL will loop from the next room while the TI can't.
Good to have two radios going if you're not wearing one.
JaysonEwer
@JaysonEwer
Jan 28 2016 03:58
Where is the best place to get a TI, do I have to order that directly from TI? Or is this already documented and I'm just being lazy.
Jim Matheson
@jmatheson
Jan 28 2016 03:59
i just ordered mine :)
JaysonEwer
@JaysonEwer
Jan 28 2016 03:59
Where?
Jim Matheson
@jmatheson
Jan 28 2016 03:59
TI
Dana Lewis
@danamlewis
Jan 28 2016 03:59
It's not documented yet, no worries. But if anyone wants to do that… :D
JaysonEwer
@JaysonEwer
Jan 28 2016 03:59
Url?
Jim Matheson
@jmatheson
Jan 28 2016 03:59
This message was deleted
Dana Lewis
@danamlewis
Jan 28 2016 04:01
oh, correct. I meant integration with the openaps docs :)
:+1:
JaysonEwer
@JaysonEwer
Jan 28 2016 04:03
Thank you @jmatheson . Did you order the debugger also?
Jim Matheson
@jmatheson
Jan 28 2016 04:04
No, i figured you would order one. I just put your address down as the ship to so once you get mine set up you can send it to me.
Scott Leibrand
@scottleibrand
Jan 28 2016 04:05
Sounds like someone is volunteering @JaysonEwer for some extra work. :-p
Jim Matheson
@jmatheson
Jan 28 2016 04:05
seriously though, i did not order one. I am not sure if it is really needed and if not i am hoping some else in or near SF has one i can use?
Scott Leibrand
@scottleibrand
Jan 28 2016 04:05
you will need access to a cc-debugger or goodfet to write the firmware, or will need to get someone to do that part for you.
Jim Matheson
@jmatheson
Jan 28 2016 04:05
Yea, that is what i figured.
Dana Lewis
@danamlewis
Jan 28 2016 04:06
@dm61 thx for the ongoing work to your PR :) just merged
JaysonEwer
@JaysonEwer
Jan 28 2016 04:06
Deal, order two, send to me, I'll pickup the debugger and get it all setup and ship yours to you.
Jim Matheson
@jmatheson
Jan 28 2016 04:07
haha
JaysonEwer
@JaysonEwer
Jan 28 2016 04:08
:smiley:
But you did order the stick, just not the tool needed to make it work right away. That's cool, I'm sure you can find someone to help set it up out there.
Dragan Maksimovic
@dm61
Jan 28 2016 04:12
@danamlewis, thanks
Jim Matheson
@jmatheson
Jan 28 2016 04:13
i did. i am crossing my fingers that someone in the area has one. If not i will buy one and then be the person in the area that has one for others.
there is a mmeowlink gitter channel you might want to join
Dragan Maksimovic
@dm61
Jan 28 2016 04:17
The carelink appalling range is annoying; so, the TI stick is the way to go?
Scott Leibrand
@scottleibrand
Jan 28 2016 04:26
For now that's the best option. Yard Stick One may be better, but someone needs to figure out how to flash subg_rfspy to it over USB.
To make full use of it will likely require firmware that can use its amplifiers too.
With that, we might be able to get whole-house range. :-)
Dragan Maksimovic
@dm61
Jan 28 2016 04:30
If we had a chance to put together a custom board with everything (no cables), what would we put on it? Say: Edison + TI + couple of spare USB ports + BLE + WiFi +ability to turn everything on and off at will.
Scott Leibrand
@scottleibrand
Jan 28 2016 04:31
Edison has BLE and wifi built in.
Dragan Maksimovic
@dm61
Jan 28 2016 04:32
oh, that would make things even easier
Scott Leibrand
@scottleibrand
Jan 28 2016 04:32
Its USB is OTG, so you'll need a hub to do more than one device.
Dragan Maksimovic
@dm61
Jan 28 2016 04:33
ok; I'd need to look at Edison some more...
Scott Leibrand
@scottleibrand
Jan 28 2016 04:38
Check out the mmeowlink wiki page. Lots of good info on hardware options.
There's an ERF that is even smaller than the TI if you want to wire it directly.
But I would start with the TI then move toward that.
Dragan Maksimovic
@dm61
Jan 28 2016 04:41
sure, just thinking a bit ahead - if an opportunity comes up to do some work on hardware; places like sparkfun could produce such custom boards in small quantities
Scott Leibrand
@scottleibrand
Jan 28 2016 04:44
Getting an ERF style board that screws into the Edison without soldering would be really cool.
schulzedj
@schulzedj
Jan 28 2016 04:47
Is there any instructions other than a fragmented wiki on setting up the cron?
*Are
There's been lots of discussion here in gitter, so might be worthwhile searching for "cron" and seeing some of those dialogues.
(Web interface has a better search than the Gitter app)
schulzedj
@schulzedj
Jan 28 2016 04:51
That would be the one- trying to decipher what it all means and then what to do with it...
Dana Lewis
@danamlewis
Jan 28 2016 04:52
Cron is the schedule that will run your loop.
So you'll want to tell it what to run, and when.
This is the part you definitely don't want to copy and paste without understanding, but some of those who have recently made it past this stage may have some more helpful descriptions about the thought process they worked through to build their cron.
marius a. eriksen
@mariusae
Jan 28 2016 04:56
@scottleibrand dunno if you've tried the devkit (has a PCB antenna)
@scottleibrand but I get killer range with it. Whole house no problem.
@scottleibrand of course this is also using ping, with 2fsk; likely more robust to interference
Scott Leibrand
@scottleibrand
Jan 28 2016 05:02
Yeah. (As I sit here in a restaurant watching comms fail from 2 inches away, probably due to 900Mhz cordless phones interfering with the MDT lousy OOK encoding.)
Ali Mazaheri
@amazaheri
Jan 28 2016 05:12
:)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:15
Or maybe it was the almost-dead li-po. :-)
died completely 5m later.
schulzedj
@schulzedj
Jan 28 2016 05:17
@danamlewis I know there is a way to copy and paste code though I have yet to figure that one out- Set up thus far has all been manual keystrokes. Still working through debugging my alias and reports. Looking forward to actual live contact with the meet up next week. This chat board is not one of my strengths. Can't wait to finally meat JSON. I hear he's pretty data driven ;-)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:19
LOL
marius a. eriksen
@mariusae
Jan 28 2016 05:22
maybe the real answer is to build a little relay/transcoder that can be glued to teh pump :-)
Ali Mazaheri
@amazaheri
Jan 28 2016 05:22
cant wait for our 2000 lipo
Scott Leibrand
@scottleibrand
Jan 28 2016 05:31
well, that was the original plan with the RileyLink: it was supposed to be a BT to 900Mhz relay/bridge. and that was literally strapped to the pump and still having intermittent comms...
it worked often enough to loop effectively, but was failing more often than not.
Jim Matheson
@jmatheson
Jan 28 2016 05:33
it’s nice to see my BG at 84 and dropping then noticing that the loop temp’d me to zero about 15 mins ago.
Dana Lewis
@danamlewis
Jan 28 2016 05:34
:)
Matt Pressnall
@logichammer
Jan 28 2016 05:43
great progress, @JaysonEwer...did you get NS uploads to work?
I just added some documentation here that should hopefully help folks with NS uploads:
And sweet news about the two new ways to get OpenAPS working! Looking forward to seeing / hearing more about it Wednesday! Our three day looping extravaganza went perfect! Endo prescribed Medtronic sets for us so once we get those, we will be doing more testing / looping...and looking forward to increasing range!
Dana Lewis
@danamlewis
Jan 28 2016 05:46
:)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:49
you're describing how it would work if we had a linear 4h IOB decay curve. in fact, we use a curve that starts out flat, gets steeper around peak insulin activity, and then flattens out again toward the end of DIA
Matt Pressnall
@logichammer
Jan 28 2016 05:51
fark
let me see how I might describe that differently, then
Scott Leibrand
@scottleibrand
Jan 28 2016 05:52
it might still be useful to explain it that way, with caveats that you're walking through a simplified version, and that in reality insulin activity curves vary over the course of DIA
Matt Pressnall
@logichammer
Jan 28 2016 05:52
Yeah, I like that...will edit...noticed I had another image to include so edits coming
Scott Leibrand
@scottleibrand
Jan 28 2016 05:53
interestingly, that linear math is what we use for expected delta (to indicate the rate BG needs to rise or fall to get eventualBG to target over DIA hours)
but that only really comes into play when you're high without enough IOB
Matt Pressnall
@logichammer
Jan 28 2016 05:54
totally...(also, I am not a math geek...I leave that to my wife)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:55
me neither. I tried to apply my high school calculus to figure out the IOB curve formulas, and finally gave up and wrote an algorithm in excel and did a curve fit to figure out the two quadratic formulas that were the integrals of my simplified linear insulin activity curves.
Matt Pressnall
@logichammer
Jan 28 2016 05:56
I know a lot about Batman if that helps
(I don't think it does)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:57
hehe
Dana Lewis
@danamlewis
Jan 28 2016 05:57
Bat belt? ;)
Instead of a @jmatheson Murse ;)
Matt Pressnall
@logichammer
Jan 28 2016 05:58
Ella has a utility belt for sure...and her AP is called R2D2 because it is droid that helps her...
Dana Lewis
@danamlewis
Jan 28 2016 05:58
:)
Scott Leibrand
@scottleibrand
Jan 28 2016 05:59
not BB8? :)
Matt Pressnall
@logichammer
Jan 28 2016 06:00
She named it before we saw 7...and her two uploader phones are Luke and Leia so we're keeping it old school for now...maybe the next AP we build we be updated, though!
Scott Leibrand
@scottleibrand
Jan 28 2016 06:00
:-)
Matt Pressnall
@logichammer
Jan 28 2016 06:08
How's this for a caveat before the example:
The following example uses straight linear math for the purposes of simplicity in explanation. In reality, the AP algorithm assumes that insulin effectiveness starts off flat, over time builds in efficacy, and eventually tapers off in its usefulness.
Scott Leibrand
@scottleibrand
Jan 28 2016 06:08
sounds good
Matt Pressnall
@logichammer
Jan 28 2016 06:08
merci!
Dana Lewis
@danamlewis
Jan 28 2016 06:09
:+1:
Matt Pressnall
@logichammer
Jan 28 2016 06:10
PR is now updated...let me know if I should do a little HTML work to get those images sized well...hoping that when served out, it actually scales them down.
Dana Lewis
@danamlewis
Jan 28 2016 06:15
Checked on my phone, but let me look tomorrow on a laptop to see how it looks before merging.
Matt Pressnall
@logichammer
Jan 28 2016 06:16
Sounds good...I can get them shaped up quickly if needed...curious to see if online it makes them look OK. Locally in Chrome, they are too big.
Scott Leibrand
@scottleibrand
Jan 28 2016 06:18
Matt Pressnall
@logichammer
Jan 28 2016 06:19
Awesome! Does what I wanted...dynamic scaling...all is well!
Matthias
@ceben80
Jan 28 2016 10:46
Hi everybody....Unfortunately a APS beginner, I have added my 722 - so far so good. The Carelink Stick is connected to Rpi but the first communication test fails when trying openaps use <my_pump_name> model
This message was deleted
Matthias
@ceben80
Jan 28 2016 11:09
now it works...a mistake by setting up the SN
Oskar Pearson
@oskarpearson
Jan 28 2016 11:42
@ceben80 - try not to share your serial number - it makes you vulnerable to idiot hackers.. I'd suggest you delete that message (on the right hand side of the text you can delete it)
but yep, the problem is you're using the full serial number rather than the digits only
Matthias
@ceben80
Jan 28 2016 11:59
@oskarpearson good hint, aber "delete" is grayed for me
who is able to delete my post?
Oskar Pearson
@oskarpearson
Jan 28 2016 12:00
Not sure. You might have more luck on the desktop client - or on the web app. you might need to delete the image rather than the post itself
@scottleibrand do you know if there's an admin that could delete the message? Failing that, @ceben80 might need to contact gitter themselves
What an introduction, hey @ceben80 :(
If there's anywhere you think it'd be good to have a warning about sharing the serial number, please let us know - or create a pull request or issue on the document repository on github
Jason Calabrese
@jasoncalabrese
Jan 28 2016 14:09
Don't know if there are really admins with gitter, of you can't do it from the desktop website, you might need to contact gitter
JaysonEwer
@JaysonEwer
Jan 28 2016 14:29
@logichammer Regarding your question about NS uploads, I don't have it automated yet, but I'm able to manually run the ns-upload command and it works. I'll check out your new docs. THANKS!!
skrugman
@skrugman
Jan 28 2016 16:43
hey all, got running in the last few days. (so exciting :) Now a bit of troublshooting...im getting "ssh: Could not resolve hostname sarapie.local: nodename nor servname provided, or not known" when trying to login through my computer at home, wifi stick is blue/on, im connected to internet on my comp, battery is charged, have unplugged and replugged everything except the battery on the pi....any other thoughts of why i cant find it? (I have previously logged in from here successfully...
Dana Lewis
@danamlewis
Jan 28 2016 16:52
in absence of other suggestions yet…I’d try rebooting the Pi and physically plugging/unplugging as well. (I can’t explain why, but sometimes unplugging and replugging fixes the weirdest stuff that I can’t explain)
(also: woot!! :))
skrugman
@skrugman
Jan 28 2016 16:59
woot woot. will try. thanks @danamlewis !
Jim Matheson
@jmatheson
Jan 28 2016 17:28
giphy.gif
Feeling a bit like Steph after looping for 3 days.
Scott Leibrand
@scottleibrand
Jan 28 2016 17:29
If that doesn't work, you'll need to figure out the IP address directly. You can do that over console with something like ifconfig wlan0 or externally using a tool like nmap
hehe
Dana Lewis
@danamlewis
Jan 28 2016 17:30
@jmatheson :)
Scott Leibrand
@scottleibrand
Jan 28 2016 17:30
Avahi (mDNS for .local) is not that reliable.
Pete Schwamb
@ps2
Jan 28 2016 17:30
Yeah, I see that too. Anyone have workarounds for avahi issues?
Scott Leibrand
@scottleibrand
Jan 28 2016 17:30
Fortunately most wifi routers keep the IP pretty static.
I was considering a dynamic dns service...
Also considering using digital ocean's API to update my domain's DNS records.
I also have a wget in cron that reports the current local IP to my web server so I can check those logs if needed.
And I also have it establishing an SSH tunnel to my server so I can log in that way.
Jim Matheson
@jmatheson
Jan 28 2016 17:36
@danamlewis did we hit 30 loopers yet?
Dana Lewis
@danamlewis
Jan 28 2016 17:38
^ Anyone who’s looped 3+ nights should fill that out :)
Jim Matheson
@jmatheson
Jan 28 2016 17:41
yea, i am filling it out now. I was just curious since my gif above would be funnier if i was looper #30 :)
Ben West
@bewest
Jan 28 2016 17:45
you don't find mdns reliable?
I find that the network hopping itself is not reliable
Scott Leibrand
@scottleibrand
Jan 28 2016 17:48
I lose mDNS even with no network change.
I also have a script that re-does dhclient if I lose outside connectivity.
Losing DHCP seems to be the main cause of network hopping unreliability, but can also happen with no network change. I have IPv6, so I can sometimes get in that way when I lose IPv4 DHCP. :-)
Ben West
@bewest
Jan 28 2016 17:50
so the issue is the ipv4 router you are connected to being wonky
Pete Schwamb
@ps2
Jan 28 2016 17:51
I see failure to resolve raspberrypi.local, even when no network changes have occured, and the rpi is still on the same ip.
avahi usually only works for about 15 minutes for me.
after restart
Ben West
@bewest
Jan 28 2016 17:54
hmmm, was debating extending the advertisements
Scott Leibrand
@scottleibrand
Jan 28 2016 17:57
Please share any other workarounds that end up making a difference.
Dana Lewis
@danamlewis
Jan 28 2016 17:59
Congrats @jmatheson …you are indeed #30 ;) and #OpenAPS is officially (n=1)*30!
Jim Matheson
@jmatheson
Jan 28 2016 18:03
:thumbsup: thank you to everyone that helped me get this far @jasoncalabrese @eyim @danamlewis @scottleibrand @bewest @loudnate @mgranberry sorry if i forgot anyone!
Scott Leibrand
@scottleibrand
Jan 28 2016 18:04
:-D
eyim
@eyim
Jan 28 2016 18:09
Congrats James!
Ben West
@bewest
Jan 28 2016 19:03
I did come across a technique using ble networking directly
so your tcp/networking stack comes from ble instead of wifi
or is it regulare bluetooth maybe
but it's possible to set up a bridge on rpi such that it opportunistically bridges it's own hotspot with a ble network connection
so you could have it ble-networked to your phone, and then offering it's own wifi bridged to that
Ben West
@bewest
Jan 28 2016 19:09
there's also a technique using avahi to have it autojoin to WAN, eg to your custom domain
such that A.rig.openaps.org could always point to rig A even as it hops across networks
Scott Leibrand
@scottleibrand
Jan 28 2016 19:19
Can you share what you did to get it BLE-networked to the phone?
Jason Calabrese
@jasoncalabrese
Jan 28 2016 20:14
glad it's working for you @jmatheson
Jim Matheson
@jmatheson
Jan 28 2016 20:15
thanks!
Ben West
@bewest
Jan 28 2016 20:50
@scottleibrand do you have an account on npm/pypi?
Scott Leibrand
@scottleibrand
Jan 28 2016 20:51
npm yes pypi no.
I published oref0 remember? :-)
Ben West
@bewest
Jan 28 2016 20:52
ok, get one on pypi so you can keep that one in sync too/manage that one as well
highly recommend stubbing out a dummy python package and playing with pypi a bit, took me a few tries to get used to it
Scott Leibrand
@scottleibrand
Jan 28 2016 20:55
Does that support multiple maintainers?