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

18th
Dec 2017
cameronrenwick
@cameronrenwick
Dec 18 2017 00:35
anyone have any suggestions on this?

```Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight OK. Old settings: Profile valid. RefreshRetrying invoke_pumphistory_etc
Couldn't invoke_pumphistory_etc - continuing
Retrying monitor_pump
ed
module.js:485
throw err;
^
SyntaxError: /root/myopenaps/settings/profile.json: Unexpected end of input
at Object.parse (native)
at Object.Module._extensions..json (module.js:482:27)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/root/src/oref0/bin/oref0-calculate-iob.js:44:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Couldn't calculate IOB
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning```

juliakieserman
@juliakieserman
Dec 18 2017 01:32
does it matter what model raspberry Pi I go for? Don't really want to wait on a backordered edison
Scott Leibrand
@scottleibrand
Dec 18 2017 02:14
@juliakieserman I would still try to get the Edison and Explorer Board. In the mean time, a Pi 3 works great for inside the house. A Pi Zero W would be better for mobile use.
@cameronrenwick check your profile.json
juliakieserman
@juliakieserman
Dec 18 2017 02:38
@scottleibrand gotcha - is the explorer board the same as the breakout board? I found an edison that comes with a breakout board kit
Dana Lewis
@danamlewis
Dec 18 2017 02:46
Nope, different. So yes you can get your edison with that kit, you'll need either a TI stick or the explorer board because it has the radio stick built in
juliakieserman
@juliakieserman
Dec 18 2017 02:51
okay sweet - thank you!!
Dana Lewis
@danamlewis
Dec 18 2017 02:52
:+1:
Enda Farrell
@endafarrell
Dec 18 2017 10:43
FYI: odd network/comms behaviour. My android phone (HTC one M8) is my xDrip+ uploader and my rig's paired bluetooth for offline. While at work, this android phone can and does connect to the corporate network, and has full internet access. The rig can connect over BT to the android phone and gets an IP address - but as of this morning [as in - "everything was fine on Friday"] my rig can't get to the internet while the android is on WiFi. If I shut WiFi off on the android, the rig still connects and gets internet access.
Enda Farrell
@endafarrell
Dec 18 2017 10:48
I don't see this as an OpenAPS problem, but it might be worth knowing about if others experience something similar. If anyone with networking skillz wants me to try debug this (eg a traceoute to the BBC gives me the android phone and nothing else over WiFi, but after a few starts, gives me my mobile network operator and then BBC-related infra when WiFi is off) I'd be very willing.
Matthias
@ceben80
Dec 18 2017 11:06
@scottleibrand @PieterGit or others
I am configuring my setup with a 712, run this pump in the past (before oref0-setup) and was tweaking the WW freq in mmtune.py, was running fine....
Now I have only -99and the code is always using the default freq, which doesn't work :worried:
Please point my to the code where I am able to adjust the freq (as in the past)
Thanks a lot!
Matthias
@ceben80
Dec 18 2017 11:46
will try to adjust in /home/.rootfs/usr/local/lib/python2.7/dist-packages/mmeowlink/mmtune.py HTH
class MMTune:
  FREQ_RANGES = {
    'US': { 'start': 916.300, 'end': 916.900, 'default': 916.630 },
    'WW': { 'start': 868.300, 'end': 868.600, 'default': 868.328 }
  }

  def __init__(self, link, pumpserial, radio_locale='WW'):
but it's always using the default freq which does not work, as said, in the past I did adjust this mmtune.py
Matthias
@ceben80
Dec 18 2017 11:57
and btw here my pump.ini
root@eddie:~/myopenaps# cat pump.ini
[device "pump"]
serial = 123456
port = /dev/ttyMFD1
radio_type = subg_rfspy
radio_locale=WW
always setting the default freq :worried:
root@eddie:~/myopenaps/monitor# cat mmtune.json | grep setFreq
  "setFreq": 868.328,
PieterGit
@PieterGit
Dec 18 2017 14:21
@ceben80 what do you mean with adjust the frequency? Are you sure no other processes are running?
Matthias
@ceben80
Dec 18 2017 14:22
Yeah, tried a different rig
In the past I tweaked the above, something is wrong with the x12 setup
Both rigs, ERF and TI (uart) are working well with my 754 and 522
PieterGit
@PieterGit
Dec 18 2017 14:24
I don't have x12 pump. Do you mean mmtune always give rssi -99 with x12 pump?
Matthias
@ceben80
Dec 18 2017 14:24
Yes
PieterGit
@PieterGit
Dec 18 2017 14:25
Did you try mmtune
Matthias
@ceben80
Dec 18 2017 14:25
In the past before the setup stuff I did it manually with my 712, worked great
PieterGit
@PieterGit
Dec 18 2017 14:25
Mmtune.py without the openaps commands
Matthias
@ceben80
Dec 18 2017 14:25
Yes I die and killed all proc before
PieterGit
@PieterGit
Dec 18 2017 14:26
Perhaps double check with 0.5.0 rig to see if it is 0.6.x related
Matthias
@ceben80
Dec 18 2017 14:27
That will be a good approach, will do later, which branch I need to checkout?
PieterGit
@PieterGit
Dec 18 2017 14:27
Sure it s not related to the pump. Check the docs for troubleshooting (e.g. reinsert battery, fresh battery, etc)
Just install latest 0
Latest 0.5.x release (sorry for typos; using mobile)
Matthias
@ceben80
Dec 18 2017 14:28
the only thing which is working is openaps use pump model
PieterGit
@PieterGit
Dec 18 2017 14:28
That is a start :)
Matthias
@ceben80
Dec 18 2017 14:28
Haha...mobil, gitter pain
Need this rig only for overnight looping
Will come to you later via PM, must leave here, thanks to far @PieterGit
Scott Leibrand
@scottleibrand
Dec 18 2017 16:08
512 needs a different status command for mmtune I think. Someone has a branch or a PR for that but it still needs work/testing.
Matthias
@ceben80
Dec 18 2017 16:34
Okay but would be better in this case to disable the x12 setup option?! It does not work
Matthias
@ceben80
Dec 18 2017 17:29
@scottleibrand do you know this branch or whatever for successfully x12 looping?
humalogwolfgang
@humalogwolfgang
Dec 18 2017 20:48
Hello, thatś an error in my loop:TypeError: Cannot call method 'map' of undefined
at detectCarbAbsorption (/home/.rootfs/usr/local/lib/node_modules/oref0/lib/determine-basal/cob.js:8:40)
at recentCarbs (/home/.rootfs/usr/local/lib/node_modules/oref0/lib/meal/total.js:94:13)
at generate (/home/.rootfs/usr/local/lib/node_modules/oref0/lib/meal/index.js:20:19)
at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-meal.js:97:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
Warning: could not parse monitor/glucose.json
Warning: could not parse monitor/carbhistory.json
Any idea?
Scott Leibrand
@scottleibrand
Dec 18 2017 23:14
@ceben80 the 512 setup has never worked well, but works better now than it used to. it does work, as long as your pump works at the default frequency. for pumps that require a different frequency, some additional work is required. unfortunately there aren't too many people with 512 pumps contributing to development, so it's been slow going.
the PR I was referencing is oskarpearson/mmeowlink#66