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

29th
Jul 2016
John Dodds
@johners97
Jul 29 2016 00:33

[report "enact/suggested.json"]
profile = settings/profile.json
use = shell
temp_basal = monitor/temp_basal.json
reporter = text
json_default = True
device = determine-basal
remainder =
iob = monitor/iob.json
glucose = monitor/glucoseclean.json
oref0-iob = monitor/iob.json
temp-basal = monitor/temp_basal.json
oref0-profile = settings/profile.json
Does this look ok?
~/my_openaps $ openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
Could not parse input data:  [TypeError: Cannot read property 'glucose' of undefined]
reporting enact/suggested.json
I get this
I have tried switching glucose = monitor/glucoseclean.json <---> monitor/glucose.json
What does "Could not parse input data" mean?
Scott Leibrand
@scottleibrand
Jul 29 2016 00:42
looks like something is expecting a "glucose" field in your glucose json, which you don't have. can you paste a sample of that file?
Chris Oattes
@cjo20
Jul 29 2016 00:59
why have oref0-iob and oref0-profile?
John Dodds
@johners97
Jul 29 2016 01:11
Not sure, is that supposed to not be there?
Martin Haeberli
@mhaeberli
Jul 29 2016 01:28
i think I have figured out that the way to cancel a temp basal is to set a 0-duration temp basal
and a question related to user adoption - I suspect this has been discussed here before … WHY can one only set absolute basal, and not percents ? using openaps pump use ...
Scott Leibrand
@scottleibrand
Jul 29 2016 02:18
Because there didn't seem to be any point in complexifying the oref0 code to deal with percent basals. You should be able to set them manually with percent of your pump is in percent mode, but only absolute mode will work with oref0.
@cjo20 not sure what you're asking.
Martin Haeberli
@mhaeberli
Jul 29 2016 02:19
I’m asking because our T1D (and my wife) are used to using percent temp basals. so in transitioning to openaps, it’s something to get used to ...
@scottleibrand I understand your point about it being more complex for oref0 ...
changing the settings back and forth as we get used to openaps looks on the surface like overhead … we’ll just have to figure it out …
Scott Leibrand
@scottleibrand
Jul 29 2016 02:21
@mhaeberli do you plan to be setting temps manually while using openaps? Most people stop doing that when the loop takes over.
Martin Haeberli
@mhaeberli
Jul 29 2016 02:21
@scottleibrand not necessarily, but it is a standard part of our toolkit ...
Scott Leibrand
@scottleibrand
Jul 29 2016 02:21
I can see wanting % if you turn off the loop, certainly.
Martin Haeberli
@mhaeberli
Jul 29 2016 02:22
@scottleibrand any way to automate the pump setting with respect to absolute vs percent basals? I assume not ...
Scott Leibrand
@scottleibrand
Jul 29 2016 02:22
Not sure if we know the opcode for doing that... We can certainly detect it...
If you want to do the work to make oref0 support percent basals you certainly could.
But if it's just for the transition phase, probably not worth it.
Martin Haeberli
@mhaeberli
Jul 29 2016 02:24
@scottleibrand understand - if I want the fence painted white, I need to help ! :-) I think we’ll go with absolute for now, but will discuss with T1D ...
Scott Leibrand
@scottleibrand
Jul 29 2016 02:24
:+1:
Dana Lewis
@danamlewis
Jul 29 2016 02:25
good analogy, @mhaeberli :)
Terri Lyman
@tatigger
Jul 29 2016 04:24
Hi is the Connection String BRIDGE_USERNAME and BRIDGE_PASSWORD for Share connectivity - in the nightscout setup?
Martin Haeberli
@mhaeberli
Jul 29 2016 04:25
@tatigger yes - IF you are intending to run the Share Bridge to get BG values into Nightscout ...
Terri Lyman
@tatigger
Jul 29 2016 04:26
Ah, that is what I thought. I don't, which is why I didn't recognize nor do I have...LOL
Share is too unreliable
Martin Haeberli
@mhaeberli
Jul 29 2016 04:27
@tatigger so what is your setup for getting BG values into your (intended) openaps loop?
@tatigger one discussion I have seen here has involved automatic detection and switching between Share -> Nightscout and local CGM using G4 Platinum Share receiver , and also, anyway, openaps oref0 can’t / won’t make decisions on CGM data or pump data that’s “too old"
Terri Lyman
@tatigger
Jul 29 2016 04:28
I am just starting, so wired right now. I do have a G4. I am not sure how it works, but I use Xdrip to upload my share receiver to my nightscout page. I am "down" a lot less frequently than I see comments about share.
Martin Haeberli
@mhaeberli
Jul 29 2016 04:29
@tatigger - good approach - so your concern is with the Dexcom Web-based Share service ...
Terri Lyman
@tatigger
Jul 29 2016 04:29
Yes
I find it ultimately ironic that we as a DIY community seem to have fewer problems with reliability than a system provided by the device manuf that required FDA approval prior to launch. It's like they said "Ooops - just kidding"
I guess I expect us to have occasional problems. I have a lot less tolerance for issues on the Dexcom side. : )
Martin Haeberli
@mhaeberli
Jul 29 2016 04:35
@tatigger did you build an xDrip device, or are you “just” using the Dexcom G4 Platinum receiver with the xDrip app on an Android phone ?
Terri Lyman
@tatigger
Jul 29 2016 04:37
I didn't build a device. Yet.
Martin Haeberli
@mhaeberli
Jul 29 2016 04:40
@tatigger I finally built an xdripkit (from a supplier in the UK) but haven’t tested it out yet - have been aware of the xdrip gadgets for a while … I like the idea of being able to use a G4 transmitter (vs a G5) for a number of reasons - access to “raw” data, longer battery life, possibility of hacking to replace the G4 battery, …
Terri Lyman
@tatigger
Jul 29 2016 04:41
yes - all of the above. Especially raw and battery life. Also range - I tend to walk away from my gadgets. My husband laughs at me - I call it the Bat Belt - I carry the cell phone, g4 receiver and uploader, pump. And will be adding the Pancreas!
John Dodds
@johners97
Jul 29 2016 13:09
cat enact/suggested.json
[{"msg":"BG data is too old, or clock set incorrectly Fri Jul 29 2016 14:03:00 GMT+0100 (BST) vs Thu Jul 28 2016 23:21:40 GMT+0100 (BST)"}]
Paul Davis
@SirBinky
Jul 29 2016 13:57
@johners97 the last blood glucose data the program has is too old, it says it's last reading was july 28th at 23:21 so the suggestion is based on old data which is totally incorrect to what your blood glucose is now so as a safety feature it won't allow you to bolus
try openaps again to gather all the data
Paul Davis
@SirBinky
Jul 29 2016 14:03
Can anyone suggest why my nightscout has stopped receiving data? It was all working fine until 2 days ago, now mongo isn't getting any new data. The g5 reciever is an iphone, it's sharing data fine, i read it on diasend and dexcom follow on my andriod is right up to date. Mongo lab has 2290 entries but the file is only 1mb.
I've reset the phone but as it's uploading to everywhere else, it seems to be not getting the data from dexcom?
Hannah Crabtree
@lollydaggle
Jul 29 2016 14:08
Mine hasn't been receiving data outside of what my rig uploads. I also switched phones two days ago but I wouldn't think that would be causing an issue since I'm still logged into the same Share account?
Paul Davis
@SirBinky
Jul 29 2016 14:09
@lollydaggle mine went down at 2016-07-27T23:16:47 i'm in the uk
John Dodds
@johners97
Jul 29 2016 14:20
The raspberry pi time was out by a day...working now
 cat enact/suggested.json
{"temp":"absolute","bg":98,"tick":"+0","eventualBG":74,"snoozeBG":74,"mealAssist":"Off: Carbs: undefined Boluses: undefined ISF: 21.6, Target: 104 Deviation: -24 BGI: 0","reason":"Eventual BG 74<90, setting -4.533U/hr","duration":30,"rate":0}
Matt Pressnall
@logichammer
Jul 29 2016 14:59
@jasoncalabrese, awesome news about the scratchpad! I have the edison talking perfectly to devices...now, just need to get my loops running and I am set. Will be using this for sure! Thanks!
Jason Calabrese
@jasoncalabrese
Jul 29 2016 15:22
Great, did you try any of the optimizations at the bottom?
Martin Haeberli
@mhaeberli
Jul 29 2016 15:26
@jasoncalabrese scratchpad?
@johners97 I just set up a clip-on Real Time Clock for my RPi that could prevent the clock from getting off by that much, even when no network is reachable. And, of course, the clock-set.sh script, (I forget the exact name) can use the pump
pump’s time to set the openaps clock, as well
John Dodds
@johners97
Jul 29 2016 15:32
I'm currently having trouble enacting the suggested action.
Assistance required, please!
Jason Calabrese
@jasoncalabrese
Jul 29 2016 15:35
@mhaeberli it's a wiki page to help us work on getting a fast/reliable cgm loop going with openxshareble https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad
John Dodds
@johners97
Jul 29 2016 15:35
When I do: openaps determine-basal I get my determined basal rate. However, I am having difficulty to enact the output of that...
John Dodds
@johners97
Jul 29 2016 15:52
So i've tried openaps report add enact/enacted.json JSON determine-basal insulin_pump set_temp_basal
:shipit:
but obviouslt, that doesn't work
John Dodds
@johners97
Jul 29 2016 16:02
Any suggestions?
John Dodds
@johners97
Jul 29 2016 16:18
Ok I worked it out!
Matt Pressnall
@logichammer
Jul 29 2016 16:25
@jasoncalabrese, other than getting devices talking on the Edison, I haven't done anything but I am taking next week off so hoping to get the loops running fine...kids are at diabetes camp so I'll wear an extra CGM for testing...
John Dodds
@johners97
Jul 29 2016 16:25
How do you work cron??
@logichammer
Sorry^ mistake
oref0 cron-5-minute-helper do-loop | crontab - and nothing appeared
just the next line
Jason Calabrese
@jasoncalabrese
Jul 29 2016 16:32
that will import it into your cron, try crontab -e to view/edit it
Frank Best
@efbest
Jul 29 2016 16:32
my loop hangs several times per day and I don't know why. When it happens, I can only start it again by rebooting or sometimes calibrating!???
Jul 29 18:12:22 raspberrypi openaps-loop: MMT754://JSON/iter_glucose/monitor/glucose.json
Jul 29 18:12:22 raspberrypi openaps-loop: reporting monitor/glucose.json
Jul 29 18:12:22 raspberrypi openaps-loop: glucose://JSON/clean/monitor/glucoseclean.json
Jul 29 18:12:22 raspberrypi openaps-loop: reporting monitor/glucoseclean.json
Jul 29 18:12:27 raspberrypi openaps-loop: MMT754://JSON/read_clock/monitor/clock.json
Jul 29 18:12:27 raspberrypi openaps-loop: reporting monitor/clock.json
Jul 29 18:12:27 raspberrypi openaps-loop: PREFLIGHT OK
Jul 29 18:12:36 raspberrypi openaps-loop: Could not sort temptargets_data.  Optional feature temporary targets disabled.
Jul 29 18:12:37 raspberrypi openaps-loop: MMT754://JSON/read_settings/settings/settings.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/settings.json
Jul 29 18:12:37 raspberrypi openaps-loop: MMT754://JSON/read_bg_targets/settings/bg_targets_raw.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/bg_targets_raw.json
Jul 29 18:12:37 raspberrypi openaps-loop: units://JSON/bg_targets/settings/bg_targets.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/bg_targets.json
Jul 29 18:12:37 raspberrypi openaps-loop: MMT754://JSON/read_insulin_sensitivities/settings/insulin_sensitivities_raw.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/insulin_sensitivities_raw.json
Jul 29 18:12:37 raspberrypi openaps-loop: units://JSON/insulin_sensitivities/settings/insulin_sensitivities.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/insulin_sensitivities.json
Jul 29 18:12:37 raspberrypi openaps-loop: MMT754://JSON/read_basal_profile_std/settings/basal_profile.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/basal_profile.json
Jul 29 18:12:37 raspberrypi openaps-loop: MMT754://JSON/read_carb_ratios/settings/carb_ratios.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/carb_ratios.json
Jul 29 18:12:37 raspberrypi openaps-loop: get-profile://text/shell/settings/profile.json
Jul 29 18:12:37 raspberrypi openaps-loop: reporting settings/profile.json
Jul 29 18:12:43 raspberrypi openaps-loop: monitor/glucose.json  raised  ACK is 0 bytes:
Jul 29 18:12:43 raspberrypi openaps-loop: 
Jul 29 18:12:43 raspberrypi openaps-loop: MMT754://JSON/iter_glucose/monitor/glucose.json
Jul 29 18:12:43 raspberrypi openaps-loop: Traceback (most recent call last):
Jul 29 18:12:43 raspberrypi openaps-loop:   File "/usr/local/bin/openaps-report", line 4, in <module>
Jul 29 18:12:43 raspberrypi openaps-loop:     __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
Jul 29 18:12:43 raspberrypi openaps-loop:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
Jul 29 18:12:43 raspberrypi openaps-loop:   File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
Jul 29 18:12:43 raspberrypi openaps-loop:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
Jul 29 18:12:43 raspberrypi openaps-loop:     app( )
Jul 29 18:12:43 raspberrypi openaps-loop:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
Jul 29 18:12:43 raspberrypi openaps-loop:     self.run(self.args)
Jul 29 18:12:43 raspberrypi openaps-loop:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
Jul 29 18:12:43 raspberrypi openaps-loop:     output = app(args, self)
Jul 29 18:12:43 raspberrypi openaps-loop:   File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
Jul 29 18:12:43 raspberrypi openaps-loop:     return self.method.main(args, app)
John Dodds
@johners97
Jul 29 2016 16:33
````
~/my_openaps $ crontab -e

Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/vim.tiny

