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

23rd
Sep 2018
rsilvers129
@rsilvers129
Sep 23 2018 04:38
What do I have to do to make the apple watch app show up on my watch? My watch was paired before the build.
Scott Leibrand
@scottleibrand
Sep 23 2018 06:02
You might want to ask that in Loopkit/Loop?
Martin Haeberli
@mhaeberli
Sep 23 2018 06:08
Error: The module '/root/src/openaps-menu/node_modules/i2c-bus/build/Release/i2c.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
(trying to install dev on an rpi / explorer hat)
PieterGit
@PieterGit
Sep 23 2018 09:00
@ggirling can you confirm that your rig has internet connection, e.g. by using ping google.com
GMG
@ggirling
Sep 23 2018 09:15
@PieterGit Sorry - I was editing my summary of lamentations when Terminal stopped working, so I've deleted the note and am rebooting my mac. Will be right back (and will try to ping google). Thanks!
GMG
@ggirling
Sep 23 2018 09:22
Hmm. Confused (not hard with me). When I ping, it responds - it's hitting the servers and something comes back. But when I try to connect to my Edison using SSH (which worked yesterday) it no longer works.
I don't know if it makes a difference, but since we last exchanged messages, I did delete the contents within devicestatus in mLab.
Now I'm totally confused: OpenAPS -- after being offline all day -- is back online.
I'm stumped.
tzachi-dar
@tzachi-dar
Sep 23 2018 14:01
What is the most mainstream hw for building an open aps rig this days? (I intend to use it only at nights, so I don't care about batteries and so). Is the community moving to raspberry pi, or is eddison still used for new hw development?
Stefan Hubmer
@stefanhubmer
Sep 23 2018 15:17
Hello, I'm completely new to gitter, was suggested to ask here about my problem(s).
Original FB post with problems: https://www.facebook.com/groups/TheLoopedGroup/permalink/2123491197867535/
Edison/Explorer user with MDT
Short version: "Error: pump clock refresh error / mismatch" advice on fb: change battery, done that, no change.
Already tried: rerun script, changed Explorer block, disconnected my antenna, unplugged Edison from board and plugged it back in, flashed the radio chip, deleted history in mlab, changed battery.
I don't know how to continue troubleshooting
Every advice is appreciated :)
Scott Leibrand
@scottleibrand
Sep 23 2018 17:16
@tzachi-dar the Pi with EH is good if you don’t care about battery life. The Edison loops a bit faster and lasts longer on a battery, but is hard to find now that intel discontinued it.
@stefanhubmer does it always succeed on the initial refresh and fail on clock set? Or does it often fail earlier?
Looks like signal strength is only -94, which is way too low for 20cm away.
Check that the antenna is properly seated on the EB, and reseat the Edison on the EB.
Do you have another pump (even non-loopable Minimed) or another EB/EH to test what is the source of the weak signal?
Also, can you verify the full pump model number?
Stefan Hubmer
@stefanhubmer
Sep 23 2018 17:23
Yes, I have 2 Explorer boards, 4 Edisons, 1 antenna and 3 loopable pumps. But didn't know where to start - will do this now
full pump model number? eg MMT-722LWWL?
Scott Leibrand
@scottleibrand
Sep 23 2018 17:25
That’s good. We may need to pair different EBs with different pumps to see which combinations give us bad rssi. But first do the reseat steps and check model number.
K
That confirms WW and 868MHz is correct.
Also verify from the logs if the failures are at somewhat random different times in the loop, always followed by an mmtune with a -80 or worse rssi, or if it always fails in the same place.
Stefan Hubmer
@stefanhubmer
Sep 23 2018 17:37
Put my main Edison onto the other Explorer board, atm it seems to work out, 10 loops, 6 successful. Will watch for the next 5 loops to get a better overview and report
Scott Leibrand
@scottleibrand
Sep 23 2018 17:38
Cool. Also note the rssi when it mmtunes
Stefan Hubmer
@stefanhubmer
Sep 23 2018 17:44
13 loops, 7 successful
last mmtune: 5, -58
Eric
@ecc1
Sep 23 2018 17:55
@tzachi-dar I'd add that if you don't need a portable rig, you can use the Explorer HAT with one of the beefier Pis, not just a Pi Zero W. You can always move or clone the SD card to a Zero if you eventually make it your mobile rig
Stefan Hubmer
@stefanhubmer
Sep 23 2018 17:57
which part is the rssi? eg last two mmtunes:
868.510, 5, -58
868.582, 4, -79
Eric
@ecc1
Sep 23 2018 18:06
those negative numbers are the RSSI (in dbM). So -58 is a stronger signal than -79.
Stefan Hubmer
@stefanhubmer
Sep 23 2018 18:11

Thanks for the info!
So compared my boards, only did two mmtunes
Original board:
868.510, 1, -94 (with antenna)
868.462, 5, -70 (without antenna)

