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

25th
Jun 2016
Chris Oattes
@cjo20
Jun 25 2016 00:03
@scottleibrand It'd be good if you could double-check the if-statements towards the end of determine-basal file where I changed the rounding. I'm pretty sure that it does the right thing (perhaps with a small change in behaviour), but it'd be good to have someone else looking carefully. It does pass the tests.
Paul Martin
@Spazholio
Jun 25 2016 00:51
Silly question - how do I disable the usb0 interface in Yocto? I’m used to seeing a /etc/network/interfaces but it doesn’t exist...
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:31
I am wondering if something happened to the flash drive on my raspberrypi. When I logged in today, the tab autocomplete feature was not working and when I try to get the status of the pump, I get the following error. Has anyone else had this problem? openaps use med723 model
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/pkgresources/_init.py", line 719, in run_script
File "build/bdist.linux-armv7l/egg/pkgresources/_init.py", line 1504, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 92, in call
return self.method.selected(args)(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/init.py", line 31, in call
return self.method(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 46, in call
self.after_main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 70, in after_main
self.write_session_file(self.update_session_info(self.session))
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/medtronic.py", line 77, in write_session_file
json.dump(session, io)
IOError: [Errno 28] No space left on device
Chris Oattes
@cjo20
Jun 25 2016 01:37
what is the result of df -h
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:38
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 6.0G 6.0G 0 100% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6.3M 457M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p6 63M 20M 44M 32% /boot
tmpfs 93M 0 93M 0% /run/user/1000
Chris Oattes
@cjo20
Jun 25 2016 01:39
flash drive is (probably) fine, just full
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:41
but I don't understand how it could be full? I have just started getting this set up (a few days ago) and haven't really pulled in too much data
Chris Oattes
@cjo20
Jun 25 2016 01:42
not sure what will have happened to fill it up
du -sh ~
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:43
du -sh ~
11M /home/pi
Chris Oattes
@cjo20
Jun 25 2016 01:43
Not your home directory then
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:44
Given that I haven't gotten very far along in the process, I am wondering if I should do a wipe and fresh install of the OS?
Chris Oattes
@cjo20
Jun 25 2016 01:44
probably better to work out where it has gone, so you don't do the same thing again. My guess would be installing a package that had a lot of dependencies
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:46
that's a good point. I haven't installed anything extra beyond the openaps instructions. Not exactly sure where to start?
You know, the first time I used the raspberrypi I used the GUI, and then the next time I booted it up, it opened up in the command line. I also had to pull power because I lost communication, which is why I was wondering if the disk got corrupted
Chris Oattes
@cjo20
Jun 25 2016 01:49
I don't think that'd make it report the disk as being full like that
sorry, I need to go and get some sleep, hopefully someone else will be able to give you a hand (almost 3am here)
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:53
yeah, it doesn't really make sense to me either. Thank you for your help! I'll keep poking around
Scott Leibrand
@scottleibrand
Jun 25 2016 01:58
you probably need to expand the filesystem on the Pi with raspi-config
there's a step for that in the instructions
Ed Nykaza
@ed-nykaza
Jun 25 2016 01:59
Thank you. I'll check it out
Paul Martin
@Spazholio
Jun 25 2016 02:00
Did you expand your root FS when you first set up the Pi?
Ack. @scottleibrand beat me to it.
Ed Nykaza
@ed-nykaza
Jun 25 2016 02:07
I don't remember doing that, but it was a few days ago and I really can't remember. I am trying to expand the file system now, but it says" your partition layout is not currently supported by this tool. You are probably using NOOBS, in which case your root files yester is already expanded anyway"
Scott Leibrand
@scottleibrand
Jun 25 2016 02:12
in that case, you can see which packages use the most space by doing dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail
Ed Nykaza
@ed-nykaza
Jun 25 2016 02:14
44684 nuscratch
45673 scratch
47401 libpython3.4-dev
55920 pypy-upstream
75760 libreoffice-common
94821 libreoffice-core
96369 sonic-pi
112603 raspberrypi-bootloader
168481 oracle-java8-jdk
642352 wolfram-engine
Is there anything here that I shouldn't get rid of?
Ed Nykaza
@ed-nykaza
Jun 25 2016 02:20
Hmm...I just tried to get rid of wolfram-engine and got the following response. Any thoughts on what to try next? sudo apt-get purge wolfram-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
wolfram-engine*
0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
After this operation, 658 MB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: unrecoverable fatal error, aborting:
unable to fill /var/lib/dpkg/updates/tmp.i with padding: No space left on device
E: Sub-process /usr/bin/dpkg returned an error code (2)
Ed Nykaza
@ed-nykaza
Jun 25 2016 02:31
unfortunately, I have to sign off for the night, but if someone knows the best course of action I should take, please let me know. And thanks to everyone that has helped me thus far.
Paul Martin
@Spazholio
Jun 25 2016 02:36
I know you’re taking off, but whenever you get back, how large is the SD card?
Scott Leibrand
@scottleibrand
Jun 25 2016 02:39
i would go into /var/log/ and delete a few older log files to make enough room to start removing packages.
japrobo
@japrobo
Jun 25 2016 02:39
Hi there! We are watching our awesome loop closely, and we are seeing the temp basals produced by the loop in Nightscout in the pills. But we would like to see the temp basal rates change in the visual display too and we do not see that now. Are we missing something?
Andy Probolus
@AndyProbolus_twitter
Jun 25 2016 03:00

So, Nightscout is getting the right data, I can tell from the reports. https://dmtracker2.azurewebsites.net/report/index.html

But the basal rendering is showing a few hours behind.
https://dmtracker2.azurewebsites.net/

Is this a nightscout bug we should report?

Scott Leibrand
@scottleibrand
Jun 25 2016 03:00
Your timezones are probably wrong.
Paul Martin
@Spazholio
Jun 25 2016 03:26
@scottleibrand I’m playing with BT tethering on my iPhone and Yocto - I could have sworn you said that tethering via BT wouldn’t kill WiFi? Or did I misunderstand?
Scott Leibrand
@scottleibrand
Jun 25 2016 03:44
What are you seeing? I was saying it wouldn't shut off your phone's wifi.
Paul Martin
@Spazholio
Jun 25 2016 03:44
Oh, as soon as it tethers via BT, WiFi is disconnected.
Reconnecting it says it’s gonna drop all tethered users.
Scott Leibrand
@scottleibrand
Jun 25 2016 03:46
Oh, you're talking about the phone connecting to another wifi network. I was talking about the phone's personal hotspot wifi network.
BT tethering won't prevent you from using wifi hotspot.
but yeah, it will definitely knock you off the local wifi. But if you have local wifi, why isn't your Edison using it?
Paul Martin
@Spazholio
Jun 25 2016 03:47
Ahhhhh. Yeah, I want to tether internally via BT, but continue using WiFi for external access. That would have been nice, and useful. So of course that’s not how it works.
Sarah Hodson Grady
@shgrady
Jun 25 2016 03:47
I have never used tethering before, today my raspberrypi would not show up in fing as connecting to the wifi at work despite having the SSID and password, is BT tethering an option for this?
Paul Martin
@Spazholio
Jun 25 2016 03:47
Oh, it is. But more ways to connect is always good. =)
Scott Leibrand
@scottleibrand
Jun 25 2016 03:48
I would start BT tethering any time you can't connect via the available wifi network. It will kick your phone off that wifi network, but if it's not working anyway...
The other piece would be a HooToo or Edimax to share gogo and hotel wifi with your devices if you can't do phone hotspot because you're in the air or roaming.
Sarah Hodson Grady
@shgrady
Jun 25 2016 03:49
Ok, I totally misunderstood that, I thought tethering was like passing the wifi through to another device.
Paul Martin
@Spazholio
Jun 25 2016 03:49
I have my iPhone’s wifi hotspot set up as a connection-of-last-resort. But BT would be nice so I don’t have to remember to enable the Hotspot.
Hey, while I have you here - do you know how to disable the usb0 interface under Yocto? The files I’m used to doing it in aren’t present in Yocto...
Sarah Hodson Grady
@shgrady
Jun 25 2016 03:50
hotspots burn cellular, seems silly to run that all day from a basement...
Scott Leibrand
@scottleibrand
Jun 25 2016 03:50
@Spazholio exactly. Nope, I am still using ubilinux.
Paul Martin
@Spazholio
Jun 25 2016 03:50
Drat.
Scott Leibrand
@scottleibrand
Jun 25 2016 03:51
@shgrady the Hootoo/Edimax things will re-share a wifi hotspot for you. Not sure what scenario you're describing thought
*though
Sarah Hodson Grady
@shgrady
Jun 25 2016 03:53
sorry, to try to clarify, I kept scanning everything connecting to the WIFI at work, and my Pi would not appear, at home, sometimes the Pi is there, shows dead, I send a WAKE on LAN from the phone and then it appears and I can SSH into it, wondering if it was "asleep" when I arrived at work.....
shgrady @shgrady is grasping at straws
Scott Leibrand
@scottleibrand
Jun 25 2016 04:00
You might want to set up weaved
Paul Martin
@Spazholio
Jun 25 2016 04:03
Weaved is pretty amazing.
Dana Lewis
@danamlewis
Jun 25 2016 04:10
@japrobo yep, you're missing something (helpful answer, huh?) do you have basal display turned on in care portal settings? Should be default or icicle or something
@AndyProbolus_twitter you may want to delete your message with the urls...
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:14
Weaved will not help me correct, if port 22 traffic is blocked?
Andy Probolus
@AndyProbolus_twitter
Jun 25 2016 04:15
@scottleibrand we studied all of the timezone settings, confirmed they are correct. @danamlewis yes we have the basal display turned on, we like icicle :) We are seeing strange things, differences in the treatment times as they show up in nightscout depending on which browser we use. Honestly, after a few hours of searching we are thinking this is a nightscout bug. Will take some time tomorrow to take some screenshots. @danamlewis - can't delete the earlier post, option is greyed out?
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:17
@AndyProbolus_twitter the things I love about chrome, the things I hate about chrome... which browsers are sensical?
Andy Probolus
@AndyProbolus_twitter
Jun 25 2016 04:20
@shgrady none are showing the icicles correctly. In the reports, Safari is correct and Firefox is not..honestly, not sure about Chrome, lost track! Too tired now, gotta go to bed...
Dana Lewis
@danamlewis
Jun 25 2016 04:22
@AndyProbolus_twitter will it allow you to edit at least?
Andy Probolus
@AndyProbolus_twitter
Jun 25 2016 04:26
@danamlewis nope
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:29
open source so cool, nowhere do I hear a vendor saying "we only support IE," good luck, chrome is a cookie monster, kind of a Vivaldi/Tor fan myself @AndyProbolus_twitter
ryanchen26
@ryanchen26
Jun 25 2016 04:46
Setting up a 2nd RPi tonight. It's practically done but when I run the loop the wait-for-silence part just blasts through the forty '.' after Listening: and then breaks out of the loop. Does that mean it has detected the other Pi and is yielding?
Paul Martin
@Spazholio
Jun 25 2016 04:46
Yep.
ryanchen26
@ryanchen26
Jun 25 2016 04:46
okay, I guess I'm done then.
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:49
@Spazholio so I can select to use 80 instead?
port
80
Paul Martin
@Spazholio
Jun 25 2016 04:50
@scottleibrand Ok, I managed to compile battery-voltage under Ubilinux. Unsure if it’s reading the right info though. Going to do some testing. I have an 18650 LiPo connected to the J2 jumper, which is how I think most people do it.
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:51
I ask, because I can give the Security guy the MAC address and the ports I need and he can make me a little hole in the firewall, but I would have thought the device would appear, just not be accessible, so I am not sure which Weaved to solve?
Paul Martin
@Spazholio
Jun 25 2016 04:52
Weaved should reach from inside your network out. And then you can use the program to tunnel back in.
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:54
so of the four options (SSH 22, http 80, VNC 5901, etc) I want the http right?
Paul Martin
@Spazholio
Jun 25 2016 04:55
No, I think you still want 22.
It won’t reqire a hole punched in the firewall.
Sarah Hodson Grady
@shgrady
Jun 25 2016 04:56
my nightscout did, I could not use it at work until I had the non-traditional ports allowed
but I think I get what you mean now
Paul Martin
@Spazholio
Jun 25 2016 04:58
Yeah, it’s not quite the same as going out and accessing a webpage on a non-standard port.
Sarah Hodson Grady
@shgrady
Jun 25 2016 05:02
oh, that is bada** thanks
because I get paste back with windows terminal
Garrett Webb
@garetis
Jun 25 2016 17:35
When I update my monitor/pump alias, do I need to invoke both reports of monitor/clock.json and monitor/clock-zoned.json? Same thing for monitor/pumphistory.json and monitor/pumphistory-zoned.json -- do I need to do both, or just the -zoned.json ones?
Paul Martin
@Spazholio
Jun 25 2016 17:38
The -zoned ones NEED the other ones.
They just take the originals, and re-zone them.
Garrett Webb
@garetis
Jun 25 2016 17:40
Duh! Ok, thanks.
Matthias
@ceben80
Jun 25 2016 17:50
@danamlewis @scottleibrand @bewest
As you know the goal of the german looper community is to archive a 5,x A1C
Today I was driving by car and passed this shopping center.
I must stopped my car to take a picture :star2:
blob
Garrett Webb
@garetis
Jun 25 2016 17:51
I keep getting a no cgm data even though my dexcom receiver is connected to the pi. Does this make any sense to anyone? You can see right before I was able to call openaps monitor-cgm without any issues...
pi@raspberrypi:~/openaps2 $ openaps monitor-cgm
cgm://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pi@raspberrypi:~/openaps2 $ openaps loop
cgm://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
PREFLIGHT OK
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
cgm://JSON/iter_glucose/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_clock/monitor/clock.json
reporting monitor/clock.json
tz://JSON/clock/monitor/clock-zoned.json
reporting monitor/clock-zoned.json
pump://JSON/read_temp_basal/monitor/temp_basal.json
reporting monitor/temp_basal.json
pump://JSON/iter_pump_hours/monitor/pumphistory.json
reporting monitor/pumphistory.json
tz://JSON/clock/monitor/pumphistory-zoned.json
monitor/pumphistory-zoned.json  raised  'list' object has no attribute 'read'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 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 89, in main
    results = self.convert(inputs)
  File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/__init__.py", line 101, in convert
    program = self.rezone(parse(program)).isoformat( )
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 1164, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 552, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 671, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 188, in split
    return list(cls(s))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 184, in next
    return self.__next__()  # Python 2.x support
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 177, in __next__
    token = self.get_token()
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 93, in get_token
    nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'
