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

15th
May 2019
Why not
@Whynot2018_gitlab
May 15 07:17
Hi
I'm trying to install OAPS with --cgm=xdrip-js everything installed without error. But now I'm getting this error.
with 0 new records; meal.json Warning: could not parse monitor/glucose.json

/root/src/oref0/lib/determine-basal/cob.js:8

    var glucose_data = inputs.glucose_data.map(function prepGlucose (obj) {

                                           ^

TypeError: Cannot read property 'map' of undefined

    at detectCarbAbsorption (/root/src/oref0/lib/determine-basal/cob.js:8:44)

    at recentCarbs (/root/src/oref0/lib/meal/total.js:104:13)

    at generate (/root/src/oref0/lib/meal/index.js:20:26)

    at Object.<anonymous> (/root/src/oref0/bin/oref0-meal.js:122:23)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

    at Function.Module.runMain (module.js:693:10)

Warning: could not parse monitor/glucose.json

/root/src/oref0/lib/determine-basal/cob.js:8

    var glucose_data = inputs.glucose_data.map(function prepGlucose (obj) {

                                           ^

TypeError: Cannot read property 'map' of undefined

    at detectCarbAbsorption (/root/src/oref0/lib/determine-basal/cob.js:8:44)

    at recentCarbs (/root/src/oref0/lib/meal/total.js:104:13)

    at generate (/root/src/oref0/lib/meal/index.js:20:26)

    at Object.<anonymous> (/root/src/oref0/bin/oref0-meal.js:122:23)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

    at Function.Module.runMain (module.js:693:10)

Warning: could not parse monitor/glucose.json

/root/src/oref0/lib/determine-basal/cob.js:8

    var glucose_data = inputs.glucose_data.map(function prepGlucose (obj) {

                                           ^

TypeError: Cannot read property 'map' of undefined

    at detectCarbAbsorption (/root/src/oref0/lib/determine-basal/cob.js:8:44)

    at recentCarbs (/root/src/oref0/lib/meal/total.js:104:13)

    at generate (/root/src/oref0/lib/meal/index.js:20:26)

    at Object.<anonymous> (/root/src/oref0/bin/oref0-meal.js:122:23)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

    at Function.Module.runMain (module.js:693:10)

No updates to pump-loop.log in 5m - killing processes
Why not
@Whynot2018_gitlab
May 15 07:25
Now the error just disappeared. I don't know why :)
Thanks.
Alfredo kachy
@kachytronico
May 15 08:06
Good morning.
Someone knows what is the best way to visualize OpenAPS offline from an iphone and an apple watch. I have the iwatch 4 and now I do it with spike from the iphone. But you always need your cell phone and be online. Also it does not show the cob nor the basal ones. I have edison with ref0 6.3 master and logger with G6.
fidoman
@efidoman
May 15 10:14
@kachytronico - if the g6 transmitter is not expired, in the dev version of Logger you can run Logger on the alternate bluetooth channel alongside the Dexcom iphone app and watch app. I've been running it this way for over a week now and it works great offline. I can see my bg level on my apple watch even when there's no network. OpenAPS continues to run offline as well.
As you probably know, the Dexcom app only knows about BG, so unfortunately you can't see COB, IOB, or basals. There is a local web server in OpenAPS that you can connect to using the rig's IP address when tethered to the phone offline. However, I've had limited success when I've attempted to do that with the iphone while offline.
fidoman
@efidoman
May 15 10:31
My understanding is that xdrip plus has a similar offline ability and can also be used alongside Logger using the alternate Bluetooth channel but I don’t have android and haven’t tried that scenario.
Alfredo kachy
@kachytronico
May 15 14:06
Yes, thank you, I already knew all that. Thanks to your work I have been using logger for a few days and it works very well. and also it works with an expired transmitter, with a battery changed and reset with the "reset cgm" command directly in the logger. Remember that I shared it in the other forum? what I want is to monitor OpenAPS. There has to be a way to send the data directly to Spike. I think if openAPS can send to nightscout it should not be complicated to send to the phone directly and have it spike read from the rig address instead of nighscout. do not? I do not have the necessary knowledge to develop it, but the logic tells me that you should be able to do it. I hope someone finds it interesting. Yesterday I had a little scare. I use the clock to add the CH with IFTTT and accidentally added twice, when the glucose started to rise OpenAPS corrected desiado and when I saw at 2h that was in 110 I checked that it happened and I realized that the IOB was too high. I solved it but it would have been easier if I see the cob and the IOB. I'm sure you understand.
Scott Leibrand
@scottleibrand
May 15 14:34
The only ways for an OpenAPS rig to communicate are over wifi, Bluetooth tethering, or via 900MHz to the pump. If your phone is an iPhone, you can start a hotspot before you leave signal, and leave it running. Or you can set up a dedicated hotspot using a travel router. Or the rig can set up an offline-only hotspot. There rig doesn’t have any BLE capabilities to be able to send data to an app: building that would require Linux Bluetooth skills we don’t yet have.
Alfredo kachy
@kachytronico
May 15 15:06
okay. I speak without knowing too much. Forgive me if I say something very crazy. The rig can create an access point, the mobile or the watch could connect to it. So, can you create an http server in the rig and direct to that address to read the data?
Raymond Richmond
@PedanticAvenger
May 15 15:17
The rig could either create a hotspot, or connect to wireless, not both at the same time. So one consideration will be how will you switch the rig between these different modes.
Now inside of that, if the rig is acting like an access point, then you could conceivably operate in the way you are suggesting. But the rig doesn't run nightscout, just basic capabilities to view what is going on. You seem to be asking about alerts and putting data into external applications without nightscout. This would require a lot of coding on the rig as well as the apps in question.
Alfredo kachy
@kachytronico
May 15 15:38
it would be great. too nice to be easy. Simple things should have simple solutions, right?
Andy Sharrow
@dramageek
May 15 16:06
Since 6.2 the rig already creates a webserver and hosts a status page. You can see it if you type your rig's IP into any browser.
Scott Leibrand
@scottleibrand
May 15 16:23
there is an optional feature you can enable to make the rig set up an offline hotspot if it can't find Internet via wifi or Bluetooth. It hasn't been super reliable, though, so we don't use it.
oleg-post
@oleg-post
May 15 16:43
Hello. What is the easiest way to make insulin via iPhone?
Scott Leibrand
@scottleibrand
May 15 17:02
not sure what you're asking
oleg-post
@oleg-post
May 15 17:16
@scottleibrand can i use NS as follower and send command to the pump to make insulin injection? Or there is another way to send command from iPhone to the pump for injection?
just make manual bolus from iPhone
Scott Leibrand
@scottleibrand
May 15 17:17
are you using an OpenAPS rig, AndroidAPS, or Loop?
oleg-post
@oleg-post
May 15 17:18
i use OpenAps rig based on Raspi
Scott Leibrand
@scottleibrand
May 15 17:19
in that case you can't (and shouldn't) do remote bolus commands. you should instead turn on SMB and remotely add carbs, and then let the rig dose as much insulin as is required for the carbs you just entered
oleg-post
@oleg-post
May 15 17:26
The problem is that SMB does boluses during long period of time for that period BG rises to hight. I want SMB make full bolus for all carbs at one time. Can i do so?
Scott Leibrand
@scottleibrand
May 15 17:35
you can make SMB dose more aggressively by also setting an "Eating Soon" low temp target of 80 mg/dL to run before and/or just after the meal
autosens_max may also be relevant
oleg-post
@oleg-post
May 15 17:46
Ok. Thanks
Alfredo kachy
@kachytronico
May 15 19:57
@dramageek thanks, I knew the web server but I was talking about imitating the nightscout API. But my original question was simple. I repeat in case someone can help me. Someone knows what is the best way to visualize OpenAPS offline from an iphone and an apple watch. How do you do it?
Alfredo kachy
@kachytronico
May 15 20:03
Could you make the application shortcuts, read the data from the web server of the RIG?
Scott Leibrand
@scottleibrand
May 15 20:09
@kachytronico the only option for visualizing OpenAPS offline from an iPhone is to use the offline hotspot if you can get it to work. there's no option I know of to see any details from the Apple watch, beyond the BG from Spike or the Dexcom app
if you wanted to develop something that makes an HTTP call against the rig's web server, you could do that if running the offline hotspot, but I don't know of anything that's already been done.
Alfredo kachy
@kachytronico
May 15 20:56
@scottleibrand thanks. All were thoughts but as I said I have no knowledge to develop it. I will continue listening and I will study to try to contribute to this great project.