Ben West and GitHub
5d8304809b
Merge pull request #8082 from nightscout/crowdin_incoming
...
New Crowdin updates
2023-10-13 10:39:55 -07:00
Ben West and GitHub
2d18433755
Merge branch 'dev' into crowdin_incoming
2023-10-12 15:53:59 -07:00
Ben West and GitHub
2757fe585d
Merge pull request #8026 from nightscout/less_frequent_db_updates
...
Mongo driver update & less frequent database polls
2023-10-12 09:15:37 -07:00
Ben West
97a603fb00
upgrade nightscout-connect@^0.0.12, npm install
...
Record changes from upgrading nightscout-connect to at least the latest
release, 0.0.12.
2023-10-12 09:06:27 -07:00
Ben West
6964916963
n 14 && npm install
...
Record output of npm instlal using oldest supported version.
2023-10-12 08:58:54 -07:00
Ben West
7819223f1e
Allow any LTS version.
2023-10-12 08:57:00 -07:00
Ben West
c6c0a0ae2f
Merge remote-tracking branch 'official/dev' into less_frequent_db_updates
2023-10-12 08:56:13 -07:00
Ben West
48dfa22351
set expectation to take around 15 seconds for first load
...
This patch adjusts the user feedback while the server is initializing to
communicate that Nightscout startup sequence should take closer to 15 second
than 5 seconds.
2023-10-12 08:51:18 -07:00
Ben West
ebece1bcb5
n 14 && npm install
...
Use npm install under node 14 generates different lock file.
2023-10-12 08:37:13 -07:00
Ben West
3893eb4306
allow running any version of LTS
...
Given node 18 and 20, allow running on any LTS version of node.
We can block out bad versions if needed.
2023-10-12 08:33:40 -07:00
Ben West and GitHub
4a461e5890
Merge pull request #7312 from jakobsandberg/readme-swagger-link
...
Point readme to correct location of swagger.yaml
2023-10-11 17:29:54 -07:00
Ben West and GitHub
6e1c69ff4e
Merge branch 'dev' into readme-swagger-link
2023-10-11 17:21:36 -07:00
Ben West and GitHub
b1eb27e88b
Merge pull request #8073 from bjornoleh/shareous
...
README.md: use shareous1 for Nightscout connect using Dexcom share
2023-10-06 07:45:28 -07:00
Ben West and GitHub
5f8c7345e0
Merge pull request #8100 from nightscout/apiv3sync
...
APIv3 sync only on srvModified
2023-10-03 08:05:43 -07:00
Ben West and GitHub
5488df4e35
Merge pull request #8085 from nightscout/wip/bewest/api-secret-free-reads
...
Wip/bewest/api secret free reads
2023-09-03 08:20:01 -07:00
Ben West
9f2f98b76a
allow client to load successfully without requiring API SECRET
...
This patch allows the operator to control whether or not the API Secret
authentication dialog will display by default or not. Historically Nightscout
allows a configuration to be readable and to send alarm information to all
displays.
A change in in dev in February to support authentication and api v3 introduced
a new configuration where websocket communication is authenticated, and the API
Secret modal will display if it authenticates in error. The side-effect is
that all new instances, even readable instances with glucose data, can't be
seen or monitored without putting in the API Secreet or explicitly dismissing
it.
This patch returns to the default behavior while allowing to select the new one
using authenticationPromptOnLoad in the settings communicated from server to
client. If people strongly prefer, we can reverse to the new behavior over
time.
To select the old behavior with no API Secret needed for readabable data, do nothing.
To select the new behavior where the API Secret prompts occur on load, set
`AUTHENTICATION_PROMPT_ON_LOAD=1`.
2023-09-02 17:54:11 -07:00
Ben West
79df562519
npm install nightscout-connect@^0.0.11
2023-08-24 17:12:27 -07:00
Ben West
d602de1c47
bump nightscout-connect 0.0.10
2023-08-06 10:30:45 -07:00
Ben West
6296a75934
update nightscout-connect dependency
2023-08-05 19:28:43 -07:00
Ben West
a5acd9b670
update nightscout-connect 0.0.8
...
This provides better support for several vendors, notably Medtronic and Glooko.
2023-08-05 09:09:50 -07:00
Ben West and GitHub
613a699cbf
Merge pull request #8047 from gestrich/feature/2023/06/bg/node-apn-upgrade
...
Upgrade APN Library & Support Time-Sensitive Notifications
2023-08-05 09:07:17 -07:00
Ben West and GitHub
282a992a5b
Merge pull request #8042 from nightscout/crowdin_incoming
...
New Crowdin updates
2023-08-04 14:17:42 -07:00
Ben West and GitHub
f3afaec232
Merge pull request #8039 from nightscout/wip/bewest/nightscout-connect
...
Wip/bewest/nightscout connect
2023-06-19 12:36:45 -07:00
Ben West
29f84c1f0a
bump nightscout-connect patch version
2023-06-19 11:47:16 -07:00
Ben West
8b39822570
Merge branch 'wip/bewest/nightscout-connect' of github.com:nightscout/cgm-remote-monitor into wip/bewest/nightscout-connect
2023-06-19 11:44:32 -07:00
Ben West and GitHub
9d55ea513d
Merge pull request #7983 from nightscout/wip/bewest/nightscout-connect
...
support for nightscout-connect + easystate summary API v2
2023-06-14 10:39:36 -07:00
Ben West and GitHub
e37db6beec
Merge branch 'dev' into wip/bewest/nightscout-connect
2023-06-14 10:30:37 -07:00
Ben West
e7e04fc681
use latest version of nightscout-connect
2023-06-13 12:34:53 -07:00
Ben West
4397fa7fc6
introduce connect, initiate deprecation for bridge and mmconnect.
...
Introduce nightscout-connect in the README.
Issue warnings in the logs when the older plugins are used.
2023-06-09 12:28:43 -07:00
Ben West
506498483d
bump minimed-connect-to-nightscout package
2023-06-09 11:41:25 -07:00
Ben West
52315435e3
better internal support for nightscout-connect
2023-06-07 16:58:34 -07:00
Ben West
c2199c1517
Merge remote-tracking branch 'official/easystate-api' into wip/bewest/nightscout-connect
2023-06-07 16:30:32 -07:00
Ben West
6beb8a4667
nightscout-connnect upgrade
...
With this patch, the new version of nightscout-connect will support
all the features of share2nightscout-bridge,
minimed-connect-to-nightscout, and more.
2023-06-07 16:24:51 -07:00
Ben West
f96435b191
bump minimed-connect-to-nighscout version
2023-06-02 11:09:18 -07:00
Ben West
65707addb2
refactor IMPORT_CONFIG to use axios instead of request.
2023-06-01 13:27:05 -07:00
Ben West
d29ff5cf0f
allow running with node 20, current release
...
https://github.com/nodejs/release#release-schedule
2023-06-01 13:04:12 -07:00
Ben West
4b4b9b0248
Merge branch 'wip/bewest/nightscout-connect' of github.com:nightscout/cgm-remote-monitor into wip/bewest/nightscout-connect
2023-05-31 13:25:45 -07:00
Ben West
8faf5dcb07
use released version of nightscout-connect
2023-05-31 13:25:03 -07:00
Ben West
728b7be5ab
temporary nightscout-connect by url
2023-05-09 13:20:32 -07:00
Ben West and GitHub
9258cdc0e7
Merge branch 'dev' into wip/bewest/nightscout-connect
2023-05-02 11:39:35 -07:00
Ben West and GitHub
9874a50886
Merge pull request #7828 from nightscout/wip/bewest/document-data-rights
...
Wip/bewest/document data rights
2023-05-02 08:29:25 -07:00
Ben West and GitHub
37a4ec15d4
Merge branch 'dev' into wip/bewest/document-data-rights
2023-05-02 08:22:17 -07:00
Ben West
1020ec3ef3
pass new sbx via event argument
...
This allows consumers, such as nightscout-connect to receive a new sbx without
creating a new one.
2023-04-07 23:34:04 -07:00
Ben West
25672ea120
experimental support for nightscout-connect
2023-04-07 10:13:53 -07:00
Ben West and GitHub
a4d07cd66e
Merge pull request #7911 from nightscout/wip/sulka/fix_entries_api
...
Fixes #7910 LGTM, tests work, merging.
2023-02-25 09:26:06 -08:00
Ben West and GitHub
97a4ee7a01
Merge pull request #7905 from nightscout/wip/bewest/fix-timezone-test
...
cheat for tests across different time zones
2023-02-21 09:38:14 -08:00
Ben West
93df3c4f09
cheat for tests across different time zones
...
There is a bug generating the window for time ranges across different
timezones, which results in different queries wrapping around day boundaries.
This provides the fixture with three variants of the queries, in some ways
better documenting the bug, and allowing the tests to pass.
2023-02-21 09:29:44 -08:00
Ben West and GitHub
903669a185
Merge pull request #7857 from nightscout/wip/bewest/daytoday-redo-03
...
Wip/bewest/daytoday redo 03
2023-01-28 09:16:09 -08:00
Ben West
a805939371
fix test with fixtures both ways
2023-01-27 10:16:56 -08:00
Ben West
664efe6486
Merge branch 'wip/bewest/daytoday-redo-03' of github.com:nightscout/cgm-remote-monitor into wip/bewest/daytoday-redo-03
2023-01-27 08:07:48 -08:00
Ben West
48d1ae399b
tweak tests/logging
2023-01-27 08:07:29 -08:00
Ben West and GitHub
5d3268abac
Merge branch 'dev' into wip/bewest/daytoday-redo-03
2023-01-27 08:01:37 -08:00
3b7528a8ed
minimum attempt to protect /api/v2/ endpoints ( #7554 )
...
* minimum attempt to protect /api/v2/ endpoints
These endpoints should be protected as reported in
https://github.com/nightscout/cgm-remote-monitor/issues/7546 .
* remove spurious line
Co-authored-by: Sulka Haro <sulka@sulka.net >
2023-01-27 08:42:26 +02:00
Ben West and GitHub
b376239cf1
Merge branch 'dev' into wip/bewest/daytoday-redo-03
2023-01-26 13:09:57 -08:00
Ben West
10dd236cda
daytoday: Align start of day with data across zones
...
This change correctly aligns the name of the day in the
current zone with the start of the data for the
equivalent day in the profile's zone. This makes it so
that viewing a day to day report in any timezone works
going both east and west directions.
2023-01-26 12:52:32 -08:00
Ben West
f6b2d4f717
Revert "Revert "clock at the end of the day is 23:59:59.999""
...
This reverts commit a4f92713c4 .
2023-01-26 11:43:43 -08:00
Ben West
a4f92713c4
Revert "clock at the end of the day is 23:59:59.999"
...
This reverts commit f51fac9623 .
2023-01-26 11:42:36 -08:00
Ben West
8e0ec88893
Merge branch 'wip/bewest/daytoday-redo-03' of github.com:nightscout/cgm-remote-monitor into wip/bewest/daytoday-redo-03
2023-01-24 11:00:16 -08:00
Ben West
0ee0712ca7
redact console log lines
2023-01-24 10:59:40 -08:00
Ben West
f51fac9623
clock at the end of the day is 23:59:59.999
...
Ensure that the test fixtures will return; the previous changes
correctly forward the time to end of day across zones and
datelines. One side effect is that the date formatted for the end
of the day uses all the microseconds for the day as well. This
changes the query from the form of 23:59:59.000Z to 23:59:59.999Z.
This also ensures that anything that happens during that one second
will be included rather than excluded.
2023-01-24 09:56:49 -08:00
Ben West
8983713b74
ensure daily reports dates translate to profile timezone
...
To illustrate the difference, I used chrome "sensors" feature to change my
timezone to one that spans the dateline.
> moment.tz('2023-01-19', 'America/Los_Angeles').endOf('day').format( )
'2023-01-19T23:59:59-08:00'
> moment.tz(moment('2023-01-19'), 'America/Los_Angeles').endOf('day').format( )
'2023-01-18T23:59:59-08:00'
The old code uses a string replacement, which is equivalent to the first
test. This causes the dates on the reports to be off by one, as well as
risks the data wrapping around the dateline so it can't be seen. For example,
replacing "23:59:59" with "00:00:00" in the first example doesn't correctly
wrap around the dateline.
The patch introduces a way to parse the dates requested in the browser's
time zone, and then translates them to the profile's timezone. The
difference is shown in the second example above. With this change, the
correct date label should be rendered, and the data should start at
midnight without wrapping around the dateline.
2023-01-24 09:56:49 -08:00
Ben West
0330e13e33
ensure timezones assigned once in daily reports
...
This fixes the label on the days in the daytoday charts. Passing a moment
object that is already zoned prevents toLocaleDateString from reinterpreting
the zone information when the date is already relative to the profile.
This also ensures that the datefilter is adjusted to the profile's zone rather
than truncating the time to the end or beginning of the day. This should
prevent incorrectly wrapping arounnd the dateline.
2023-01-24 09:56:49 -08:00
Ben West
a47b3675a4
pin start of day in profile's timezone
...
This more closely mirrors logic in loopalyzer, as well as the intent from the
surrounding code in reportclient.js.
2023-01-24 09:56:49 -08:00
Ben West
0541e2a801
daytoday reports are always in the profile's time zone
...
Midnight for the profile should always be at the start of the
day (midnight) for the chart.
2023-01-24 09:56:49 -08:00
Ben West
a6ad6780a9
add a note on OBSCURED and OBSCURE_DEVICE_PROVENANCE
2023-01-12 10:03:36 -08:00
Ben West and GitHub
4aa0657049
Merge pull request #7513 from gestrich/bugfix/remove-remote-override-otp
...
Remove unused OTP field from Remote Override form.
2022-11-16 09:53:39 -08:00
Ben West
efc994b423
remove Heroku deploy button from readme
2022-11-16 09:48:30 -08:00
Ben West and GitHub
bcfe437adc
Merge branch 'dev' into bugfix/remove-remote-override-otp
2022-11-16 08:50:46 -08:00
Ben West and GitHub
2c6ba28196
Merge pull request #7647 from k2s/fix-empty-import-config
...
Fix empty import config
2022-11-01 13:33:07 -07:00
Ben West and GitHub
09c9f81331
Merge pull request #7570 from nightscout/wip/bewest/code-ql-analysis
...
codeql text/html injection in food.js
2022-10-01 14:34:01 -07:00
Ben West
dbce9dbfe9
codeql text/html injection in food.js
2022-10-01 14:24:57 -07:00
Ben West and GitHub
74ce49ceac
Merge pull request #7569 from nightscout/wip/bewest/code-ql-analysis
...
Wip/bewest/code ql analysis
2022-10-01 12:39:26 -07:00
Ben West
1db40470cc
avoid HTML injection
...
See if this makes codeql happy.
2022-10-01 12:33:31 -07:00
Ben West
2e1ee38234
inject text instead of HTML name
...
Avoid HTML injection called out by CODEQL.
2022-10-01 12:27:59 -07:00
Ben West and GitHub
8706658b7e
Merge pull request #7526 from sulkaharo/new_cache_location
...
New build artefact cache location
2022-10-01 12:18:20 -07:00
Ben West and GitHub
aed99985c4
Merge branch 'dev' into new_cache_location
2022-10-01 12:11:46 -07:00
Ben West and GitHub
a8da747c89
Merge pull request #7568 from nightscout/wip/bewest/PieterGit-dev20220815
...
Wip/bewest/pieter git dev20220815
2022-10-01 12:10:27 -07:00
Ben West
64d93e6fe3
allow any LTS version
...
The '^' prefix makes this meaingless, there's
no reason to refuse to run less than 16.16.0
if it's still some 16.x.
2022-10-01 11:51:58 -07:00
Ben West
9f622c2b51
Merge branch 'dev20220815' of github.com:PieterGit/cgm-remote-monitor into PieterGit-dev20220815
2022-10-01 11:46:39 -07:00
Ben West
2e7f695a3c
initialize new dev area post-release
2022-09-30 14:27:27 -07:00
Ben West and GitHub
0bf616be87
Merge pull request #7237 from nightscout/dev
...
Release 14.2.6
2022-09-30 14:21:48 -07:00
Ben West and GitHub
3213835a5c
Merge branch 'dev' into bugfix/remove-remote-override-otp
2022-08-14 10:56:33 -07:00
Ben West and GitHub
df85fd2368
Merge pull request #7512 from gestrich/bugfix/remote-carb-created-date
...
Allow Remote Carb Entries in Past or Future
2022-08-14 10:55:53 -07:00
Ben West and GitHub
a5fcc84c9c
Merge branch 'dev' into bugfix/remove-remote-override-otp
2022-08-14 10:41:22 -07:00
Ben West and GitHub
755bdc987d
Merge branch 'dev' into bugfix/remote-carb-created-date
2022-08-14 10:40:02 -07:00
Ben West and GitHub
a5c67b5a6a
Merge pull request #7487 from nightscout/wip/bewest/issue-7475
...
rm package-lock.json && npm install
2022-08-14 09:37:48 -07:00
Ben West
b15e436f1c
make github tested workflows and node entines match
...
This makes the testing framework and the advertised node versions match, one
for one.
2022-08-14 09:27:22 -07:00
Ben West
a9dfc76a8c
Merge branch 'wip/bewest/issue-7475' of github.com:nightscout/cgm-remote-monitor into wip/bewest/issue-7475
2022-08-07 18:30:31 -07:00
Ben West
c9f3a12c8f
n 10; rm package-lock.json && npm install
...
Remove npm list from engine as it is intended to be advisory.
2022-08-07 18:28:10 -07:00
Ben West and GitHub
3e1f4594c7
Merge branch 'dev' into wip/bewest/issue-7475
2022-07-18 11:29:01 -07:00
Ben West and GitHub
cd5c983808
Merge pull request #7488 from ps2/loop-enacted-fixes
...
Fix incorrect appending for loop enacted status. LGTM.
2022-07-18 11:21:15 -07:00
Ben West
5d0d320c21
npm install --no-optional
...
The build still fails for node 12.x.
Skip optional dependencies.
https://stackoverflow.com/a/48953213
2022-07-17 19:13:02 -07:00
Ben West
27a882f85a
rm package-lock.json && npm install
...
npm ls fsevent didn't list any output. I'm running on linux,
and regenerating this file after removing it seems to remove
the fsevent package from the file.
It's likely that fsevent may be used in development mode as part
of one of the build utilities, but it shouldn't block anyone from
deploying.
https://github.com/nightscout/cgm-remote-monitor/issues/7475
2022-07-17 18:57:42 -07:00
Ben West and GitHub
40b7cbfd10
Merge pull request #7343 from nightscout/wip/bewest/upgrade-node
...
Wip/bewest/upgrade node
2022-06-29 18:27:04 -07:00
Ben West
0d1aed7b93
Revert "npm audit fix" due to test failure
...
This reverts commit ead83e0a92 .
Minor differences are causing the tests to fail consistently.
2022-06-29 18:17:27 -07:00
Ben West
08e2225113
Merge branch 'wip/bewest/upgrade-node' of github.com:nightscout/cgm-remote-monitor into wip/bewest/upgrade-node
2022-06-29 17:46:49 -07:00
Ben West
ead83e0a92
npm audit fix
2022-06-29 17:40:07 -07:00
Ben West and GitHub
cef684e6cc
Merge branch 'dev' into wip/bewest/upgrade-node
2022-06-29 17:32:15 -07:00
Ben West and GitHub
e72924cd8b
Merge pull request #7468 from samihusseingit/master
...
Results could be null and can crash the website
2022-06-29 17:30:34 -07:00
Ben West
e715cd24a9
give automated tests more time to finish
2022-06-29 17:27:31 -07:00