Commit Graph
5535 Commits
Author SHA1 Message Date
Ben West 33fad539f9 update treatment report table with effected basal amount
Preferentially use `amount` field when available over `absolute`.
See #5740 for more information.

https://github.com/nightscout/cgm-remote-monitor/pull/5740
2020-07-05 10:06:36 -07:00
Ben West 2709917e8a apply effected temp basal amount to last Treatment
Apply same patch as others in line with checking for amount.
See pull request #574 for more info.
This patch should adjust the last treatment plugin to preferentially use amount
of last treatment when available instead of `absolute` so that effected temp
basal is accurately communicated.
2020-07-05 09:59:47 -07:00
Ben West 6b4abf7c01 client basal render text effected temp basal amount
Apply same patch for looking at effected temp basal amount preferentially
through the `amount` field.  This targets the text rendering of the amount
printed on the basal line.
2020-07-05 09:42:00 -07:00
Ben West c161410f3b incporarate ammount for effected temp basal rates
See issue #4971 for more information.
https://github.com/nightscout/cgm-remote-monitor/issues/4971

* Insulin pump vendors vary in the timing between insulin dosings.
* When modifying temp basal rates every 5 minutes, the differences between dose
  timings inherent in the pump delivery mechanisms become noticeable.
* Timing issue is mitigated by creating a model for each pump and calculating
  the impact of each timing difference.
* The result is a new piece of data: the effected insulin rate over an
  arbitrary period of time, eg 4 minutes and 57 seconds.
* The new piece of data is uploaded via the `amount` parameter for Loop users
  as of September 2019.

