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

11th
Sep 2016
Scott Leibrand
@scottleibrand
Sep 11 2016 00:07
@Spazholio is Afrezza an option for you?
Jason Calabrese
@jasoncalabrese
Sep 11 2016 01:41
@tatigger you need to invoke the reports, but before that it's good to test a use, for example openaps use pump model should print out the model number
If that works you invoke the report with something like openaps report invoke settings/model.json
David
@davidkeddydb
Sep 11 2016 01:56
I am still stuck on recent-missing-entries. I run into issues on the first line of set up for sending glucose data: openaps use ns shell format-recent-type tz entries monitor/glucose.json | json -a dateString | wc -l
it kicks out: Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 744, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1499, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/init.py", line 298, in main
if spec.includes(get(elem)):
File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/init.py", line 332, in includes
if self.prev <= when and when <= self.curr:
TypeError: can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-use')
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 744, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1499, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 58, in run
reporter(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
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
json: error: input is not JSON: Unexpected 'N' at line 1, column 1:
No JSON object could be decoded
David
@davidkeddydb
Sep 11 2016 02:23
I have the glucose zoned, so what else could I be missing to check: openaps report invoke monitor/glucose-zoned.json
cgm://JSON/oref0_glucose/monitor/glucose-zoned.json
reporting monitor/glucose-zoned.json
cat monitor/glucose-zoned.json
[
{
"trend_arrow": "FLAT",
"system_time": "2016-09-11T04:13:45",
"direction": "Flat",
"sgv": 124,
"display_time": "2016-09-10T22:20:14",
"date": 1473560414000.0,
"dateString": "2016-09-10T22:20:14",
"unfiltered": 120608,
"filtered": 118272,
"device": "openaps://cgm",
"rssi": 177,
"type": "sgv",
"glucose": 124
},
{
"trend_arrow": "FLAT",
"system_time": "2016-09-11T04:08:45",
"direction": "Flat",
"sgv": 122,
"display_time": "2016-09-10T22:15:14",
"date": 1473560114000.0,
"dateString": "2016-09-10T22:15:14",
"unfiltered": 119120,
"filtered": 116224,
"device": "openaps://cgm",
"rssi": 178,
"type": "sgv",
"glucose": 122
},
Terri Lyman
@tatigger
Sep 11 2016 02:33
@jasoncalabrese How do I tell which reports still need to be invoked and added? Do you know if there is a list somewhere? The walkthrough documentation is confusing me because the way the reports are given is inconsistent. Sometimes the purpose is first, sometimes the report is first, and sometimes the reports are out of order - meaning they reference things that haven't been created yet. I am a fairly organized thinker, I think I understand the structure of the directories and reports, I just don't know what is already in there and what I still need.
Eric Jensen
@elnjensen
Sep 11 2016 02:46
@tatigger Hang in there! I know what you mean about the docs - have been meaning to contribute some ideas about re-arranging, but haven't found the time yet. I had pretty good luck with the approach of working through the walkthrough and skipping over some things that I didn't completely understand or that seemed out of order or to require things I hadn't done yet. And then I came back to those things once I had worked through most of the rest and I could understand them better. For example, the "uploading to nightscout" section assumes you have a full functioning loop, well before the rest of the walkthrough gets to that. So you could try to work through that part, or you could make a note to come back to it a bit later.
Terri Lyman
@tatigger
Sep 11 2016 02:47
@elnjensen Draw X, Bang Head Here.
Eric Jensen
@elnjensen
Sep 11 2016 02:47
More generally, you'll know you're missing a report when you find another one that depends on it! That sounds a little haphazard, but it actually works OK - or at least it did for me. The key step - determining a temp basal rate - won't work if it doesn't have all the proper inputs, so at that point you may need to go back and create a few more reports.
How far have you gotten?
Terri Lyman
@tatigger
Sep 11 2016 02:50
Around 40 reports invoked, I guess. At least they show up when I use "openaps report show" and I assume that means they are both added and invoked. I got the pump, cgm and nightscout to all communicate with the pi at one point. Right now I have everything unplugged while I try to verify the report adding process
David
@davidkeddydb
Sep 11 2016 02:50
@tatigger @elnjensen I am up to the last check for openaps do-everything but I cant figure what I have wrong
the recent-missing-entries is screwing me up. I have checked that my glucose is zoned and I believe that it is but still getting a time issue TypeError: can't compare offset-naive and offset-aware datetimes
Terri Lyman
@tatigger
Sep 11 2016 02:52
@davidkeddydb Sorry, I think you are ahead of me in the process. But if you are getting an error message you should copy and paste so someone smart can see what it looks like.
David
@davidkeddydb
Sep 11 2016 02:53
@tatigger Long time diabetic, brand new to linux. struggling through
Eric Jensen
@elnjensen
Sep 11 2016 02:53
@tatigger @davidkeddydb Need to head to bed now - sorry can't help more tonight! @davidkeddydb I have a thought about something to try on time zones, will check in tomorrow. I had an issue where the process doing the zoning was apparently succeeding, but didn't actually do anything, and I had to tweak the report setup slightly. More tomorrow.
Terri Lyman
@tatigger
Sep 11 2016 02:53
Me too : )
David
@davidkeddydb
Sep 11 2016 02:54
@elnjensen @tatigger Thanks, appreciate any insight.
signing off as well.
Terri Lyman
@tatigger
Sep 11 2016 02:55
: ) I don't have anything in that file on my pi yet. So I am missing some report for that
David
@davidkeddydb
Sep 11 2016 02:56
you likely just havent gotten to it yet. If you are loading direct off nightscout, you wont need this report
Terri Lyman
@tatigger
Sep 11 2016 02:59
Thanks, that helps @davidkeddydb
Terri Lyman
@tatigger
Sep 11 2016 03:17
Thanks @danamlewis I'll try following that.
Terri Lyman
@tatigger
Sep 11 2016 05:01
I added this report but cannot seem to invoke it. Can you tell what format error I am making?

