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

20th
Jul 2016
Paul Martin
@Spazholio
Jul 20 2016 00:02
Ok, after adding the MAC/serial, I’m getting:
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 "/home/edison/src/openxshareble/openxshareble/__init__.py", line 97, in __call__
    res = self.ble.run_mainloop_with(run, quit_with_loop=False)
  File "/home/edison/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 121, in _user_thread_main
    self._return_code = target()
  File "/home/edison/src/openxshareble/openxshareble/__init__.py", line 92, in run
    self.before_main(args, app)
  File "/home/edison/src/openxshareble/openxshareble/__init__.py", line 75, in before_main
    self.prolog(mac=mac)
  File "/home/edison/src/openxshareble/openxshareble/app.py", line 85, in prolog
    raise RuntimeError('Failed to find UART device!')
RuntimeError: Failed to find UART device!
Do I need to use bluetoothctl to pair/trust the DEXCOMRX device first?
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:34
maybe the mac address isn't right
I only get that message when out of range from the dex or if Share is off on the receiver, or the edison needs a reboot
@Spazholio ^
Paul Martin
@Spazholio
Jul 20 2016 00:36
I’ll reboot, and give it another go.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:38
if that doesn't work you can remove the mac from the cgm.ini and try oref0_glucose again
there's some other stuff in the output that looks like a mac address
scan might not be the best way to find the mac
Paul Martin
@Spazholio
Jul 20 2016 00:41
I have the MAC from the last time I did this dance.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:41
openxshareble worked pretty good at D-camp today I was really worried about interferance, but it didn't effect ble to dex as much as pump comms
oh
Paul Martin
@Spazholio
Jul 20 2016 00:41
And from bluetoothctl
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:42
I thought about adding something with bluetoothctl in the wiki, but was trying to keep it simple if possible
need something that just looks for devices with the name DEXCOMRX
Paul Martin
@Spazholio
Jul 20 2016 00:42
I wonder if it needs to be paired/trusted first?
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:42
I did that before, but not the last couple of times
you do need to stop/forget on the receiver
just using the device from openaps will do the pairing
Paul Martin
@Spazholio
Jul 20 2016 00:43
Ok, so…I forget everything in the Dexcom and in the iPhone. Then I run openaps use cgm iter_glucose (since I already have the MAC/serial in there). It hangs - never moves from there. BUT - the Dexcom no longer has the BT icon, and when I go into the Share section, I have the option to Forget again.
So…something is happening.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:44
don't think you need to forget from the phone
but might be needed to get it to repair
Paul Martin
@Spazholio
Jul 20 2016 00:45
Yeah, I do. That’s why I bothered in the first place. =)
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:45
when I wrote up the wiki I did the setup on a different edison, but it's possible I trusted the dex before
Paul Martin
@Spazholio
Jul 20 2016 00:47
Ok, in bluetoothctl - once I pair/trust the Dexcom, so I need to DO anything? LIke, save it or something? Or will it remember that when I exit out?
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:47
I've never saved anything from there
Paul Martin
@Spazholio
Jul 20 2016 00:47
k
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:47
I don't think I've done that for every receiver
Ben West
@bewest
Jul 20 2016 00:47
shouldn't need to "trust" it using bluetoothctl
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:47
for my primary rig I swa p between 2 receivers
Ben West
@bewest
Jul 20 2016 00:48
the error you get indicates bluez is miscongured or not installed quite right
Paul Martin
@Spazholio
Jul 20 2016 00:48
Aaand, after removing the MAC, the openaps use cgm iter_glucose command works.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:49
you're using Ubi/Jessie right
Paul Martin
@Spazholio
Jul 20 2016 00:49
Odd.
I am, yes.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:50
mac must not be right
Paul Martin
@Spazholio
Jul 20 2016 00:50
But it is. I had this issue before. I got the mac from bluetoothctl.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:50
I think a trailing space or something might have broke it for me before, but that was when I was hacking the ini instead of using configure
Ben West
@bewest
Jul 20 2016 00:50
sounds like you might have two bluez installed
Paul Martin
@Spazholio
Jul 20 2016 00:50
I mean, I hear what you’re saying, but I have to trust that bluetoothctl isn’t outright LYING to me. =)
Ben West
@bewest
Jul 20 2016 00:51
one via apt-get and one via make install?
Paul Martin
@Spazholio
Jul 20 2016 00:51
Well, I have the original.
Yeah.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:51
I didn't remove anything
Paul Martin
@Spazholio
Jul 20 2016 00:51
The instructions don’t say to remove the original. And I think nearly every freaking thing depends on it.
Ben West
@bewest
Jul 20 2016 00:51
by "original" you m ean apt-get?
Paul Martin
@Spazholio
Jul 20 2016 00:51
I mean whatever comes with Jessie, and the setup instructions.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:52
I don't the mac is top secret, want to paste what you entered and the output when it worked, or just dm it to me
Paul Martin
@Spazholio
Jul 20 2016 00:52
This is a fresh Edison, set up solely for testing stuff out. Specifically, for testing openxshareble.
Sure, hang on...
openaps use cgm configure --serial SM12345678 --mac D3:C4:38:CF:A1:03
(edison) [testrig: ~/openaps] $openaps use cgm configure --serial SM61316547 --mac D3:C4:38:CF:A1:03
serial=SM12345678
mac=None
saving D3:C4:38:CF:A1:03
{
  "mac": "D3:C4:38:CF:A1:03", 
  "serial": "SM12345678"
}(edison) [testrig: ~/openaps] $
(it had “None” in there because I went into cgm.ini and manually removed it)
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:54
what about the part of the output that includes the mac when iter_glucose works
Paul Martin
@Spazholio
Jul 20 2016 00:55
When iter_glucose works, the mac is never shown.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:55
strange I always see it in my logs
Paul Martin
@Spazholio
Jul 20 2016 00:55
So now I have the mac in there, re-ran the iter_glucose command, and I get a buttload of entries.
Which log? Syslog?
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:56
Jul 19 17:55:22 indy-e1 openaps-monitor-cgm:  <Adafruit_BluefruitLE.bluez_dbus.gatt.BluezGattCharacteristic object at 0xb52c13cc>
Jul 19 17:55:22 indy-e1 openaps-monitor-cgm:  0000180a-0000-1000-8000-00805f9b34fb False <Adafruit_BluefruitLE.bluez_dbus.gatt.BluezGattService object at 0xb52c1d6c> <Interface <ProxyObject wrapping <dbus._dbus.SystemBus (system) at 0xb6aeacbc> :1.1 /org/bluez/hci0/dev_CC_64_BE_73_12_28/service001d at 0xb647972c> implementing 'org.bluez.GattService1' at 0xb52c1a8c>
Paul Martin
@Spazholio
Jul 20 2016 00:56
Hang on, let me check syslog.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:57
different format, but the CC_64_BE_73_12_28 is the mac for my #2 dex
Ben West
@bewest
Jul 20 2016 00:57
do you have gdbus installed?
Paul Martin
@Spazholio
Jul 20 2016 00:57
And now, openaps use cgm iter_glucose 3 is hanging. Nothing’s happening. And it will likely stay this way indefinitely. Let me SSH in again, and see what syslog says...
Ben West
@bewest
Jul 20 2016 00:57
you can query it using that also
Paul Martin
@Spazholio
Jul 20 2016 00:58
I’m wholly unfamiliar with that command. Can you give me a specific commandline to try out?
Ah!
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:58
I thought the scan use would be good, but the output isn't greate
Paul Martin
@Spazholio
Jul 20 2016 00:58
(edison) [testrig: ~/openaps] $ openaps use cgm iter_glucose 3
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 "/home/edison/src/openxshareble/openxshareble/__init__.py", line 97, in __call__
    res = self.ble.run_mainloop_with(run, quit_with_loop=False)
  File "/home/edison/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 121, in _user_thread_main
    self._return_code = target()
  File "/home/edison/src/openxshareble/openxshareble/__init__.py", line 92, in run
    self.before_main(args, app)
  File "/home/edison/src/openxshareble/openxshareble/__init__.py", line 75, in before_main
    self.prolog(mac=mac)
  File "/home/edison/src/openxshareble/openxshareble/app.py", line 64, in prolog
    self.ble.clear_cached_data()
  File "/home/edison/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/provider.py", line 140, in clear_cached_data
    if device.is_connected:
  File "/home/edison/src/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/bluez_dbus/device.py", line 203, in is_connected
    return self._props.Get(_INTERFACE, 'Connected')
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownObject: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
It finally timed out.
Trying again.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:58
I get that error every few tries
and just keep hammering it till it works
Paul Martin
@Spazholio
Jul 20 2016 00:59
Nothing in syslog yet. You’d think it would immediately output SOMETHING.
Ben West
@bewest
Jul 20 2016 00:59
that's a good log to paste into issue/gist
Jason Calabrese
@jasoncalabrese
Jul 20 2016 00:59
theres a delay
Ben West
@bewest
Jul 20 2016 00:59
do you have gdbus?
should print help or something if you have it installed
Paul Martin
@Spazholio
Jul 20 2016 01:00
Ok, it came back with results, but nothing in syslog.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:00
do you have it piping to syslog in your cron
Paul Martin
@Spazholio
Jul 20 2016 01:00
So…while it’s running, do I just say gdbus monitor <PID> or something?
I haven’t even gotten as far as cron. I’m doing all of this live.
I have lots of other BT stuff from before in syslog though. But nothing since I’ve started getting occasional replies.
Ben West
@bewest
Jul 20 2016 01:01
what happens if you just run it with no args
Paul Martin
@Spazholio
Jul 20 2016 01:01
What, the openaps use cgm iter_glucose?
Ben West
@bewest
Jul 20 2016 01:01
gdbus
Paul Martin
@Spazholio
Jul 20 2016 01:02
Usage:
  gdbus [OPTION...] COMMAND

