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

4th
Sep 2016
garykidd
@garykidd
Sep 04 2016 00:00
@diabeticgonewild Nice. I actually found that entry ...and will try...make sure I git push first of course---I f'd up so many times recently...I totally f'in die if I tankanother set up.
and I hope you're feeling nice and relaxed.
diabeticgonewild
@diabeticgonewild
Sep 04 2016 00:00
It takes several tries to get it right
I did like 10 or so tries.
Don't get too overwhelmed
And thanks! :D
garykidd
@garykidd
Sep 04 2016 00:01
@eluhrs I was envisioning it a little bit differently...so I'm glad you posted that...that makes way more sense to me.
garykidd
@garykidd
Sep 04 2016 00:09
getting so much closer. I've got some errors running do everything but was pleasantly surprised when I saw my test set-up enact a temp 0 basal. awesome.
blob
diabeticgonewild
@diabeticgonewild
Sep 04 2016 00:10
Yeah, patience is important. Congrats!
Eric Jensen
@elnjensen
Sep 04 2016 00:11
@ecc1 Nice to see the new rig - looks great! Is the USB connected to a device? Or just for serial console?
Martin Haeberli
@mhaeberli
Sep 04 2016 00:13
@cassknox sadly, as far as I know, El Capitan does NOT support carelink or vice versa - some kind of magic smoke escaped from MacOS when it was updated. Personally, I suspect the USB drivers are somehow not backward compatible. Rumor is the TI Stick works, but I don't know from personal experience; I'm running TI Stick against an RPi 3.
C-Ville
@C-Ville
Sep 04 2016 00:14
does it matter for loopmonitoring whether I use nightscout 0.9 dev or 0.9dev beta3 ?
garykidd
@garykidd
Sep 04 2016 00:16
ns://JSON/shell/nightscout/recent-missing-entries.json
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 "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 31, in __call__
    return self.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-contrib/openapscontrib/timezones/__init__.py", line 298, in main
    if spec.includes(get(elem)):
  File "/home/pi/src/openaps-contrib/openapscontrib/timezones/__init__.py", line 264, in get
    return parse(item.get(args.date))
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 1164, in parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 552, in parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 671, in _parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 188, in split
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 184, in next
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 177, in __next__
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 93, in get_token
AttributeError: 'NoneType' object has no attribute 'read'
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  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 48, in main
    reporters.Reporter(report, device, task)(output)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 31, in serialize
    return self.method.serialize(render(data), self)
  File "/home/pi/src/openaps/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