pi@raspberrypi:~/faith $ openaps report add format-recent-history-treatments.json JSON ns shell format-recent-history-treatments.json nightscout/format-recent-history-treatments.json
added ns://JSON/shell/format-recent-history-treatments.json

pi@raspberrypi:~/faith $ openaps report invoke nightscout/format-recent-history-treatments.json
usage: openaps-report invoke [-h]
{format-recent-history-treatments.json,last_four_pump_hours.json,model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/iob.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,nightscout/openaps-status.json,nightscout/preflight.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.json,oref0-predict/oref0.json,raw-pump/battery.json,raw-pump/bg-targets-raw.json,raw-pump/clock-raw.json,raw-pump/insulin-sensitivities-raw.json,raw-pump/pump-history-raw.json,raw-pump/reservoir.json,raw-pump/selected-basal-profile.json,raw-pump/settings.json,raw-pump/status.json,raw-pump/temp-basal-status.json,settings/basal_profile.json,settings/bg-targets.json,settings/bg_targets_raw.json,settings/insulin-sensitivities.json,settings/insulin_sensitivities_raw.json,settings/model.json,settings/profile.json,settings/selected-basal-profile.json,settings/settings.json}
[{format-recent-history-treatments.json,last_four_pump_hours.json,model.json,monitor/battery.json,monitor/clock-zoned.json,monitor/clock.json,monitor/iob.json,monitor/pump-history.json,monitor/reservoir.json,monitor/status.json,monitor/temp-basal-status.json,nightscout/openaps-status.json,nightscout/preflight.json,nightscout/recent-missing-entries.json,nightscout/recent-treatments.json,nightscout/uploaded-entries.json,nightscout/uploaded.json,oref0-enacted/enacted-temp-basal.json,oref0-monitor/iob.json,oref0-monitor/profile.json,oref0-predict/oref0.json,raw-pump/battery.json,raw-pump/bg-targets-raw.json,raw-pump/clock-raw.json,raw-pump/insulin-sensitivities-raw.json,raw-pump/pump-history-raw.json,raw-pump/reservoir.json,raw-pump/selected-basal-profile.json,raw-pump/settings.json,raw-pump/status.json,raw-pump/temp-basal-status.json,settings/basal_profile.json,settings/bg-targets.json,settings/bg_targets_raw.json,settings/insulin-sensitivities.json,settings/insulin_sensitivities_raw.json,settings/model.json,settings/profile.json,settings/selected-basal-profile.json,settings/settings.json} ...]
openaps-report invoke: error: argument report: invalid choice: 'nightscout/format-recent-history-treatments.json' (choose from u'format-recent-history-treatments.json', u'last_four_pump_hours.json', u'model.json', u'monitor/battery.json', u'monitor/clock-zoned.json', u'monitor/clock.json', u'monitor/iob.json', u'monitor/pump-history.json', u'monitor/reservoir.json', u'monitor/status.json', u'monitor/temp-basal-status.json', u'nightscout/openaps-status.json', u'nightscout/preflight.json', u'nightscout/recent-missing-entries.json', u'nightscout/recent-treatments.json', u'nightscout/uploaded-entries.json', u'nightscout/uploaded.json', u'oref0-enacted/enacted-temp-basal.json', u'oref0-monitor/iob.json', u'oref0-monitor/profile.json', u'oref0-predict/oref0.json', u'raw-pump/battery.json', u'raw-pump/bg-targets-raw.json', u'raw-pump/clock-raw.json', u'raw-pump/insulin-sensitivities-raw.json', u'raw-pump/pump-history-raw.json', u'raw-pump/reservoir.json', u'raw-pump/selected-basal-profile.json', u'raw-pump/settings.json', u'raw-pump/status.json', u'raw-pump/temp-basal-status.json', u'settings/basal_profile.json', u'settings/bg-targets.json', u'settings/bg_targets_raw.json', u'settings/insulin-sensitivities.json', u'settings/insulin_sensitivities_raw.json', u'settings/model.json', u'settings/profile.json', u'settings/selected-basal-profile.json', u'settings/settings.json')