This patch favors the `amount` parameter when calculating effected temp basal
rates.
2020-07-05 09:07:21 -07:00
ireneusz-ptakandGitHub 7283560e07 Fix for boluscalc issue (#5729)
Boluscalc fix & remove integer validation from BG input field
2020-07-02 12:11:38 +03:00
Ben WestandGitHub cc1edf2e7c Merge pull request #5721 from nightscout/wip/bewest/mmconnect-eu
Confirmed working for US user as well.

prepare hotfix for MMConnect/EU - 2020-06-28
2020-06-30 11:10:35 -07:00
Ben West f611f1b0da bump pointing at right tag 2020-06-29 13:32:33 -07:00
Ben West 0ae6431648 prepare hotfix for MMConnect/EU - 2020-06-28
Prepare to handle issue #5719.  This patch adjusts dependencies to
target a community edition fork of minimed-connect-to-nightscout.  The
new dependency targets information provided to begin addressing
changes to Medtronic Carelink services starting late June 2020.
2020-06-28 11:38:09 -07:00
802d98684f Fixes #4991 - Now selects basal profile based day by day (#5572)
* Test profile settings

* NPM Version change

* Use console log

* Use console log for client

* Use console log for client.sbx

* Use console log for client.ddata

* Use console log for client again

* revert

* Added multi-profile reporting capabilities

Co-authored-by: VIS TFS Admin <liveid@visualsolution.co.uk>
2020-06-12 17:47:28 +03:00
BluefoxandGitHub 500de79b5d Sometimes at the very start no profiles provided. (#5591)
At the first start the nightscout is crashed if profile not full.
2020-06-12 17:33:38 +03:00
josep1972andGitHub 5698ae28c1 Add remote bolus/carbs + otp entry for loop (#5598)
Add a remote bolus entry field for users on Loop, along with support for an OTP field
2020-06-12 17:33:17 +03:00
ireneusz-ptakandGitHub 3d6f488eda Configurable clock views (#5625)
* Configurable clock views

* Configurable clock views

* Configurable clock views

* Configurable clock views

* Configurable clock views

* Configurable clock views

* Update README.md

* Update README.md

* Configurable clock views
2020-06-12 17:29:15 +03:00
MatthewandGitHub f3fab567c5 Fix Issue #5486 - Device Status Days Feature (#5651)
* Device Status Days Feature

* Edits per review from @sulkaharo
2020-06-12 17:17:52 +03:00
Ben WestandGitHub db0e08c522 do not redirect to profile editor by default (#5671)
In a default configuration, there is no treatment data.  The code to redirect
the UI to the profile editor is buried deep within the chart rendering code for
basals.  This plugin is only supposed to go into action when enabled via
ENABLE=basal.  This commit fixes first-use experience for the default
configuration intended to draw real-time CGM traces and no basal information is
expected.  Since no basal information is expected unless plugin is enabled via
ENABLE=basal, this allows skipping instead of redirecting to the profile editor.
2020-06-12 17:17:38 +03:00
Sulka HaroandGitHub 9236771b29 Sanitize data from manual careportal entries so only fields with actual data are sent to the server (#5619) 2020-05-05 22:18:42 +03:00
Jeremy CunninghamandGitHub 7c5a69dd9a Fix d3 portrait to landscape brush failure (#5638)
* fix d3 portrait to landscape brush failure

* fix client.renderer.test for highlighBrushPoints function prototype change

* fix highlightBrush

* move brush reset inside check for valid brush
2020-05-05 22:13:21 +03:00
Andrew DixonandGitHub 17eb4ae7bc Option to switch off bolus amount outputs (#5522)
* Option to switch off bolus amount outputs (#5514)

* Fixing issue with carb value not be output when set to "none" (#5514)

* Adding additional output options (#5514)

* Adding environment variable option for 'x U and Over' option.

This option is BOLUS_RENDER_OVER with a default value of 1 and the value can be an integer or a float, e.g. 0.3, 1.5, 2, etc...

* Adding change to change the font size depending on the bolus value.

* Merge two "all" options to create an option that displays as SMB had.
2020-04-14 10:20:35 +03:00
Sulka HaroandGitHub 4cdd00db40 Fix topbar collapse on small screens (#5562)
* Fix top bar collapsing on small screens

* Fix wide button array overflowing the button bar
2020-03-09 08:19:08 +02:00
Sulka Haro 9611373924 Merge branch 'master' into dev for release 2020-02-22 17:23:45 +02:00
Sulka Haro 32f4791ef1 Update version to 13.1.0 2020-02-22 17:17:18 +02:00
Sulka Haro 7d95b06c20 Fix settings test 2020-02-22 17:07:21 +02:00
Cas EliënsandGitHub 68fb745cad Update Dutch translations (#5532) 2020-02-22 17:02:40 +02:00
Simon PerssonandGitHub be678c04e8 Removed duplicate if statement (#5531)
Removed the additional if statement checking for the loop specific developer team id. This since the exact same if statement existed just above it.
2020-02-22 17:02:16 +02:00
Dominik DzieniaandGitHub 43165a0cca [DEV][FIX] Fix dbsize plugin to make it hideable again (#5529)
* [FIX] Making dbsize plugin default but hideable - removed its forced show state

* Removed unused lodash dependency
2020-02-22 17:00:21 +02:00
Sulka Haro dcf8248a1b Add more variables to the special list 2020-02-16 22:46:40 +02:00
Sulka HaroandGitHub 729747a2f8 Allow flagging specific settings to be not exposed the /properties and /status APIs (#5525) 2020-02-16 14:30:15 +02:00
Sulka HaroandGitHub 77795cae5a Split view (#5518)
* Adds a 2, 3, 4 and 8 way split view option

* Updated description

* Generate the table on demand, so any number of sites from 1 to 8 generates a sensible layout

* Update readme & don't crash if a name is missing
2020-02-16 14:15:27 +02:00
stephencmortonandGitHub cd2ad5e1ae client - mobile - Axis label font is scaled on small screens (#5512)
On phones or other small screens, the axis labels (especially x axis)
were previously an unreadable jumble of too-close letters
2020-02-16 14:14:45 +02:00
Petr OndrusekandGitHub 65b9f38f88 Trying to fix random fail of APIv3 tests (#5519)
* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)

* removing unused async keyword
2020-02-11 09:32:22 +02:00
Dominik DzieniaandGitHub 44ab2a79dc Plugin to show database size (% of available space or in MiB) (#5496)
* Database size plugin - pill that displays current mongoDB database size

* Enabled dbsize by default

* Fixed bug with dbsize not shownig when size is (rounded) 0% but real bytes > 0

* Cleanup & update to iconfont generation manual

* Changed how warning/urgent levels are configured - from absolute MiB to percentage of DBSIZE_MAX
2020-02-10 08:56:38 +02:00
Sulka Haro 765d7f8ea5 Fix: Round interporlated mg/dL value to an integer 2020-02-08 11:22:12 +02:00
Adam HarrisonandGitHub b1ec21cd3f Added indexes to 'entries' and 'treatments' along with other updates (#5463)
* Added compound indexes for treatments and entries collections. Updated ensureIndex to createIndex in mongo-strage.js as ensureIndex has been deprecated. Finally, updated testing/populate.js to be compatible with more recent versions of the node driver, as well as fixing a path issue.

* Fixed missing end quote in lib/server/treatments.js. Changed all newly added double quotes to single quote to match style guide.

* Removed indexes that referenced key600.
2020-02-05 08:27:56 +02:00
Sulka HaroandGitHub 82f00763d6 Move app caching to a service worker (#5504)
* Move app caching to a webworker

* Code cleanup

* Code cleanup

* Make Codacy happy

* More parentheses
2020-02-05 08:16:25 +02:00
peterleimbachandGitHub c0f6b2245c Added period of days into headline of glucose distribution and percen… (#5428)
* Added period of days into headline of glucose distribution and percentil chart report

I make screencopies of the glucose distribution and percential chart report for my diabtes consultant and had to manually add the period of days to the report everytime because it was not shown in the report itself.
I added the period of days this with a small number of lines of code and think this is helpful for other too.

* removed comments as requested

removed comments as requested

* Camelcase for new variables reportPlugins, firstDay, lastDay, countDays

* forget to save the change of reportPlugins in percentile.js
2020-02-03 09:09:43 +02:00
Jonas HummelstrandandGitHub c86b8901a2 Update README.md (#5480)
Clarified that the "bridge" plugin is for Dexcom Share ("Dexcom" didn't appear at all in the read me), fixed a few typos, and added line 444 about the BRIDGE_SERVER variable.
2020-02-03 09:06:25 +02:00
Jeremy CunninghamandGitHub 6045547ea5 fix brushing loop (#5499) 2020-02-01 09:18:41 +02:00
Sulka Haro baad198bd5 Fix earlier merge error with predictions having moved to the report bundle 2020-01-18 13:37:53 +02:00
jonfawcettandSulka Haro 3386ac685c Update DayToDay report for Loop Overrides (#5452)
Add Loop override name/reason as text to the grey bar at the top of the graph.
2020-01-18 03:36:31 -08:00
Sulka Haro d095482c2c Run CI Action for Pull Requests 2020-01-14 08:05:51 -08:00
JakobandSulka Haro 04edbec7d7 Remove redundant checks on entry ID (#5440) 2020-01-14 15:53:13 +00:00
JakobandSulka Haro 3a1d9be89d Fix eslint errors and add npm script for eslint (#5427)
* re-enable auth check for device status routes

* Resolve eslint errors

* Add npm script for eslint

* Correct regex for express extension middleware and add tests for expected behaviour

* Resolve lint error in virtual assistant base

* Update index.js

* Update index.js
2020-01-14 15:33:56 +00:00
JakobandSulka Haro 7dc292e056 Resolve unnecessary uses of eslint-ignore (#5436)
* Resolve unnecessary disabling of no-undef eslint rule

* Resolve unnecessary disabling of no-prototype-builtins eslint rule

* Resolve unnecessary disabling of no-unused-vars eslint rule

* Resolve unnecessary disabling of no-empty eslint rule
2020-01-12 20:13:29 +00:00
Sulka HaroandGitHub 64663d2bfc Send coverage reports to Codacy (#5444)
* Send coverage reports to Codacy

* Action secrets may not be read from forks :(

* Let's see if this fixes the path & key passing

* Ok one more try for the Actions env

* Run tests and coverage separately

* Try increasing the admintools test runtime for Node 10

* Run tests only once
2020-01-12 18:49:19 +00:00
JakobandSulka Haro 937aa474aa Refactor to encapsulate duplicated settings logic (#5426)
* Encapsulate duplicate settings checks inside functions

* Simplify settings::isAlarmEventEnabled()
2020-01-12 18:49:07 +00:00
JakobandSulka Haro 81d926a989 Increase coverage of tests on units utility and clean up timeago test (#5435)
* Increase coverage of tests on units utility

* clean up timeago test
2020-01-12 18:46:08 +00:00
JakobandSulka Haro 5c152438e0 Restore glucose distribution test (#5434) 2020-01-12 18:39:36 +00:00
Petr OndrusekandSulka Haro 2f60d8d6a1 Api3 output renderers (#5425)
* APIv3: adding framework for various output renderers

* APIv3: adding xml output renderer

* APIv3: adding csv output renderer

* APIv3: documenting supported output renderers

* APIv3: testing output renderers
2020-01-12 15:16:52 +00:00
Bartłomiej SzubertandSulka Haro c49ea37db5 Volunteer for Polish translations (#5396) 2020-01-11 12:41:18 +00:00
4f9f735164 Pr/5379 (#5441)
* Release 13.0.1 (#5329)

* Release ref update v2 (#5301)

* Updated release name and number

* Added missing version number

* Added missing version number

* Fix auth dialog sizing error (#5315)

* Fix auth dialog sizing error (#5314)

* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Updated API reference in Google Home template

Co-authored-by: Caleb <inventor96@users.noreply.github.com>
2020-01-11 12:40:33 +00:00
CalebandSulka Haro 40986896e1 Virtual assistant code simplification (#5400)
* Moved duplicate plugin code to single location, and small improvements

* Defined _each()
2020-01-11 11:08:41 +00:00