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

23rd
Feb 2017
Dana Lewis
@danamlewis
Feb 23 2017 00:12
iPhone
tepidjuice
@tepidjuice
Feb 23 2017 01:00
Hi Everyone. I posted this in the nightscout forum but meant to post here. I need to download my latest bgl from nightscout every 5 mins to a mac is there an automated way to do this?
Terri Lyman
@tatigger
Feb 23 2017 01:25
I thought so, @danamlewis from what I was reading.
When looking at my sensitivity I hit the limit at 54, when it is set at 65. Is that the lower limit or upper limit? Because I need to adjust it a little.
@tepidjuice I am not sure what you are asking. Do you want to view your BG through your Nightsout Website? That updates automatically with the uploads from your Dex.
tepidjuice
@tepidjuice
Feb 23 2017 01:32
@tatigger No. I'm testing using a filter to get rid of large disturbances e.g. bolusing so I can detect fluctuations in my bgl due to basal changes. Unfortunately the filter is coded in matlab which I have on a mac. So while I'm testing the filter I need to get my bgl onto the mac somehow. I thought the easiest way to do this was to use my current xdrip->android->nightscout set up but I'm not sure what I'd run on a mac to make get my latest bgl from nightscout every 5 mins.
Maybe curl /nightscout_host/api/v1/entries ?
Terri Lyman
@tatigger
Feb 23 2017 01:33
How does your data get into Nightscout?
tepidjuice
@tepidjuice
Feb 23 2017 01:33
xdrip+ uploader phone
Terri Lyman
@tatigger
Feb 23 2017 01:34
Are you also in that Room here? It is jamorham/xDrip-plus, and someone there may know how to do that easily. I am a programming newB, so I won't be much help with that.
I am setting up a second Edison, if I just copy the crontab file from the first Edison to the second Edison, will that enact the cron to run, or do I need to re-run the script
dan lightner
@danimaniac
Feb 23 2017 01:44
@thebookins @peterfulvi ...I also added a "power button" to the lid so I can cycle power on/off easily (not quite finished).
Scott Leibrand
@scottleibrand
Feb 23 2017 01:53
@tepidjuice Yeah, hitting the NS API is probably easiest for that.
@tatigger the 1.2x max is in the "more resistant" direction. The 0.7x min is in the "more sensitive" direction.
Terri Lyman
@tatigger
Feb 23 2017 01:55
Thanks, that helps! LOL, like the graph of basal rates, I could see it in both directions @scottleibrand
tepidjuice
@tepidjuice
Feb 23 2017 01:58
@scottleibrand @tatigger yes. I've got a script up and running. Thanks for all your help. :)
Scott Leibrand
@scottleibrand
Feb 23 2017 02:00
@tatigger Yeah, I kept confusing myself for awhile, until I started mentally framing it that way. :smile:
Terri Lyman
@tatigger
Feb 23 2017 02:01
@scottleibrand I see that I can't just copy and paste the crontab. So answered my own question
peterfulvi
@peterfulvi
Feb 23 2017 03:03
Still hitting the brick wall with the tethering. commented out my wifi.I unpaired the phone and paired it again. tethered it all looked great, SSH'D into my phone using the bluetooths ip address. Unplugged my rig from my laptop walked in the other room, turned my phone back on, ssh'd back into it and i get a connection failed error again, i dont know what im doing wrong, it works the first time then doesn't work again. Any suggestions?
peterfulvi
@peterfulvi
Feb 23 2017 03:50
Nothing there any more
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16600 (16.2 KiB)  TX bytes:16600 (16.2 KiB)

usb0      Link encap:Ethernet  HWaddr 02:00:86:6a:57:d0
          inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 90:b6:86:10:dd:73
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:541 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:185022 (180.6 KiB)
kenstack
@kenstack
Feb 23 2017 03:51
@peterfulvi my advice would be to pipe the output of oref0-online to a text file so you can see what's happening. Use >> so it keeps appending every time it's run - that helped me a lot when I was debugging
peterfulvi
@peterfulvi
Feb 23 2017 03:55
How do you do that. Is that when you output a report to a .Txt. Where can i find it?
peterfulvi
@peterfulvi
Feb 23 2017 04:05
I found oref0.sh and ran it this was my output
Starting oref0-online.
At Fri Dec 31 20:39:20 EST 1999 my local IP is:
At Fri Dec 31 20:39:20 EST 1999, my wifi network name is off/any, and my public                                                                                                              IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.serviceWarning: Unit file of net                                                                                                             working.service changed on disk, 'systemctl daemon-reload' recommended.
.
Starting networking (via systemctl): networking.serviceWarning: Unit file of net                                                                                                             working.service changed on disk, 'systemctl daemon-reload' recommended.
.
and getting new wlan0 IP

