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

1st
May 2016
Bill McBain
@mcbill
May 01 2016 00:08
within 0ref0_glucose is there a way to write in a function to run a lowercase and then str.capitalize() to the string so that FLAT becomes Flat before it gets sent to NS (or could one of the ns devs make find a way to make it case insensitive?
Jason Calabrese
@jasoncalabrese
May 01 2016 00:28
yeah, NS should do that case insensitive
would need to handle, 45_UP, etc
@mcbill, @ktomy: can you open an issue
Jason Calabrese
@jasoncalabrese
May 01 2016 00:38
Jason Calabrese
@jasoncalabrese
May 01 2016 00:48
ugh, also in the pebble code, for ALL the pebble watchfaces, I think the conversion should happen before uploading to NS
Iain
@iainct
May 01 2016 02:25
@bewest success with the new oref0_glucose function however i am unable to make a report using the same syntax
pi@raspberrypi:~/slicaps $ openaps use cgm oref0_glucose --no-raw --glucose monito/glucose.json
[
  {
    "trend_arrow": "FLAT", 
    "system_time": "2016-05-01T03:19:04", 
    "full_trend": 4, 
    "direction": "Flat", 
    "sgv": 201, 
    "display_time": "2016-04-30T20:19:32", 
    "date": 1462069172000.0, 
    "dateString": "2016-04-30T20:19:32", 
    "device": "openaps://cgm", 
    "type": "sgv", 
    "glucose": 201
  }, 
  {
    "trend_arrow": "FLAT", 
    "system_time": "2016-05-01T03:14:10", 
    "full_trend": 4, 
    "direction": "Flat", 
    "sgv": 200, 
    "display_time": "2016-04-30T20:14:37", 
    "date": 1462068877000.0, 
    "dateString": "2016-04-30T20:14:37", 
    "device": "openaps://cgm", 
    "type": "sgv", 
    "glucose": 200
  }, 
  {
    "trend_arrow": "FLAT", 
    "system_time": "2016-05-01T03:09:05", 
    "full_trend": 4, 
    "direction": "Flat", 
    "sgv": 207, 
    "display_time": "2016-04-30T20:09:32", 
    "date": 1462068572000.0, 
    "dateString": "2016-04-30T20:09:32", 
    "device": "openaps://cgm", 
    "type": "sgv", 
    "glucose": 207
  }, 
  {
    "trend_arrow": "FLAT", 
    "system_time": "2016-05-01T03:04:04", 
    "full_trend": 4, 
    "direction": "Flat", 
    "sgv": 206, 
    "display_time": "2016-04-30T20:04:32", 
    "date": 1462068272000.0, 
    "dateString": "2016-04-30T20:04:32", 
    "device": "openaps://cgm", 
    "type": "sgv", 
    "glucose": 206
  }, 
  {
    "trend_arrow": "45_UP", 
    "system_time": "2016-05-01T02:59:05", 
    "full_trend": 3, 
    "direction": "FortyFiveUp", 
    "sgv": 205, 
    "display_time": "2016-04-30T19:59:32", 
    "date": 1462067972000.0, 
    "dateString": "2016-04-30T19:59:32", 
    "device": "openaps://cgm", 
    "type": "sgv", 
    "glucose": 205
  }
openaps report add monitor/entries.json JSON cgm oref0_glucose --no-raw --glucose monitor/glucose.json
pi@raspberrypi:~/slicaps $ openaps report invoke monitor/entries.json
cgm://JSON/oref0_glucose/monitor/entries.json
monitor/entries.json  raised  'Namespace' object has no attribute 'glucose'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 8, in <module>
    execfile(__file__)
  File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/pi/src/openaps/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/home/pi/src/openaps/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/home/pi/src/openaps/openaps/vendors/dexcom.py", line 362, in main
    iter_glucose = self.get_glucose_data(params, args)
  File "/home/pi/src/openaps/openaps/vendors/dexcom.py", line 332, in get_glucose_data
    if args.glucose:
AttributeError: 'Namespace' object has no attribute 'glucose'
looks like the glucose term is tripping it up...
Iain
@iainct
May 01 2016 02:33
@bewest i tried copying the output into a report entries.json but that was unable to upload :-(
pi@raspberrypi:~/slicaps $  ns-upload https://website.herokuapp.com/ APISECRET entries.json entries.json 
Cannot POST //api/v1/entries.json
Jason Calabrese
@jasoncalabrese
May 01 2016 02:41
With that error, the file probably wasn't created, try to cat it
Iain
@iainct
May 01 2016 02:41
@jasoncalabrese which error?
Jason Calabrese
@jasoncalabrese
May 01 2016 02:41
maybe you need a new version of dexcom reader
Iain
@iainct
May 01 2016 02:42
i am using loudnate G5 branch, its the only one that works....
Jason Calabrese
@jasoncalabrese
May 01 2016 02:42
No attribute'glucose'
Think that's added to a new version, sounds like things need to get merged
Iain
@iainct
May 01 2016 02:44
hang on openaps use cgm oref0_glucose --no-raw --glucose monitor/glucose.jsonworks its just i cannot use it to generate a json report. when i copied the cat output into a file to test if it would upload that also failed but the time zones are not zoned in the report
Jason Calabrese
@jasoncalabrese
May 01 2016 02:46
Oh, maybe a syntax thing
Iain
@iainct
May 01 2016 02:47
openaps report add monitor/entries.json JSON cgm oref0_glucose --no-raw --glucose monitor/glucose.json
i cant see what is wrong with the above
pi@raspberrypi:~/slicaps $ openaps use cgm oref0_glucose -h
usage: openaps-use cgm oref0_glucose [-h] [--hours [HOURS]]
                                     [--threshold THRESHOLD] [--no-raw]
                                     [--glucose GLUCOSE] [--sensor SENSOR]

 Get Dexcom glucose formatted for Nightscout, merged with raw data.  [#oref0]

optional arguments:
  -h, --help            show this help message and exit
  --hours [HOURS]       Number of hours of glucose records to read.
  --threshold THRESHOLD
                        Number of hours of glucose records to read.
  --no-raw              Skip raw data.
  --glucose GLUCOSE     File to read glucose from instead of device.
  --sensor SENSOR       File to read sensor (raw) from instead of device.
Iain
@iainct
May 01 2016 02:54
from openaps.inithis maybe the issue as the other options are missing
[report "monitor/entries.json"]
device = cgm
hours = 1.0
use = oref0_glucose
reporter = JSON
Iain
@iainct
May 01 2016 03:04
so i changed openaps.ini to the following resulting in errors
[report "monitor/entries.json"]
device = cgm
use = oref0_glucose --no-raw --glucose
input = monitor/glucose.json
reporter = JSON
pi@raspberrypi:~/slicaps $ openaps report invoke monitor/entries.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 8, in <module>
    execfile(__file__)
  File "/home/pi/src/openaps/bin/openaps-report", line 82, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/home/pi/src/openaps/openaps/reports/invoke.py", line 24, in main
    task = app.actions.commands['add'].usages.commands[device.name].method.commands[report.fields['use']]
KeyError: 'oref0_glucose --no-raw --glucose'
Iain
@iainct
May 01 2016 03:15
@bewest i have summaried the issues in openaps/openaps@1a7c558
Ben West
@bewest
May 01 2016 07:45
@iainct thanks for trying it out, I fixed some issues with renaming direction and also with handling the report stuff
hopefully report should work now;
however, Cannot POST //api/v1/entries.json is a little worrysome, maybe you edited it to remove the hostname
Ben West
@bewest
May 01 2016 08:27
curses: just bent a ti stick to death
Oskar Pearson
@oskarpearson
May 01 2016 09:00
@bewest I nearly did the same thing the other day - the USB connector was at a jaunty angle
Hristina Dimova
@xpucuto
May 01 2016 09:09
@bewest auch thats sounds pretty bad. I hope you can bring it back to life :angel:
Hristina Dimova
@xpucuto
May 01 2016 12:22
@iainct As i have read you have missed one r in monitor, i guess this is the reason you can not invoke it. This is what you have pasted above . Hope that helps.
pi@raspberrypi:~/slicaps $ openaps use cgm oref0_glucose --no-raw --glucose monito/glucose.json
Iain
@iainct
May 01 2016 12:47
@xpucuto I must have taped the keyboard when I entered it here. It's correct on my pi the advice function works correctly. @bewest I'll pull the new code to test the report soon. I manually entered the host and api secret when I ran that command hmm. Hopefully your ti such survived!
Hristina Dimova
@xpucuto
May 01 2016 12:48
@iainct :+1:
JaysonEwer
@JaysonEwer
May 01 2016 13:03
@bewest Where do I send a new TI stick to you? It's the least I can do for all the ❤️ You give to OpenAPS!
live4sw
@live4sw
May 01 2016 13:21
Quick question - have most people upgraded to 0.1.0? I'm still on 0.0.10. Are there notes anywhere on the improvements in 0.1.0?
Hristina Dimova
@xpucuto
May 01 2016 13:36
can anyone help me with cron ?
i have all the alias and have three cron lines , just now sure where to add them in order to make it run them
live4sw
@live4sw
May 01 2016 13:51
@xpucuto Are you just asking how to open your crontab to edit? If so, crontab -e will bring it up.
Hristina Dimova
@xpucuto
May 01 2016 13:56
I know that but I'm not sure how to edit it after that :)
Frank Best
@efbest
May 01 2016 14:02
nightscout.png
I set up my Nightscout website (0.9.0-dev), clicked the check boxes for openaps and pump, but there's no openAPS pill box???
live4sw
@live4sw
May 01 2016 14:04
@xpucuto I recommend reading the CronHowto (or even just the wikipedia page). It will probably only take you 30-60 minutes to figure it out, and then you can come back if there are still any issues. Automation is one of the last steps so it's important to make sure you understand it very well. But basically, the cron syntax is a set of numbers indicating how often to run the job, and then the command you want to run.
Hristina Dimova
@xpucuto
May 01 2016 14:04
@live4sw ok will do that .
Frank Best
@efbest
May 01 2016 14:08
yes
Hristina Dimova
@xpucuto
May 01 2016 14:13
try that SHOW_PLUGINS enable also in app settings, and the restart your website.
if that doesnt help someone more skilled will have to assist
Iain
@iainct
May 01 2016 14:52
does anyone use heroku with night scout/openaps? I got so frustrated with azzure when the servers were too unreliable to deploy the code or page, but i also have the no pill issue... openaps is selected in the website settings.
@bewest the report fix worked but i am still unable to upload
pi@raspberrypi:~/slicaps $ ns-upload https://website.herokuapp.com/ APISECRET entries.json monitor/entries.json
Cannot POST //api/v1/entries.json
pi@raspberrypi:~/slicaps $ curl https://slicaps.herokuapp.com/api/v1/entries.json
[]
website and API secret manually entered but removed from above
Frank Best
@efbest
May 01 2016 15:27
where and when is the file 'entries.json' created?
Andrew Warrington
@andrew-warrington
May 01 2016 15:47
just bought flights to London meetup. :) bringing my son, who was into the Raspberry Pi back before he & I realised it could actually be useful. @oskarpearson @colinlennon @timomer @danamlewis. Looking forward to it.
Arriving May 24th departing May 27th
so available on 25 or 26th, whichever one it ends up being.
Matthias
@ceben80
May 01 2016 15:49

@xpucuto

Regards with the cron stuff I'd like to give you this recommandation:

  1. create an empty text file e.g. "openaps_crontab" (in your openaps directory)
  2. insert all cron job lines into this file and save
  3. for activation simply run crontab openaps_crontab
  4. for deactivation run crontab -r

So you're able to modify all cron job in one file

Hristina Dimova
@xpucuto
May 01 2016 15:52
Thank you @ceben80 but the problem is I do t know how to compile a cron job. I have the manual but it's beyond my skills
Jason Calabrese
@jasoncalabrese
May 01 2016 15:57
I just use the simple crontab -e then comment out any lines I don't want to run
Oskar Pearson
@oskarpearson
May 01 2016 16:03
Great stuff @andrew-warrington ! Looking forward to meeting you
Matthias
@ceben80
May 01 2016 16:08
@xpucuto as written in point 3....just try it and see your result with crontab -l
Hristina Dimova
@xpucuto
May 01 2016 16:13
@jasoncalabrese here is what i have in crontab . I had help with copying and defying my own information inside, but the person who was helping me had to go out so we didint finish. Can i replace retry-loop with all the aliases i have which will make my loop running?
#* * * * * killall -g --older-than 10m openaps
#* * * * * cd bulgaria && oref0-reset-git
#* * * * * cd bulgaria && ( ps aux | grep -v grep | grep -q 'openaps retry-loop' || openaps retry-loop ) 2>&1 | tee -a /var/log/openaps/loop.log
Bill McBain
@mcbill
May 01 2016 16:19
Hristina Dimova
@xpucuto
May 01 2016 16:22
@mcbill thanks I will read that too :)
Bill McBain
@mcbill
May 01 2016 16:25
@xpucuto and here are some specific examples: http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
Toby Canning
@TC2013
May 01 2016 16:30
@xpucuto You probably know this, but # in the front of each line in your crontab stops the line from running.
Bill McBain
@mcbill
May 01 2016 16:31
also, "man crontab" is a little obtuse, but "man 5 crontab" is a little more user friendly. If you want the code to run in the screenshot you posted every minute of every day of every month of every year (the five *s) then you'll have to uncomment (remove the #) thsoe lines of code
Jason Calabrese
@jasoncalabrese
May 01 2016 16:31
also if you're using any environment vars they need to be set at the top
you'll also need to set the path
Toby Canning
@TC2013
May 01 2016 16:36
Your crontab might look like this when you're finished:
NIGHTSCOUT_HOST=https://****.azurewebsites.net
API_SECRET=MYAPISECRET0
* * * * * killall -g --older-than 10m openaps
* * * * * cd bulgaria && oref0-reset-git
* * * * * cd bulgaria && ( ps aux | grep -v grep | grep -q 'openaps retry-loop' || openaps retry-loop ) 2>&1 | tee -a /var/log/openaps/loop.log
I'm also curious what pwd says when you enter that command when in your openaps init directory bulgaria?
Use the command tail -n 40 -f /var/log/openaps/loop.log to view your loop log file in real time as it updates
-n 40 can be set to any number of lines to display.
Matthias
@ceben80
May 01 2016 16:44
@TC2013 :+1:
Hristina Dimova
@xpucuto
May 01 2016 16:47
:+1: I know about the # it's there because it was causing me problems when running the reports ;)
Jason Calabrese
@jasoncalabrese
May 01 2016 16:48
yeah, when you are going to be run the reports / aliases manually it's good to disable some of the crons
same if you edit the ini
Hristina Dimova
@xpucuto
May 01 2016 18:02
@TC2013 you gave me the initial information about cron thanks once again. My cron does look like the one you have showed i just didint add the nightscout host and api-secret.
But the only familiar thing there is the alias retry loop . Does this mean all other aliases have to be included there ?
Scott Leibrand
@scottleibrand
May 01 2016 18:04
no, you just want to make one master alias that runs all the others, and schedule that alias in cron
Hristina Dimova
@xpucuto
May 01 2016 18:04
@scottleibrand got it. :D
Scott Leibrand
@scottleibrand
May 01 2016 18:05
mine currently looks like openaps alias add loop '! bash -c "openaps preflight && openaps gather && openaps get-settings && openaps enact && openaps upload && openaps invoke settings/autosens.json"', but obviously yours will be different
Hristina Dimova
@xpucuto
May 01 2016 18:14
i have much more aliases i have to see which ones are gathering same data .i think i have almost the samo loop alias without the autosens.json which i suppose is for meal assist which has to wait for now
John Benjamin
@Bender1061
May 01 2016 18:44
Hello Everyone
Stephan
@MosiGitHub
May 01 2016 18:47
Hi Bender1061
John Benjamin
@Bender1061
May 01 2016 18:55
So Ive currently started working on my own rig within the past two weeks. Could not do much this past week cause I was with my first Robotics team at the world. Ompetition in St Louis, well on my way home we stopped at a steak n shake, well this mother comes up to me to say nice insulin pump, well I mention how im currently working on a closed loop system for it, and her son pulls his rig out of his bag. Yeah mind = blown! This is in Plainsfield IN and they are heading back to Metro Detroit, just a couple towns from where I live. Yeah the odds of this is insanely small. I think I need to go buy myself a lottery ticket!
Jason Calabrese
@jasoncalabrese
May 01 2016 18:57
cool, that was probably @fallon225 and @inform880
Scott Leibrand
@scottleibrand
May 01 2016 18:58
wow, nice. yeah, @inform880 also does first robotics. :)
Sulka Haro
@sulkaharo
May 01 2016 19:33
Hey, did a combo bolus today after a long pause of not using them and I'm not sure if the IOB was calculated right. Did OpenAPS consider combos already? NS definitely didn't render it right so we need to add a translation step somewhere. Who added the combo feature? What's the right format for the treatments?
Jason Calabrese
@jasoncalabrese
May 01 2016 19:40
a combo will block OpenAPS, when the pump is is bolusing mode you can't set a temp basal
openaps assumes you aren't using them at all, so I'd expect lots to be broken when trying
Milos Kozak
@MilosKozak
May 01 2016 19:42
entering it in NS using careportal should work
Dana Lewis
@danamlewis
May 01 2016 19:44
Love that we've had our first serendipitous encounters of two loopers in the wild :D @Bender1061 @inform880
Jason Calabrese
@jasoncalabrese
May 01 2016 19:46
we really need #OpenAPS car stickers, anyone on that?
my laptop needs it too
Dana Lewis
@danamlewis
May 01 2016 19:47
No but if someone wants to ringlead that I can help/ +1 design
Tim Howard
@tghoward
May 01 2016 19:48
I would put a bumper sticker on our car! Hey, with two loopers, maybe I need two stickers!
Scott Leibrand
@scottleibrand
May 01 2016 20:05
so where are we with tools to get BG data from a Dexcom G4 receiver and format/zone it for upload to NS etc.? Does anyone have a working set of commands for that yet? @bewest any pointers?
Stephan
@MosiGitHub
May 01 2016 20:07
@scottleibrand do you mind if I ask you a couple of questions to meal assist and auto-sens?
Dana Lewis
@danamlewis
May 01 2016 20:07
Ask away @MosiGitHub!
Scott Leibrand
@scottleibrand
May 01 2016 20:07
of course not. you can always ask, whether I'm here or not I'll see it and respond.
unless of course someone else beats me to it. :)
jaylagorio
@jaylagorio
May 01 2016 20:09
@scottleibrand I filed an issue for that and saw scripts committed. That was maybe a month or so ago but haven't had a chance to try anything out.
Stephan
@MosiGitHub
May 01 2016 20:11
@danamlewis @scottleibrand thanks a lot :+1: i was just installing auto-sens again on an elder rig that got stuck a couple days ago and implemented a new device for determine basal. This one has a require for auto-sens and meal in it - like I expected. I was now doing a couple of steps out of the meal-assist-setup.sh (cherry picking) and I was wondering about the determine-basal device without the auto-sens implemented. Is this by purpose?
jaylagorio
@jaylagorio
May 01 2016 20:12
@scottleibrand openaps/oref0#88
Aaaand I just noticed you're in that ticket comment stream. Don't mind me.
Stephan
@MosiGitHub
May 01 2016 20:14
the other question was concerning the advanced-meal-assist: you are pulling the carbs out of the treatments.json from NS, right? So it is just working while you are connected to the web, right?
Ben West
@bewest
May 01 2016 20:17
@scottleibrand RE uploading BG from dexcom to Nightscout: openaps/docs#129
JaysonEwer
@JaysonEwer
May 01 2016 20:18
@danamlewis "
I was trying to quote your sighting in he wild comment. 😀💪👏😃
We have to come up with an awesome logo, +1
Dana Lewis
@danamlewis
May 01 2016 20:20
@MosiGitHub you can have it pull carb entry from the pump if you are willing to enter carbs on the pump, so it will work offline
@JaysonEwer :) don't think we need a logo, just the type treatment of #OpenAPS for stickers etc
Stephan
@MosiGitHub
May 01 2016 20:22
@danamlewis thanks, sounds good :+1:
JaysonEwer
@JaysonEwer
May 01 2016 20:22
I'm envisioning a pancreas walking up the beach in an automated way type of sticker. 😜
Dana Lewis
@danamlewis
May 01 2016 20:31
@MosiGitHub per the previous q, that setup was made before auto sens existed (which is used in advanced meal assist)
Stephan
@MosiGitHub
May 01 2016 20:33
thanks again @danamlewis ---- I was looking right now what oref0 determine basal uses and it still requires auto-sens. So that is the newer more advanced setup and I stay with that setting.
Dana Lewis
@danamlewis
May 01 2016 20:34
It doesn't require. It's an optional argument that will use if provided. What branch are you on?
Stephan
@MosiGitHub
May 01 2016 20:36
@jasoncalabrese thanks for the explanation to the combo bolus. I tried it two ours ago and now I understand why the loop was not enacting temp basal. I had only expected that the IOB would be wrong, but now -because of your advice- I know that the loop is no longer working if I use it :+1:
Dana Lewis
@danamlewis
May 01 2016 20:36
@JaysonEwer oh. An automated sticker. I see ;)
Hristina Dimova
@xpucuto
May 01 2016 20:44
I have success with cron :dancer: My pumps is bolusing using the glucose and showing on NS.
unfortunately i still can not manage to upload the data from the G4 receiver trough rpi. @bewest can you help with the oref0_glucose ? I tried running the command but it says i dont have it. I did update with sudo pip install -U openaps . Hopefully i didnt make it worse
Dana Lewis
@danamlewis
May 01 2016 20:44
Awesome @andrew-warrington :)
@xpucuto bolusing?! Did you mean issuing temp basals?
Jason Calabrese
@jasoncalabrese
May 01 2016 20:44
@MosiGitHub @sulkaharo the hope is that with Eating Soon and Advanced Meal Assist, we won't need combos at all, and would only need to get the initial bolus about right. So far I've been doing some easy boluses, and getting Andrew to do more, but some automation and notifications would help
Hristina Dimova
@xpucuto
May 01 2016 20:44
yes, sorry incorect word ;)
Dana Lewis
@danamlewis
May 01 2016 20:45
Phew!! :)
Congrats on the cron success :)
Jason Calabrese
@jasoncalabrese
May 01 2016 20:45
you can edit in gitter for a little while after posting
Hristina Dimova
@xpucuto
May 01 2016 20:45
thanks , it was easier than i tought , just needed little help
Jason Calabrese
@jasoncalabrese
May 01 2016 20:45
just hover over the time, click ..., then edit
Ben West
@bewest
May 01 2016 20:45
sudo pip install -U git+git://gitgub.com/openaps/openaps.git'#dev'
Hristina Dimova
@xpucuto
May 01 2016 20:46
aha ….
is this a problem ? I have updated the full error
pi@raspberrypi:~/bulgaria $ sudo pip install -U git+git://gitgub.com/openaps/openaps.git'#dev'
Downloading/unpacking git+git://gitgub.com/openaps/openaps.git
  Cloning git://gitgub.com/openaps/openaps.git to /tmp/pip-LMycG0-build