BackUp board:
mmtune: 868.510, 5, -58 (without antenna)
mmtune: 868.582, 4, -79 (without antenna)

Will go for another pump now and check the tuning

Eric
@ecc1
Sep 23 2018 18:13
What kind of antenna are you using? I'd double-check that its length is correct for the 868MHz band (but even if it's a bit off, I don't understand why it gives worse performance). Also double-check the u.FL connection -- those aren't very mechanically secure and are only rated for a few dozen connect/disconnect cycles
Stefan Hubmer
@stefanhubmer
Sep 23 2018 18:14
How to check the u.FL connection? I disconnected and connected the antenna a lot of times in the last days (didn't knew that)
Tracey Berg-Fulton
@BergFulton
Sep 23 2018 18:29

Hey friends, I'm trying to cook up a Siri shortcut that would query loop status from Nightscout, with the ultimate goal of being to go "Hey Siri, am I looping?" and have it report back the values from the OpenAPS pill. ("Last loop was 1 min ago") Another developer set up a siri shortcut to query YourURLHere.herokuapp.com/api/v1/entries.json and report back blood glucose levels & trend, and the assembly of it in iOS looks fairly straightforward, but I think I'm not getting the right API endpoint

Should I be setting it up to hit... YourURLHere.herokuapp.com/api/v1/status.json ? Or is there a different set of data I should be getting?

iValkou
@iValkou
Sep 23 2018 19:00
try /api/v2/properties/openaps
Stefan Hubmer
@stefanhubmer
Sep 23 2018 19:31

Used a backup pump (715-WW), same behaviour..
868.366, 5, -79
868.366, 5, -68

Back to my main pump, without antenna 868.558, 5, -85
So neither the pump or the board is the source of problems? My energy for troubleshooting today is at an end, 7 hours are way too much. Will go on tomorrow and dig in deeper, have to find a solution before thursday (vacation) - will ask if I have new infos to share!

the app says go to this page keeps reloading t
the same page keeps forwarding the browser to itself
Scott Leibrand
@scottleibrand
Sep 23 2018 20:24
@stefanhubmer you should be able to consistently get better than -60 with pump next to rig. Try another pump if you have one?
@BergFulton are you using Shortcuts app (formerly Workflow)? I think @iValkou is on the right track. That endpoint does some preprocessing of v1/devicestatus.json that looks like it will simplify your recipe on iOS.
We just last night set up shortcuts to let us bypass IFTTT and post carbs and TTs directly to NS, so LMK if you get stuck.
Scott Leibrand
@scottleibrand
Sep 23 2018 20:30
Also using Dictate action to allow things like “hey Siri, enter carbs. 15.”
I haven’t been able to figure out how to do voice entry of numbers less than 11 though, because Siri likes to write them as English words instead of numerals.
So what I’m doing so far is checking that the calculation of the entered number +0 is greater than zero, and if not I am popping up a input window to have the user type the number.
iValkou
@iValkou
Sep 23 2018 21:15
I have two Pi + Explorer Hat based rigs and one Edison + Explorer Board rig. They all tethered with Android phone via Bluetooth. Edison works well via WiFi and Bluetooth both, but Pi doesn't works with Nightscout via Bluetooth (doesn't download carbs, temp targets, doesn't upload device status), but have internet access. The second Pi too. With WiFi it's ok. I do not understand why. Any ideas?
iValkou
@iValkou
Sep 23 2018 21:24
I tried execute ns-upload $NIGHTSCOUT_HOST $API_SECRET devicestatus.json upload/ns-status.json manualy. In linux it looks good (no errors), but Nigtscout openaps pill not updated.
As soon as the device connects to Wifi, everything is fine.
Martin Haeberli
@mhaeberli
Sep 23 2018 23:13
almost a fresh install on a PiHAT rig. getting this error message: Could not parse edison-battery.json I feel like I missed something on install. trying to run current ‘dev’ branch
Martin Haeberli
@mhaeberli
Sep 23 2018 23:28
and on a fresh Edison rig, getting ‘Invalid SPI context'
trying to run master
file /boot/config.txt does not exist
Eric
@ecc1
Sep 23 2018 23:33
/boot/config.txt is for Raspberry Pis, not Edisons; something mixed up?
Martin Haeberli
@mhaeberli
Sep 23 2018 23:43
@ecc1 thx; the mention of /boot/config.txt came up in a gitter search. question is, for an Edison, how to resolve Invalid SPI context. I have already re-flashed the radio.
Eric
@ecc1
Sep 23 2018 23:52
That's something to do with the mraa library, but I don't know much about it
Martin Haeberli
@mhaeberli
Sep 23 2018 23:53
k thx
i flashed a fresh Edison and did a clean install i hope. my one guess is maybe the explorer board is broken ...
perhaps someone else can chime in