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

22nd
Mar 2019
mrboletmrpot
@mrboletmrpot
Mar 22 00:00
@ecc1 no I still have no antenna. I suppose I can solder a wire at the right size?
Riko L
@Ricco555
Mar 22 00:06
IMG-f4409b37ae217c1f1708bc3889d418c5-V.JPG
@mrboletmrpot as you see on the picture, wire of correct size for your frequency.
mrboletmrpot
@mrboletmrpot
Mar 22 00:22
I knew that ham radio courses were gonna be useful once in my life lol
mrboletmrpot
@mrboletmrpot
Mar 22 00:31
Is there huge differences in radio range between ti usb stick, rfm69 with wire, and edison?
(Solder done here, I set it up again)
mrboletmrpot
@mrboletmrpot
Mar 22 01:04
I follow the rest of the setup with rm -rf and so on
mrboletmrpot
@mrboletmrpot
Mar 22 01:29
It works, yes! Thank you a lot @ecc1 @Ricco555
Stargazer32584
@Stargazer32584
Mar 22 07:12
Hi,
Is it possible to make a script, if the accu is on 15%, to senden a warning via pushover ?
senden = send :-)
mrboletmrpot
@mrboletmrpot
Mar 22 07:48
Is there a way to update it to oref 0.7 like in the edison in dev mode on the pi?
@Stargazer32584 for the script, you could add it in cron?
viq
@viq
Mar 22 08:05
@danamlewis certainly, I didn't expect it to be really interesting to anyone, just an amusing side thing ;)
curl -s -X GET "${NS_SITE}/api/v1/devicestatus/?count=400" -H  "accept: application/json" | jq '.[].openaps.suggested | select(has("sensitivityRatio")) | .sensitivityRatio' | sparklines 
▃▄▄▄▅▅▅▅▅▅▅▅▆▆▆▆▆▆▆▇▇▇█▇▇▇▇▇█████▇█████▇▇█▇▇▆▆▆▇▆▆▆▆▆▆▆▆▆▇▇▆▆▇▇▆▇▇▇▇▆▆▆▆▆▆▅▅▅▅▅▅▅▅▅▅▅▅▅▅▄▄▄▄▄▅▄▄▅▄▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▆▆▆▆▆▆▆▆▅▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
For reference, sparklines is https://pypi.org/project/sparklines/ and not the bash one, mainly because the python one supports decimals
and count=400 because that's how much fits on my terminal ;)
But ideally I want to be getting this and more into InfluxDB or something like that and being able to look at it via grafana
viq
@viq
Mar 22 08:12
Which could possibly let me feed it via https://hastic.io/ to try and automatically detect compression lows ;)
https://vimeo.com/289890110 creator talks more about hastic
Stargazer32584
@Stargazer32584
Mar 22 08:57
@mrboletmrpot Yes, i would add the script in cron. But First i need a hint, how i could read the data from the voltage sensor. A simple python-script should do this, uf possible.
Dana Lewis
@danamlewis
Mar 22 17:33
@viq I see people struggling to look back in the logs to interpret their autosens data, so wondering if something like this could help. (I’d also love to see a line added in Ns, too, similar to the render basal line that you could toggle on/off to visualize)
matrixbot
@matrixbot
Mar 22 19:32
viq Indeed, though that's becoming hard to visualise on same screen. The way that I can see right now could be to reuse the BG graph scaling percentage as mg/dl . Alternatively, move the time overview to top of screen, basal to bottom (and disable icicle mode) and draw in a similar way that basal is done - dashed line for 100% and clearly showing under/ over. Actually having it share the graph with basal could make it easier to correlate.
matrixbot
@matrixbot
Mar 22 19:40
viq Somewhat a golden hammer syndrome ("if all you have is a hammer everything starts looking like a nail"), but I'm used to looking at time series data in grafana, and it's a very good tool for that. For example xdrip is able to send to influxdb which is quite a good time series database for storing this stuff, but a lot of things would need to be extracted and put there to be usable. I want to play with some of that ;) But I have barely any programming skills, mostly bash and a bit of python
viq Also the sparklines don't really have any scale, just show "this value was bigger than that value". Though, hmm, I wonder what it would look like if I'd subtract 1. Also, maybe it could be displayed on the status LCDs that people have? It is just text characters after all.
Dana Lewis
@danamlewis
Mar 22 19:46
@viq did you change how you’re posting to here?
matrixbot
@matrixbot
Mar 22 19:49
viq Yes, right now going through matrix integration instead of the native gitter client
viq
@viq
Mar 22 19:50
Since the mobile gitter client, erm, "isn't that great" ;p
zasteph
@zasteph
Mar 22 20:04
Hi, I’m trying to understand where are the targeted BG ranges configured.
I configured new values at the end of the herokuapp profile editor page, but it does not look like they are the ones used.
Are they read in real time, or updated once a day?
Can I check the target values somewhere in the logs? Thank you!
Travis Cannell
@diabeticpilot
Mar 22 20:10
hey I'm having some problems running the latest dev with xdrip-js. Basically the setup script is dying like this
/home/.rootfs/usr/bin/wifi -> /home/.rootfs/usr/lib/node_modules/oref0/bin/oref0-tail-wifi.sh
+ oref0@0.7.0-dev
updated 1 package in 20.267s
jq: Unknown option --slurpfile
Use jq --help for help with command-line options,
or see the jq documentation at http://stedolan.github.com/jq
module.js:675
    throw err;
    ^