the above errors were encountered at tail end of openaps do-everything
ideas?
Eric
@ecc1
Sep 04 2016 00:24
@elnjensen Just charging the battery
C-Ville
@C-Ville
Sep 04 2016 00:25
does anyone has an idea how to autostart mongodb and nightscout on an ubilinux edison. I finally got it working, but always need to manually start
Eric
@ecc1
Sep 04 2016 00:26
Mongo should start on boot if you installed it via the Debian mongdb-server package.
I use a "run-nightscout.sh" script in /etc/rc.local on my server (not an Edison, but a Debian VM in Google Cloud)
Eric Jensen
@elnjensen
Sep 04 2016 00:27
Has anyone here tried to attach a small LCD or OLED display to an Edison-based rig? One of the challenges I've had is with using openaps so far is the lack of glanceable visual confirmation that everything is working right. It's easy to see when there's a temp basal set, but when there's not, it's not always obvious whether it's because the loop decided one wasn't needed, or whether something isn't running right. Of course I can SSH in, or look at Nightscout, but often would be nice to be able to just look at the device itself to tell. Any suggestions or experiences welcome here. @bfaloona It looks like you posted a while back about possibly using an OLED with a Pi Zero? Have you built that yet?
Eric
@ecc1
Sep 04 2016 00:27
I have a handful of e-ink displays from Crystalfontz that are on my to-do list to play with
Eric Jensen
@elnjensen
Sep 04 2016 00:27
Thinking about possibly one of these though I need to read more about feasiblity. Power consumption looks good (20 mA).
Matt Pazoles
@Pazoles
Sep 04 2016 00:28
Strange development with our Pi - our rig has started mysteriously dying at various points in the day, but when we check the battery it's hooked up to, it the display shows several bars and the Pi starts back up again
Eric Jensen
@elnjensen
Sep 04 2016 00:28
@ecc1 Do they interface by i2c?
Matt Pazoles
@Pazoles
Sep 04 2016 00:28
This has happened now with two different Anker batteries, neither of which have had this problem before mid-august
Eric
@ecc1
Sep 04 2016 00:28
SPI
Matt Pazoles
@Pazoles
Sep 04 2016 00:31
Have tried different cables as well, but doesn't seem to make a difference. Has anyone else seen this? Wondering if either it's drawing too much or too little power at some point, and the battery is shutting off
Eric
@ecc1
Sep 04 2016 00:31
@Pazoles Did you change anything that would make the Pi consume less power? Asking because many external USB batteries will shut off if the current draw is too low.
C-Ville
@C-Ville
Sep 04 2016 00:32
@ecc1 I thought the Debian mongdb-server package only works for 64 bit
Matt Pazoles
@Pazoles
Sep 04 2016 00:34
@ecc1 - Haven't changed anything about our setup, and it's actually charging a dexcom receiver at the same time, so it shouldn't be an issue of not enough power
Unless there's some power saving feature in the oref0 dev branch
Pi has a TI stick and dexcom plugged into it
Eric
@ecc1
Sep 04 2016 00:37
If you have or can get one of those inline USB power meters (like https://www.adafruit.com/products/2690) you might be able to debug it further.
C-Ville
@C-Ville
Sep 04 2016 00:38
thanks
Matt Pazoles
@Pazoles
Sep 04 2016 00:39
Nice, thanks!
Brandon Faloona
@bfaloona
Sep 04 2016 00:56
@elnjensen I've not wired up the OLED screen yet, and don't plan to invest anymore in the Pi. Working on the edison full time starting monday!
Eric Jensen
@elnjensen
Sep 04 2016 00:59
Do you think you'll try the OLED with the Edison?
Tim Street
@tim2000s
Sep 04 2016 01:50
@garykidd I think it's the same issue you had before. No file so the process doesn't work.
garykidd
@garykidd
Sep 04 2016 01:56
@tim2000s what's the missingfile?
garykidd
@garykidd
Sep 04 2016 03:28
This message was deleted
This message was deleted
This message was deleted
David
@davidkeddydb
Sep 04 2016 03:34
trying to autoconfigure crud for nightscout and getting an error each time : ile "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: u'device "ns"'
I thought that autonfig was supposed to add ns device, no? Any help on how I can now add ns as a device?
garykidd
@garykidd
Sep 04 2016 03:35
@davidkeddydb can you paste in the exact autoconfigure command you used?
David
@davidkeddydb
Sep 04 2016 03:37
nightscout autoconfigure-device-crud <https://yourname.com yourplainapisecret> with my heroku site and api secret entered, kicks it every time for no ns
I may just start over from the beginning and redo it all. I had some screw ups with putting stuff in the main raspberry directory rather than the openaps one, then i screwed up the right night scout version. I may be better off just going back to the beginning with setting up the pump, cgm, etc.
garykidd
@garykidd
Sep 04 2016 03:41
OK, so you're in your correct openaps instance directory now...right
?
David
@davidkeddydb
Sep 04 2016 03:42
yes, I have that all worked out. I think my kiss of death was I deleted the ns.ini directory from my openaps as I updated nightscout. I think that killed me
i thought the autoconfig would get me back but it hasn't. I think I have to restart from square 1 unless I can get the ns directory/shell back
garykidd
@garykidd
Sep 04 2016 03:46
and your using the exact heroku website and can pull that up independently and it works?
Jarred Yaw
@jyaw
Sep 04 2016 04:15
@Pazoles had the exact same thing happen to me this week... Culminated in a "call tech support: hwbbt" (or btt, can't remember) error on the Dex g4.
My website battery would show that it was on and have ample headroom but the pi would reboot randomly and I wouldn't notice until I got a little uncharacteristic BG swing going. Irritating and hard to diagnose since it's not really a problem with the Pi... Bad Dex battery or something is my suspicion...
I also saw inexplicable signal losses on the receiver around the same time of evening 2 days in a row when the mysterious reboots started.
Website=zendure
Jarred Yaw
@jyaw
Sep 04 2016 04:30
To fix, I recommend a reset. There's a little paper clip sized hole on the back the tech support guy told me to press with a paper clip while plugged into wall power. The receiver will vibrate and you'll see a progress bar. No need for sensor restart or whatever. I did call tech support though and they sent me a replacement just in case.
FWIW, my reboots quit after I did that, and the receiver seems to be working
garykidd
@garykidd
Sep 04 2016 04:41
@diabeticgonewild Would love any assistance you maybe able to offer at your convenience. Made a lot of progress but stuck again for the moment. thanks again. G
David
@davidkeddydb
Sep 04 2016 04:53
@garykidd using a different heroku website but I can log into and it is feeding nightscout without issue. I am going to start over tomorrow. I am like 2 steps from going to open loop set up. All the reports were running from the cgm and pump. I realized that the ns website was not the dev version and then all went south. Will reformat the sd card and restart tomorrow.
pretty sure the problem is that I dont have the ns.ini in my openaps directory and cant get it added
backup-loop.json cgm.ini dkeopenaps grep nightscout openaps.ini pump.ini setuptools-26.0.0.zip
bewest-aliases.json cgm-remote-monitor get-profile.ini model.json ns-reports.json oref0.ini pump-session.json tutorial-hello
calculate-iob.ini determine-basal.ini glucose.json monitor ns-status.ini pump-history.json raw-pump tz.ini
garykidd
@garykidd
Sep 04 2016 04:57
did you remove the ns device and then retry?
does this look wrong to others? openaps use ns shell upload treatments.json recently/combined-treatments.json
David
@davidkeddydb
Sep 04 2016 05:00
I think the problem is I dont have an ns device added because the autoconfigure device wont work. likely that it still exists in one of the other files/directories as an object. Will restart tomorrow.
diabeticgonewild
@diabeticgonewild
Sep 04 2016 06:36
@garykidd It's kind of late for me. Sorry. I can work on this with you tomorrow.
Dana Lewis
@danamlewis
Sep 04 2016 07:18
@tatigger re earlier, if you are getting output that says error too few arguments; USAGE; etc, re-run the same command with -h to get the help menu to assist you in figuring out those commands
-h will show options for various commands to help you structure something and learn about the various layers of commands
andyhandy
@andyhandy
Sep 04 2016 10:31
hi all - i can't for the life of me get the openaps pillbox to appear on my nightscout site. i've checked i have the latest dev version (beta 0.9.0-beta3) and both openaps and pump plugins show up and are checked. any ideas for troubleshooting would be greatly appreciated!!
by the way i set up nightscout quite a while ago but haven't used it for a number of months since i got the G5. i did all the updates though.
Tim Street
@tim2000s
Sep 04 2016 11:17
@andyhandy You need the Dev branch of nightscout, not the beta3.
andyhandy
@andyhandy
Sep 04 2016 11:22
@tim2000s thanks - someone else said that was the latest dev version. it's so frustrating because i've followed the instructions step-by-step - any thoughts on what i might be doing wrong or how i can check that?
@tim2000s so when you go into the "about" section of "settings" on your nightscout site, what version does it have? thanks
Tim Street
@tim2000s
Sep 04 2016 11:30
Which branch in your github project are you pulling from? That's the best way of confirming.
Scott Leibrand
@scottleibrand
Sep 04 2016 11:32
I'm using version 0.9.0-beta3, head daff65b, so that version should be fine
the openaps pill depends on an ENABLE var I believe: have you set one for "openaps"?
I have env ENABLE="openaps pump basal pushover maker careportal iob bwp rawbg"
andyhandy
@andyhandy
Sep 04 2016 11:33
i have version 0.9.0-beta3
head f267eb05e1506600a4052be36be925bf2e933c7b
Scott Leibrand
@scottleibrand
Sep 04 2016 11:34
k, that's probably fine. I would check the ENABLE vars and check that the devicestatus API endpoint is getting populated
andyhandy
@andyhandy
Sep 04 2016 11:40
thanks @scottleibrand - in the azure portal under application settings/app settings i have "ENABLE" in the lefthand column and "careportal rawbg iob basal cob bop cage basal openaps pump" in the right column - is that what you mean?
Scott Leibrand
@scottleibrand
Sep 04 2016 11:41
yeah, that's the list
andyhandy
@andyhandy
Sep 04 2016 11:41
under essentials, the github project is "https://github.com/andyhandy/cgm-remote-monitor"
Scott Leibrand
@scottleibrand
Sep 04 2016 11:42
what does your settings tray show for available plugins? I get:
Show Plugins
Insulin-on-Board
Care Portal
Pump
OpenAPS
Bolus Wizard Preview
Basal Profile
and what do you see when you load up https://<yournightscoutsite>.azurewebsites.net/api/v1/devicestatus.json ?
andyhandy
@andyhandy
Sep 04 2016 11:45
Show Plugins
Insulin-on-Board
Carbs-on-Board
Care Portal
Pump
OpenAPS
Cannula Age
Basal Profile
@scottleibrand - when you say load up do you mean go to that web address?
andyhandy
@andyhandy
Sep 04 2016 11:51
when i do that i get a large amount of data on the page
Scott Leibrand
@scottleibrand
Sep 04 2016 12:14
maybe copy the first bit of it? we're looking for a section that looks something like:
openaps: {
iob: {
iob: 4.727,
activity: 0.0292,
bolussnooze: 2.904,
basaliob: 1.749,
netbasalinsulin: 4.3,
hightempinsulin: 4.3,
timestamp: "2016-09-04T12:10:22.000Z"
},
suggested: {
temp: "absolute",
bg: 159,
tick: -2,
eventualBG: -11,
snoozeBG: 163,
predBGs: {},
COB: 0,
IOB: 4.727,
reason: "COB: 0, Dev: 19, BGI: -5.84, ISF: 40, Target: 100; Eventual BG -11 < 100, bolus snooze: eventual BG range -11-163, temp 0.9 ~ req 0.9U/hr",
timestamp: "2016-09-04T12:10:44.000Z"
},
in your browser it will probably all be strung together in one big long line, but the json should have those keys
andyhandy
@andyhandy
Sep 04 2016 12:22
"device":"openaps://raspberrypi","pump":{"battery":{"status":"normal","voltage":1.3},"status":{"status":"normal","timestamp":"2016-09-04T02:36:50.000Z","bolusing":false,"suspended":false},"reservoir":78.925,"clock":"2016-09-03T22:42:53+10:00"},"openaps":{"suggested":{"bg":391,"temp":"absolute","snoozeBG":389,"timestamp":"2016-09-04T02:37:21.000Z","rate":0.7,"reason":"Eventual BG 389>=108, adj. req. rate:1.0 to maxSafeBasal:0.7, no temp, setting 0.7U/hr","eventualBG":389,"duration":30,"mealAssist":"Off: Carbs: undefined Boluses: undefined ISF: 297, Target: 99 Deviation: -2 BGI: 0","tick":-7},"iob":{"netbasalinsulin":0,"timestamp":"2016-09-04T02:37:19.000Z","activity":0,"basaliob":0,"hightempinsulin":0,"bolussnooze":0,"iob":0},"enacted":{"bg":391,"temp":"absolute","snoozeBG":389,"recieved":true,"reason":"Eventual BG 389>=108, adj. req. rate:1.0 to maxSafeBasal:0.7, no temp, setting 0.7U/hr","rate":0.675,"eventualBG":389,"timestamp":"2016-09-04T02:37:27.000Z","duration":30,"mealAssist":"Off: Carbs: undefined Boluses: undefined ISF: 297, Target: 99 Deviation: -2 BGI: 0","tick":-7}},"created_at":"2016-09-04T02:37:51.133Z"}
Scott Leibrand
@scottleibrand
Sep 04 2016 12:46
are the timestamps on those openaps records correct?
02:37 UTC is about 12 hours ago
andyhandy
@andyhandy
Sep 04 2016 13:00
no something's off there
garykidd
@garykidd
Sep 04 2016 13:39
@diabeticgonewild thx, was thinking of today (at earliest) possibly. G
MitchDex
@MitchDex
Sep 04 2016 13:48
I used cron-5-minute-helper to create loop
/5 * (cd /home/pi/mitch && time openaps do-everything ) 2>&1 | logger -t openaps-loop
is that running now - can it be turned on/off and is it logging anywhere?
garykidd
@garykidd
Sep 04 2016 14:10
when running do-everything .... I get the following error....

pump://JSON/set_temp_basal/oref0-enacted/enacted-temp-basal.json
oref0-enacted/enacted-temp-basal.json  raised  No JSON object could be decoded
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  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/medtronic.py", line 430, in main
    program = self.get_program(args)
  File "/home/pi/src/openaps/openaps/vendors/medtronic.py", line 427, in get_program
    program = json.load(argparse.FileType('r')(params.get('input')))
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  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")
MitchDex
@MitchDex
Sep 04 2016 14:12
Ok - i jumped the gun a bit with my CRON. :worried:
Figured out it was running - could see activity here ----> grep CRON /var/log/syslog
not quite ready to close the loop so I saved and then removed CRONTAB

crontab -l > crontab.save
more crontab.save

After you're sure you saved a copy, delete your crontab:
crontab -r

Later, you can:
crontab < crontab.save
crontab -l
to restore things.

will restore when ready to close the loop (for real!) (sighs...mini crisis averted :clap: )
garykidd
@garykidd
Sep 04 2016 14:30
saw this as first error in openaps do -everything
determine-basal://text/shell/oref0-predict/oref0.json
Could not parse input data:  [TypeError: Cannot read property 'date' of undefined]
reporting oref0-predict/oref0.json
diabeticgonewild
@diabeticgonewild
Sep 04 2016 18:11
What's in your oref0.json file?
Open the file up in nano.
garykidd
@garykidd
Sep 04 2016 18:46
Will look in a bit. Away from rig/ 'puter. Thx.
Toby Canning
@TC2013
Sep 04 2016 18:51
Has anyone figured out to get OpenAPS to listen to the Dexcom G5 over BT/BLE (without using the receiver)? So, just accessing the transmitter or listening to it (not sure how it works)?
Eric Jensen
@elnjensen
Sep 04 2016 19:05
@TC2013 This is something I'm interested in, too. Making this work on Linux seems challenging but possible. Nate Rackelyft ( @loudnate , author of the Loop app for iOS) has written a library that does this on iOS. So in principle it should be possible to port that to Linux. It seems to me like there are two largely separate parts of that work, the BLE/communications part, and the decoding/logging part. The BLE part presumably involves looking at what Nate has done and figuring out the corresponding library calls for Bluetooth on Linux that correspond to those on iOS - I don't know how different those look from each other. The second part - translating the packets into BG values - seems like it might be more of a straight translation of the code (from Swift into, e.g., Python). Then there's a logging part - BGs come in one at a time from the transmitter, so you'd need to record them, and then feed how ever many of them were requested into an OpenAPS instance. I could imagine trying to mimic the NS storage and reporting, perhaps.
Eric Jensen
@elnjensen
Sep 04 2016 19:17
The transmitter doesn't store any history, so you have to grab the BG values one at a time when they're ready. But multiple devices can do that (e.g. you can have your iPhone and receiver both listening to your transmitter) so in principle one of those devices could be a linux device running openaps. (I haven't experimented to see how many devices can grab the same value from one transmitter, but for sure it's at least two.) If you download an app that shows Bluetooth devices in the area (e.g. LightBlue Explorer on iOS) you'll see that a BLE service called "DexcomAB" (where "AB" are the last two characters of your transmitter serial number) pops up every 5 minutes - that's the transmitter advertising that it has a number available. So that's what a linux process would have to connect to and talk to.
@TC2013 Do you have any BLE development experience? (I don't.)
Toby Canning
@TC2013
Sep 04 2016 19:58
@elnjensen Thanks! Your response was very helpful. I am not a programmer of any kind. We have been using Loop, so I was just curious more than anything.
garykidd
@garykidd
Sep 04 2016 20:59
@diabeticgonewildpi@raspberrypi:~/APS301/oref0-predict $ cat oref0.json
{"temp":"absolute","bg":110,"tick":-3,"eventualBG":82,"snoozeBG":82,"predBGs":{"IOB":[110,106,102,98,95,92,90,88,87,85,85,84,84]},"IOB":0,"reason":"COB: undefined, Dev: -28, BGI: 0, ISF: 30, Target: 110; Eventual BG 82 < 100, setting -2.55U/hr","duration":30,"rate":0}
diabeticgonewild
@diabeticgonewild
Sep 04 2016 21:28
@garykidd It looks like you don't have the "date" field set to be assigned in oref0.json. You are probably missing more things than just that field.
@garykidd nevermind
diabeticgonewild
@diabeticgonewild
Sep 04 2016 21:35
@garykidd are you entering openaps do-everything or openaps do -everything?
Because the command that you said you entered above is wrong. There should be NO spaces for do-everything
garykidd
@garykidd
Sep 04 2016 22:35
@diabeticgonewild openaps do-everything
my typos are pervasive
not really sure how to adjust oref0.json though?
I thought you were maybe correct about the date comment--though I don't know how to fix.
diabeticgonewild
@diabeticgonewild
Sep 04 2016 22:57
Can you try openaps report-nightscout?
I honestly think this could be because your current time and date isn't synced or something like that....
Well, probably not
Do you have openaps vendor add openapscontrib.timezones?
garykidd
@garykidd
Sep 04 2016 23:00
I did seem to have time sync prblem earlier but more recently that seems to self resolved....
diabeticgonewild
@diabeticgonewild
Sep 04 2016 23:00
That can cause the problem...
I mean, you are probably missing an upload report
With the date
garykidd
@garykidd
Sep 04 2016 23:01
openaps report-nightscout
openaps report-nightscout
ns://JSON/shell/nightscout/preflight.json
reporting nightscout/preflight.json
ns://JSON/shell/nightscout/recent-treatments.json
reporting nightscout/recent-treatments.json
ns://JSON/shell/nightscout/uploaded.json
Nothing to upload.
reporting nightscout/uploaded.json
ns://JSON/shell/nightscout/recent-missing-entries.json
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 "/home/pi/src/openaps/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-use", line 57, in run
    output = app(args, self)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 92, in __call__
    return self.method.selected(args)(args, app)
  File "/home/pi/src/openaps/openaps/uses/__init__.py", line 31, in __call__
    return self.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-contrib/openapscontrib/timezones/__init__.py", line 298, in main
    if spec.includes(get(elem)):
  File "/home/pi/src/openaps-contrib/openapscontrib/timezones/__init__.py", line 264, in get
    return parse(item.get(args.date))
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 1164, in parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 552, in parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 671, in _parse
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 188, in split
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 184, in next
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 177, in __next__
  File "build/bdist.linux-armv7l/egg/dateutil/parser.py", line 93, in get_token
AttributeError: 'NoneType' object has no attribute 'read'
No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  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 48, in main
    reporters.Reporter(report, device, task)(output)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 33, in __call__
    self.blob = self.serialize(data)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 31, in serialize
    return self.method.serialize(render(data), self)
  File "/home/pi/src/openaps/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
pi@raspberrypi:~/APS301 $
I thought I had read that you needed to manually upload something first---but didn't seem to see that in the latest master or dev walkthrough
pi@raspberrypi:~/APS301 $ openaps vendor show
openapscontrib.timezones://
diabeticgonewild
@diabeticgonewild
Sep 04 2016 23:10
What is in your uploaded.json? That certainly looks suspicious.
You should have multiple vendors too, like more than just openapscontrib.timezones
The EASY way of working through this is going here and pressing ctrl+f and following the instructions starting at "new style walkthrough"
openaps/docs#132
You should have this as a vendor, too openaps vendor add mmeowlink.vendors.mmeowlink
diabeticgonewild
@diabeticgonewild
Sep 04 2016 23:18
You should also have a vendor for units and POSSIBLY process...
I don't follow the OpenAPS docs...they are really only straightforward for a RasPi setup.
You should have SEVERAL vendors, including Medtronic and Dexcom (If you are using a Dexcom as a CGM), and if you are connecting to the Dexcom via Bluetooth, then you need this too openaps vendor add openxshareble
garykidd
@garykidd
Sep 04 2016 23:47
I actually dont think the docs are straightforward for raspi either....I am so appreciative but I have constant errors even when starting over from scratch repeatedly following to a T
David Daniels
@ddaniels1
Sep 04 2016 23:49
can anyone help with loop and NS integration? I used to have temp basal and carbs/boluses entered on loop but no longer. I feel I am missing a configuration issue but can't track it down.
cococay
@cococay
Sep 04 2016 23:51

At the moment, I am not planning on physically connecting the DEX to the Pi. Rather just pull data from Nightscout database. I can't find how to get the glucose.json report to interface with NS data, I can only find how to set it up dependent upon having a CGM device defined and attached.

I don't have prior programming skills (not in any language used this century anyway. That said, I have figured out, leaning a LOT along the way (TY) everything I believe well into phase 2 - I'v completed most of the steps and reports through the 'Using oref0 Tools' except the reports and alias' that depend on glucose.json because I can't figure out how to create it with NS data.

Any help is very appreciated.

Eric Jensen
@elnjensen
Sep 04 2016 23:52
Hi all - trying to get my treatment data uploaded to NS, and I'm stuck. I can generate the nightscout/recent-treatments.json report, and it appears to upload (I get lots of output in nightscout/uploaded.json). However, nothing shows up in Nightscout, neither in the interface, nor in api/v1/treatments.json. Actually 'nothing' isn't quite true. I see no temp basals shown, but I do see a circle for one correction bolus I did today. Interestingly the bolus shows up as four hours off - which is my offset from GMT. So I'm thinking this might be a timezone issue. Looking at this more, it's clear I don't understand the tz device in openaps. My tz.ini file, which I created using openaps device add tz timezones from the docs, is essentially empty - just has [device "tz"] in it and nothing else. So running openaps use tz rezone on a given report does not give an error, but it doesn't actually do anything, either. So any help is welcome here, either for NS issue, or for understanding tz issues in general.
That talks about pulling glucose values from Nightscout.
Eric Jensen
@elnjensen
Sep 04 2016 23:57
If you can set up the ns device and then make that openaps use ns shell get entries.json command given there work, that's the crux of getting the glucose values from NS.
cococay
@cococay
Sep 04 2016 23:58
yes I've used that. but I don't think it creates the glucose.json - unless it did establish that report and I overwrote it later when I got to the main step for that part.. hmmm I'll run it again and see what it seems to do - I'm understanding a bit more now then a couple nights ago when I first ran that.
Eric Jensen
@elnjensen
Sep 04 2016 23:58
You could wrap a report around that to make your glucose.json. It might need a bit more formatting, but that should get you started.
So any openaps use command can be made into a report.
In this case, I think it would be something like this:
openaps report add glucose.json JSON ns shell get entries.json 15