Commands:
  help         Shows this information
  introspect   Introspect a remote object
  monitor      Monitor a remote object
  call         Invoke a method on a remote object
  emit         Emit a signal

Use "gdbus COMMAND --help" to get help on each command.
Ben West
@bewest
Jul 20 2016 01:02
ah, ok so now we have some idea how to run it
gdbus monitor -y -d org.bluez prints lots of interesting stuff
Paul Martin
@Spazholio
Jul 20 2016 01:03
Yep. want the whole output once this latest attempt finishes?
Ben West
@bewest
Jul 20 2016 01:03
not here, maybe in a gist
or dpaste or similar
Ben West
@bewest
Jul 20 2016 01:04
actually might be interesting to | logger -t gdbus to send it to syslog
Paul Martin
@Spazholio
Jul 20 2016 01:04
And it worked - it pulled three entries, like I asked it to.
Ben West
@bewest
Jul 20 2016 01:04
in that case it's not interesting ;-)
Paul Martin
@Spazholio
Jul 20 2016 01:04
I’ll keep running it until it breaks. =)
Ben West
@bewest
Jul 20 2016 01:05
if you pipe it to syslog we'll be able to see it mixed with the logging from openxshareble as well
Paul Martin
@Spazholio
Jul 20 2016 01:06
Errrr…nothing’s been written to syslog for quite some time.
Odd.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:06
I think the issue is something with connection state, even when it fails running again will normally fix it
Paul Martin
@Spazholio
Jul 20 2016 01:06
I manually entered the word “TEST” into the /var/log/syslog file so I could see where I started, and there’s nothing below it.
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:07
rare to hit my 15m stale data alert, but sometime it gets 10m behind
Paul Martin
@Spazholio
Jul 20 2016 01:07
The problem I had last time was it would hang up, but then never clear itself. It’d stay in that mode for 8 hours at least. I mean, that’s when I woke up the next morning and realized I had no data. =)
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:07
I have that killall
Paul Martin
@Spazholio
Jul 20 2016 01:08
It didn’t work for me. =/
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:08
it's ugly, forcing it to work
Paul Martin
@Spazholio
Jul 20 2016 01:08
I think I have a way around it NOW, but then - no go.
Ok, so adding | logger -t gdbus didn’t pipe anything to syslog.
Argh. Wait. It put it in /var/log/messages instead of /var/log/syslog`
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:09
I only get output from gdbus while it's running
had looked at that before, maybe some clues to be found
Paul Martin
@Spazholio
Jul 20 2016 01:10
Oh you bastard thing, NOW you’re going to work just fine?!
Ben West
@bewest
Jul 20 2016 01:10
yeah, gdbus explains what's happening on the d-bus
you can emit and call stuff, too, so it's technically possible to build ble tools using bash that way
no python needed ;-)
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:12
crazy
did you see openaps/openxshareble#6
probably better to add some options to adjust logging
Ben West
@bewest
Jul 20 2016 01:12
well, it was bug
apparently that property is not string safe
or needs some filtering or something
it crashed me several times as well
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:13
I was thinking it would need a try
Ben West
@bewest
Jul 20 2016 01:13
nah, I actually did something slightly different
Paul Martin
@Spazholio
Jul 20 2016 01:13
This thing needs to be able to pair to multiple devices, I swear...
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:13
not sure whats going on there looks like just reading a field, but it's calling into to ble stuff to do that
more of a function
Paul Martin
@Spazholio
Jul 20 2016 01:13
I want to tinker, but my loop keels over when I do. =)
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:14
need more hardware
Paul Martin
@Spazholio
Jul 20 2016 01:14
Offering to donate? =)
I’ll likely pick up a spare receiver at some point in the near future. I just don’t want to spend the $199 just yet...
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:15
yeah, I paid
was more for a backup then for dev
Ben West
@bewest
Jul 20 2016 01:15
it has to do with some devices having malicious names
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:15
but then got a 3rd when the year was up for the first
Ben West
@bewest
Jul 20 2016 01:16
I print the alias now which is string safe
Paul Martin
@Spazholio
Jul 20 2016 01:16
What’d it cost at that point?
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:16
there were some crazy devices on the flight to the big island
Ben West
@bewest
Jul 20 2016 01:16
yeah, I saw that
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:16
was even screwing up my console
Ben West
@bewest
Jul 20 2016 01:16
yeah, had all kinds of control characters in it
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:17
was really happy to find it was just logging that I could disable
Ben West
@bewest
Jul 20 2016 01:17
yeah, same
was at FFL and other conferences
every conference, actually
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:17
still happy it worked at d-camp today
Ben West
@bewest
Jul 20 2016 01:17
but I finally figured it out at FFL
hah, nice
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:17
was really worried about that
lots of pump comms errors
Ben West
@bewest
Jul 20 2016 01:18
hmm, interesting
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:18
seems that some reports can fail, create an empty file, but still return ok
Ben West
@bewest
Jul 20 2016 01:19
yeah, model, clock
probably tweakable
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:19
my gather can silently fail
gather = report invoke monitor/active-basal-profile.json monitor/reservoir.json monitor/settings.json monitor/battery.json monitor/bg-targets.json monitor/insulin-sensitivities.json monitor/carb-ratios.json monitor/temp-basal-status.json monitor/meal.json monitor/latest-treatments.json predict/profile.json
and active-basal-profile.json will be empty
Ben West
@bewest
Jul 20 2016 01:21
wonder if carelink/medtronic vendor does that
Jason Calabrese
@jasoncalabrese
Jul 20 2016 01:24
realized this is why my autosens.json could also be empty
maybe a mmeowlink bug?
Ben West
@bewest
Jul 20 2016 01:52
not sure
not sure where the fix should be, probably fine to create a new exception and raise that
in decocar
Jason Calabrese
@jasoncalabrese
Jul 20 2016 02:32
hmm, so openaps doesn't know it failed?
Ben West
@bewest
Jul 20 2016 03:01
yeah
Kim St. Dennis
@kimstdennis_twitter
Jul 20 2016 05:53
Anyone here see these come up in the logs?
BEGIN POWER CONTROL 128164 raspberrypi Response not received - retrying at <built-in function time>
base on the power control line above it seems like the start of the TI stick comms, but am curious why this line comes up multiple times.
Hristina Dimova
@xpucuto
Jul 20 2016 07:36
This message was deleted
@lkraleva please send me a PM
Jim is CrushingT1D
@CrushingT1D
Jul 20 2016 11:17
It’s lonely in here during the evenings in AU :)
Julie
@julieraines
Jul 20 2016 11:50
the east coast is awake - but i think a lot of folks are on the west coast
John Males
@johnmales
Jul 20 2016 11:55
I’m here :)
Julie
@julieraines
Jul 20 2016 11:56
thank god! we’re not alone!
John Males
@johnmales
Jul 20 2016 11:56
:+1:
Hristina Dimova
@xpucuto
Jul 20 2016 11:58
Europe is also awake ;)
Julie
@julieraines
Jul 20 2016 11:58
bonjour
hola
John Males
@johnmales
Jul 20 2016 11:59
I’m missing Europe already having just left
Julie
@julieraines
Jul 20 2016 12:03
speaking of different time zones - i’ve reset my RPi2 to the correct time zone a couple times but still get this:
sudo dpkg-reconfigure tzdata
ooops
pi@raspberrypi:~/sasha $ date
Tue Jul 19 22:55:09 EDT 2016
it is telling me it’s yesterday or last night at least
Matt Walker
@walker0
Jul 20 2016 12:04
Have you set the timezone with raspi-config ?
John Males
@johnmales
Jul 20 2016 12:04
did you recently restart it?
Julie
@julieraines
Jul 20 2016 12:05
@walker0 yes i have -twice and @johnmales yes - twice
John Males
@johnmales
Jul 20 2016 12:05
Sometimes I’ve found it can take time to find the timezone when you restart
Julie
@julieraines
Jul 20 2016 12:05
ok
i’ll wait patiently : ^ )
John Males
@johnmales
Jul 20 2016 12:08
try sudo sntp -s au.pool.ntp.org - or you can replace the au with your country
Julie
@julieraines
Jul 20 2016 12:14

pi@raspberrypi:~/sasha $ sudo sntp -s us.pool.ntp.org
19 Jul 23:12:01 sntp[2247]: Started sntp
19 Jul 23:12:01 sntp[2247]: kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod

and then it hangs

Jim is CrushingT1D
@CrushingT1D
Jul 20 2016 12:18
nice, i thought EU might be around :clap:
Julie
@julieraines
Jul 20 2016 12:18
ok - the website said it can take 30 minutes so i’ll redo and then let it be for a while
John Males
@johnmales
Jul 20 2016 12:20
hmm not sure
Paul Martin
@Spazholio
Jul 20 2016 12:32
Question about using screen - so when I serial into my Edison, I seem to be limited to ~80 character column width. And when I use vim then the rows get further restricted as well. How can I easily prevent this?
Julie
@julieraines
Jul 20 2016 13:07
@johnmales this did not work but I think I have to be able to set my time to within a minutes of what the time actually is to be able to do this (that’s what the website says) and that is actually the problem I’m having so I got some error messages and my date is still off.
pi@raspberrypi:~/sasha $ date
Tue Jul 19 23:59:26 EDT 2016
so anyone having this problem with the date in their RPi2?
Paul Martin
@Spazholio
Jul 20 2016 13:08
Date being off seems to be a very common issue with Pi devices. Do you have ntp installed? I have a script I run that will make sure it syncs its time with ntp servers.
David Cintron
@loudestnoise
Jul 20 2016 13:11
@Spazholio I believe there's a -h for screen where you can set height
Paul Martin
@Spazholio
Jul 20 2016 13:11
Well, I don't necessarily want to SET height. Just...stop limiting it. =)
Same with width.
David Cintron
@loudestnoise
Jul 20 2016 13:12
Yeah, I never quite understand how to use screen LOL
Paul Martin
@Spazholio
Jul 20 2016 13:17
https://i.imgur.com/2wPESW6.jpg <-- this is...sub-optimal. =)
Julie
@julieraines
Jul 20 2016 13:22

@Spazholio this is what I did:
pi@raspberrypi:~/sasha $ sudo sntp -s us.pool.ntp.org
19 Jul 23:17:00 sntp[2339]: Started sntp
19 Jul 23:17:00 sntp[2339]: kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod
19 Jul 23:22:41 sntp[2339]: Received no useable packet from 198.60.22.240!
19 Jul 23:28:21 sntp[2339]: Received no useable packet from 129.6.15.28!
19 Jul 23:34:02 sntp[2339]: Received no useable packet from 45.127.112.2!
19 Jul 23:39:42 sntp[2339]: Received no useable packet from 209.208.79.69!

and I think it didn’t like that I’m more than a few minutes off - the website says I have to be within a few minutes for it to work - but not sure since I’ve never tried this before

Paul Martin
@Spazholio
Jul 20 2016 13:22
sudo /etc/init.d/ntp stop                                                       
sudo ntpd -q -g
sudo /etc/init.d/ntp start
That's what I run periodically.
See if it works for you?
Julie
@julieraines
Jul 20 2016 13:23
ok - trying now - groovy
it’s doing things
Paul Martin
@Spazholio
Jul 20 2016 13:29
The suspense is killing me. Did my command work? Did it send you into the past? It does that sometimes - I should have mentioned that. Sorry.
(whatever you do, if you get sent into the past, do NOT try to kill Hitler! It's a rookie move - everybody tries their first time)
Julie
@julieraines
Jul 20 2016 13:31
damn - i had my plan all set, too to kill that bastard
i have to start over - it hung and i might not have done something right
trying again
Julie
@julieraines
Jul 20 2016 13:41
trying for the third time - seems to hang on:
sudo ntpd -q -g
Paul Martin
@Spazholio
Jul 20 2016 13:41
I think I've heard that before. Hang on...
(no pun intended)
Julie
@julieraines
Jul 20 2016 13:43
and my scanner isn’t working and my wifi is being a pain so it may just be my karma this morning
Paul Martin
@Spazholio
Jul 20 2016 13:43
Dumb question - you DO have a network connection, right?
Julie
@julieraines
Jul 20 2016 13:43
yes
plugged in because the wifi was glitchy this morning
maybe a router reboot?
Paul Martin
@Spazholio
Jul 20 2016 13:44
Might help.
Have you set your timezone and all that fun stuff?
Julie
@julieraines
Jul 20 2016 13:47

karma reclaimed - finally worked:
pi@raspberrypi:~/sasha $ sudo dpkg-reconfigure tzdata

Current default time zone: 'US/Eastern'
Local time is now: Wed Jul 20 00:44:28 EDT 2016.
Universal Time is now: Wed Jul 20 04:44:28 UTC 2016.

redid it just so I could get the error msg and now I’m all groovy : ^ ) THANKS!

Paul Martin
@Spazholio
Jul 20 2016 13:48
Score! =)
Julie
@julieraines
Jul 20 2016 13:48
the small victories
ooops no it’s not fixed
damn
it’s just on the same day but still 9 hours off
hmm
mmm
off to cart my 12 yo somewhere so I’ll come back to this later
Paul Martin
@Spazholio
Jul 20 2016 13:51
k
Paul Martin
@Spazholio
Jul 20 2016 14:06
I'm starting to think my issue isn't with screen specifically, as the same thing happens when I use PuTTY.
Julie
@julieraines
Jul 20 2016 15:02

Guess what just worked after a reboot?!?

pi@raspberrypi:~/sasha $ sudo /etc/init.d/ntp stop
[ ok ] Stopping ntp (via systemctl): ntp.service.
pi@raspberrypi:~/sasha $ sudo ntpd -q -g
ntpd: time set +1.090508s
pi@raspberrypi:~/sasha $ sudo /etc/init.d/ntp start
[ ok ] Starting ntp (via systemctl): ntp.service.
pi@raspberrypi:~/sasha $ date
Wed Jul 20 11:02:10 EDT 2016

Paul Martin
@Spazholio
Jul 20 2016 15:17
WOOOOO!
Julie
@julieraines
Jul 20 2016 15:23
I know - totally dude
Paul Martin
@Spazholio
Jul 20 2016 15:26
Now stuff those three lines in a .sh file and run it every once in a while via cron. =)
Julie
@julieraines
Jul 20 2016 15:27
okeedokie
haven’t started working in cron yet and never set up a .sh file but that won’t stop me - lol
Paul Martin
@Spazholio
Jul 20 2016 15:29
It's pretty simple. Let me know once you get there if you need assistance. =)
Dana Lewis
@danamlewis
Jul 20 2016 15:35
Keep it up @julieraines :) :clap:
Julie
@julieraines
Jul 20 2016 15:36

!/bin/sh

sudo /etc/init.d/ntp stop                                                       
sudo ntpd -q -g
sudo /etc/init.d/ntp start
is this it?
oops
don’t know what i just did - lol

! came first

how come # doesn’t show up?
Dana Lewis
@danamlewis
Jul 20 2016 15:37
It's markdown
Julie
@julieraines
Jul 20 2016 15:41
ok - still learning. every day getting a little closer . . . : ^ )
Dana Lewis
@danamlewis
Jul 20 2016 15:43
:)
Let me just say - even three years in, "still learning" is still a thing :)
Julie
@julieraines
Jul 20 2016 15:44
i’m a college professor - 20 years - still learning is every day. i swear i learn more from the students than they get out of me
Dana Lewis
@danamlewis
Jul 20 2016 15:50
:)
Julie
@julieraines
Jul 20 2016 16:00
next on my list is to figure this out:
pi@raspberrypi:~/sasha $ openaps use ns shell preflight
false
why am I false?? I feel true . . .
Paul Martin
@Spazholio
Jul 20 2016 16:27
How did you set up your preflight? What docs did you use? I'd like to take a look at them...
Dragan Maksimovic
@dm61
Jul 20 2016 16:34
This is NS preflight, not a general loop preflight. False response to this command means that NS did not respond
Paul Martin
@Spazholio
Jul 20 2016 16:34
I hadn't even heard of an NS preflight, so I was perplexed.
Dragan Maksimovic
@dm61
Jul 20 2016 16:35
It is relatively new
A nice way to check if NS is accessible, which you may use to decide what to do next in the loop
Scott Leibrand
@scottleibrand
Jul 20 2016 16:36
@julieraines if you don't want # to get interpreted as markdown, but three backticks (```) on their own lines before and after the code block
Dragan Maksimovic
@dm61
Jul 20 2016 16:37
@julieraines do any of your other uses of the ns device work?
David Cintron
@loudestnoise
Jul 20 2016 16:38
@Spazholio Ah, you should try something besides Putty. I have issues with my screen not showing me as much height as I’d like, but nothing like your screenshot. I’m using Terminal on my Mac though :wink:
Julie
@julieraines
Jul 20 2016 16:39
Some do some don't. I'm driving in my car right now so I can't copy anything over. I'll have to wait till I'm back at my computer at home.
Paul Martin
@Spazholio
Jul 20 2016 16:39
Well, I'm on my linux workstation. I've tried both screen and putty (they make a linux client, who knew?) and they both give me the same result. So, I think it might be something on the Edison side, on how it presents a serial interface.
David Cintron
@loudestnoise
Jul 20 2016 16:43
Ah, I see
Dragan Maksimovic
@dm61
Jul 20 2016 16:44
@julieraines ns preflight would return false if your rpi is not online, or if your ns site or your API_SECRET were misspelled, or something else in setting up ns device went wrong, or your NS is really not responsive for some reason...
Dana Lewis
@danamlewis
Jul 20 2016 17:26
kind of (totally) awesome: the OpenAPS poster, that had data from 18 of the first 40 users of OpenAPS, was cited in a commentary in Nature that just came out: https://twitter.com/danamlewis/status/755814598784065536
Bog Dan
@bogdangorescu
Jul 20 2016 18:09
Hello, again.
What am I doing wrong here, what date should I change?
root@mypi:/home/openaps/Documents/stefan# openaps report invoke enact/suggested.json
determine-basal://text/shell/enact/suggested.json
BG data is too old, or clock set incorrectly Wed Jul 20 2016 20:57:12 GMT+0300 (EEST) vs Wed Jul 20 2016 00:58:48 GMT+0300 (EEST)
reporting enact/suggested.json
David Cintron
@loudestnoise
Jul 20 2016 18:13
@danamlewis That is awesome. I need to re-read all of diyps.org I think. I enjoy your writing :D
and maybe it’ll inspire me to write a new post for http://davediabet.es
Dana Lewis
@danamlewis
Jul 20 2016 18:15
Thanks @loudestnoise! Would love to read your posts, too, and anyone else who is writing about their experiences :)
Lynne Butts
@flutelynne_twitter
Jul 20 2016 18:33
@danamlewis Fantastic! The CDE at my endo's office has read a lot of things about OpenAPS, but briefly. He wants to sit down and talk about all of these things. He was amazed, as was my endo (she took a pic of my rig). She said that I should go smaller....I said that it works; I love it!
savelik
@savelik
Jul 20 2016 18:36
Most Endos have no idea lol that's like bringing gunpowder to native americans :)))
most still advise the patients to keep the data written in the little books so there's no way to automate data gathering
John Dodds
@johners97
Jul 20 2016 18:37
Is anyone here a "looper" who uses the medtronic insulin pump and medtronic CGMS? If so, can you message me please?
Dana Lewis
@danamlewis
Jul 20 2016 18:38
@johners97 there are several, if no one pings you let me know and I can nudge a few, also feel free to share your Qs here, as there are probably others using medtronic CGM working on looping here, too
John Dodds
@johners97
Jul 20 2016 18:39