SyntaxError: /root/myopenaps/updated_prefs.json: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.Module._extensions..json (module.js:672:27)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/.rootfs/usr/local/lib/node_modules/oref0/bin/oref0-get-profile.js:87:23)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
Could not run oref0-get-profile
Also this is an edison rig on 7.0 dev
viq
@viq
Mar 22 20:17
@diabeticpilot jq --version
Travis Cannell
@diabeticpilot
Mar 22 20:18
jq-1.4-1-e73951f
viq
@viq
Mar 22 20:19
@zasteph target ranges where, what are you talking/ asking about?
@diabeticpilot you may need to update IQ
jq, damned autocorrect
Dana Lewis
@danamlewis
Mar 22 20:55
@viq k just checking, it was unclear if that was you, or someone talking to you, at first!
@zasteph targets come from pump bolus wizard, OpenAPS uses the bottom numbers. Unless you’re asking about NS display ranges?
Jon Cluck
@cluckj
Mar 22 21:14
@diabeticpilot I think I patched that last night?
have you done a git pull today?
viq
@viq
Mar 22 21:21
I wonder if it will show up here with colours:
curl -s -X GET "${NS_SITE}/api/v1/devicestatus/?count=400" -H  "accept: application/json" | jq '.[].openaps.suggested | select(has("sensitivityRatio")) | .sensitivityRatio' | sparklines -n 3 -m 0.5 -M 3 -n 3 -e "yellow:lt:0.7" -e "green:gt:0.7" -e "yellow:gt:1.2" -e "red:gt:1.5"

▃▃▃                                                                                                                                                                                                                                          
███▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▆▅▅▅▅▅▅▅▅▅▄▃▃▃▃▃▃▃▃▃▃▃▃▃▃▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▂▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▃▄▄▄▄▄▄▄▅▅▅
no, it doesn't...
image.png
Stargazer32584
@Stargazer32584
Mar 22 21:23

Have anyone an idea, if i could read the voltage-data from the rig for a little py-script ?
I tried to parse the Heroku-Site, but the data isn't in the html source code.

Thanks a lot.

@cluckj The x12-fix is perfectly on the go !!