At Fri Dec 31 20:39:49 EST 1999, my wifi network name is off/any, and my public IP is:

At Fri Dec 31 20:39:49 EST 1999, my wifi network name is off/any, and my public IP is: Finished oref0-online.
Tim Street
@tim2000s
Feb 23 2017 06:24
@peterfulvi It's not trying to bring up the Bluetooth connection in your oref0-online, which is why your tethering isn't working
@tatigger I know that when using the mongo upload in xDrip, it backfilled old data. I'm not sure whether xDrip+ has the same facility. I wouldn't be surprised if it did though.
Tim Street
@tim2000s
Feb 23 2017 06:30
On the Android phone/home hotspot question - oref0-online should manage that one for you. I've been running edison to BT on Android and switching to home data network without any issues. The other thing that seems to work quite well is the Android phone acting as a "relay" connecting to a wifi network the phone knows but the Edison doesn't and then you piggy-back on the connection via Bluetooth.
peterfulvi
@peterfulvi
Feb 23 2017 11:24

Sohow could i get around this issue? Is there a script i could enter, should i rerun my setup, here is whatmy oref0-online.sh looks like


    ps aux | grep -v grep | grep -q "dhclient wlan0" && sudo killall dhclient
    sudo dhclient wlan0 -r
    sudo dhclient wlan0
    echo
    echo -n "At $(date), my wifi network name is "
    iwconfig 2>&1 | grep ESSID | awk -F : '{print $2}' | perl -pe 's/  \n//'
    echo -n ", and my public IP is: "
    # loop over as many MACs as are provided as arguments
    if ! curl -s -m 15 icanhazip.com | egrep "^[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]$"; then
        echo
        for MAC; do
            echo -n "At $(date) my public IP is: "
            if ! curl -s -m 15 icanhazip.com | egrep "^[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]\.[12]*[0-9]*[0-9]$"; then
                echo; echo -n "Error, connecting BT to $MAC"
                oref0-bluetoothup
                sudo bt-pan client $MAC
                echo -n ", getting bnep0 IP"
                sudo dhclient bnep0
                # if we couldn't reach the Internet over wifi, but we have a bnep0 IP, release the wifi IP/route
                if ( ifconfig | grep -A1 wlan0 | grep -q "inet addr" ) && ( ifconfig | grep -A1 bnep0 | grep -q "inet addr" ); then
                    echo -n " and releasing wifi IP"
                    sudo dhclient wlan0 -r
                fi
                echo
            fi
        done
        echo
    fi
    echo -n "At $(date), my wifi network name is "
    iwconfig 2>&1 | grep ESSID | awk -F : '{print $2}' | perl -pe 's/  \n//'
    echo -n ", and my public IP is: "
    curl -s -m 15 icanhazip.com
fi
# restart avahi every minute to keep mDNS working properly
#/etc/init.d/avahi-daemon restart
echo Finished oref0-online.

Anyhelp would be great