No CGM data.
Ben West
@bewest
Jun 25 2016 17:55
the cgm part looks fine there
issue there is the monitor/pumphistory-zoned.json report
check the --date fields given to rezone and for typos in the input file names
Garrett Webb
@garetis
Jun 25 2016 17:56
Alrighty, thanks
Garrett Webb
@garetis
Jun 25 2016 18:09
@bewest Can you look at this quickly? What am I missing here?
pi@raspberrypi:~/openaps2 $ openaps report remove monitor/pumphistory-zoned.json
removed tz://JSON/clock/monitor/pumphistory-zoned.json
pi@raspberrypi:~/openaps2 $ openaps report add monitor/pumphistory-zoned.json JSON tz clock monitor/pumphistory.json
added tz://JSON/clock/monitor/pumphistory-zoned.json
pi@raspberrypi:~/openaps2 $ openaps report invoke monitor/pumphistory-zoned.json
tz://JSON/clock/monitor/pumphistory-zoned.json
monitor/pumphistory-zoned.json  raised  'list' object has no attribute 'read'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 719, in run_script
  File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1504, in run_script
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/uses/use.py", line 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 89, in main
    results = self.convert(inputs)
  File "/usr/local/lib/python2.7/dist-packages/openaps_contrib-0.0.15-py2.7.egg/openapscontrib/timezones/__init__.py", line 101, in convert
    program = self.rezone(parse(program)).isoformat( )
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 1164, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 552, in parse
    res, skipped_tokens = self._parse(timestr, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 671, in _parse
    l = _timelex.split(timestr)         # Splits the timestr into tokens
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 188, in split
    return list(cls(s))
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 184, in next
    return self.__next__()  # Python 2.x support
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 177, in __next__
    token = self.get_token()
  File "/usr/local/lib/python2.7/dist-packages/python_dateutil-2.5.3-py2.7.egg/dateutil/parser.py", line 93, in get_token
    nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'
Ben West
@bewest
Jun 25 2016 18:09
monitor/pumphistory-zoned.json has an issue
let's see openaps report show --ini monitor/pumphistory-zoned.json
Garrett Webb
@garetis
Jun 25 2016 18:11
pi@raspberrypi:~/openaps2 $ openaps report show --ini monitor/pumphistory-zoned.json
[report "monitor/pumphistory-zoned.json"]
use = clock
reporter = JSON
astimezone = False
date = None
adjust = missing
input = monitor/pumphistory.json
device = tz
timezone =
Ben West
@bewest
Jun 25 2016 18:11
ok, it's missing --date
hmm?
also wrong use
that needs to be rezone
Garrett Webb
@garetis
Jun 25 2016 18:12
I have been having date issues, the system time doesn't update by itself and I set it manually
Ben West
@bewest
Jun 25 2016 18:12
I would just do oref0 template mint reports medtronic-reports which will set up all the zoning automatically
that report right now is equivalent to openaps use tz clock monitor/pumphistory.json
it needs to be: openaps use rezone monitor/pumphistory.json
actually it might even need to be: openaps use tz rezone --date timestamp monitor/pumphistory.json
as for your system time, let's see date
it's possible to reconfigure using sudo dpkg-reconfigure tzdata or I think using sudo raspi-config
Brandon Faloona
@bfaloona
Jun 25 2016 18:14
@bewest When using template mint, are duplicate reports cleanly overwritten, or should they be deleted first?
Garrett Webb
@garetis
Jun 25 2016 18:14
I set it last night, but I had to use sudo date mmddhhss and I set it manually, so it's prety close
Ben West
@bewest
Jun 25 2016 18:15
they get overwritten through openaps import
Garrett Webb
@garetis
Jun 25 2016 18:15
pi@raspberrypi:~/openaps2 $ date
Sat 25 Jun 13:15:20 CDT 2016
Ben West
@bewest
Jun 25 2016 18:16
is CDT correct?
Garrett Webb
@garetis
Jun 25 2016 18:16
Yeah
Ben West
@bewest
Jun 25 2016 18:16
ok, if you're pump matches the time, it should be fine
Garrett Webb
@garetis
Jun 25 2016 18:17
Just as an aside, but when I do this it doens't update, and just stays stopped. I don't know if that matters or not...
sudo /etc/init.d/ntp stop
sudo ntpd -q -g
sudo /etc/init.d/ntp start
Ben West
@bewest
Jun 25 2016 18:17
what happens with this: openaps use tz rezone --date timestamp monitor/pumphistory.json
Garrett Webb
@garetis
Jun 25 2016 18:18
Big printout...
Ben West
@bewest
Jun 25 2016 18:18
yeah, so that's the right report you need to save
replace use with four words: report add $name JSON
Garrett Webb
@garetis
Jun 25 2016 18:19
Great, I'll give it a shot. Thank you.
Ben West
@bewest
Jun 25 2016 18:19
so openaps report add monitor/pumphistory-zoned.json JSON tz rezone --date timestamp monitor/pumphistory.json
Garrett Webb
@garetis
Jun 25 2016 18:19
Should I remove the old report?
Ben West
@bewest
Jun 25 2016 18:19
shouldn't matter, but sure
Garrett Webb
@garetis
Jun 25 2016 18:20
Ok
Scott Leibrand
@scottleibrand
Jun 25 2016 18:20
@ceben80 awesome! ;-)
Garrett Webb
@garetis
Jun 25 2016 18:22
Perfect, I think that's what it needed. Much obliged @bewest
ryanchen26
@ryanchen26
Jun 25 2016 18:29
Regarding multiple rigs (RPi) : what happens if you don't stagger the wait-for-silence? Won't the rigs already be staggered as a result of when the crontab is initiated (*/3 - every 3min, relative to the start ) ? Right now, as good as the TI stick is, we're constantly moving the original RPi around the house to keep the loop going. Now I have 2 more rigs ready to go to place around the house....I'm just wondering about the logistics keeping the loop going.
Paul Martin
@Spazholio
Jun 25 2016 18:32
Silly, basic linux question - what is “BusyBox”? I mean, I know what it is, but it’s not a shell, like bash (because I’ve tried to switch to bash under Yocto and it still doesn’t work) so…is it an “environment” or…?
Chris Oattes
@cjo20
Jun 25 2016 18:34
@ryanchen26 I think the */3 is every 3 minutes starting from the beginning of the hour, not boot time
ryanchen26
@ryanchen26
Jun 25 2016 18:37
@cjo20 If that were the case, would it make sense to have RPi #1 (/3), RPi #2 (/4), RPi #3 (*/5). Also would it be bad if multiple rigs were communicating with the pump at once? Would that overload it or something?
Eric
@ecc1
Jun 25 2016 18:38
Busybox is a single binary that, depending on what it's renamed to, performs a stripped-down version of that Unix command. So when it's linked to "cat", it does cat. When it's linked to "ps", it does ps. Etc. It's very common on embedded systems since it saves space. But it's pennywise/pound foolish on a system as resource-rich as an Edison, IMO.
If you just run "busybox", it will tell you all the commands it's capable of.
Chris Oattes
@cjo20
Jun 25 2016 18:39
@ryanchen26 that'd mean they update at different rates. Multiple rigs communicating with the pump at once would fail because the pump can only talk to one at a time. If you want to stagger them, you could do */3, 1-59/3 and 2-59/3 (I think)
Paul Martin
@Spazholio
Jun 25 2016 18:40
Hmm. Because I tried to run the w command, and said it wasn’t available in BusyBox. Which I knew, but didn’t realize it was running BB. Wonder if there’s a way to replace BB with the “proper” tools...
ryanchen26
@ryanchen26
Jun 25 2016 18:53
@cjo20 You're right, just confirmed it. */3 = every 3min, 1-59/3 = every 3min starting at 1, 2-59/3 = every 3min starting at 2. Thanks, now for some testing...
Scott Leibrand
@scottleibrand
Jun 25 2016 19:12
@ryanchen26 before wait-for-silence existed, we did the preflight checks and a 120 second sleep on fail. That worked ok.
But if you mmtune every loop, that will clobber any in progress pump comms unless you use my modified Ruby mmtune that does a quick check before a full tune.
Why don't you want to do wait-for-silence?
PieterGit
@PieterGit
Jun 25 2016 19:15
how can i force TI stick to use WW frequencies instead of US. i get:
$ openaps use pump mmtune
..
"setFreq": 916.63,
"usedDefault": true
PieterGit
@PieterGit
Jun 25 2016 19:21
i changed US to WW in mmeowlink/mmtune.py
def init(self, link, pumpserial, radio_locale='US'):
is there a cleaner way?
ryanchen26
@ryanchen26
Jun 25 2016 19:22
@scottleibrand okay, knowing the pump would get clobbered is good to know. Wait-for-silence sounds like a winner. Any recommendations for sleep time offsets if i have 3 raspberry Pi rigs in the house?
ryanchen26
@ryanchen26
Jun 25 2016 19:29
So i'll just crontab */3 for all of them and sleep 10, 20, 30 at the beginning of the wfs/preflight. Yeah?
Scott Leibrand
@scottleibrand
Jun 25 2016 19:31
Yeah, that is what I do with wait-for-silence. Without it, if the loops overlap at all, they'll clobber each other a lot.
mine are only single digit second sleeps, but 10-30s is also fine.
Just needs to be enough that they don't both detect silence at the exact same time.
ryanchen26
@ryanchen26
Jun 25 2016 19:32
Sounds good, I'll give it a shot.
Terri Lyman
@tatigger
Jun 25 2016 21:05
Hi everyone. I have 2 old pumps, a 507 and a 508. Does the rf ability of the 508 allow me to use it for diy pancreas?
Scott Leibrand
@scottleibrand
Jun 25 2016 21:46
It's worth a shot. It will have limited capabilities like the 512, but might work. Might require some software changes to work though.
Ben West
@bewest
Jun 25 2016 22:00
507 is too old, I believe, I've never seen one
not sure 508 will work, it'd be interesting to see what happens... I've never had access to one, I don't think the read history stuff will work the same way
Terri Lyman
@tatigger
Jun 25 2016 22:09
These are not even my first pumps. Ha, Scott I sent you my old newer pump. So very glad this whole thing is the result. I think I will give the 508 a try. Can't hurt. : ) I will start collecting the other components.
Dana Lewis
@danamlewis
Jun 25 2016 23:05
@tatigger :) have been very thankful for that!
Can you pm me on here?