Choose 1-3 [2]: 2
Use "fg" to return to nano.
I get this.
What do I do!
Theres nothing in 2.
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:35
@johners97 it just wants to know what to open cron in. I used the bin/nano editor because we've been using sudo nano to edit everything else
John Dodds
@johners97
Jul 29 2016 16:35
Yeah, but what next?
:)
David Cintron
@loudestnoise
Jul 29 2016 16:35
then you gotta write your cron line ;)
John Dodds
@johners97
Jul 29 2016 16:36
how
:D
David Cintron
@loudestnoise
Jul 29 2016 16:37
This might point you in the right direction
John Dodds
@johners97
Jul 29 2016 16:38
So confused :)
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:38
The */5**** tells you that it will run every 5 minutes on the hour. Then, you have to cd into your openaps directory and run the command to initialize your loop alias.
makes no sense at all
I understand the concept, I just don't know how to do it!
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:41
You need to piece out what each part of the cron command is doing. These are just examples that are doing slightly different things. What directory is your openaps in?
and what alias do you have that runs your entire loop?
John Dodds
@johners97
Jul 29 2016 16:41
openaps loop
openaps alias add loop '! bash -c "( openaps preflight && openaps gather && openaps enact) || echo LOOP FAILED."'
added loop ! bash -c "( openaps preflight && openaps gather && openaps enact) || echo LOOP FAILED."
/home/pi/my_openaps ?
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:45
*/[interval to run] * * * * (cd [openaps directory] && openaps [loop alias]) 2>&1 | logger -t openaps-loop brackets are where you'd place your locations
without the brackets themselves
John Dodds
@johners97
Jul 29 2016 16:45