Tim Street
@tim2000s
Feb 23 2017 11:32
Have you done all of the steps in the Bluetooth walk through including the timed disabling of wlan0 step?
andyhandy
@andyhandy
Feb 23 2017 11:37
HI All. Can i please confirm that if i have openaps running i don't need to enter BG for mealtime boluses on my son's pump? I have advanced meal assist turned on. Until now, I have only been using openaps overnight. Thanks !!
hilarykoch
@hilarykoch
Feb 23 2017 12:18
@andyhandy You do not need to enter BG, but of course still carbs. Bolus through the Bolus Wizard menu, leave BG blank, enter carbs and finish all screens to bolus for meal. If you back out, after entering carbs, but don't bolus, be aware carbs will still be entered and OpenAPS will expect them. In some cases, entering carbs, backing out (say to check on something), and then entering them again can lead to double carb entry.
peterfulvi
@peterfulvi
Feb 23 2017 12:31
@tim2000s I followed the directions about BT tethering for the Edison in the docs. Before i did the setup i commented out my WiFi network in the wpa_supplicant.conf then i did the tethering process. Is there another step i should take im not aware of?
Tim Street
@tim2000s
Feb 23 2017 12:35
There's a step after that in the docs.
Testing that bt starts up automatically.
peterfulvi
@peterfulvi
Feb 23 2017 12:52
Where? is it in the tethering for the Edison or somewhere else?
Actually i never did the timed disabling beacause my network was already disabled before i started.
peterfulvi
@peterfulvi
Feb 23 2017 13:04
That's were my hang up is after I do everything it's tethered supposedly I have the wifi shut off on my phone I'm able to tunnel into it soon as I turn my phone off and on again and make sure the tethering is on it says there's no connection then when I look on my rig even with wlan disabled bnep0 is not there any more
Tim Street
@tim2000s
Feb 23 2017 14:01
What does your syslog say at that time?
peterfulvi
@peterfulvi
Feb 23 2017 14:03
@hilarykoch so I don't have to enter BG just carbs so will my pump just make correctional dosages and the loop will handle the rest ?
hilarykoch
@hilarykoch
Feb 23 2017 14:22
@peterfulvi Just carbs because OpenAPS is handling any corrections (high and low) so entering a BG and using corrections from the pump would be like two corrections. (One from OpenAPS and one from pump) So enter carbs and give insulin based on carb ratios and let the system handle the rest. But important to bolus through bolus wizard menu. As I understand it there can be problems using that "B" button for bolusing, though I can't remember why. If you need to enter a BG, My understanding is to enter a fake BG that is within range. But for record keeping purposes, we are only entering the BG if it happens around calibration/eating times and BG is within range.
peterfulvi
@peterfulvi
Feb 23 2017 14:26
@tim2000s Where is the syslog?
@hilarykoch so i still enter my bg for calibration only? What f its not in range do i refrain?
peterfulvi
@peterfulvi
Feb 23 2017 14:34
So should i enter my ISF in the boulus wizard or just openaps?
hilarykoch
@hilarykoch
Feb 23 2017 14:35
@peterfulvi You only need to calibrate your CGM. You actually don't need to enter any BG in the pump. We do only if it just happens to coincide with eating and because our meter sends it automatically to the pump. If we were to calibrate and t weren't in range but was time to eat, we'd make sure it didn't put it in the pump.
ISF is in Bolus Wizard setup. All of your settings for carb ratio, range, and ISF are there. And then basals of course in basal menu.
Tim Street
@tim2000s
Feb 23 2017 14:44
/var/log/syslog @peterfulvi
Tail it like you would pump-loop
peterfulvi
@peterfulvi
Feb 23 2017 14:47
@tim2000s I will do this as soon as I have a chance
@hilarykoch so usually my Bg is off 10-20points so I calibrate every time I check which is before meals. So I should just enter it through the sensor menu then enter my carbs through the wizard correct?
hilarykoch
@hilarykoch
Feb 23 2017 14:55
Yes. But my understanding is over calibration of Dex can actually make it less accurate. We typically only test and calibrate twice a day. Once in the morning and once before dinner or bedtime. We otherwise no longer test BGs other than these times for calibration or if we suspected that the calibration was really far off. OpenAPS works from the values in Dex. @peterfulvi
peterfulvi
@peterfulvi
Feb 23 2017 15:12
Ok I'm starting to I understand thanks
Chris Oattes
@cjo20
Feb 23 2017 15:29
offtopic, but (probably) interesting to tech-minded people: https://shattered.it/
peterfulvi
@peterfulvi
Feb 23 2017 15:41
@tim2000s Hre is a shot of it:
```
Feb 23 10:35:01 localhost CRON[15854]: (root) CMD (cd /root/myopenaps && ( ps au x | grep -v grep | grep -q 'openaps pump-loop' || openaps pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log)
Feb 23 10:35:01 localhost CRON[15855]: (root) CMD (ps aux | grep -v grep | grep -q "oref0-online " || oref0-online >> /var/log/openaps/network.log)
Feb 23 10:35:01 localhost CRON[15865]: (root) CMD (sudo wpa_cli scan)
Feb 23 10:35:01 localhost CRON[15864]: (root) CMD (cd /root/myopenaps && oref0-r eset-git)
Feb 23 10:35:01 localhost CRON[15866]: (root) CMD (cd /root/myopenaps && oref0-t runcate-git-history)
Feb 23 10:35:01 localhost CRON[15871]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps ns-loop' || openaps ns-loop | tee -a /var/log/ openaps/ns-loop.log)
Feb 23 10:35:01 localhost CRON[15872]: (root) CMD (cd /root/myopenaps && ps aux | grep -v grep | grep -q 'openaps autosens' || openaps autosens | tee -a /var/lo g/openaps/autosens-loop.log)
Feb 23 10:35:01 localhost CRON[15867]: (root) CMD (killall -g --older-than 15m o penaps)
Feb 23 10:35:01 localhost CRON[15852]: (CRON) info (No MTA installed, discarding output)
Feb 23 10:35:02 localhost CRON[15851]: (CRON) info (No MTA installed, discarding output)
Feb 23 10:35:02 localhost CRON[15850]: (CRON) info (No MTA installed, discarding output)
Feb 23 10:35:03 localhost CRON[15847]: (CRON) info (No MTA installed, discarding output)
Feb 23 10:35:04 localhost CRON[15849]: (CRON) info (No MTA installed, discarding output)
Feb 23 10:35:09 localhost libmraa[15988]: libmraa version v1.5.1-20-g4472ff1 initialised by user 'root' with EUID 0
Feb 23 10:35:09 localhost libmraa[15988]: gpio214: init: Failed to write to 'exp
kenstack
@kenstack
Feb 23 2017 15:53
@peterfulvi check out what is in /var/log/openaps/network.log looks like you are already piping the output
Tim Street
@tim2000s
Feb 23 2017 15:59
If the worst comes to the worst, start from scratch & reflash the Edison. That usually works.
peterfulvi
@peterfulvi
Feb 23 2017 16:03
@kenstack @tim2000s This is my networklog
At Thu Feb 23 11:01:02 EST 2017, my wifi network name is "BOJWS", and my public                                                                                                                                                              IP is: 74.92.27.60
Finished oref0-online.

Starting oref0-online.
At Thu Feb 23 11:02:01 EST 2017 my local IP is: 192.168.4.207

At Thu Feb 23 11:02:01 EST 2017, my wifi network name is "BOJWS", and my public                                                                                                                                                              IP is: 74.92.27.60
Finished oref0-online.
Scott Leibrand
@scottleibrand
Feb 23 2017 18:00
@peterfulvi looks like that output is truncated and doesn't show the public IP, by it looks like your wifi is working, so it has no reason to switch to Bluetooth. I would connect your Edison to your laptop with a microUSB cable and log in with that, and then perform the steps in the docs to force it to switch off wifi, and see what the network.log shows. Or, if you don't want to do it in real time, go back and look at the network.log with less and find the timestamps when you disabled wifi to see what it was doing. #
ejoe132
@ejoe132
Feb 23 2017 18:10
Looking for advice on 3d printed boxes for edison/explorer rigs. Found some Id like to modify(make smaller) on tinkercad, but Ive noticed most designs have holes for charging and vents. How important is this for the edison to have open air? I want a box that seals and I plan to put a gasket around the opening to make it water resistant, as in resistant to spills and splashes and possible help in the event of a submersion. Mine gets pretty hot but how important is ventilation?
peterfulvi
@peterfulvi
Feb 23 2017 19:41
@scottleibrand that's what I did I commented out my network in wpa supplicant then connected serial port and did the tethering process like I said it worked the first time but the second time it said in my terminal program it could not find the network connection then I went to check the ifcpnfig benep0 and my by IP address dissapeared. When I get a chance I will have a look st the network logs from last night thanks
peterfulvi
@peterfulvi
Feb 23 2017 20:09
@scottleibrand This is what i found in the logs then it cycles to december
At Wed Feb 22 21:22:32 EST 2017, my wifi network name is off/any, and my public IP is:

At Wed Feb 22 21:22:32 EST 2017, my wifi network name is off/any, and my public IP is: Finished oref0-online.

Starting oref0-online.
At Wed Feb 22 21:23:02 EST 2017 my local IP is:
At Wed Feb 22 21:23:02 EST 2017, my wifi network name is off/any, and my public IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.service.
Starting networking (via systemctl): networking.service.
and getting new wlan0 IP

At Wed Feb 22 21:23:31 EST 2017, my wifi network name is off/any, and my public IP is:

At Wed Feb 22 21:23:31 EST 2017, my wifi network name is off/any, and my public IP is: Finished oref0-online.

Starting oref0-online.
At Fri Dec 31 19:01:01 EST 1999 my local IP is:
At Fri Dec 31 19:01:01 EST 1999, my wifi network name is off/any, and my public IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.service.
Starting networking (via systemctl): networking.service.
and getting new wlan0 IP

At Fri Dec 31 19:01:32 EST 1999, my wifi network name is off/any, and my public IP is:

At Fri Dec 31 19:01:32 EST 1999, my wifi network name is off/any, and my public IP is: Finished oref0-online.

Starting oref0-online.
At Fri Dec 31 19:02:02 EST 1999 my local IP is:
At Fri Dec 31 19:02:02 EST 1999, my wifi network name is off/any, and my public IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.service.
Starting networking (via systemctl): networking.service.
and getting new wlan0 IP

At Fri Dec 31 19:02:31 EST 1999, my wifi network name is off/any, and my public IP is:

At Fri Dec 31 19:02:31 EST 1999, my wifi network name is off/any, and my public IP is: Finished oref0-online.

Starting oref0-online.
At Fri Dec 31 19:03:02 EST 1999 my local IP is:
At Fri Dec 31 19:03:02 EST 1999, my wifi network name is off/any, and my public IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.service.
Starting networking (via systemctl): networking.service.
and getting new wlan0 IP

At Fri Dec 31 19:03:31 EST 1999, my wifi network name is off/any, and my public IP is:

At Fri Dec 31 19:03:31 EST 1999, my wifi network name is off/any, and my public IP is: Finished oref0-online.

Starting oref0-online.
At Fri Dec 31 19:04:02 EST 1999 my local IP is:
At Fri Dec 31 19:04:02 EST 1999, my wifi network name is off/any, and my public IP is:
Error, cycling networking
Stopping networking (via systemctl): networking.service.
zaheria985
@zaheria985
Feb 23 2017 21:20
I am beginning to think the sellers on Medwow simply aren't real - I email them and never get responses.
peterfulvi
@peterfulvi
Feb 23 2017 21:45
I came to the same conclusions, the fact is they dont update there website. I called a couple people and they were annoyed saying the ad is about 2 years old. Slack channel is the best for me.
zaheria985
@zaheria985
Feb 23 2017 21:47
Slack channel?
dan lightner
@danimaniac
Feb 23 2017 21:50

@ejoe132 In my humble, but always accurate, opinion heat and water are an electrical component's worst enemy. We generally have to decide which is more likely to damage our own rig. Everyone lives a different lifestyle and subjects their rig to varying degrees of abuse. I am choosing to design my case with vents to address the heat. I intend to keep my rig in my pocket all day so water is less likely to cause damage than heat. Some will tell you that heat is not really a problem and they may be correct, but I have no control over how much heat the rig generates from normal operation. I have some control over exposure to water. I think it is either or, but not both. It would prove difficult on a practical level to design a case that protects from both. My 2 cents.

You can see my case design at the following link. I still have some small revisions to make (I don't even have my Explorer Board yet...still on backorder) prior to printing. Feel free to fork and revise or contribute to my design with PR's. Either way, show us your case when designing it. https://github.com/danimaniac/OpenAPS-Explorer-Board-Edison-vented-case

zaheria985
@zaheria985
Feb 23 2017 22:20
Your case looks pretty cool.
Darrell Wright
@beached
Feb 23 2017 22:47
Heat is only a problem if you go above spec
nice case. i like the rounded corners a lot