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
Ben West and GitHub
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
Ben West and GitHub
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
Ben West
86073c7511
faster
2016-08-13 18:04:36 -07:00
Ben West
1efbcb015e
louder faster
2016-08-13 17:55:46 -07:00
Ben West
810302c961
little louder ;-)
2016-08-13 17:50:48 -07:00
Ben West
b17985d757
tweaks?
2016-08-13 17:40:45 -07:00
Ben West
3ca2fee288
lower volume?
2016-08-13 17:27:21 -07:00
Ben West
8b71dcd269
try to make only one at a time
2016-08-13 17:25:46 -07:00
Ben West
bf02dc2de7
tweak
2016-08-13 17:11:44 -07:00
Ben West
5045df96d2
try audio
2016-08-13 17:07:45 -07:00
Ben West
de0ff7f1eb
Allow aggregating/counting via REST api
2016-08-11 13:36:52 -07:00
Ben West
8492a5aa98
ensure lastUpdated is always in ms
2016-08-10 16:04:41 -07:00
Ben West
09248bf4a1
actually turn on feature...
2016-08-10 15:49:19 -07:00
Ben West
da22e593b9
reduce logging
2016-08-10 15:38:25 -07:00
Ben West
f367cd0a7a
allow framing the data into pages
...
set both $lte and $gte query terms
2016-08-10 15:30:38 -07:00
Ben West
9a3d80b67f
don't forget dependencies
2016-08-10 15:11:04 -07:00
Ben West
26125c315b
introduce new ddata api
2016-08-10 15:06:56 -07:00
Ben West
b4c755d795
Merge branch 'wip/import-boot-config' into wip/bewest/2-days-temps
2016-08-10 12:19:00 -07:00
Ben West
96a0e8896d
Merge branch 'wip/tokens' into wip/bewest/2-days-temps
2016-08-10 12:18:51 -07:00
Ben West
0f42e69269
env: off/on are truthy sometimes
...
Provide readENVTruthy, and mapTruthy, to explicitly handle
the cases where on/off or similar should result in a
Boolean value. Here, they should be mapped correctly,
eliminating a problem @miloskozak experienced when setting
AUTH_DEFAULT_ROLES=bad, there is an exception becaue the
value is a literal `true` instead of the string `"bad"`.
Intended to be a no-op, preserving the intended effects
from previous commit
dbe29bd4be from
@jasoncalabrese.
2016-08-09 12:43:43 -07:00
Ben West
28ba2a8c65
css tweak for codacy
...
important shouldn't be needed?
2016-08-08 17:57:38 -07:00
Ben West
2f0bbcaa07
make codacy happier
2016-08-08 17:12:55 -07:00
Ben West
7a3032e641
make codacy happier
2016-08-08 17:10:44 -07:00
Ben West and GitHub
dfc2b1093d
Merge pull request #1876 from ps2/tokens
...
Set static serverSettings
2016-08-08 14:13:29 -07:00
Ben West
c2ff3065fb
add slightly more authorized/unauthorized tests
...
This affects the POST to /entries/preview.
2016-08-08 13:59:47 -07:00
Ben West
980112cd99
Merge branch 'wip/tokens' of github.com:nightscout/cgm-remote-monitor into wip/tokens
2016-08-08 13:48:13 -07:00
Ben West
e39ab7ad17
isolate effects of middleware from other routers
...
Using all(...) in this manner allows middleware from router A to
not affect router B.
As a result, sendJSONStatus and ability to optionally end in
.json disappeared, which this patch also restores.
CC: @jasoncalabrese
With this change, I can successfully restrict reads to entries
vs status vs other things without the middleware leakage we
observed earlier.
2016-08-08 13:45:31 -07:00
Ben West
dd2d0aee24
import many settings on boot from remote URL
...
Allows sharing commonly used configurations amongst folks.
CC @jasoncalabrese.
2016-08-07 15:12:54 -07:00
Ben West
00dc91538b
Merge branch 'wip/tokens' into wip/bewest/2-days-temps
2016-08-06 17:25:12 -07:00
Ben West
0a77b90ecf
allow UI tests to re-use/share more code
...
Tighten up the boilerplate a bit.
2016-08-06 16:56:03 -07:00
Ben West
30e9507dae
comment out code for codacy
2016-08-06 13:36:14 -07:00
Ben West
46834c811c
cleanup ddata tests a bit
2016-08-06 13:32:08 -07:00
Ben West
7ff9f42209
add slightly more tests for ddata
...
TODO: ensure partition function gets called for better coverage.
2016-08-06 13:30:56 -07:00
Ben West
73269128f7
Merge branch 'wip/tokens' of github.com:nightscout/cgm-remote-monitor into wip/tokens
2016-08-06 12:21:12 -07:00
Ben West
c005b40e69
broken test
...
For some reason, when I go to add a new test, I can't get should to
work as expected, which is getting me stuck on adding new tests.
2016-08-06 12:20:28 -07:00
Ben West
0d88b1b877
tweak missing semicolon
2016-08-05 13:24:43 -07:00
Ben West
69e6be52ed
increase tests of status api a tad
2016-08-05 13:07:21 -07:00
Ben West
37cde4125a
make codacy be quieter
...
tweak some lint notes: missing semicolons, mixed double vs single
quote, unused variables (it's still unused...)
2016-08-05 12:51:43 -07:00
Ben West
9ab886179c
teach tests about readable default role
...
Allows tests to pass naively. In future this can be augmented
to more thoroughly test security.
2016-08-04 18:02:17 -07:00
Ben West
abc847b434
Revert "Revert "allow temp basals for last two days""
...
This reverts commit 683cb3be63 .
2016-08-04 16:33:26 -07:00
Ben West
835dcea887
allow accessToken in query params to grant perms
...
CC @jasoncalabrese, this is debatable, I think this is what you were referring
to, I'd prefer to use the sha1sum (which is fewer bytes) and use that as the id
to lookup/store in mongo instead of this, but not sure.
2016-08-04 16:30:45 -07:00
Ben West
0f735d0af5
implement read-access against token, mod default
...
Could see an endpoint changing the global server variable, `defaultRoles` as well.
Seems to work well to disable/enable access really quickly.
2016-08-04 15:40:02 -07:00
Ben West
5abb480548
assign authorized token object to serverSettings
...
Something about the concat/eval wasn't quite working for me.
2016-08-04 13:06:14 -07:00
Ben West
683cb3be63
Revert "allow temp basals for last two days"
...
This reverts commit fb73906f31 .
2016-08-03 16:33:13 -07:00
Ben West
fb73906f31
allow temp basals for last two days
2016-08-03 16:26:53 -07:00
Ben West
2539392e90
Fix swagger rendering
2016-07-21 12:04:57 -07:00
Ben West
8c66d63fe6
Merge branch 'wip/report/range-compare' of github.com:nightscout/cgm-remote-monitor into wip/report/range-compare
2016-05-29 14:46:04 -07:00
Ben West
f963bb45f0
fix race condition, noticed by @jasoncalabrese
...
When data loads quickly, it can triggr a render before the elements have been
added to the canvas.
This nixes rendering dots until after init has run.
2016-05-29 14:44:55 -07:00
Ben West
3b2dfc0ab4
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/report/range-compare
2016-05-22 00:45:07 -07:00
Ben West
f961af6033
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/report/range-compare
...
Conflicts:
package.json
2016-05-12 03:37:18 -07:00
Ben West
7df885d702
Merge pull request #1420 from skjelland/dev
...
Add serverTimeEpoch, needed for wifi uploader
2016-04-04 17:00:29 -07:00
Ben West
38019dc09b
Merge pull request #1434 from davidebbo/dev
...
Add Deploy To Azure button and ARM template
2016-04-03 00:42:13 -07:00
Ben West
25cec4d505
Merge pull request #1581 from jontelm/dev
...
Added node 4 and 5 to travis
2016-04-03 00:40:33 -07:00
Ben West
ff6212adbd
Merge pull request #1584 from ericmarkmartin/wip/clean/style
...
Fixed more style problems
2016-04-03 00:39:16 -07:00
Ben West
103516b5d2
Merge pull request #1540 from nightscout/wip/text/api
...
fix text endpoints of API
2016-04-03 00:37:15 -07:00
Ben West
3e84032d7a
Merge pull request #1583 from ericmarkmartin/wip/text/api
...
Fixed pr issues from codacy
2016-04-03 00:27:17 -07:00
Ben West
c52b034c54
Merge branch 'wip/text/api' into wip/report/range-compare
2016-03-03 13:41:35 -08:00
Ben West
3f0b6be53a
fix text endpoints of API
...
This allows fetching 10k+ records as text.
2016-03-03 13:41:15 -08:00
Ben West
dc8e6c4fcc
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/report/range-compare
2016-03-03 13:01:55 -08:00
Ben West
c26bdbb074
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/report/range-compare
...
resolved Conflicts:
package.json
2016-02-08 15:27:27 -08:00
Ben West
b7d24b2439
put x axis at bottom
2015-11-22 20:01:25 -08:00
Ben West
3b5b844796
attempt faster data loading, crossfilter, transitions
2015-11-22 19:58:30 -08:00
Ben West
1ac1cd56b1
fix gridlines
2015-11-21 12:23:22 -08:00
Ben West
9385ffcd75
round queries to whole days
2015-11-18 14:41:55 -08:00
Ben West
8f88a24615
don't munge height
2015-11-18 13:33:46 -08:00
Ben West
888d4d49e0
correct gridlines?
2015-11-18 13:29:24 -08:00
Ben West
05e057bab4
tweak heights?
2015-11-18 13:23:06 -08:00
Ben West
4d78d47b42
with gridlines
2015-11-18 12:59:04 -08:00
Ben West
17d8d7b90f
Revert "Revert "Revert "reduce logging/redundant code"""
...
This reverts commit a986485682 .
2015-11-18 12:34:07 -08:00
Ben West
a986485682
Revert "Revert "reduce logging/redundant code""
...
This reverts commit 68f570df7a .
2015-11-18 12:31:46 -08:00
Ben West
68f570df7a
Revert "reduce logging/redundant code"
...
This reverts commit b6fc1b92a9 .
2015-11-18 12:29:41 -08:00
Ben West
b6fc1b92a9
reduce logging/redundant code
2015-11-18 11:57:12 -08:00
Ben West
7976890b7b
allow resizing?
2015-11-18 11:26:37 -08:00
Ben West
f6b7f4cc24
nicer color
2015-11-17 13:07:08 -08:00
Ben West
b04e48f74a
don't forget colorbrewer
2015-11-17 12:38:19 -08:00
Ben West
cef3149a20
hacky way to collapse/stack displays
2015-11-17 12:32:14 -08:00
Ben West
a9c23e0818
fix sizes
2015-11-17 12:21:12 -08:00
Ben West
cb5f895478
better behavior/colors
2015-11-17 11:55:42 -08:00
Ben West
3b0a5ead89
attempt to fix color
2015-11-17 03:14:22 -08:00
Ben West
fcbfb26457
very rough add, allows rough comparison
2015-11-17 03:08:55 -08:00
Ben West
ac9a7005c4
some tweaks/fixes: cursor/paging properly-ish
2015-11-17 03:00:55 -08:00
Ben West
8c333babb4
stub out time in range tool
2015-11-16 23:28:17 -08:00
Ben West
a5ed6c2bcb
adding material-floating-button copy/paste for now
2015-11-16 23:27:21 -08:00
Ben West
d42db8ce0b
Merge branch 'wip/icicle' of github.com:nightscout/cgm-remote-monitor into wip/bewest/increase-upload-limit
2015-10-27 21:01:23 -07:00
Ben West
53ce4941e9
Merge branch 'wip/icicle' of github.com:nightscout/cgm-remote-monitor into wip/bewest/increase-upload-limit
2015-10-27 18:52:26 -07:00
Ben West
2d8810092f
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/bewest/increase-upload-limit
2015-10-26 17:57:33 -07:00
Ben West
42ef305291
Merge branch 'wip/icicle' of github.com:nightscout/cgm-remote-monitor into wip/bewest/increase-upload-limit
2015-10-25 22:46:32 -07:00
Ben West
256682d59e
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/bewest/increase-upload-limit
2015-10-25 14:35:33 -07:00
Ben West
5dc4969243
try at global level?
2015-10-23 16:18:17 -07:00
Ben West
cc24cf05e3
squashing 10 commits getting it wrong
...
* try again
* try with compression
* fix export
* try 1MB limit
* try with different version of body-parser
* try limits again
* try setting limit AGAIN
* keep trying
* try harder-er
* try alternate verisno
None of these attempts appeared fruitful, but hard to tell if they were
required or not.
2015-10-23 16:16:55 -07:00
Ben West
811104d277
increase upload limit
2015-10-23 14:04:18 -07:00
Ben West
472c799993
Merge pull request #1200 from mddub/wip/minimed-connect
...
Add MiniMed Connect plugin
2015-10-20 13:13:12 -07:00
Ben West
f92794db57
Merge pull request #1183 from nightscout/wip/mongo-connection-timeout
...
specify shorter connecti timeout
2015-10-19 19:56:56 -07:00
Ben West
99c8423bd2
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into wip/mongo-connection-timeout
2015-10-19 16:23:00 -07:00