So

```
SHELL=/bin/bash
PATH=/home/pi/my_openaps

Do I put shell and path in?
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:45
I don't think I edited the SHELL and PATH
actually I may have added my openaps directory to the end of the PATH only
[other stuff in PATH already]:/home/pi/my_openaps
like that
John Dodds
@johners97
Jul 29 2016 16:47
[PATH]:/home/pi/my_openaps
So I write that?
Then
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:47
ahhhh what does your path say right now?
John Dodds
@johners97
Jul 29 2016 16:47
what path>
3.14?
:DDD
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:48
Wish I could SSH into my PI at work :)
if there's no PATH and SHELL listed in the editor already, just try putting in the cron command for now
*/[interval to run] * * * * (cd [openaps directory] && openaps [loop alias]) 2>&1 | logger -t openaps-loop <--- this piece
John Dodds
@johners97
Jul 29 2016 16:50
Does the openaps directory have to be in square brackets?
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:50
no, don't put it in brackets. I was just using those so you could tell where you'd replace things
Ben West
@bewest
Jul 29 2016 16:50
see:
oref0 cron-5-minute-helper please :-)
David Cintron
@loudestnoise
Jul 29 2016 16:51
:eyes:
:+1:
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:52
@bewest I thought the point was @johners97 tried that and nothing showed up
John Dodds
@johners97
Jul 29 2016 16:52
@lollydaggle Its installed it now what
:DDD
I thought this was supposed to automatically run, nothing's happened :(
And, yeah, nothing came up following the documentation
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:54
no clue with oref0 cron-5-minute-helper. I created my crontab from scratch. :/
John Dodds
@johners97
Jul 29 2016 16:54
I entered it and nothing has appeared
cries
weeps
stamps feet
goes into hypo
dies
Dana Lewis
@danamlewis
Jul 29 2016 16:57
…..
if you’re going low,that may not be the best time to program. I recommend treating a low and coming back to this later. It will also prevent the dying :(
John Dodds
@johners97
Jul 29 2016 16:58
temporary basal rate activated
crisis averted
Hannah Crabtree
@lollydaggle
Jul 29 2016 16:59
@johners97 cron was the worst part for me and maybe I should PR some pointers to the docs. But essentially, if 'oref0 cron-5-minute-helper' isn't doing what you want it to do, you can manually add the cron command in via crontab -e.
John Dodds
@johners97
Jul 29 2016 17:00
@lollydaggle I will come back later and do it, it's a nice day outside :))
Hannah Crabtree
@lollydaggle
Jul 29 2016 17:01
@johners97 never a bad idea to take a break and come back later
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 17:03
has anyone seen a pump just stop respoonding to the TI stick?
it's just given up and is refusing to talk to the TI stick. Changed battery and restarted the APS with no luck.
Paul Martin
@Spazholio
Jul 29 2016 17:15
How are you trying to communicate? What are you seeing in the logs?
dabear
@dabear
Jul 29 2016 17:50
Hi People. Anyone wanna test my windows app before I publish the beta to the facebook group? It's an app to display your blood sugar values on your windows desktop
John Dodds
@johners97
Jul 29 2016 19:11
Hey i'm back
John Dodds
@johners97
Jul 29 2016 19:19
I'm afraid I still can't work out crontab! May someone send a screenshot/example so I can maybe work it out
I would really appreciate it, I have tried the examples
@cjo20 ?
John Dodds
@johners97
Jul 29 2016 19:25
~/my_openaps $ crontab -l


*/5 * * * * (cd my_openaps && openaps loop) 2>&1 | logger -t openaps-loop
John Dodds
@johners97
Jul 29 2016 19:43
Why is oref0 cron-5-minute-helper do-loop | crontab - not working
David Cintron
@loudestnoise
Jul 29 2016 19:44
@johners97 oref0 cron-5-minute-helper is a command you run inside your openaps directory
it looks like it made the cron line, assuming your alias is loop
but you might need to spell out the full path
or actually put ~/my_openaps
John Dodds
@johners97
Jul 29 2016 19:46
What? :)
Okkkk
David Cintron
@loudestnoise
Jul 29 2016 19:46
so you have cd my_openaps
John Dodds
@johners97
Jul 29 2016 19:46
Yes!
David Cintron
@loudestnoise
Jul 29 2016 19:46
but cron needs to know where that directory is
so if you append the ~
that means home
aka /home/pi/my_openaps
John Dodds
@johners97
Jul 29 2016 19:47
*/5 * * * * (cd /home/pi/my_openaps && openaps loop) 2>&1 | logger -t openaps-loop
I put this down
David Cintron
@loudestnoise
Jul 29 2016 19:47
:+1:
John Dodds
@johners97
Jul 29 2016 19:47
and that doesn't work
David Cintron
@loudestnoise
Jul 29 2016 19:47
is loop your alias?
John Dodds
@johners97
Jul 29 2016 19:47
Yeah
why?:)
David Cintron
@loudestnoise
Jul 29 2016 19:50
well that would be important because that’s in your cron line
John Dodds
@johners97
Jul 29 2016 19:50
So inside the crontab that is the only line I have *
^
I assume that's wrong as it's not working
David Cintron
@loudestnoise
Jul 29 2016 19:50
hmm
have you looked at your syslog to see what it says?
tail -f 50 /var/log/syslog
John Dodds
@johners97
Jul 29 2016 19:54

tail: cannot open ‘50for reading: No such file or directory
==> /var/log/syslog <==
Jul 29 20:51:41 john avahi-daemon[519]: Registering new address record for 192.168.1.2 on wlan0.IPv4.
Jul 29 20:51:42 john ntpd[628]: Listen normally on 5 wlan0 192.168.1.2 UDP 123
Jul 29 20:51:42 john ntpd[628]: peers refreshed
Jul 29 20:51:44 john ntpd_intres[651]: DNS 0.europe.pool.ntp.org -> 212.112.228.242
Jul 29 20:51:46 john ntpd_intres[651]: DNS 1.europe.pool.ntp.org -> 139.162.228.75
Jul 29 20:51:49 john ntpd_intres[651]: DNS 2.europe.pool.ntp.org -> 178.17.162.12
Jul 29 20:51:51 john ntpd_intres[651]: DNS 3.europe.pool.ntp.org -> 85.254.216.1
Jul 29 20:52:06 john systemd[1]: Starting Session c3 of user pi.
Jul 29 20:52:06 john systemd[1]: Started Session c3 of user pi.
Jul 29 20:52:19 john kernel: [   55.407971] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered.
pi@john:~/my_openaps $ tail -f 50 /var/log/syslog
tail: cannot open ‘50for reading: No such file or directory
==> /var/log/syslog <==
Jul 29 20:52:39 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:dff:fecc:3142
Jul 29 20:52:39 john rsyslogd-2007: action 'action 17' suspended, next retry isFri Jul 29 20:53:09 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 20:53:19 john kernel: [  114.718774] w1_master_driver w1_bus_master1: Faily 0 for 00.400000000000.46 is not registered.
Jul 29 20:53:19 john rsyslogd-2007: action 'action 17' suspended, next retry isFri Jul 29 20:53:49 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 20:53:36 john crontab[1091]: (pi) BEGIN EDIT (pi)
Jul 29 20:53:55 john crontab[1091]: (pi) REPLACE (pi)
Jul 29 20:53:55 john rsyslogd-2007: action 'action 17' suspended, next retry isFri Jul 29 20:54:25 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 20:53:55 john crontab[1091]: (pi) END EDIT (pi)
Jul 29 20:54:01 john cron[444]: (pi) RELOAD (crontabs/pi)
Jul 29 20:54:06 john kernel: [  162.069429] w1_master_driver w1_bus_master1: Faily 0 for 00.c00000000000.ca is not registered.
Jul 29 20:54:14 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:dff:fecc:3142
pi@john:~/my_openaps $ crontab -l


*/5 * * * * (cd ~/home/pi/my_openaps && openaps loop) 2>&1 | logger -t openaps-loop
What does this mean
Scott Leibrand
@scottleibrand
Jul 29 2016 19:59
if you don't understand cron, you shouldn't be trying to do it manually. let's figure out why oref0 cron-5-minute-helper do-loop isn't working for you
or maybe oref0 cron-5-minute-helper loop if your main loop alias is called loop instead of do-loop
John Dodds
@johners97
Jul 29 2016 20:03
@scottleibrand I don't think that's worked
Scott Leibrand
@scottleibrand
Jul 29 2016 20:05
can you paste the exact command you're running (including the prompt showing your current directory) and its output?
John Dodds
@johners97
Jul 29 2016 20:06

$oref0 cron-5-minute-helper do-loop
In crontab -e ^
just doing loop doesnt work

pi@john:~/my_openaps $ ls
139.162.228.75          determine-basal.ini        ns.ini
178.17.162.12           enact                      ns-reports.json
212.112.228.242         get-profile.ini            openaps.ini
85.254.216.1            glucose.ini                oref0.ini
basal123.json           insulin_pump.ini           oref0-predict
bewest-aliases.json     insulin_pump-session.json  preferences.json
boluscommandtest1.json  last_four_pump_hours.json  raw-pump
bolus.json              model.json                 settings
calculate-iob.ini       monitor                    terminal_script
destroy.json            nightscout                 tz.ini
detect-sensitivity.ini  npm-debug.log              units.ini
pi@john:~/my_openaps $ openaps loop
insulin_pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
PREFLIGHT OK
insulin_pump://JSON/read_settings/settings/settings.json
reporting settings/settings.json
insulin_pump://JSON/read_bg_targets/settings/bg_targets_raw.json
reporting settings/bg_targets_raw.json
units://JSON/bg_targets/settings/bg-targets.json
reporting settings/bg-targets.json
insulin_pump://JSON/read_insulin_sensitivities/settings/insulin-sensitivities-raw.json
reporting settings/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
reporting settings/insulin-sensitivities.json
insulin_pump://JSON/read_basal_profile_std/settings/basal-profile.json
reporting settings/basal-profile.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
insulin_pump://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
glucose://JSON/clean/monitor/glucoseclean.json
reporting monitor/glucoseclean.json
insulin_pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
insulin_pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
insulin_pump://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
calculate-iob://JSON/shell/monitor/iob.json
reporting monitor/iob.json
calculate-iob://JSON/shell/monitor/iob.json
reporting monitor/iob.json
determine-basal://text/shell/enact/suggested.json
{"delta":-2,"glucose":54,"avgdelta":-2}
{"duration":0,"rate":0,"temp":"absolute"}
{"netbasalinsulin":-1.2,"activity":-0.0041,"basaliob":-0.584,"hightempinsulin":0,"bolussnooze":0,"iob":-0.584}
{"max_iob":10,"type":"current","dia":3,"skip_neutral_temps":false,"current_basal":1.3,"max_daily_basal":1.4,"max_basal":35,"min_bg":90,"max_bg":117,"sens":21.599999999999998}
Adjusting sens from 21.599999999999998 to 21.6
reporting enact/suggested.json
insulin_pump://JSON/set_temp_basal/enact/enacted.json
reporting enact/enacted.json
Wait why on earth is there ip addreess in my_openaps
Scott Leibrand
@scottleibrand
Jul 29 2016 20:20
that was probably from a failed scp attempt earlier
can you run oref0 cron-5-minute-helper loop from your my_openaps dir and paste the output of that?
John Dodds
@johners97
Jul 29 2016 20:22
What do you mean @scottleibrand ? :)
pi@john:~/my_openaps $ crontab -e
crontab: installing new crontab
"/tmp/crontab.SM8isi/crontab":5: bad command
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n)
Scott Leibrand
@scottleibrand
Jul 29 2016 20:23
I am asking you to run that command and paste the output.
no, stop it with the crontab -e stuff. we don't need that right now
I'm trying to get you to start over and do it per the instructions
John Dodds
@johners97
Jul 29 2016 20:24
pi@john:~/my_openaps $ oref0 cron-5-minute-helper loop
pi@john:~/my_openaps $
@scottleibrand Does this mean there's something wrong?
With oref0
Scott Leibrand
@scottleibrand
Jul 29 2016 20:26
yes. try npm view oref0 version
John Dodds
@johners97
Jul 29 2016 20:26
0.2.0
Scott Leibrand
@scottleibrand
Jul 29 2016 20:27
wonder if that cron-5-minute-helper is only in dev. let me check.
John Dodds
@johners97
Jul 29 2016 20:29
@scottleibrand Is there anything else you would like me to check? oref0.ini relevant?
Scott Leibrand
@scottleibrand
Jul 29 2016 20:30
this one isn't your fault: we haven't released that tool to master yet or packaged it up
let me just run it for you on my pi and paste the output for you to use with crontab -e
John Dodds
@johners97
Jul 29 2016 20:31
@scottleibrand Sure thing
Scott Leibrand
@scottleibrand
Jul 29 2016 20:33
pi@rpi3 ~/my_openaps $ oref0 cron-5-minute-helper loop
SHELL=/bin/bash
PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

*/5 * * * * (cd /home/pi/my_openaps && time openaps loop ) 2>&1 | logger -t openaps-loop
scottleibrand @scottleibrand adds "do an oref0 release" to the mental "do soon" list ;-)
John Dodds
@johners97
Jul 29 2016 20:35
@scottleibrand I've entered the output and there is nothing happening
Scott Leibrand
@scottleibrand
Jul 29 2016 20:36
so if you do crontab -l you should get the same output as I pasted above
if not, you didn't do the crontab -e part right. if that looks the same, you can look at logs to see what it's doing
John Dodds
@johners97
Jul 29 2016 20:37

pi@john:~/my_openaps $ crontab -l
SHELL=/bin/bash
PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

*/5 * * * * (cd /home/pi/my_openaps && time loop ) 2>&1 | logger -t openaps-loop
Scott Leibrand
@scottleibrand
Jul 29 2016 20:38
ok, time to go look at /var/log/syslog again then
John Dodds
@johners97
Jul 29 2016 20:39

pi@john:~/my_openaps $ tail -f 50 /var/log/syslog
tail: cannot open ‘50for reading: No such file or directory
==> /var/log/syslog <==
Jul 29 21:35:01 john openaps-loop: sys#0110m0.000s
Jul 29 21:35:10 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:d4ff:fecc:3142
Jul 29 21:35:15 john kernel: [ 2630.742476] w1_master_driver w1_bus_master1: Family 0 for 00.6c0000000000.c6 is not registered.
Jul 29 21:35:26 john crontab[3860]: (pi) LIST (pi)
Jul 29 21:36:02 john kernel: [ 2678.033153] w1_master_driver w1_bus_master1: Family 0 for 00.ec0000000000.4a is not registered.
Jul 29 21:36:02 john rsyslogd-2007: action 'action 17' suspended, next retry is Fri Jul 29 21:37:32 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 21:36:46 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:d4ff:fecc:3142
Jul 29 21:36:56 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:d4ff:fecc:3142
Jul 29 21:37:00 john dhcpcd[445]: wlan0: Router Advertisement from fe80::8e10:d4ff:fecc:3142
Jul 29 21:37:01 john kernel: [ 2737.123959] w1_master_driver w1_bus_master1: Family 0 for 00.1c0000000000.3e is not registered.
Scott Leibrand
@scottleibrand
Jul 29 2016 20:40
oh, there is an error in that output. let me fix
should be time openaps loop: fix that in crontab -e
looks like the correct usage would have been oref0 cron-5-minute-helper openaps loop to generate the correct output
John Dodds
@johners97
Jul 29 2016 20:44
@scottleibrand
pi@john:~/my_openaps $ tail -f 50 /var/log/syslog
tail: cannot open ‘50for reading: No such file or directory
==> /var/log/syslog <==
Jul 29 21:40:46 john rsyslogd-2007: action 'action 17' suspended, next retry is Fri Jul 29 21:42:16 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 21:40:50 john crontab[4105]: (pi) REPLACE (pi)
Jul 29 21:40:50 john crontab[4105]: (pi) END EDIT (pi)
Jul 29 21:41:01 john cron[444]: (pi) RELOAD (crontabs/pi)
Jul 29 21:41:10 john kernel: [ 2986.559501] w1_master_driver w1_bus_master1: Family 0 for 00.bc0000000000.91 is not registered.
Jul 29 21:42:07 john crontab[4175]: (pi) BEGIN EDIT (pi)
Jul 29 21:42:11 john kernel: [ 3046.828152] w1_master_driver w1_bus_master1: Family 0 for 00.7c0000000000.5b is not registered.
Jul 29 21:42:18 john crontab[4175]: (pi) REPLACE (pi)
Jul 29 21:42:18 john rsyslogd-2007: action 'action 17' suspended, next retry is Fri Jul 29 21:43:48 2016 [try http://www.rsyslog.com/e/2007 ]
Jul 29 21:42:18 john crontab[4175]: (pi) END EDIT (pi)
Scott Leibrand
@scottleibrand
Jul 29 2016 20:46
there should be an openaps-loop entry at 21:45
you did the crontab edit at 21:40, so it had to wait until the next 5m interval to run again
fwiw, your tail command should actually be tail -n 50 -f /var/log/syslog if you want the 50 lines of context. or tail -f /var/log/syslog if you only want the default 10 you're getting now.
doesn't hurt anything, that's just why it's saying cannot open ‘50’ for reading
John Dodds
@johners97
Jul 29 2016 20:49
It's fine, I think it's working now! Only I was too far from carelink to get a reading so it said preflight fail
Scott Leibrand
@scottleibrand
Jul 29 2016 20:49
:confetti_ball: :clap: :-)
John Dodds
@johners97
Jul 29 2016 20:49
A line for retry-loop I think
?:)
And thanks @scottleibrand !
Officially closed the loop...
Well almost
Need to check it out first
Scott Leibrand
@scottleibrand
Jul 29 2016 20:51
:-)
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 20:52
sorry @Spazholio got pulled away to work for a bit. here some info
pi@raspberrypi:~/openaps-20160611/my_openaps $ openaps preflight
pump://JSON/read_clock/monitor/clock.json
mmtune:
  "setFreq": 916.63,
pump://JSON/read_clock/monitor/clock.json
PREFLIGHT FAILED
pi@raspberrypi:~/openaps-20160611/my_openaps $ grep mmtune openaps.ini
preflight = !bash -c "rm -f monitor/clock.json preflight.ini && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK | tee preflight.ini || (echo -e \"mmtune: \" && openaps use pump mmtune | grep setFreq && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT WITH MMTUNE OK | tee preflight.ini && exit 0 || echo PREFLIGHT FAILED | tee preflight.ini; sleep 2; exit 1)"
John Dodds
@johners97
Jul 29 2016 20:54
Will it give me more insulin when I go high?
Silly question
Don't answer it
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 20:55
@Spazholio and stack trace for failed report
pi@raspberrypi:~/openaps-20160611/my_openaps $ openaps report invoke monitor/clock.json
pump://JSON/read_clock/monitor/clock.json
monitor/clock.json  raised  No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 44, in __call__
    self.before_main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 63, in before_main
    self.check_session(app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 140, in check_session
    self.session = self.get_session_info( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 103, in get_session_info
    fields = self.create_session( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 128, in create_session
    self.pump.power_control(minutes=minutes)
  File "/home/pi/mmeowlink-source/mmeowlink/handlers/stick.py", line 217, in power_control
    raise CommsException("No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?")
mmeowlink.exceptions.CommsException: No acknowledgement from pump on wakeup. Is it out of range or is the battery too low?
Dana Lewis
@danamlewis
Jul 29 2016 20:56
@johners97 it might be helpful to re read the OpenAPS reference design
John Dodds
@johners97
Jul 29 2016 20:58
@danamlewis definitely!
Planning on developing it further, will require significantly more work. The frequency of questions should decrease, hopefully...
David Cintron
@loudestnoise
Jul 29 2016 21:06
@danamlewis That’s my first recommendation to people now! Reference design is so great for understanding IMHO
Dragan Maksimovic
@dm61
Jul 29 2016 21:16
@kimstdennis_twitter TI stick to pump comms fail, occasionally; I've also seen a case when pump comms would get stuck and repeatedly fail, including mmtune, even though my pump was close to the rig. Had to reboot pi to clear that. Interestingly, pump comms with TI stick seem to work a lot more reliably on my Edison-based rig, no idea why.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 21:18
@dm61 thanks for the feedback. Unfortunately, I've rebooted the Pi with no luck. I do have the edison at home with ubilinux but I have to trouble shoot the loop as it isn't working currently. I wonder why the random failure takes place.
I replaced the battery in the pump too.
Dragan Maksimovic
@dm61
Jul 29 2016 21:20
@kimstdennis_twitter I'd try mmtune manually a few times, see what comes back; signal level?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 21:23
@dm61 I'll give that a try. I'm also digging around in mmtune source right now. wondering about mmeowlink-rf-dump.py
John Dodds
@johners97
Jul 29 2016 21:31
God. I just remembered I skipped the nightscout part. Gonna try sort that tonight, uniting ns and openaps.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 21:53
@dm61 giving this a whirl now;
./mmeowlink-rf-dump.py --serial blah --port /dev/mmeowlink --rf-minutes 1 --auto-init --radio_type subg_rfspy
but it's just seeming to hang
Dragan Maksimovic
@dm61
Jul 29 2016 21:57
@kimstdennis_twitter interesting; well, I have not try to dig into mmeowlink; you may try at the mmeowlink channel (https://gitter.im/oskarpearson/mmeowlink); in any case, I'd be curious to learn whatever you find
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 22:30
@dm61 I'll report back. So far, just getting time outs with the mmeowlink-rf-dump
John Dodds
@johners97
Jul 29 2016 22:34
On nightscout, its showing my pump data (temp basal rates about 30 mins ahead of time...
grr
John Dodds
@johners97
Jul 29 2016 22:40
reporting nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
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 "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-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 196, in main
    data = sorted(data, key=get)
  File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/__init__.py", line 178, in get
    return parse(item.get(args.date))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 1164, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 552, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 671, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 188, in split
    return list(cls(s))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 184, in next
    return self.__next__()  # Python 2.x support
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 177, in __next__
    token = self.get_token()
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 93, in get_token
    nextchar = self.instream.read(1)
AttributeError: 'NoneType' object has no attribute 'read'
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 "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_resources/__init__.py", line 719, in run_script
  File "/usr/local/lib/python2.7/dist-packages/setuptools-24.2.0-py2.7.egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-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-p
Paul Martin
@Spazholio
Jul 29 2016 22:48
@kimstdennis_twitter I’d recommend running mmtune. I had the same thing happen, then I realized I hadn’t tuned in forever, and I got the same stuff you’re seeing right now.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 22:49
@Spazholio thanks! It's part of my preflight, but I'm running it be hand a few times right now.
Paul Martin
@Spazholio
Jul 29 2016 22:49
Yep, that’s exactly what happened to me. I’m so used to running the loop (which includes it) that when I’m diagnosing/poking, I tend to forget to run it.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 22:49
I'm seeing this which makes me think it's just landing on the default
"usedDefault": true
interesting
wonder why running it in a user session makes a difference
Paul Martin
@Spazholio
Jul 29 2016 22:56
What numbers are you seeing when mmtune runs?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 22:57
@Spazholio
    ]
  ],
  "setFreq": 916.63,
  "usedDefault": true
Paul Martin
@Spazholio
Jul 29 2016 22:57
I think we’re missing a bit. It’s reporting things above that, right?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 22:59
oh yeah
one sec
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:09
pi@raspberrypi:~/openaps-20160611/my_openaps $ openaps use pump mmtune | jq .scanDetails[][0]
"916.300"
"916.324"
"916.348"
"916.372"
"916.396"
"916.420"
"916.444"
"916.468"
"916.492"
"916.516"
"916.540"
"916.564"
"916.588"
"916.612"
"916.636"
"916.660"
"916.684"
"916.708"
"916.732"
"916.756"
"916.780"
"916.804"
"916.828"
"916.852"
"916.876"
@Spazholio
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:18
so I ran this but didn't seem to get the freq set.
for i in {1..10}; do openaps use pump mmtune; sleep 5; done
...
    [
      "916.876",
      0,
      -99
    ]
  ],
  "setFreq": 916.63,
  "usedDefault": true
lots of output between running the loop and that last line.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:27
@Spazholio oh and I search and old log which shows this
      "916.876",
      0,
      -99
    ]
  ],
  "setFreq": 916.708,
  "usedDefault": false
that's from a working run of mmtune
Scott Leibrand
@scottleibrand
Jul 29 2016 23:28
there will be a stronger RSSI up in the part of the output that has the 916.708 or whatever setFreq it used if "usedDefault": false
Paul Martin
@Spazholio
Jul 29 2016 23:28
Ok, could you post the full output of openaps use pump mmtune by itself? That bit after the | is stripping out the diagnostic stuff.
John Dodds
@johners97
Jul 29 2016 23:29
openaps is amazing. Blood sugars have been in range >95% of the time i've been using it
Martin Haeberli
@mhaeberli
Jul 29 2016 23:35
lazy manual - is there a default non-root user recommended for running openaps / oref0 ?
Scott Leibrand
@scottleibrand
Jul 29 2016 23:36
whichever one your device comes with: pi or edison user.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:37
@Spazholio
 openaps use pump mmtune
{
  "scanDetails": [
    [
      "916.300",
      0,
      -99
    ],
    [
      "916.324",
      0,
      -99
    ],
    [
      "916.348",
      0,
      -99
    ],
    [
      "916.372",
      0,
      -99
    ],
    [
      "916.396",
      0,
      -99
    ],
    [
      "916.420",
      0,
      -99
    ],
    [
      "916.444",
      0,
      -99
    ],
    [
      "916.468",
      0,
      -99
    ],
    [
      "916.492",
      0,
      -99
    ],
    [
      "916.516",
      0,
      -99
    ],
    [
      "916.540",
      0,
      -99
    ],
    [
      "916.564",
      0,
      -99
    ],
    [
      "916.588",
      0,
      -99
    ],
    [
      "916.612",
      0,
      -99
    ],
    [
      "916.636",
      0,
      -99
    ],
    [
      "916.660",
      0,
      -99
    ],
    [
      "916.684",
      0,
      -99
    ],
    [
      "916.708",
      0,
      -99
    ],
    [
      "916.732",
      0,
      -99
    ],
    [
      "916.756",
      0,
      -99
    ],
    [
      "916.780",
      0,
      -99
    ],
    [
      "916.804",
      0,
      -99
    ],
    [
      "916.828",
      0,
      -99
    ],
    [
      "916.852",
      0,
      -99
    ],
    [
      "916.876",
      0,
      -99
    ]
  ],
  "setFreq": 916.63,
  "usedDefault": true
Martin Haeberli
@mhaeberli
Jul 29 2016 23:38
@scottleibrand thx
Paul Martin
@Spazholio
Jul 29 2016 23:38
Hey, that’s not good. Do you see the lights on the TI stick blink when you run it?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:40
yes Sir.
Scott Leibrand
@scottleibrand
Jul 29 2016 23:40
is the pump using US frequencies, or WW?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:41
US.
has been working up until last night.
Scott Leibrand
@scottleibrand
Jul 29 2016 23:41
have you done a hard power cycle?
sudo halt and then power back on is easiest for Edison
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:42
will do again.
Dragan Maksimovic
@dm61
Jul 29 2016 23:42
check your pump.ini?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:42
pump.ini is good @dm61
booting...
Paul Martin
@Spazholio
Jul 29 2016 23:44
Stupid question, but when’s the last time you actually checked pump.ini? Maybe you had really, REALLY selective corruption?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:45
looked this afternoon while running mmeow-rf-dump.py
Paul Martin
@Spazholio
Jul 29 2016 23:46
k
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:46
not sure what git repo corruption looks like, but
file pump.ini pump.ini: ASCII text
Paul Martin
@Spazholio
Jul 29 2016 23:47
No, that looks right.
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:47
@scottleibrand "have you tried turning it off and on again?" :)
Scott Leibrand
@scottleibrand
Jul 29 2016 23:48
I've actually seen these symptoms with my rigs, and a reboot won't fix it, but a full halt will
have to shut off power to the TI stick
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:48
  "setFreq": 916.63,
  "usedDefault": true
Scott Leibrand
@scottleibrand
Jul 29 2016 23:48
this is a soldered serial stick?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:48
I yanked it this morning hoping that would do it
nah, usb
Scott Leibrand
@scottleibrand
Jul 29 2016 23:49
ah, ok
does it show up in lsusb?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:49
moved usb, just for kicks
Paul Martin
@Spazholio
Jul 29 2016 23:49
Is it plugged in directly, or using an extender USB cable?
Scott Leibrand
@scottleibrand
Jul 29 2016 23:49
edison@edison-sf ~/openaps-mmeow $ lsusb
Bus 001 Device 002: ID 1d50:8001 OpenMoko, Inc.
if you don't see that, it's a lower level problem
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:50
Bus 001 Device 006: ID 1d50:8001 OpenMoko, Inc.
Scott Leibrand
@scottleibrand
Jul 29 2016 23:51
k, so we can see the stick over USB
Dragan Maksimovic
@dm61
Jul 29 2016 23:51
do you have a spare pump by any chance?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:52
no, was just trying to pick one up
Scott Leibrand
@scottleibrand
Jul 29 2016 23:53
fresh pump battery?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:54
first thing I changed, yeah.
hoping that would reset the rf on the pump
Scott Leibrand
@scottleibrand
Jul 29 2016 23:54
do you have another TI stick, or even a carelink?
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:55
carelink at home (at the office currently) and another TI stick in the mail
Scott Leibrand
@scottleibrand
Jul 29 2016 23:55
which firmware version on the TI stick?
might be worth upgrading that if you have your CC debugger handy
Kim St. Dennis
@kimstdennis_twitter
Jul 29 2016 23:55
checking..
ok, I'll give that a whirl when I get home
Dragan Maksimovic
@dm61
Jul 29 2016 23:56
@scottleibrand how do you check firmware version?
Scott Leibrand
@scottleibrand
Jul 29 2016 23:57
it should show up in some of the mmeowlink output. I'll have to check which commands, as I generally filter it.
subg_rfspy version blah, status OK
Dragan Maksimovic
@dm61
Jul 29 2016 23:57
ok
thx