fatal: unable to connect to gitgub.com:
gitgub.com: Name or service not known

  Complete output from command /usr/bin/git clone -q git://gitgub.com/openaps/openaps.git /tmp/pip-LMycG0-build:

----------------------------------------
Cleaning up...
Command /usr/bin/git clone -q git://gitgub.com/openaps/openaps.git /tmp/pip-LMycG0-build failed with error code 128 in None
Storing debug log for failure in /root/.pip/pip.log
Ben West
@bewest
May 01 2016 20:49
hmm
df -h
Hristina Dimova
@xpucuto
May 01 2016 20:50
cron is on i can turn it off
pi@raspberrypi:~/bulgaria $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.2G  3.6G  3.3G  52% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M  6.4M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p1   60M   20M   41M  34% /boot
tmpfs            93M     0   93M   0% /run/user/1000
Hristina Dimova
@xpucuto
May 01 2016 21:06
the ones who already loop how do you handle with the alarm/vibration that comes every hour for when a temp.basal is set ? I have a very slumber sleep, the pump used to wake me when i was using it during the night with temp. :(
Jason Calabrese
@jasoncalabrese
May 01 2016 21:11
just a typo I think: gitgub vs github
Hristina Dimova
@xpucuto
May 01 2016 21:11
:+1:
Jason Calabrese
@jasoncalabrese
May 01 2016 21:12
the beep doesn't wake anyone here, but you can put the pump into a silent mode, but make easy bolus harder
Dana Lewis
@danamlewis
May 01 2016 21:12
@xpucuto I have mine set to vibrate, and I don't notice it hardly when I'm awake, definitely doesn't bother me when I sleep, but I'm a deep sleeper which is what started this all ;)
Is it the vibration or the noise? You might be able to clip it somewhere where the vibration won't be felt
Hristina Dimova
@xpucuto
May 01 2016 21:13
@jasoncalabrese @bewest it has installed successfully .
My pump has always been on silent, hate those pump sounds and this is what wakes me, the vibration …
Dana Lewis
@danamlewis
May 01 2016 21:15
Where do you clip it?
Hristina Dimova
@xpucuto
May 01 2016 21:15
i rotate all night long in bed , so no matter where i clip it will buzz me.
I hope to be able to cope with that in order to have better bg range
on my bottom pujamas ( sorry if misspelled)
Dana Lewis
@danamlewis
May 01 2016 21:16
What about clipping to the sheet?
Hristina Dimova
@xpucuto
May 01 2016 21:16
it will pull me when turning from back to tummy while sleeping
but i will give it a try ;) intereting suggestion
Dana Lewis
@danamlewis
May 01 2016 21:17
Hm. Wondering if wrapping the pump in something would mute some of the vibration noise. Or slipping it in pocket instead of having it clipped directly, etc.
Hristina Dimova
@xpucuto
May 01 2016 21:18
i will have a reason to get Lenny the Lion for sleeping :laughing:
Dana Lewis
@danamlewis
May 01 2016 21:18
Amazed at your ability to hear in your sleep :)
Yea, Lenny might work!
Hristina Dimova
@xpucuto
May 01 2016 21:19
:)
@bewest i installed the update but still can not run
openaps use cgm oref0_glucose  --glucose raw-cgm/glucose-raw.json --sensor sensor_raw.json
Ben West
@bewest
May 01 2016 21:37
does oref0_glucose appear in openaps use cgm -h?
Hristina Dimova
@xpucuto
May 01 2016 21:38
unfortunately no
Ben West
@bewest
May 01 2016 21:38
oh, I see
ls ~/src
cd ~/src/openaps
Hristina Dimova
@xpucuto
May 01 2016 21:38
no such directory
Ben West
@bewest
May 01 2016 21:39
oh
erm
openaps --version
Hristina Dimova
@xpucuto
May 01 2016 21:39
0.1.0
Ben West
@bewest
May 01 2016 21:39
ah, hmmm
Hristina Dimova
@xpucuto
May 01 2016 21:39
is it updated?
Ben West
@bewest
May 01 2016 21:39
no
currently, dev is 0.1.1-dev
Hristina Dimova
@xpucuto
May 01 2016 21:40
should i try to install it again
cron is enabled just to say again
Ben West
@bewest
May 01 2016 21:40
ok, let's cancel cron for now
Hristina Dimova
@xpucuto
May 01 2016 21:40
ok
no it doesnt work but it can not find an egg when uninstaling old version
do you want to have a look?
Ben West
@bewest
May 01 2016 21:42
hmm, I think openaps is installed from git somewhere nearby
usually, it's in ~/src/ somewhere
Hristina Dimova
@xpucuto
May 01 2016 21:42
on my rpi ?
Ben West
@bewest
May 01 2016 21:43
yeah
Hristina Dimova
@xpucuto
May 01 2016 21:44
i know my openaps its in directory /Bulgaria but i might have installed some of it in the root of rpi
shall i try installing there ? I hope that makes sence
Ben West
@bewest
May 01 2016 21:45
hmmm, it might be in /root/src/ somewhere maybe?
that might be good
Hristina Dimova
@xpucuto
May 01 2016 21:45
how was the command for going one directory behind :blush:
Ben West
@bewest
May 01 2016 21:45
cd ..?
Hristina Dimova
@xpucuto
May 01 2016 21:45
~ something
Ben West
@bewest
May 01 2016 21:46
cd /root
Hristina Dimova
@xpucuto
May 01 2016 21:46
ok
Ben West
@bewest
May 01 2016 21:46
but you need to be root for that
hmm
sudo ls /root
Hristina Dimova
@xpucuto
May 01 2016 21:46
nothing shows on the terminal
Ben West
@bewest
May 01 2016 21:47
ok, so it's not here
if you do pydoc openaps
at the top it says FILE
Hristina Dimova
@xpucuto
May 01 2016 21:47
FILE
    /usr/local/lib/python2.7/dist-packages/openaps/__init__.py
