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

12th
Sep 2016
Scott Leibrand
@scottleibrand
Sep 12 2016 00:06
I just install things as needed
most packages will install their own dependencies
Brandon Faloona
@bfaloona
Sep 12 2016 00:07
@cjo20 solved my battter_voltage dependency, but now I'm wondering about systemd, which might allow me to install weaved.
Also, upm looks useful but a pain to install. Is this a good set of libraries to use?
I don't have any experience with ubilinux or these libraries. I just don't want to rediculously bloat the edison, but I do want easy to use scripting libraries.
David
@davidkeddydb
Sep 12 2016 00:21
I am having a bear of a time with the recent-missing-entries and no matter what, I can't get it to load. I have made sure glucose is zoned, think I did correctly but on step one of the sending glucose data. Am I better off just seeing if I can get my data to load up from nightscout vs being plugged into the PI, or lets talk worst case if I don't have the missing-entries file?
Eric
@ecc1
Sep 12 2016 00:29
On my (ubilinux) Edison, I bit the bullet and upgraded to stretch (testing), which uses systemd. I'm also using network-manager for wifi. It all works well.
Brandon Faloona
@bfaloona
Sep 12 2016 00:30
What is 'stretch (testing)'?
build of ubilinux?
Eric
@ecc1
Sep 12 2016 00:31
More recent version of Debian than the one that comes with ubilinux, which is Jessie.
(These are the Debian release names, all taken from Toy Story :-))
Brandon Faloona
@bfaloona
Sep 12 2016 00:32
Ha! I did not know that.
Gustavo
@bustavo
Sep 12 2016 00:34
@dougtakeuti, Jesus Berian helped me configure mmcommander to be used as a remote control emulator for Medtronic pumps. Newer pumps can be sent these remote control commands for boluses which is an option I was considering before... now with the 722 pump I left that hanging there for a while but I know I can use it if I ever need it for simpancreas. My rig uses the mmeowlink on the TI stick on the Edison :)
Paul Martin
@Spazholio
Sep 12 2016 00:58
Anyone seen this yet? http://www.pibakery.org/index.html
Ryan Dalisky
@rdalisky
Sep 12 2016 01:00
Hi all. I'm tyring to run monitor/iob.json, but it keeps failing.
openaps report invoke monitor/iob.json
iob://text/shell/monitor/iob.json
monitor/iob.json  raised  [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/root/src/openaps/bin/openaps-report", line 82, in <module>
    app( )
  File "/root/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/root/src/openaps/bin/openaps-report", line 75, in run
    output = app(args, self)
  File "/root/src/openaps/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/root/src/openaps/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/root/src/openaps/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/root/src/openaps/openaps/vendors/process.py", line 98, in main
    proc = subprocess.Popen(command, stdout=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
My monitor/iob.json is openaps report add monitor/iob.json text iob shell monitor/pumphistory-zoned.json settings/profile.json monitor/clock-zoned.json
David
@davidkeddydb
Sep 12 2016 01:11
I am going to zone the pump history. What do I use for coding for timezone for this: openaps use tz rezone --timezone "[YOUR TIMEZONE]" --adjust "missing" --date "timestamp dateString start_at end_at created_at" --astimezone monitor/pumphistory.json (I am on eastern standard time, I just don't know what code is used for that)
David
@davidkeddydb
Sep 12 2016 01:18
will try EST
Brandon Faloona
@bfaloona
Sep 12 2016 01:18
@ecc1 @scottleibrand @diabeticgonewild So, is it logical for me to apt-get install systemd on my Edison in hopes of getting weaved working? I'm trying to get a remote access solution installed tonight.
Eric
@ecc1
Sep 12 2016 01:30
I wouldn't do that unless you're very comfortable administering Debian systems. When systemd fails to boot your system, it can be painful to debug. Not something to do in the 11th hour before leaving etc.
Brandon Faloona
@bfaloona
Sep 12 2016 01:30
SOLD! I won't be going down that road. Thanks!
I've no idea how to debug the yaler ssh tunnel I set up. All three terminals have no output, then the ssh connection closes.
David
@davidkeddydb
Sep 12 2016 01:32
I am trying to zone my pump-history. When I try to run $openaps use tz rezone --timezone “EST" --adjust "missing"
--date "timestamp dateString start_at end_at created_at" --astimezone monitor/pumphistory.json The pi kicks me out and I have re-log on. what am I doing wrong?
Brandon Faloona
@bfaloona
Sep 12 2016 01:36
Ryan Dalisky
@rdalisky
Sep 12 2016 01:37
Looks like I'm having to reinstall some of the openaps tools to fix my issue
Dana Lewis
@danamlewis
Sep 12 2016 01:38
@cassknox (moving convo back here so others can chime in) - can you remind us why you’re trying to run the carelink on a Mac vs. putting it into a Pi? I don’t have the answer myself, but I think the easiest thing to do will just be plugging it in and running it on the Pi. I get mac for making a testing environment, but IMO it’s still easier to do that on a Pi, but maybe I’m missing something in your Q?
David
@davidkeddydb
Sep 12 2016 01:43
@danamlewis I am running into an issue with recent-missing-entries. keeps kicking an error: TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded
I believe I have zoned glucose values so I am not sure why I keep getting the error
Scott Leibrand
@scottleibrand
Sep 12 2016 01:49
I would start by checking the config of the command that is giving you the error, and see what inputs it's using.
cassknox
@cassknox
Sep 12 2016 01:54
@danamlewis omg you're right! Wow I feel stupid, I'm not sure why in my mind I needed to run it on the computer first? Thanks for your input, I'm back at it again!
Dana Lewis
@danamlewis
Sep 12 2016 01:55
Ben often recommends running it on the laptop as a playground, so maybe that’s not why?
err, maybe that is why
but in any case, try it with your Pi and hopefully you’ll breeze on through to the next stages! sorry for the headaches but glad we figured out the blocker!
David
@davidkeddydb
Sep 12 2016 01:58
@scottleibrand I know the glucose is now zoned. I dont have the pump history zoned so was going to try that next. Do I have the code right if I put: openaps use tz rezone --timezone EST --adjust "missing"
--date "timestamp dateString start_at end_at created_at" --astimezone monitor/pumphistory.json
Terri Lyman
@tatigger
Sep 12 2016 02:00
If I add and invoke a duplicate report, the system just adds a duplicate report, doesn't it. OMG! So what do I need to do to get rid of the duplicates? I assume, if it is the identical, if I type remove, the system will remove ALL of them?
Scott Leibrand
@scottleibrand
Sep 12 2016 02:01
@davidkeddydb that's way too complicated. try just openaps use tz rezone monitor/pumphistory.json
@tatigger it's not possible to have exact duplicates. it will overwrite the old one if you try.
Terri Lyman
@tatigger
Sep 12 2016 02:03
That makes me feel a LITTLE better, but it appears to me that some of these are duplicates. And some are just not needed. I will be getting rid of those as soon as I can figure out which ones, HAHAHA. pi@raspberrypi:~/faith $ openaps report show
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
units://JSON/bg_targets/settings/bg-targets.json
pump://JSON/read_insulin_sensitivities/raw-pump/insulin-sensitivities-raw.json
units://JSON/insulin_sensitivities/settings/insulin-sensitivities.json
pump://JSON/read_clock/raw-pump/clock-raw.json
pump://JSON/read_clock/monitor/clock.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
determine-basal://text/shell/oref0-predict/oref0.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
pump://JSON/model/model.json
pump://JSON/reservoir/monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
pump://JSON/read_settings/settings/settings.json
pump://JSON/read_settings/raw-pump/settings.json
oref0://JSON/shell/settings/selected-basal-profile.json
pump://JSON/read_selected_basal_profile/raw-pump/selected-basal-profile.json
pump://JSON/read_temp_basal/raw-pump/temp-basal-status.json
pump://JSON/reservoir/raw-pump/reservoir.json
pump://JSON/read_status/raw-pump/status.json
pump://JSON/read_battery_status/raw-pump/battery.json
bluepump://JSON/iter_pump_hours/last_four_pump_hours.json
tz://JSON/clock/monitor/clock-zoned.json
ns://JSON/shell/nightscout/openaps-status.json
ns://JSON/shell/nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
ns://JSON/shell/nightscout/preflight.json
get-profile://text/shell/oref0-monitor/profile.json
calculate-iob://text/shell/oref0-monitor/iob.json
pump://JSON/read_bg_targets/settings/bg_targets_raw.json
pump://JSON/read_insulin_sensitivities/settings/insulin_sensitivities_raw.json
pump://JSON/read_basal_profile_std/settings/basal_profile.json
get-profile://text/shell/settings/profile.json
calculate-iob://JSON/shell/monitor/iob.json
pump://JSON/model/settings/model.json
ns://JSON/shell/format-recent-history-treatments.json
ns://JSON/shell/upload-non-empty-treatments.json
ns://JSON/shell/upload-recent-device-status.json
ns://JSON/shell/uploaded-recent-device-status.json
tz://JSON/rezone/glucose.json
cgm://JSON/iter_glucose/monitor/glucose.json
determine-basal://text/shell/enact/suggested.json
pump://JSON/read_bg_targets/settings/bg_targets
pump://JSON/read_insulin_sensitivities/settings/insulin_sensitivities
David
@davidkeddydb
Sep 12 2016 02:03
@scottleibrand I can't. I get an error : openaps use tz rezone monitor/pumphistory.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 "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 744, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1499, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 45, in call
output = self.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/init.py", line 88, in main
inputs = self.get_program(args)
File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/init.py", line 60, in get_program
program = json.load(argparse.FileType('r')(params.get('input')))
File "/usr/lib/python2.7/argparse.py", line 1142, in call
raise ArgumentTypeError(message % (string, e))
argparse.ArgumentTypeError: can't open 'monitor/pumphistory.json': [Errno 2] No such file or directory: 'monitor/pumphistory.json'
Scott Leibrand
@scottleibrand
Sep 12 2016 02:04
No such file or directory: 'monitor/pumphistory.json'
David
@davidkeddydb
Sep 12 2016 02:04
Hang on. I have a dash. let me try that again
Scott Leibrand
@scottleibrand
Sep 12 2016 02:04
you usually only need the last line or two of the traceback
David
@davidkeddydb
Sep 12 2016 02:05
Thanks. will do from now on
cassknox
@cassknox
Sep 12 2016 02:06
Yeah that may be why I had that idea stuck in my head. Phew, so glad I'm getting past this, I've been stuck here for over a week not sure how to get past it and the pump communication going. So excited to get back to it! Thanks again!!
Dana Lewis
@danamlewis
Sep 12 2016 02:07
you bet @cassknox!
David
@davidkeddydb
Sep 12 2016 02:10
@scottleibrand Still getting same error though I have zoned glucose and pump. This is on recent-missing-entries.json TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded
what can I run to compare the offset-naive and offset-aware datetimes?
David
@davidkeddydb
Sep 12 2016 02:15
I can check the times on the pump, cgm and pi and nightscout and I should see something that doesn't match
Terri Lyman
@tatigger
Sep 12 2016 02:17
Ah, you're right. I alphabetized them in Xcel and they are similar but not identical. Shoot.
David
@davidkeddydb
Sep 12 2016 02:19
all times from cgm: "display": {
"clock": "2016-09-11T22:17:07",
"offset": -21210.0
},
"rtc": {
"epoch": "2009-11-27T05:51:23"
},
"system": {
"utc": "2016-09-12T04:10:37",
"offset": 214352354.0
time from pump openaps use pump read_clock
"2016-09-11T22:10:42"
Scott Leibrand
@scottleibrand
Sep 12 2016 02:43
What input files is recent-missing-entries.json report using?
And what do the datetimes look like in those files?
David
@davidkeddydb
Sep 12 2016 02:46
it is in the ns shell in monitor/glucose.json how do I find what files it is relying on, using?
David
@davidkeddydb
Sep 12 2016 02:52
it should just be the glucose.json file. the set up is openaps report add nightscout/recent-missing-entries.json JSON ns shell format-recent-type tz entries monitor/glucose.json. That is based on iter_glucose/monitor/glucose.json
is it normal for the system time in the cgm and display time to be different?
David
@davidkeddydb
Sep 12 2016 03:00
these are the times in the cgm iter_glucose file: "trend_arrow": "SINGLE_UP",
"system_time": "2016-09-11T20:33:41",
"display_time": "2016-09-11T14:40:11",
"glucose": 180
},
{
"trend_arrow": "SINGLE_UP",
"system_time": "2016-09-11T20:28:41",
"display_time": "2016-09-11T14:35:11",
"glucose": 161
well just the last 2 or so
"type": "report",
"nightscout/recent-missing-entries.json": {
"oper": "format-recent-type",
"use": "shell",
"reporter": "JSON",
"device": "ns",
"remainder": "tz entries monitor/glucose.json",
"json_default": "True"
Eric Jensen
@elnjensen
Sep 12 2016 03:05
@davidkeddydb (cc @scottleibrand ) Try re-creating your alias for zoning the pump history by using this:
openaps use tz rezone --date timestamp --date dateString --date start_at --date end_at --date created_at --astimezone monitor/pumphistory.json
I found that when I used the simpler version that @scottleibrand suggested, it gave a report that would appear to run correctly, but in fact wouldn't do anything to the data, i.e. they weren't really zoned. Have been meaning to file an issue on github on this, but haven't got around to it yet. I promise to do it tomorrow!
The way to check if your data are really getting zoned is to look at the timestamps in the pre- and post-zoning reports.
David
@davidkeddydb
Sep 12 2016 03:07
that is the say the clock.json and the clock-zoned.json right?
Eric Jensen
@elnjensen
Sep 12 2016 03:08
In my pumphistory, for example, the unzoned timestamps look like this: "timestamp": "2016-09-11T22:55:39",
And the zoned timestamps look like this: "timestamp": "2016-09-11T22:55:39-04:00",
Note that the latter has the trailing -04:00. That is because I am in EDT, which is 4 hours behind GMT.
David
@davidkeddydb
Sep 12 2016 03:09
I am still getting the same time issue with the recent-missing-entries. Still throwing TypeError: can't compare offset-naive and offset-aware datetimes
No JSON object could be decoded
Eric Jensen
@elnjensen
Sep 12 2016 03:10
If you compare the pump-history.json and pumphistory-zoned.json (or whatever your equivalent names are) do you see differences in timestamps like the above?
David
@davidkeddydb
Sep 12 2016 03:10
checking
well my pump-historyzoned is not there so that may be part of the problem
Eric Jensen
@elnjensen
Sep 12 2016 03:12
If they do, that's good. And then you might want to try the equivalent change to your zoning report for the CGM data, and then re-run the reports, and then check again to see if the timestamps look like they have the timezone info.
OK, may need to re-run that pumphistory-zoned report again.
(Keep in mind that if you're actively looping on the machine where you're testing this, the reports can get changed out from under you while you're looking!)
David
@davidkeddydb
Sep 12 2016 03:18
ok, here is clock and zoned:pi@raspberrypi:~/dkeopenaps $ cat monitor/clock.json
"2016-09-11T22:24:19-04:00"pi@raspberrypi:~/dkeopenaps $ cat monitor/clock-zoned.json
"2016-09-09T20:39:08-04:00"pi@raspberrypi:~/dkeopenaps $
Eric Jensen
@elnjensen
Sep 12 2016 03:19
OK, looks like your clock data already had zone info in the first place (the -04:00 part) so the zoning doesn't change it. Which is fine.
How about the pump history reports?
David
@davidkeddydb
Sep 12 2016 03:20
"trend_arrow": "45_UP", 
"system_time": "2016-09-12T04:38:40", 
"display_time": "2016-09-11T22:45:09", 
"glucose": 160   GLucose
glucose zoned:
"trend_arrow": "FLAT", 
"system_time": "2016-09-12T02:43:40", 
"direction": "Flat", 
"sgv": 130, 
"display_time": "2016-09-11T20:50:09", 
"date": 1473641409000.0, 
"dateString": "2016-09-11T20:50:09", 
"unfiltered": 127728, 
"filtered": 127088, 
"device": "openaps://cgm", 
"rssi": 184, 
"type": "sgv", 
"glucose": 130
pump-history.json but I dont have a pump-history zoned:
"_type": "TempBasal",
"temp": "absolute",
"_description": "TempBasal 2016-09-11T20:16:46 head[2], body1 op[0x33]",
"timestamp": "2016-09-11T20:16:46-04:00",
"_body": "00",
"_head": "3322",
"rate": 0.85,
"_date": "ae50144b10"
Eric Jensen
@elnjensen
Sep 12 2016 03:21
Hmmm, not sure about the date field, but the dateString field doesn't look zoned.
OK, so again that timestamp looks zoned, so you may just be able to leave it alone.
(in the pump-history.json)
For the CGM report, how are you creating the zoned file?
That is, what report?
David
@davidkeddydb
Sep 12 2016 03:23
cgm is the glucose-zoned above
Eric Jensen
@elnjensen
Sep 12 2016 03:23
OK, what does openaps report show glucose-zoned.json --cli show?
(You might have a subdirectory in front of glucose-zoned.json there. )
David
@davidkeddydb
Sep 12 2016 03:27
I have monitor in front and it says: openaps use cgm oref0_glucose --hours "1.0" --threshold "100"
diabeticgonewild
@diabeticgonewild
Sep 12 2016 03:28
On vacation...ate out and had an absolutely delicious dinner, but my lower gut cramping pretty much killed me as soon as I finished dinner. It was excruciatingly painful. I vomited from the pain. So yeah, FML. I also can't easily keep my medicine on me at all times (it's in a bottle but it's not HUGE) as I am going to theme parks and it cannot be out of my direct possession, as it's VERY (if not impossible on a trip) hard to replace and is controlled. This is going to be a long week.
Eric Jensen
@elnjensen
Sep 12 2016 03:28
@davidkeddydb Is that for the zoned version? Or do you only have one version of the glucose file, and no separate zoning command?
diabeticgonewild
@diabeticgonewild
Sep 12 2016 03:30
But somebody should update the mmeowlink instructions to upgrade from Jessie/wheezy to stretch
David
@davidkeddydb
Sep 12 2016 03:31
that is for the zoned, for the straight glucose.json is gives me openaps use cgm iter_glucose 5
Eric Jensen
@elnjensen
Sep 12 2016 03:34
OK, here's something to try to create a new zoned glucose file, using your original one as input. Give me a sec to check the command.
What do you get if you try this: openaps use tz rezone --date system_time --date display_time --astimezone --adjust missing monitor/glucose.json
Actually I think it can be even shorter: openaps use tz rezone --date system_time --date display_time monitor/glucose.json
David
@davidkeddydb
Sep 12 2016 03:36
I get the last 5 off the cgm: {
"trend_arrow": "45_UP",
"system_time": "2016-09-12T04:58:39-04:00",
"display_time": "2016-09-11T23:05:09-04:00",
"glucose": 184
},
{
"trend_arrow": "45_UP",
"system_time": "2016-09-12T04:53:40-04:00",
"display_time": "2016-09-11T23:00:09-04:00",
"glucose": 178
},
{
"trend_arrow": "45_UP",
"system_time": "2016-09-12T04:48:40-04:00",
"display_time": "2016-09-11T22:55:09-04:00",
"glucose": 172
},
{
"trend_arrow": "45_UP",
"system_time": "2016-09-12T04:43:39-04:00",
"display_time": "2016-09-11T22:50:09-04:00",
"glucose": 166
},
{
"trend_arrow": "45_UP",
"system_time": "2016-09-12T04:38:40-04:00",
"display_time": "2016-09-11T22:45:09-04:00",
"glucose"
Eric Jensen
@elnjensen
Sep 12 2016 03:39
cool! OK, I think (fingers crossed) that maybe those values could be acceptable to Nightscout, since they have timezone info now.
David
@davidkeddydb
Sep 12 2016 03:40
ok, so give openaps do-everything a go or just try the recent-missing-entries and see if it works
Eric Jensen
@elnjensen
Sep 12 2016 03:40
Let's try: create a new report (let's leave the old one in place for now):
openaps report add monitor/glucose-zoned-new.json JSON tz rezone --date system_time --date display_time monitor/glucose.json
David
@davidkeddydb
Sep 12 2016 03:41
ok. you want me to cat it?
Eric Jensen
@elnjensen
Sep 12 2016 03:41
I'd try adding the report above, and then putting the monitor/glucose-zoned-new.json into your nightscout uploading command instead of your old monitor/glucose-zoned.json
David
@davidkeddydb
Sep 12 2016 03:42
Maybe I could figure if it wasnt 1142pm, like it is for you as well. How do I do that?
Eric Jensen
@elnjensen
Sep 12 2016 03:42
Yeah, I need to go to bed soon. We've made progress, though, I think.
Let's try one more thing, and if it does'nt work we'll come back to it.
Let's see. Do you have a glucose-zoned-new.json now?
David
@davidkeddydb
Sep 12 2016 03:43
I do
Eric Jensen
@elnjensen
Sep 12 2016 03:44
OK - and it's your recent-missing-entries.json report that has been choking?
David
@davidkeddydb
Sep 12 2016 03:44
yes
Eric Jensen
@elnjensen
Sep 12 2016 03:45
OK, try:
openaps report add nightscout/recent-missing-entries.json JSON ns shell format-recent-type tz entries monitor/glucose-zoned-new.json
(Note that that will modify the report defintion you already had.)
And then invoke that: openaps report invoke nightscout/recent-missing-entries.json
David
@davidkeddydb
Sep 12 2016 03:47
parse.ArgumentTypeError: can't open 'monitor/glucose-zoned-new.json': [Errno 2] No such file or directory: 'monitor/glucose-zoned-new.json'
No JSON object could be decode
let me see what the deal is
Eric Jensen
@elnjensen
Sep 12 2016 03:48
openaps report invoke on that report first?
David
@davidkeddydb
Sep 12 2016 03:48
$ openaps report add monitor/glucose-zoned-new.jsonJSON tz rezone --date system_time --date display_time monitor/glucose.json
added tz://JSON/rezone/monitor/glucose-zoned-new.json
Eric Jensen
@elnjensen
Sep 12 2016 03:48
OK, then invoke it
(that command just defines the report, doesn't run it.)
diabeticgonewild
@diabeticgonewild
Sep 12 2016 03:50
Yay I feel the opium finally kicking in. That means my gut will calm down pretty soon.
Eric Jensen
@elnjensen
Sep 12 2016 03:50
Glad to hear it!
OK, @davidkeddydb I need to head to bed. I'm going to be working on my own glucose upload/download from Nightscout, so maybe I'll have more insight tomorrow. I'll check in tomorrow evening.
David
@davidkeddydb
Sep 12 2016 03:54
thanks for the help. Still getting an error but will keep working on it. I think you are right and the rezone wasnt right.
will keep you advised
David
@davidkeddydb
Sep 12 2016 04:03
@elnjensen You drink yuengling? I have a case coming your way. YAHTZEE!! Recent-missing-entries works!!! Thank you.
John Sjolund
@sjolundjohn
Sep 12 2016 14:13

How can I best trackdown where $Nightscout_Host is coming from.

One my PI curl works perfectly, on Edison not

curl -s $NIGHTSCOUT_HOST/api/v1/entries/sgv.json

Trying to figure out where it is going wrong

I have ensured /.profile and cron are the same
Colin Lennon
@colinlennon
Sep 12 2016 14:30
@sjolundjohn Have you got it defined at the top of your crontab?
I've just checked mine on my Edison - crontab -l
John Sjolund
@sjolundjohn
Sep 12 2016 14:31
@colinlennon I do
I had to remove my device and *ini file to get it working
I finally did, but no idea what caused it
Colin Lennon
@colinlennon
Sep 12 2016 14:31
Hmmm, strange! So it's working now?
John Sjolund
@sjolundjohn
Sep 12 2016 14:31
yes indeed
Colin Lennon
@colinlennon
Sep 12 2016 14:32
:+1:
cassknox
@cassknox
Sep 12 2016 21:00
Okay @danamlewis do people ever have issues with the width of the carelinkusb fitting into the raspberry pi? I have jammed it in there but I don't want to ruin the pi because it doesn't really fit...?
PieterGit
@PieterGit
Sep 12 2016 21:07
any idea why $ openaps use ns shell format-recent-type tz entries monitor/glucose.json returns []
$ openaps --version
openaps 0.1.6-dev
monitor/glucose.json looks fine
Dana Lewis
@danamlewis
Sep 12 2016 21:08
@cassknox picture?
PieterGit
@PieterGit
Sep 12 2016 21:23
i tried openaps use ns shell upload entries monitor/glucose.json but it gives
Extra data: line 1 column 5 - line 25 column 63 (char 4 - 1592)
2016-09-12T23:07:19+02:00 ... Flat openaps://cgm
etc.
Traceback (most recent call last):
File "/usr/local/bin/openaps-use", line 6, in <module>
exec(compile(open(file).read(), file, 'exec'))
File "/home/pi/src/openaps/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 "/home/pi/src/openaps/bin/openaps-use", line 58, in run
reporter(output)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps/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 369, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 5 - line 25 column 63 (char 4 - 1592)
any idea how to upload a glucose.json to nightscout without these errors?
garykidd
@garykidd
Sep 12 2016 23:09
anybody know if the little microswitch push button on TI stick does anything?
Eric Jensen
@elnjensen
Sep 12 2016 23:42
@garykidd It must do something! :smirk: But I don't know what, and have wondered that as well.
@davidkeddydb Glad you got it working! Thanks for the Yuengling offer, but you don't owe me anything - you can pay it back by helping other people here when they need it. :smiley_cat:
Dana Lewis
@danamlewis
Sep 12 2016 23:45
:confetti_ball: awww @elnjensen :clap: :raised_hands:
Eric
@ecc1
Sep 12 2016 23:45
It's just a button that can be read or be used as an interrupt; it's up to the firmware. I don't remember seeing any use of it in subg_rfspy