@danamlewis of course, I will be sure to do that as I think it will be helpful to share and collaborate.

If anyone is on the same boat, message me and we can maybe sail in the same direction!

Dana Lewis
@danamlewis
Jul 20 2016 18:41
yep, but also do so publicly :) and it helps everyone move along more quickly!
John Dodds
@johners97
Jul 20 2016 18:41
ok:)
Dana Lewis
@danamlewis
Jul 20 2016 18:42
the only thing you really don’t want to post here is super-private info, such as your pump SN, etc. but Qs and all that about related to any version of setup (different cgms, different rigs) are great!
David Cintron
@loudestnoise
Jul 20 2016 18:43
Yeah, before started OpenAPS I considered selling my 2.4 pump and posted a photo of it on CGM in the Cloud including serial #
um, let’s just delete that from the internet ok?
I’m using my Blue Unicorn 723 now, but that is still my backup ;)
sarahspins
@sarahspins
Jul 20 2016 18:44
@loudestnoise hahaha... isn't there no selling on that group though? ;)
David Cintron
@loudestnoise
Jul 20 2016 18:44
I deleted it, but I bet FB still has copies of it in perpetutity
oh I learned that too
but only after making a deal with a nice lady in Puerto Rico who had a 723 & supplies
I understand their concerns as the group is quite large
John Dodds
@johners97
Jul 20 2016 18:45
I wonder if anyone can figure out a way to program the pump to be immune to a malicious hackers!
David Cintron
@loudestnoise
Jul 20 2016 18:45
although I feel the same about HOW DO I SETUP NIGHTSCOUT I HAVE A Dexcom AND AN ANDROID PHONE
sarahspins
@sarahspins
Jul 20 2016 18:45
yeah, it's just tough though, I really really want to get a backup pump because my 723 that I just acquired is in rough shape and there's no easy/obvious way to go about that
John Dodds
@johners97
Jul 20 2016 18:45
I have the Medtronic and an iPhone haha. Going to search for my Samsung
sarahspins
@sarahspins
Jul 20 2016 18:46
it took 6 months of patiently waiting for this pump to pop up on CL
David Cintron
@loudestnoise
Jul 20 2016 18:52
Yeah, I met with someone here locally and was trying to explain how to acquire a pump and said, “Ask other diabetics you know or look on Craigslist or Let Go"
I left out Medwow based on some of the feedback I’ve seen here
I also felt a little bad as I now have two pumps :worried:
Dana Lewis
@danamlewis
Jul 20 2016 18:53
yea, there’s months where I don’t mention it, then a flurry of people get on and say “oh it was so easy to find it, look on Medwow”, then there’s a giant dry spell, etc.
David Cintron
@loudestnoise
Jul 20 2016 18:54
So I got some silouette infusion sets from the lady I traded with for the 723. I used one for the first time last set, and I kind of like it...
I’ve always been Quick Set
it was pain free insertion, but I was grimacing as I pushed the button.
curious what others use
sarahspins
@sarahspins
Jul 20 2016 18:59
@loudestnoise I used to use sils but without the inserter.. I found the inserter awful to use :(
David Cintron
@loudestnoise
Jul 20 2016 19:00
Yeah, it’s a little awkward. I had my wife help me push the button while I cradled it, LOL
I do miss the ease of auto-insertion with OmniPod
sarahspins
@sarahspins
Jul 20 2016 19:03
I started having issues with angled sets though, and lots of insulin leakback (after many years of successful use), so I switched back to 90˚ sets.. then had lots of kinking issues so I used contact detatch (like the sure-t) for a long time (5 or 6 years).. but I got a ton of animas supplies from someone a year ago which included an insane amount of pink insets, and so I started using those, and when those ran out stayed with insets (but not pink, I don't like pink), and I haven't had a kinked set in a really really long time. I'm using Mio's now with my MM pump, but it came with a lot of quicksets I'm not sure if I'll use or not.
I do like the all-in-one sets for convenience :+1:
David Cintron
@loudestnoise
Jul 20 2016 19:12
I need to do some research on the mios. I don’t even know what they’re all about
Dana Lewis
@danamlewis
Jul 20 2016 19:14
I used silhouettes for 10 years, then switched to Mios.
your local rep will probably send you a couple different sets to try, if you ask
sarahspins
@sarahspins
Jul 20 2016 19:38
@loudestnoise if I wasn't 3 hours away I'd just give you a few :P
David Cintron
@loudestnoise
Jul 20 2016 19:39
Hmm, hadn’t considered contacting a rep. I went to one of the JDRF Young Professionals group one time (at a wine bar of all places) and one of the people there worked for MedT. Have to give her a shout and see if she can help me get a few to try
@sarahspins are you in TX?
sarahspins
@sarahspins
Jul 20 2016 19:41
yes, near Austin :)
Dana Lewis
@danamlewis
Jul 20 2016 19:41
@loudestnoise or call Medtronic and ask to be connected to your local rep
David Cintron
@loudestnoise
Jul 20 2016 19:42
@sarahspins Nice, love ATX
@danamlewis Good idea!
Dana Lewis
@danamlewis
Jul 20 2016 19:42
@sarahspins I keep hearing of more and more folks in the Austin area, maybe people will want a meetup the next time I’m down there for work?
sarahspins
@sarahspins
Jul 20 2016 19:43
@danamlewis that would be awesome :)
Dana Lewis
@danamlewis
Jul 20 2016 19:43
:+1:
David Cintron
@loudestnoise
Jul 20 2016 19:43
@danamlewis and be sure to tweet about it, It’s not that far of a drive from Houston!
Dana Lewis
@danamlewis
Jul 20 2016 19:43
haha you know I will :) @loudestnoise
bring @TC2013 with you?
David Cintron
@loudestnoise
Jul 20 2016 19:44
totally, he can jump in my Corolls Royce
loudestnoise @loudestnoise calls his 2001 Toyota Corolla the Corolls Royce
sarahspins
@sarahspins
Jul 20 2016 19:51
:+1:
sarahspins @sarahspins makes note to try to keep up with twitter
sarahspins
@sarahspins
Jul 20 2016 19:53
as stupid as it sounds.... I've had my twitter account for ages, I pretty much never use it for anything :P
Dana Lewis
@danamlewis
Jul 20 2016 19:53
don’t worry, we’ll convert you ;)
sarahspins
@sarahspins
Jul 20 2016 19:53
meh... many have tried... it took me a really really long time to warm up to facebook
and deleting my account more than once ;)
David Cintron
@loudestnoise
Jul 20 2016 19:55
Twitter is where all the cool kids are
sarahspins
@sarahspins
Jul 20 2016 19:56
yeah, but it's really not an inability to use it, it's a "making it fit into my everyday" problem :P
I think I followed you too
there :P
enjoy potato quality fortune :+1:
Should maybe update my profile pic from my kid to me :P
Dana Lewis
@danamlewis
Jul 20 2016 19:59
:)
sarahspins
@sarahspins
Jul 20 2016 20:00
or include other kid and me since it's the most recent selfie I have.. :)
David Cintron
@loudestnoise
Jul 20 2016 20:00
Until I started OpenAPSing I was more of just a Twitter reader. I signed up back in 2007, but have been dormant for stretches
Dana Lewis
@danamlewis
Jul 20 2016 20:01
I converted @scottleibrand on our first date ;)
sarahspins
@sarahspins
Jul 20 2016 20:01
alrighty, and have header photo now too.. because, reasons :P
David Cintron
@loudestnoise
Jul 20 2016 20:01
I have only 41167 tweets to catch up with @danamlewis
sarahspins
@sarahspins
Jul 20 2016 20:01
my husband has no twitter and no facebook
he's anti-social media
Dana Lewis
@danamlewis
Jul 20 2016 20:01
@loudestnoise lol, not that you’re counting
sarahspins
@sarahspins
Jul 20 2016 20:02
which is funny to me in many ways, because he's a developer, and you'd think he'd be all over that stuff
David Cintron
@loudestnoise
Jul 20 2016 20:04
Twitter says @scottleibrand is a “networking geek”. I only have my network admins at my office to compare him with, but they’re no fun and like to tell us Mac users how we’re non conformist and they can’t apply their policies to our machines blah blabh blah
Dana Lewis
@danamlewis
Jul 20 2016 20:06
that sounds more like IT ;)
David Cintron
@loudestnoise
Jul 20 2016 20:07
Ah ok, yes. I see networking and think computer networking
Different kind of “networking"
sarahspins
@sarahspins
Jul 20 2016 20:08
@loudestnoise my husband makes fun of me as a mac user :)
David Cintron
@loudestnoise
Jul 20 2016 20:09
I love my Mac. Converted back in ‘01
sarahspins
@sarahspins
Jul 20 2016 20:09
curiously I don't seem to need a new computer every year or deal with nearly the amount of hardware failures he does though, but I try not to comment on that :)
David Cintron
@loudestnoise
Jul 20 2016 20:09
mmmmhm ;)
sarahspins
@sarahspins
Jul 20 2016 20:11
of course I deal with my own hardware failures, so I can't really claim I don't experience any :P
Ben West
@bewest
Jul 20 2016 20:11
@mhaeberli I can handle questions in here, I'm mostly back from vacation, although I'm also working on bunch of things at the same time
David Cintron
@loudestnoise
Jul 20 2016 20:12
And @bewest uses a Mac, so you know they’re cool
Dana Lewis
@danamlewis
Jul 20 2016 20:13
welcome back @bewest!
sarahspins
@sarahspins
Jul 20 2016 20:13
speaking of PC's, I need to perform surgery on my son's to remove a broken headphone jack :(
Ben West
@bewest
Jul 20 2016 20:13
I don't use a mac ;-)
David Cintron
@loudestnoise
Jul 20 2016 20:13
oh really?
Ben West
@bewest
Jul 20 2016 20:13
I use linux
David Cintron
@loudestnoise
Jul 20 2016 20:14
I thought I saw in one of your various gists something about BenMacBookPro
Ben West
@bewest
Jul 20 2016 20:15
I left most of the defaults, Apple burns a suggested hostname into some special flash memory which ubuntu read when I installed it
that said, openaps should work just fine on mac if you're using mmeowlink
been waiting for someone to give openxshareble a try on the mac also
David Cintron
@loudestnoise
Jul 20 2016 20:16
Well, Linux is cool too. My favorite distro is Ubuntu. Built a MythTV DVR box a while back and always pick it when I spin up VPSes
Ben West
@bewest
Jul 20 2016 20:16
you could do everything on mac, then export the entire loop using oref0 export-loop :-)
sarahspins
@sarahspins
Jul 20 2016 20:17
@bewest :+1:
Paul Martin
@Spazholio
Jul 20 2016 20:37
@loudestnoise If you’re still doing stuff like MythTV, give Kodi a look. It’s pretty outstanding, and they even have a standalone distribution called Kodibuntu. Three guesses what it’s based off of.
@bogdangorescu Did anyone ever get back to you about your date issue? If not, the first date/time is your CGM, the second is your system.
Scott Leibrand
@scottleibrand
Jul 20 2016 20:39
@loudestnoise you read it right: I'm a Network Engineer by training. doing less and less computer networking, though, so maybe I should lose that from my bio. :-)
"real" network engineers generally don't consider IT people to be network engineers, though. If you don't run BGP, MPLS, or IS-IS, you're just IT. ;-)
Paul Martin
@Spazholio
Jul 20 2016 20:41
@scottleibrand You’d probably get a kick out of this then: I used to work for Disney as a server monkey/messaging dude, and I was speaking to one of the network engineers there. You can imagine just how expansive Disney’s network was/is. He told me that the quickest way to bring it to its knees was to issue an SNMP request for the routing table. Like, half the routers would just puke and die. =)
Scott Leibrand
@scottleibrand
Jul 20 2016 20:42
yep, pretty much. :)
routers are delicate machines. I try not to rely on them for much any more
we now put most of the smarts into the servers instead
Paul Martin
@Spazholio
Jul 20 2016 20:43
After a heartbeat, he said, “Don’t. Not even as a joke. Because while it’s not funny, your death would be.” =)
Scott Leibrand
@scottleibrand
Jul 20 2016 20:45
yeah. there are lots of ways for people who work in positions like that to take down large segments of the Internet briefly, but they know they personally wouldn't get away with / survive it (figuratively or maybe literally) and generally don't hate all their colleagues, so it doesn't happen.
David Cintron
@loudestnoise
Jul 20 2016 20:49
I hear my network admin blame BGP
does that count?
I’m familiar with MLS, which I assume is like MPLS
Major League Soccer
:wink:
Paul Martin
@Spazholio
Jul 20 2016 20:50
There are similarities, yes. =)
Hey, has anyone tried to upload to Dexcom Clarity today? Or recently? I’m getting ["There is no user with ID login-session.”] which is a new one for me.
David Cintron
@loudestnoise
Jul 20 2016 20:50
I like to consider myself the Assistant to the Regional Help Desk Manager
@Spazholio Works for me
that’s also something our network admins say
Oooh, 5.8% A1c
Paul Martin
@Spazholio
Jul 20 2016 20:51
“Can’t reproduce” is the proper way to say it. =)
David Cintron
@loudestnoise
Jul 20 2016 20:51
ha yeah
sarahspins
@sarahspins
Jul 20 2016 20:52
argh, what kind of idiots designed this with a closed headphone jack socket
David Cintron
@loudestnoise
Jul 20 2016 20:52
not someone at Apple
they’re anti-headphone jacks if you believe the iPhone 7 rumors
sarahspins
@sarahspins
Jul 20 2016 20:53
heh
well normally if you can get too the stupid socket (this has clearly happened before), you can pop the broken part out from the side... there is no way to do that with this one
Paul Martin
@Spazholio
Jul 20 2016 20:54
Quickest way to get me to switch to Android...
sarahspins
@sarahspins
Jul 20 2016 20:54
the only access is where the ground is, but the jack is broken off below that :(
Kim St. Dennis
@kimstdennis_twitter
Jul 20 2016 20:54
random: This looks pretty interesting to add to the edison or whatnot for cellular comms.
https://hologram.io/store/
sarahspins @sarahspins debates how much a 2 year old $200 laptop is worth messing with vs replacing
sarahspins
@sarahspins
Jul 20 2016 20:56
considering his sister's (same model) laptop won't power on any more as of a few days ago
David Cintron
@loudestnoise
Jul 20 2016 20:56
@kimstdennis_twitter Oooh that’s cool
mariano42
@mariano42
Jul 20 2016 21:11
so the loop i have been running the last two days started failing and I am getting the following error: file "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py, line 523 in upload program return dict(error="missing required input fields", missing=missing, input=dict(**program)) TypeError: type object argument after ** must be a mapping, not list
Scott Leibrand
@scottleibrand
Jul 20 2016 21:11
what is it trying to run that returns that error?
mariano42
@mariano42
Jul 20 2016 21:11
only thing i did today was oref0-reset-git because i lost power during a loop and it seemed to corrupt it
i was running openaps enacttempbasal
before i ran oref0-reset-git i couldnt even get the preflight to work, that fixed that and ran the gather part of my loop
Scott Leibrand
@scottleibrand
Jul 20 2016 21:13
check your ini files
one of them may have gotten truncated
if it's not something obvious, do an openaps alias show enacttempbasal and then run the components one by one
mariano42
@mariano42
Jul 20 2016 21:14
ok.. ill check
all that alias does is 'openaps use pump set_temp_basal enact/suggested.json'
Scott Leibrand
@scottleibrand
Jul 20 2016 21:16
ooh, that's not what you want anyway
you want a enact/enacted.json report to do that and store the output
mariano42
@mariano42
Jul 20 2016 21:17
ah suggested.json has that BG data is too old message..
Scott Leibrand
@scottleibrand
Jul 20 2016 21:18
I would add the enact/enacted.json report and replace that use alias with a report invoke enact/enacted.json instead
mariano42
@mariano42
Jul 20 2016 21:18
hmm i do have enact/enacted.json setup
Scott Leibrand
@scottleibrand
Jul 20 2016 21:18
ah, so just invoke that probably
mariano42
@mariano42
Jul 20 2016 21:20
so in that alias invoke enact/enacted.json then do the set_temp_basal enact/enacted.json?
Kim St. Dennis
@kimstdennis_twitter
Jul 20 2016 21:20
@loudestnoise looks like it would only cost a few bucks a month to pull BGs from NS. it's the upload that might cost a lot.
Scott Leibrand
@scottleibrand
Jul 20 2016 21:20
if you have enact/enacted.json set up correctly, it should do the set_temp_basal and store the output to enacted.json
mariano42
@mariano42
Jul 20 2016 21:21
ah ok i doe see that when i invoke it
of course now theres a different traceback :)
checking troubleshooting first (trying to become self sufficient i swear)
mariano42
@mariano42
Jul 20 2016 21:40
@scottleibrand it looks like its bombing out on the determine-basal process because of enact/suggested.json. BG data is too old or clock set incorrectly. if i try to invoke enact/suggested.json i get the same error.
Scott Leibrand
@scottleibrand
Jul 20 2016 21:51
so check your times in glucose.json against date
mariano42
@mariano42
Jul 20 2016 22:02
@scottleibrand welp.. its safe to say that I still dont get how times work on the Pi when its not connected to wifi. I had to manually update the time and then i was able to run it
so i guess the question is... am i screwed without internet
Bog Dan
@bogdangorescu
Jul 20 2016 22:06
@Spazholio --- no one got back to me about the date thing. I figured it out by myself: solved it by fixing the date manually every time I want to receive a sugested.json report. It's not the most elegant solution but it works for now. Thank you!
Scott Leibrand
@scottleibrand
Jul 20 2016 22:07
@mariano42 check out the clockset.sh script in the oref0 repo
Paul Martin
@Spazholio
Jul 20 2016 22:07
@bogdangorescu Manually fixing WHICH time? I might have a solution for you.
Bog Dan
@bogdangorescu
Jul 20 2016 22:07
System (rpi) time.
Ben West
@bewest
Jul 20 2016 22:08
these computers need a hardware clock in order to keep time correctly
Bog Dan
@bogdangorescu
Jul 20 2016 22:08
Already tried a solution I saw here. It didn't work... (the one with a script to stop and restart ntp client)
Ben West
@bewest
Jul 20 2016 22:08
hardware clock has it's own battery that keeps time, even when the machine is off
without that, the time gets messed up every time it gets shut off
Bog Dan
@bogdangorescu
Jul 20 2016 22:08
RPi doesn;t have one
Scott Leibrand
@scottleibrand
Jul 20 2016 22:09
the clockset.sh script will set the pi clock based on the pump/cgm clock if it doesn't have ntp available
Bog Dan
@bogdangorescu
Jul 20 2016 22:10
Clockset.sh is already available in openaps ?
I don't have my rpi with me right now...so I cannot check for myself.
Scott Leibrand
@scottleibrand
Jul 20 2016 22:11
@bogdangorescu it's not run by default, but it is there in the repo if you need it
Ben West
@bewest
Jul 20 2016 22:11
it's part of the oref0package
Scott Leibrand
@scottleibrand
Jul 20 2016 22:11
not sure if it's included in the package or not: you might need to download the repo source
Bog Dan
@bogdangorescu
Jul 20 2016 22:12
Thanks, I wasn't aware of its existance. I will try & find it
So far, I got to the enact/suggested.json part... :)
mariano42
@mariano42
Jul 20 2016 22:14
@bewest its in Master?
mariano42
@mariano42
Jul 20 2016 22:32
@bewest thx
Paul Martin
@Spazholio
Jul 20 2016 23:17
Anyone ever seen this on their Edison? I’m trying to type via serial, and this is popping up as I’m typing:
[109348.082028] mmc0: Timeout waiting for hardware interrupt.
[109348.082099] mmc0: dump APIC RTE reg - L32: 0x00008982, H32: 0x03000000
[109348.098015] mmcblk0: error -110 sending stop command, original cmd response 0x0, card status 0x400e00
[109348.098134] mmcblk0: error -110 transferring data, sector 1369760, nr 8, cmd response 0x0, card status 0x0
[109348.118632] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.125821] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.133087] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.141945] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.150591] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.157731] mmcblk0: timed out sending r/w cmd command, card status 0x400e00
[109348.162397] end_request: I/O error, dev mmcblk0, sector 1369760
Should I just reboot? The whole “I/O error” thing on my main dev is a little concerning.
(I’m gonna have to get Pushover set up again - my loop’s been down for 4h with no indication of such since Dexcom data was there, my watchface didn’t care)
David Cintron
@loudestnoise
Jul 20 2016 23:21
Papertrail+Pushover is excellent for that
Paul Martin
@Spazholio
Jul 20 2016 23:21
I heard some issues with Papertrail. Like, it could cause issues if there was no network connection?
Ouch. sudo reboot won’t even run. Blech.
David Cintron
@loudestnoise
Jul 20 2016 23:21
Hmm, I never had any issues
Paul Martin
@Spazholio
Jul 20 2016 23:21
Ok.