Ben West
@bewest
May 01 2016 21:47
yeah, lovely
Hristina Dimova
@xpucuto
May 01 2016 21:48
if you are happy i am happy
Ben West
@bewest
May 01 2016 21:48
hmm
well
maybe the -U needs to be a --upgrade instead
Hristina Dimova
@xpucuto
May 01 2016 21:49
ok
Ben how to exit this screen ?
Ben West
@bewest
May 01 2016 21:50
q
q
Hristina Dimova
@xpucuto
May 01 2016 21:50
:+1:
Ben West
@bewest
May 01 2016 21:50
ah ok, I think maybe I gave you wrong command
yes
great
ah yes
yes:
sorry
sudo pip install --upgrade git+git://github.com/openaps/openaps@dev
Hristina Dimova
@xpucuto
May 01 2016 21:51
it worked, dont worry. But install its the same . still 0.1.0
Ben West
@bewest
May 01 2016 21:51
notice the # turned into @
Hristina Dimova
@xpucuto
May 01 2016 21:51
aha ok
and no ‘ ‘
Ben West
@bewest
May 01 2016 21:51
doesn't matter now I think
I used it, but it shouldn't make a difference
easier to type though
Hristina Dimova
@xpucuto
May 01 2016 21:52
:dancer:
just have a look at this .egg
 Could not find .egg-info directory in install record for openaps==0.1.1.dev0 from git+git://github.com/openaps/openaps@dev