Jon Cluck
@cluckj
Mar 22 21:25
@Stargazer32584 the latest rig battery voltage is stored in ~/myopenaps/monitor/edison-battery.json
you can also pull it from nightscout with the API located in: https://path.to.your.site/api/v1/devicestatus.json
Stargazer32584
@Stargazer32584
Mar 22 21:49
@cluckj Thank you. An API is perfect !
Travis Cannell
@diabeticpilot
Mar 22 23:17
@cluckj I've been trying to do a fresh flash to dev 0.7.0 with no luck
Jon Cluck
@cluckj
Mar 22 23:25
apt-get -y -t jessie-backports install jq will update your jq
which script was that error from? openaps-install or oref0-setup?
(looks like oref0-setup, but I want to make sure)
zasteph
@zasteph
Mar 22 23:29
@viq , thank you. I am talking about the target BG range used by the app. After looking more carefully I think I know where the problem is: the header of the “Profile Editor” says “Units: mg/dl”, when all my devices are using mmol/L. How can I change that, please?
Travis Cannell
@diabeticpilot
Mar 22 23:41
@cluckj it was on the oref0-setup. I reflashed and installed master and just now upgraded to dev 0.7.0, installed and am now running the setup script
ahhh shoot. did it again
I have the latest version of jq
viq
@viq
Mar 22 23:42
@zasteph which app? Also it sounds like you're looking at nightscout, and as far as I know OpenAPS doesn't really use profile from nightscout in any form
Jon Cluck
@cluckj
Mar 22 23:43
@diabeticpilot version 1.5?
Travis Cannell
@diabeticpilot
Mar 22 23:44
yeah I ran that line to update jq and it returned that I already had the latest
Jon Cluck
@cluckj
Mar 22 23:45
did it bork out with that same --slurpfile error?
Travis Cannell
@diabeticpilot
Mar 22 23:47
Hit http://http.debian.net jessie/contrib Translation-en
Hit http://http.debian.net jessie/main Translation-en
Hit http://http.debian.net jessie/non-free Translation-en
Fetched 18.5 kB in 29s (626 B/s)
Reading package lists... Done
Running apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  gyp javascript-common libc-ares-dev libc-ares2 libjs-jquery libjs-node-uuid
  libjs-underscore libssl-dev libssl-doc libv8-3.14-dev libv8-3.14.5
  node-abbrev node-ansi node-ansi-color-table node-archy node-async
  node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
  node-forever-agent node-form-data node-fstream node-fstream-ignore
  node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits
  node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-qs
  node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent
  node-underscore node-which
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[ 7925.307225] systemd-sysv-generator[12567]: Ignoring creation of an alias galileod.service for itself
[ 7926.157257] systemd-sysv-generator[12581]: Ignoring creation of an alias galileod.service for itself
Running apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Removing any existing ns device:
removed process://ns/nightscout/ns xxxxxxxxxxxx xxxxxxxxxx
Running nightscout autoconfigure-device-crud xxxxxxxx XXXXXXX
added process://ns/nightscout/ns NIGHTSCOUT_HOST API_SECRET
error: sub is not defined
.extra.args |= sub("API_SECRET" ; "XXXXXXXX")               1 compile error
error: sub is not defined
.extra.args |= sub("NIGHTSCOUT_HOST" ; "xxxxxx")               1 compile error
Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 89, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/bin/openaps-import", line 77, in run
    candidates = json.load(args.input)
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Could not run nightscout autoconfigure-device-crud
Jon Cluck
@cluckj
Mar 22 23:48
(you may want to edit your NS and api secret out of that)
Travis Cannell
@diabeticpilot
Mar 22 23:48
good call
Jon Cluck
@cluckj
Mar 22 23:50
can you do jq --version again?
Travis Cannell
@diabeticpilot
Mar 22 23:51
jq-1.4-1-e73951f
Jon Cluck
@cluckj
Mar 22 23:53
that should be jq-1.5-1-a5b5cbe?
Travis Cannell
@diabeticpilot
Mar 22 23:54
 apt-get -y -t jessie-backports install jq
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version.
The following packages were automatically installed and are no longer required:
  gyp javascript-common libc-ares-dev libc-ares2 libjs-jquery libjs-node-uuid
  libjs-underscore libssl-dev libssl-doc libv8-3.14-dev libv8-3.14.5
  node-abbrev node-ansi node-ansi-color-table node-archy node-async
  node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
  node-forever-agent node-form-data node-fstream node-fstream-ignore
  node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits
  node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-qs
  node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent
  node-underscore node-which
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@beartravel:~# jq --version
jq-1.4-1-e73951f
Jon Cluck
@cluckj
Mar 22 23:54
give it a reboot?
Travis Cannell
@diabeticpilot
Mar 22 23:54
hmmmm then that line isn't updating it properly
same result after a reboot
Jon Cluck
@cluckj
Mar 22 23:58
o_O
remove jq entirely and just run the jessie-backports install?
Travis Cannell
@diabeticpilot
Mar 22 23:59
whats the command to remove jq?