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

13th
Aug 2015
Scott Leibrand
@scottleibrand
Aug 13 2015 09:30
"Is" - despite its age, that code is still what I'm using.
diabeticgonewild
@diabeticgonewild
Aug 13 2015 15:46
Talking to people with my very rare disease sucks! Somebody is like FML I couldn't get through college and she is like telling me Maybe college isn't for me. I'm not lowering my standards because I was dealt a bad hand in life.
It's abusive
Scott Leibrand
@scottleibrand
Aug 13 2015 17:34
I don't think it's about lowering your standards. College is a very regimented and prescriptive path toward the actual goal, which is accomplishing something in the real world. Given that you can actually accomplish things, but your medical issues make it difficult to do so on their terms, you might want to focus on learning practical skills that you can apply directly. Have you looked into any of the "coder boot camp" options?
Jason Calabrese
@jasoncalabrese
Aug 13 2015 17:49
I never liked school, a bunch a time spent pretending to do things
Learn more doing something for real
Scott Leibrand
@scottleibrand
Aug 13 2015 17:51
yeah
so, I just figured out why my openaps stops working when offline: the Pi doesn't have a hardware clock, so it periodically writes the current time to a file, and then a "fake-hwclock" sets the current time to that when it boots up (until it can talk to ntp). so my "is the dexcom time more than 5 minutes in the future" check fails if the Pi is unplugged for more than 5 minutes from the last write of the fake-hwclock time. :)
will need to figure out some better way of determining if the Pi is online and resetting the Pi's time based on the pump or dexcom time.
Jason Calabrese
@jasoncalabrese
Aug 13 2015 17:57
surprising it doesn't have a hardware clock
kenstack
@kenstack
Aug 13 2015 17:58
for anyone using the pi offline you should definately buy a real time clock breakout - they are under $10 and have a button battery - I have this one but there are cheaper options - I think this one is $9
Jason Calabrese
@jasoncalabrese
Aug 13 2015 17:59
just did a search and found that same link
kenstack
@kenstack
Aug 13 2015 17:59
you can get stuff off ebay for under $5
I bought this one a while back - I suualyl pay a but more and buy from adafruit or sparkfun so I dont waste hours debugging sw version issues or something
Jason Calabrese
@jasoncalabrese
Aug 13 2015 18:01
I'm still hoping to skip the Pi and use the RileyLink from android, looks like there has been some good progress there, planning to jump in once the lower level stuff is out of the way
diabeticgonewild
@diabeticgonewild
Aug 13 2015 18:35
@scottleibrand you need the fake-hwclock package to keep it from resetting
As for me, I love school and if you saw the conversation you would have thought it was inappropriate too.
But fake-hwclock I think freezes the internal time of the Pi
diabeticgonewild
@diabeticgonewild
Aug 13 2015 18:40
Actually this looks like the next best solution other than a RTC chip. http://www.dreamincode.net/forums/blog/62/entry-4345-raspberry-pis-internal-clock/
Well it's part of a solution, I will try to work on it
diabeticgonewild
@diabeticgonewild
Aug 13 2015 18:53
I need to get OpenAPS running so I can work on these things and help out.
and no I haven't looked into code schools but maybe I should
diabeticgonewild
@diabeticgonewild
Aug 13 2015 19:22
Look today I will make it a priority to 1. Try to get OpenAPS running 2. update the README
Darrell Wright
@beached
Aug 13 2015 21:28
why not something like ntpdate -b pool.ntp.org on boot after network
Scott Leibrand
@scottleibrand
Aug 13 2015 22:06
Because I'm making it work without network. It already does that as soon as it connects.
We're in Rome, and the available networks for our T-Mobile phone to roam onto don't support hotspotting. And tonight's hotel wifi has a captive portal that only allows port 80 through, so OpenAPS has to work completely offline.
Got it working by disabling the BG-too-old check. In future I'll probably have it check for CGM time or pump time that's ahead of system click, and set the system clock to the device clock when that happens.
That way we can still detect stale data.
Scott Leibrand
@scottleibrand
Aug 13 2015 22:13
Might want to figure out how to only do that when NTP isn't working though.
Jason Calabrese
@jasoncalabrese
Aug 13 2015 22:36
trying to think of a "when in Rome..." joke for that