Ben West
@bewest
May 01 2016 21:52
seems okish
openaps --version
Hristina Dimova
@xpucuto
May 01 2016 21:52
great
Ben West
@bewest
May 01 2016 21:52
cd ~/Bulgaria?
Hristina Dimova
@xpucuto
May 01 2016 21:52
0.1.1.-dev
im there already
or this is to go back
Ben West
@bewest
May 01 2016 21:53
try the openaps use cgm oref0_glucose
Hristina Dimova
@xpucuto
May 01 2016 21:53
let me check
i dont have the files and its complaining
pi@raspberrypi:~/bulgaria $ openaps use cgm oref0_glucose  --glucose raw-cgm/glucose-raw.json --sensor sensor_raw.json
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 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/__init__.py", line 31, in __call__
    return self.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/dexcom.py", line 381, in main
    iter_glucose = self.get_glucose_data(params, args)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/dexcom.py", line 354, in get_glucose_data
    for item in json.load(argparse.FileType('r')(args.glucose)):
  File "/usr/lib/python2.7/argparse.py", line 1142, in __call__
    raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open 'raw-cgm/glucose-raw.json': [Errno 2] No such file or directory: 'raw-cgm/glucose-raw.json'
Ben West
@bewest
May 01 2016 21:55
just try simple: openaps use cgm oref0_glucose
Hristina Dimova
@xpucuto
May 01 2016 21:55
answered :0)
Ben West
@bewest
May 01 2016 21:55
mkdir raw-cgm
Hristina Dimova
@xpucuto
May 01 2016 21:56
done
Ben West
@bewest
May 01 2016 21:56
openaps report add raw-cgm/raw-entries.json JSON cgm oref0_glucose
Hristina Dimova
@xpucuto
May 01 2016 21:57
done and invoked
Ben West
@bewest
May 01 2016 21:58
openaps report remove monitor/glucose.json