annedirkse
@annedirkse
Sep 11 2016 05:31
Hi everyone - I am stuck at the part in the documentation that reads: "[INSERT ACTUAL INSTRUCTIONS ON HOW TO CREATE a treatments.json report before ns shell upload]" - we are using G5 without a receiver so want to get the CGM data from NS (already configured). I can query NS from the pi and can communicate with the pump from the pi, but am not sure how to put those pieces together. Also, I am not quite if I can omit the cgm device and use ns instead, or how that should be configured. Any ideas?
Terri Lyman
@tatigger
Sep 11 2016 05:52
mostly we skip that and move on and come back to it, @annedirkse
annedirkse
@annedirkse
Sep 11 2016 05:56
@tatigger OK, can you tell me what you'd recommend as the next step? Obviously the cgm reports don't work, and the lack of them has me stuck. Thanks!
Scott Leibrand
@scottleibrand
Sep 11 2016 10:41
@elodaille01 Yes, it is fine for the person with diabetes to step away from the openaps rig for some time. Since it works by setting 30 minute temporary basals, if they're out of range for longer than that, the pump will revert to normal basal rates until they get back into range. If you use the Carelink stick, it must be pretty close (~1m) to the pump. The TI stick and similar can be much further away (5m or so).
This message was deleted
Didie
@elodaille01_twitter
Sep 11 2016 12:07
Qu'est ce que le bâton TI ? Nous nous sommes procurés un carelink usb, mais c'est moins bien ?
Toby Canning
@TC2013
Sep 11 2016 14:08
@elodaille01_twitter
oui , le baton TI est mieux: https://github.com/oskarpearson/mmeowlink/wiki
garykidd
@garykidd
Sep 11 2016 15:41
How do fix got corruption?
git
garykidd
@garykidd
Sep 11 2016 15:54
pi@raspberrypi:~/APS301 $ openaps use pump model
"715"Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 63, 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-use", line 50, in epilog
    super(UseToolApp, 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 83, in create_git_commit
    if self.repo.is_dirty( ) or self.repo.index.diff(None):
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/repo/base.py", line 608, in is_dirty
    len(self.git.diff('--cached', *default_args)):
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 466, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 934, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/GitPython-2.0.8-py2.7.egg/git/cmd.py", line 718, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git diff --cached --abbrev=40 --full-index --raw' returned with exit code 128
stderr: 'error: object file .git/objects/29/fbfe4ad05ca8f85d305121372049b7a2d67473 is empty
error: object file .git/objects/29/fbfe4ad05ca8f85d305121372049b7a2d67473 is empty
fatal: loose object 29fbfe4ad05ca8f85d305121372049b7a2d67473 (stored in .git/objects/29/fbfe4ad05ca8f85d305121372049b7a2d67473) is corrupt'
This message was deleted
Scott Leibrand
@scottleibrand
Sep 11 2016 16:10
oref0-reset-git
Should be well documented.
garykidd
@garykidd
Sep 11 2016 16:34
thanks. i cant really figure out why may openaps stops working...after eventually the openaps pill will not report for an hour or so...but it takes hours to drop out
Brandon Faloona
@bfaloona
Sep 11 2016 17:26
We are looping on our freshly built Edison rig! Boy oh boy is it faster than the Pi Zero. I'm keeping random notes here:
https://github.com/bfaloona/openaps-lp/wiki/Project-Log-for-Edison-Rig
I need to setup remote access by sunrise or I'll be locked out. :scream:
Can ssh tunneling be accomplished without my own server? I'm looking for the simplest config possible.
If I install systemd would I be able to use the weaved edison beta installer? (currently it complains that systemctl: not found)
Has anyone found this beta to be workable on the Edison? https://developer.weaved.com/portal/members/edison.php
Brandon Faloona
@bfaloona
Sep 11 2016 17:33
Anyone tried Yaler ? It looks promising. https://yaler.net/intel-edison
Brandon Faloona
@bfaloona
Sep 11 2016 18:16
I've tried it, but I'm stuck.
John Kelleher
@jkelleher
Sep 11 2016 18:19
Hi, wonder if anyone has some experience with NS Android Uploader? Had Moto G 2nd gen with CNL (No. 1) connecting and pushing to NS last week. Now now working. Tried with Nexus 7 (same OTG) and spare CNL (No. 2). No luck. Says (on both) that it's connected on channel 14 (sometimes 26) but nothing more after that. Any ideas?
Oh, don't have CGM connected to our 640G right now - could that be it? Thought it should still pull BGs even if SGs are unavailable?
Brandon Faloona
@bfaloona
Sep 11 2016 18:21
# on edison
./yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 MY_YALER_RELAY_DOMAIN

# on client
java YalerTunnel client 127.0.0.1:10022 try.yaler.io:80 MY_YALER_RELAY_DOMAIN

# also on client
ssh edison@localhost -p 10022 -o ServerAliveInterval=5
I get no output from the commands, and the ssh connection fails/is closed after a while.
Eric
@ecc1
Sep 11 2016 18:49
@ceben80 What case did you use for your Edison rig that you tweeted a picture of?
Terri Lyman
@tatigger
Sep 11 2016 19:13
Hi, I tried to run this - openaps get-profile and I got this error "openaps-report invoke: error: argument report: invalid choice: 'settings/bg_targets.json'" I think that means I need to add a report that is "settings/bg_targets.json". How do I format the add report line? I have tried a couple different ways and keep getting errors.
Matthias
@ceben80
Sep 11 2016 19:15

@ecc1 unfortunately a german supplier either
http://www.reichelt.de/SP-2029-GR/3/index.html?&ACTION=3&LA=446&ARTICLE=33821&artnr=SP+2029+GR&SEARCH=SP+2029+GR for a grey case or in black https://www.conrad.de/
but didn't find that on the web page, bought his in a shop in the city

That's here is the german manufacturer http://www.strapubox.de/modules/uploadmanager11/admin/index.php?action=file_download&file_id=161&location_id=0

Jason Calabrese
@jasoncalabrese
Sep 11 2016 19:34
@tatigger openaps report add settings/bg_targets JSON pump read_bg_targets, you can test it with a use first openaps use pump read_bg_targets
Eric Jensen
@elnjensen
Sep 11 2016 19:46
@bfaloona Not sure what kind of SSH access you're after - of course you can always SSH in from another terminal to check on things - that, combined with looking at status in Nightscout, has generally been my approach. I suspect you know this already (characteristic of most headless clients) but thought I'd mention it. You're thinking of something different, that maintains a common access point across, e.g., different IP addresses the Edison might have?
Jason Calabrese
@jasoncalabrese
Sep 11 2016 19:47
in addition to ssh access papertrail is really nice, most of the time you ssh in just to watch the logs, so papertrail is faster in that case
easy to setup and if you don't have a bunch of rigs the free plan should work
Eric
@ecc1
Sep 11 2016 19:49
+1 for papertrail. I added it to my Go application in about 5 lines of code. Even easier if you just want all of syslog to go there.
Jason Calabrese
@jasoncalabrese
Sep 11 2016 19:49
also the free version of newrelic server monitoring is good on the edisons, but won't work on PIs
Eric Jensen
@elnjensen
Sep 11 2016 19:51
@jasoncalabrese Thanks for the papertrail pointer - looks very useful!
Jason Calabrese
@jasoncalabrese
Sep 11 2016 19:54
2016-09-11 19.53.39.png
that's newrelic, you can set disk/cpu/etc thresholds and get alerts
Terri Lyman
@tatigger
Sep 11 2016 20:03
Thanks @jasoncalabrese
Brandon Faloona
@bfaloona
Sep 11 2016 20:08
@cjo20 When I sudo make install with EdisonVoltage, I get an error. Is voltage_server_startup a folder I should create, or...? https://github.com/cjo20/EdisonVoltage/blob/master/Makefile#L9
@elnjensen Yes, I love papertrail!!
I am remote from the rig 95% of the time, so I'm looking for something that allows easy fast connections for development, maintenance and troubleshooting.
Chris Oattes
@cjo20
Sep 11 2016 20:21
bfaloona: eugh, that file is still on a computer somewhere here and not commited ( I think)
bfaloona: That install is only for the server thing, which I wouldn't use
Just stick with the make voltage and call sudo voltage with appropriate options
Brandon Faloona
@bfaloona
Sep 11 2016 20:22
Great! thanks
@cjo20 This is awesome. Thanks for figuring this out!!
Chris Oattes
@cjo20
Sep 11 2016 20:27
:)
Brandon Faloona
@bfaloona
Sep 11 2016 20:29
Do you display that number in nightscout? if so.... How?
Chris Oattes
@cjo20
Sep 11 2016 20:31
I run sudo crontab -e then add the line */3 * * * * sleep 15 && /usr/local/sbin/voltage json batteryVoltage battery > /home/edison/myAps/uploader.json
Then in my command for ns-status, I add remainder = --uploader uploader.json
That should show up inthe uploader pill in nightscout
Brandon Faloona
@bfaloona
Sep 11 2016 20:34
I'm trying to map that to my implementation...
perhaps add it here?
openaps use ns shell upload devicestatus.json upload/ns-status.json upload/uploader.json
This message was deleted
I don't think that's right. I'll figure it out.
Chris Oattes
@cjo20
Sep 11 2016 20:36
[report "monitor/upload-status.json"]
suggested = enact/suggested.json
status = monitor/status.json
use = shell
reservoir = monitor/reservoir.json
reporter = JSON
battery = monitor/battery.json
clock = monitor/clock-zoned.json
json_default = True
device = ns-status
remainder = --uploader uploader.json mmtune.json
iob = monitor/iob.json
enacted = enact/enacted.json
That's the report mine lives in
Brandon Faloona
@bfaloona
Sep 11 2016 20:39
Great, that helps.
dougtakeuti
@dougtakeuti
Sep 11 2016 20:41
Hey there, I've seen some tweets about a 900 MHz Explorer Block by @scottleibrand (?) and a couple other folks. I understand @fjungman is leading the way, but there isn't much info on github and the LoopConnect channel seems to be dated. It looks pretty interesting. Do we know anything about it?
Scott Leibrand
@scottleibrand
Sep 11 2016 21:00
We have a workshop in Portland, OR tomorrow to do some stuff with the first-run boards.
We've modified mmeowlink to work with SPI here: https://github.com/scottleibrand/mmeowlink/tree/spi?files=1
Tim Street
@tim2000s
Sep 11 2016 21:07
Guys, I've got the decoding-countour-next code running on the pi as my bg data collection. Anyone know an easy way to get that uploaded to NS?
Tim Street
@tim2000s
Sep 11 2016 21:39
Given I can run standard bash commands from within OpenAPS, can I run a python script from elsewhere?
Eric
@ecc1
Sep 11 2016 21:41
Opinions on whether or not to loop during sensor warmup based just on raw data when it's available? My loop code has access to both, but so far I've been bailing when there are no cooked BG values.
garykidd
@garykidd
Sep 11 2016 21:50
what rf option provides for best range?
Brandon Faloona
@bfaloona
Sep 11 2016 21:55
@cjo20 Thanks for the help. I got it working with:
edison@openaps-lp-edison:~/openaps-lp3$ openaps alias show format-ns-status
format-ns-status ! bash -c "ns-status monitor/clock-zoned.json monitor/iob.json enact/suggested.json enact/enacted.json monitor/battery.json monitor/reservoir.json monitor/status.json --uploader monitor/uploader.json > upload/ns-status.json"
edison@openaps-lp-edison:~/openaps-lp3$ sudo crontab -e
*/3 * * * * /home/edison/openaps-lp3/bin/voltage json batteryVoltage battery > /home/edison/openaps-lp3/monitor/uploader.json
Jason Calabrese
@jasoncalabrese
Sep 11 2016 21:57
@garykidd I think the TI sticks have the best range, at least with the devices I tested
garykidd
@garykidd
Sep 11 2016 22:03
@jasoncalabrese thanks. Hopefully I'll have better luck with the one that's been re-ordered...should be here Tuesday. Is it possible to flash mmcommander on the ti vs subrg_rfspy? Was just looking for something else to possibly try on my ti stick in hand. Thanks..
Jason Calabrese
@jasoncalabrese
Sep 11 2016 22:05
I'm not sure how'd you test mmcommander, might need the android app too
dougtakeuti
@dougtakeuti
Sep 11 2016 22:05
@scottleibrand Thanks for the link!
garykidd
@garykidd
Sep 11 2016 22:09
@jasoncalabrese have you heard of anyone having sketchy reception due to rf package in their pump/s?
has anyone heard of ti sticks with issues?
dougtakeuti
@dougtakeuti
Sep 11 2016 22:12
@garykidd Flashing mmcommander is the same process as flashing subg_rfspy. However, I've never used it in my loop, just as a Nightscout uploader for Medtronic sensors. I think Jesus Berian helped @bustavo to do so. Not sure what kind of rig Gustavo has now.
I had lots of issues with some kind of rf interference in my daughter's classroom last year - it was some kind of bermuda triangle of rf. Never actually figure out , but solved the problem by making her a pouch to accomodate pump and rig (Intel Edison+ ERF Module or TI stick) side by side.
garykidd
@garykidd
Sep 11 2016 22:26
@dougtakeuti not sure what you meant with "just as a Nightscout uploader for Medtronic sensors." What did Jesus Berian help @bustavo do?
My issue was intermittent. got 99's across th board on mmtune about 95% of time...every now and again I'd get a channel or two lower---and, of course, that's when comms with pump worked.
dougtakeuti
@dougtakeuti
Sep 11 2016 22:42
@garykidd Sorry I wasn't clear. My daughter uses Enlite sensors. When I started using Nightscout, about 1 year before openaps, I used to use the TI stick running the mmcommander firmware. It was wired to a cell phone to upload glucose data to a Nightscout website. In this mode, the TI stick just picks up the signal from the minilink transmitter and sends to the uploader. There's no communication with the pump. (https://github.com/jberian/mmcommander/blob/master/INSTALL.pdf) Some time ago I read a tweet (I think) by @bustavo thanking Jesus Berian for helping him to use mmcommander to communicate with the pump so he could use it in his loop.
Brandon Faloona
@bfaloona
Sep 11 2016 22:45
Screen Shot 2016-09-11 at 3.43.42 PM.png
Anyone know why undefinedMHz started showing up in my nightscout openaps status (first line in image above)? This started right after I began including uploader battery status.
fjungman
@fjungman
Sep 11 2016 22:47
@dougtakeuti It isn't LoopConnect yet, as that is planned to have a cellular radio in it. As a 90% solution, @ps2 and I have done Riled-Up, which is Edison plus USB-OTG high-current charging, 916MHz radio and a place to solder in a Wixel. Basically, it can talk to the pump and BT/WiFi, and add the Wixel to get a connection to the DexCom. Right now, the hardware is mostly working and Pete is working on programming the CC1110 directly from the Edison, thus eliminating the need for a CC-debugger. Next will be running the Rileylink code. I have to tune the antenna path...
dougtakeuti
@dougtakeuti
Sep 11 2016 22:49
@fjungman Thanks for the update! Sounds really exciting!
garykidd
@garykidd
Sep 11 2016 23:10
thanks.
Can someone tell me how to tell what wifi network I my Rpi3 is connected to form command line?
Eric
@ecc1
Sep 11 2016 23:21
iwconfig
or iw wlan0 info
garykidd
@garykidd
Sep 11 2016 23:24
thanks. Been having trouble with dropped openaps pill updates and thinking maybe its related to wifi connection issue.
Scott Leibrand
@scottleibrand
Sep 11 2016 23:42
@ecc1 if you want to loop using oref0-raw during a sensor restart, you'll want to keep a close eye on it to be ready to be ready to override if needed. I wouldn't recommend it for a new sensor, as those are completely uncalibrated, so translating the raw isig's based on the previous sensor's cal records are likely to be way off.
Chris Oattes
@cjo20
Sep 11 2016 23:49
@bfaloona It'll be something to do with it thinking it should be receiving mmtune data
Brandon Faloona
@bfaloona
Sep 11 2016 23:55
Yeah, I uploaded bad data once and now it's stuck like that.
I'm curious what other Edison users have done about things like systemd, libmraa, and upm?
Install them? Or install as little as possible?
I keep running into dependencies missing (e.g. to support controlling my OLED)