openaps report add monitor/glucose.json JSON tz rezone --date display_time --date dateString raw-cgm/raw-entries.json
time openaps report invoke raw-cgm/raw-entries.json monitor/glucose.json
Hristina Dimova
@xpucuto
May 01 2016 21:59
after the comma is everything one command or they are two?
all done
crontab enabled
fingers crossed…...
Ben West
@bewest
May 01 2016 22:01
openaps use ns shell upload entries.json monitor/glucose.json
it won't work :-)
not done quit yet
Hristina Dimova
@xpucuto
May 01 2016 22:01
:(
ok
Ben West
@bewest
May 01 2016 22:01
try the use ns above to attempt uploading the glucose into NS
Hristina Dimova
@xpucuto
May 01 2016 22:01
strange , says api secret is missing or incorrect
pi@raspberrypi:~/bulgaria $ openaps use ns shell upload entries.json monitor/glucose.json
{
  "status": 401, 
  "message": "Unauthorized", 
  "description": "api-secret Request Header is incorrect or missing.”
Ben West
@bewest
May 01 2016 22:02
ah great, api secret needs to be tweaked
hmm, don't copy the output back here, it's private to you: openaps device show ns
it should show your hostname and a bunch of garbage
Hristina Dimova
@xpucuto
May 01 2016 22:03
yes and the hash api
Ben West
@bewest
May 01 2016 22:03
if you do:
yeah
Hristina Dimova
@xpucuto
May 01 2016 22:03
just a sec
Ben West
@bewest
May 01 2016 22:03
nightscout hash-api-secret myplainapisecret
it should hopefully match the hash it shows
hopefully they do not match :-D
if they do not match, it confirms error message we got
Hristina Dimova
@xpucuto
May 01 2016 22:04

yes they don’t match

we are on a the right lead ;)

Ben West
@bewest
May 01 2016 22:04
fantastic easy to fix
openaps device remove ns
Hristina Dimova
@xpucuto
May 01 2016 22:05
removed
Ben West
@bewest
May 01 2016 22:05
nightscout autoconfigure-device-crud https://my.site.again "myplainsecretagain-sans-typos" :-D
Hristina Dimova
@xpucuto
May 01 2016 22:05
ahahah ok
Ben West
@bewest
May 01 2016 22:06
openaps use ns shell upload entries.json monitor/glucose.json
try that same use again
Hristina Dimova
@xpucuto
May 01 2016 22:06
ok
Ben West
@bewest
May 01 2016 22:06
if you get data back, go look at your NS site
Hristina Dimova
@xpucuto
May 01 2016 22:06
which api secret should i use , the second one, right
the first wasnt correct and we removed it
Ben West
@bewest
May 01 2016 22:06
right, the correct one
use the plain secret text
you can put it in "putinquotes"
Hristina Dimova
@xpucuto
May 01 2016 22:07
yes the loooooong one
ok
Ben West
@bewest
May 01 2016 22:07
it will do the hash for you
Hristina Dimova
@xpucuto
May 01 2016 22:09
pi@raspberrypi:~/bulgaria $ openaps use ns shell upload entries.json monitor/glucose.json
No JSON object could be decoded

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 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-use", line 58, in run
    reporter(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 27, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 25, in serialize
    return self.method.serialize(render(data), self)
  File "/usr/local/lib/python2.7/dist-packages/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
Ben West
@bewest
May 01 2016 22:09
hmm
Hristina Dimova
@xpucuto
May 01 2016 22:10
to be honest i added the plain secret with “” , and then i saw that ithas to be the short one in the “"
so i deleted the ns device again and added it
Ben West
@bewest
May 01 2016 22:10
ok, yeah, it should be so that when you do the nightscout hash-api-secret
it should print the same thing as when you do openaps device show ns
Hristina Dimova
@xpucuto
May 01 2016 22:11
ok
Ben West
@bewest
May 01 2016 22:11
the autoconfigure-device-crud uses the hash-api-secret tool to record it
Hristina Dimova
@xpucuto
May 01 2016 22:12
This message was deleted
pi@raspberrypi:~/bulgaria $ openaps device show ns
process://ns/nightscout/ns https:***.azurewebsites.net e5fd259c0b0ff64d9ae00dce00d0a6a67cfe8861
pi@raspberrypi:~/bulgaria $ nightscout hash-api-secret
Missing plain Nightscout passphrase.
Usage: nightscout hash-api-secret 'myverylongsecret'.
Ben West
@bewest
May 01 2016 22:13
right, you have to give it the plain secret
and it should print out the same hash
Hristina Dimova
@xpucuto
May 01 2016 22:13
so remove device and when adding use this hash-api?
Ben West
@bewest
May 01 2016 22:13
no, we're using hash-api to double check our work
for example:
if my plain api secret is BBB
it's too short to be real, but for example
my fake site is AAA, and my plain api secret is BBB
$ nightscout  autoconfigure-device-crud AAA BBB
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
process://ns/nightscout/ns AAA aa6878b1c31a9420245df1daffb7b223338737a3
bewest@bewest-MacBookPro:~/Documents/loop-new-style$ nightscout hash-api-secret BBB
aa6878b1c31a9420245df1daffb7b223338737a3
so in this case, I know that I typed BBB correctly, because the hashes are the same
Hristina Dimova
@xpucuto
May 01 2016 22:16
ok i think i got it
Yes they are correct
Ben West
@bewest
May 01 2016 22:16
ah great
Hristina Dimova
@xpucuto
May 01 2016 22:16
the same
Ben West
@bewest
May 01 2016 22:17
and does openaps use ns shell get entries.json 'count=1' do anything?
that should help us just test the hostname alone at least
Hristina Dimova
@xpucuto
May 01 2016 22:18
error
Ben West
@bewest
May 01 2016 22:18
ah great
NIGHTSCOUT_DEBUG=1 openaps use ns shell get entries.json 'count=1'
Hristina Dimova
@xpucuto
May 01 2016 22:19
error again
Ben West
@bewest
May 01 2016 22:19
tehre should be lot of debug output:
something like this:
REPORT_ENDPOINT='https://my.real-site.net/api/v1/entries.json?count=1'
Hristina Dimova
@xpucuto
May 01 2016 22:20
yes
pi@raspberrypi:~/bulgaria $ NIGHTSCOUT_DEBUG=1 openaps use ns shell get entries.json 'count=1'
+ REPORT_ENDPOINT=‘https:***.azurewebsites.net/api/v1/host?entries.json'
+ case $1 in
+ NIGHTSCOUT_HOST=https:***.azurewebsites.net
+ REPORT=entries.json
+ QUERY=count=1
+ OUTPUT=/dev/fd/1
+ REPORT_ENDPOINT=‘https:***.azurewebsites.net/api/v1/entries.json?count=1'
+ test -z https:****.azurewebsites.net
+ json
+ curl -g -s -iv ‘https:****.azurewebsites.net/api/v1/entries.json?count=1'
* Hostname was NOT found in DNS cache
* Could not resolve host: https
* Closing connection 0
No JSON object could be decoded

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 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-use", line 58, in run
    reporter(output)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 27, in __call__
    self.blob = self.serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/__init__.py", line 25, in serialize
    return self.method.serialize(render(data), self)
  File "/usr/local/lib/python2.7/dist-packages/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
Ben West
@bewest
May 01 2016 22:21
Hostname was NOT found in DNS cache?
could not resolve host
https://something.azurewebsites.net vs https:something.azurewebsite.net?
Hristina Dimova
@xpucuto
May 01 2016 22:22
yes no //
Ben West
@bewest
May 01 2016 22:22
should be able to test by hand: curl https://my.site.net/
Hristina Dimova
@xpucuto
May 01 2016 22:23
long answer
no errors i guess
Ben West
@bewest
May 01 2016 22:23
ok, try the upload use again
Hristina Dimova
@xpucuto
May 01 2016 22:24
but i have to add the //
Ben West
@bewest
May 01 2016 22:24
yeah
Hristina Dimova
@xpucuto
May 01 2016 22:24
to my host, isnt it ?
Ben West
@bewest
May 01 2016 22:24
you can edit the ns.ini if you prefer
or you can remove and add again
Hristina Dimova
@xpucuto
May 01 2016 22:24
YES :)
Ben West
@bewest
May 01 2016 22:24
yeah, just make it say https:// instead of https:
Hristina Dimova
@xpucuto
May 01 2016 22:25
:dancer: :dancer: :dancer: :dancer:
i have data on my websites
Ben West
@bewest
May 01 2016 22:25
ok
we need a report for that
Hristina Dimova
@xpucuto
May 01 2016 22:25
:confetti_ball:
Ben West
@bewest
May 01 2016 22:25
something like
`mkdir nightscout
Hristina Dimova
@xpucuto
May 01 2016 22:25
i have it already
Ben West
@bewest
May 01 2016 22:25
oh? for the upload?
ok, well we need to update the alias though
somewhere there's a monitor/glucose.json in the alias
Hristina Dimova
@xpucuto
May 01 2016 22:26
yes i have recent-treatments.json
Ben West
@bewest
May 01 2016 22:26
we need to make sure that the newer raw-cgm/ is also there, right before it
raw-cgm/raw-entries.json?
Hristina Dimova
@xpucuto
May 01 2016 22:26
ok
Ben West
@bewest
May 01 2016 22:26
forget what we called it
but that has to be invoke right before
Hristina Dimova
@xpucuto
May 01 2016 22:26
yes
Ben West
@bewest
May 01 2016 22:27
openaps alias show to get list of them
Hristina Dimova
@xpucuto
May 01 2016 22:27
pi@raspberrypi:~/bulgaria $ openaps alias show
last_four_hours report invoke last_four_pump_hours.json last_four_cgm_hours.json
status-upload ! bash -c "openaps report invoke monitor/upload-status.json && ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json monitor/upload-status.json"
monitor-pump report invoke monitor/clock.json monitor/clock-zoned.json  monitor/temp_basal.json monitor/pumphistory.json monitor/pumphistory-zoned.json  monitor/iob.json monitor/battery.json monitor/reservoir.json monitor/status.json
monitor-cgm report invoke monitor/glucose.json
latest-ns-treatment-time ! bash -c "nightscout latest-openaps-treatment $NIGHTSCOUT_HOST | json created_at"
format-latest-nightscout-treatments ! bash -c "nightscout cull-latest-openaps-treatments monitor/pumphistory-zoned.json settings/model.json $(openaps latest-ns-treatment-time) > nightscout/recent-treatments.json"
upload-recent-treatments ! bash -c "openaps format-latest-nightscout-treatments && test $(json -f nightscout/recent-treatments.json -a created_at eventType | wc -l ) -gt 0 && (ns-upload $NIGHTSCOUT_HOST $API_SECRET treatments.json nightscout/recent-treatments.json ) || echo \"No recent treatments to upload\""
gather-profile report invoke settings/settings.json settings/bg_targets_raw.json settings/bg_targets.json settings/insulin_sensitivities_raw.json settings/insulin_sensitivities.json settings/basal_profile.json settings/profile.json
enact ! bash -c "rm enact/suggested.json; openaps report invoke enact/suggested.json && cat enact/suggested.json && grep -q duration enact/suggested.json && ( openaps report invoke enact/enacted.json && cat enact/enacted.json ) || echo No action required"
gather ! bash -c " openaps monitor-cgm && openaps monitor-pump && openaps get-settings"
upload ! bash -c "openaps preflight && ( openaps monitor-pump && openaps upload-recent-treatments && openaps get-settings) 2>/dev/null >/dev/null && echo -n \"Uploaded; most recent treatment event @ \" && openaps latest-ns-treatment-time || echo \"Error; could not upload\""
loop ! bash -c "openaps monitor-cgm 2>/dev/null && ( openaps preflight && openaps gather && openaps format-latest-nightscout-treatments && openaps upload-recent-treatments && openaps status-upload &&  openaps enact) || echo No CGM data.".
retry-loop ! bash -c "openaps preflight && until( ! mm-stick warmup || openaps loop); do sleep 5; done"
preflight ! bash -c "rm -f monitor/clock.json && openaps report invoke monitor/clock.json 2>/dev/null && grep -q T monitor/clock.json && echo PREFLIGHT OK || (mm-stick warmup || (sudo oref0-reset-usb && echo PREFLIGHT SLEEP && sleep 120); echo PREFLIGHT FAIL; exit 1)"
get-settings report invoke settings/model.json settings/bg_targets.json settings/insulin_sensitivities.json settings/basal_profile.json settings/settings.json
prep-status-reports report invoke monitor/battery.json monitor/reservoir.json monitor/status.json
upload-cgm ! bash -c "openaps report invoke monitor/glucose.json && ns-upload $NIGHTSCOUT_HOST $API_SECRET entries.json monitor/glucose.json || echo No cgm data to upload "
Ben West
@bewest
May 01 2016 22:27
and maybe just edit the openaps.ini so that that file is mentioned in the middle of invoke alias, just before
prefect
monitor-cgm report invoke monitor/glucose.json
Hristina Dimova
@xpucuto
May 01 2016 22:27
thats the easiet way i edit aliases
Ben West
@bewest
May 01 2016 22:28
that one has monitor/glucose.json
Hristina Dimova
@xpucuto
May 01 2016 22:28
ok
Ben West
@bewest
May 01 2016 22:28
make it say: invoke raw-cgm/raw-entries.json monitor/glucose.json
Hristina Dimova
@xpucuto
May 01 2016 22:28
ok
Ben West
@bewest
May 01 2016 22:28
that will make it run that oref0_glucose thing first, then the tz thing, then it's all good
sorry, are you using mmol?
no, this is in mg/dl anyway, IIRC
I'm not a big fan of the upload-cgm
if we add upload as a report, we can just invoke it
Hristina Dimova
@xpucuto
May 01 2016 22:31
i tried doing it
have a look
Ben West
@bewest
May 01 2016 22:31
mkdir nightscout
openaps report add nightscout/uploaded-entries.json JSON  ns shell upload entries.json monitor/glucose.json
Hristina Dimova
@xpucuto
May 01 2016 22:31
you did actually in the alias
added
upload-cgm doesnt work
it list all the data but nothing was showing on the website before
i havent tried it now
Ben West
@bewest
May 01 2016 22:32
yeah, it still won't work, we need to use the same tools we just did
so that report makes it do same thing we just did
upload-cgm ! bash -c "openaps report invoke monitor/glucose.json && ns-upload $NIGHTSCOUT_HOST $API_SECRET entries.json monitor/glucose.json || echo No cgm data to upload this one
upload-cgm report invoke monitor/glucose.json nightscout/uploaded-entries.json
so much simpler
same with previous one
Hristina Dimova
@xpucuto
May 01 2016 22:34
yes, but its 1.30 am here and my mind is not so fresh anymore. I will read it tomorrow again when i save the conversation in a word file ;)
Ben West
@bewest
May 01 2016 22:34
yeah, sorry it's late :-)
lots of progress
Hristina Dimova
@xpucuto
May 01 2016 22:35
its late for you asking me complicated questions
otherwise im all good
;)
Hristina Dimova
@xpucuto
May 01 2016 22:40
now i have to add upload-cgm to my loop alias, right ?
Hristina Dimova
@xpucuto
May 01 2016 22:51
i have two final questions and im off.
How to upload old data to ns ? i have last_four_cgm_hours.json but not sure how to upload them .
second one is i started having this error when running status-upload
pi@raspberrypi:~/bulgaria $ openaps status-upload
ns-status://JSON/shell/monitor/upload-status.json
Could not require: /home/pi/bulgaria/[] { [Error: Cannot find module '/home/pi/bulgaria/[]'] code: 'MODULE_NOT_FOUND' }
reporting monitor/upload-status.json
[{"device":"openaps://raspberrypi","pump":{"battery":{"status":"normal","voltage":1.24},"status":{"status":"normal","timestamp":"2016-05-01T22:49:20.000Z","bolusing":false,"suspended":false},"reservoir":143.7,"clock":"2016-05-02T01:48:48+03:00"},"openaps":{"suggested":{"bg":180,"temp":"absolute","snoozeBG":122,"timestamp":"2016-05-01T22:49:37.000Z","reason":"Eventual BG 122>=108, temp 1.25 >~ req 1.22U/hr","eventualBG":122,"mealAssist":"Off: Carbs: undefined Boluses: undefined Target: 99 Deviation: 4 BGI: -5.45","tick":-4},"iob":{"netbasalinsulin":2.65,"timestamp":"2016-05-01T22:49:17.000Z","activity":0.0303,"basaliob":0.976,"hightempinsulin":2.65,"bolussnooze":0,"iob":1.733},"enacted":{"bg":184,"temp":"absolute","snoozeBG":123,"recieved":true,"reason":"Eventual BG 122>=108, 22m@1.345 = 0.493 > req 0.24+0.1U","rate":1.25,"eventualBG":122,"timestamp":"2016-05-01T22:43:41.000Z","duration":30,"mealAssist":"Off: Carbs: undefined Boluses: undefined Target: 99 Deviation: 5 BGI: -5.78","tick":-4}},"created_at":"2016-05-01T22:49:59.925Z","_id":"5726881758092c14ceaeceb9”}]
it does upload info so i suppose i shouldnt worry about it.
Ben West
@bewest
May 01 2016 22:56
in the INI, there's a remainder = [] somewhere
it should say remainder =
Hristina Dimova
@xpucuto
May 01 2016 22:57
remove the []
error is gone
you are a magician
Last one :
is there an easy way to get my TI stick in use. I have already programmed one for Enlite sensors so the openaps part is what i am asking about.
Ben West
@bewest
May 01 2016 23:00
yeah
sudo pip install git+git://github.com/oskarpearson/mmeowlink.git
openaps vendor add mmeowlink.vendors.mmeowlink
Hristina Dimova
@xpucuto
May 01 2016 23:01
:+1:
Ben West
@bewest
May 01 2016 23:01
openaps device add ti mmeowlink subg_rfspy /dev/serial/by-id/usb-Nightscout* 123456 where 123456 is your serial
then all the openaps use ti is same as openaps use pump
you can rename them in the ini's
Hristina Dimova
@xpucuto
May 01 2016 23:02
ok
i will have a detailed look tomorrow
off to bed :tired_face:
Ben West
@bewest
May 01 2016 23:03
have good night, much progress :-D
Hristina Dimova
@xpucuto
May 01 2016 23:04
thats not a progress , its a miracle … i will be curious to see what the recommendations were for tonight .
thank you from the bottom of my heart for all your time and help, and understanding
i promise to help others as much as i can
Dana Lewis
@danamlewis
May 01 2016 23:29
:) :+1:
Jason Calabrese
@jasoncalabrese
May 01 2016 23:53
:+1: @xpucuto