Commit Graph
100 Commits
Author SHA1 Message Date
Ben West aa13913093 Dockerfile: Add --force to bypass platform check
npm ci fails with EBADPLATFORM when lockfile contains darwin-only
packages (fsevents), even with --omit=optional. The --force flag
bypasses this check.
2026-03-01 12:53:32 -08:00
Ben WestandGitHub ee2bfa4fe7 Merge pull request #8437 from nightscout/fix/heroku-fsevents
Fix/heroku fsevents
2026-03-01 12:40:30 -08:00
Ben West b8aec4429c CI: Test only Node 20 and 22
Node 16 EOL was September 2023. Docker image uses Node 22.
Reduces CI matrix from 9 to 6 jobs.
2026-03-01 12:30:27 -08:00
Ben West 4130f325c5 Update bridge deps to 0.2.11/1.5.7 (fsevents fix)
Both bridge packages now have clean shrinkwraps without devDependencies,
eliminating the fsevents (darwin-only) entries that caused Heroku build failures.
2026-03-01 12:28:29 -08:00
Ben West ecafd4782c Fix Docker/Heroku builds with --omit=optional
Use npm ci with --omit=optional to skip optional dependencies like
fsevents (darwin-only) that were causing build failures on Linux
platforms including Heroku and local Docker builds on Mac.
2026-03-01 12:25:55 -08:00
Ben West a5ada47d32 first commit to cut new 15.0.5 dev branch 2026-03-01 12:02:54 -08:00
Ben WestandGitHub b03c604643 Merge pull request #8352 from nightscout/dev
release 15.0.4
2026-02-28 09:00:37 -08:00
Ben WestandGitHub 7ae17b13f5 Merge pull request #8433 from nightscout/test/node22-pr
Test/node22 pr
2026-02-27 15:07:57 -08:00
Ben WestandCopilot 0fb628e1c4 Update CI matrix to test Node 16, 20, 22
- Remove lts/* (redundant with explicit versions)
- Add Node 16 for backwards compatibility testing
- Skip Node 18 (flaky tests, will be fixed in MongoDB PR)
- Keep MongoDB 4.4, 5.0, 6.0 matrix

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-27 14:53:30 -08:00
Ben WestandCopilot e0cc9ff5df Relax Node version constraints to >=16.x
- Change engines.node from '^22.x || ^20.x' to '>=16.x'
- Change engines.npm from '>=10.x' to '>=8.x'
- Update runtime checkNodeVersion to allow Node 16+
- Creates overlap with previous release (^16.x || ^14.x)

This allows users on Node 16/18 to upgrade smoothly while
recommending Node 20 or 22 LTS for best support.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-27 14:52:56 -08:00
Ben West 019fa51cff Merge PR #8357 (Node 22 upgrade) 2026-02-27 14:06:32 -08:00
Ben WestandGitHub 535b50e9e0 Merge pull request #8432 from nightscout/wip/bewest/update-bridge-deps
Wip/bewest/update bridge deps
2026-02-27 14:03:03 -08:00
Ben WestandCopilot d81d6854c0 Update bridge dependencies to final deprecated versions
- share2nightscout-bridge: 0.2.9 → 0.2.10 (Node 22 support)
- minimed-connect-to-nightscout: 1.5.5 → 1.5.6 (Node 22 support)

Both packages now allow Node 18/20/22+ in their engines field.
This is a prerequisite for the Node 22 upgrade (PR #8357).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-27 13:36:08 -08:00
Ben WestandCopilot 6a48ea89cf Update bridge dependencies to final deprecated versions
- share2nightscout-bridge: 0.2.9 → 0.2.10 (Node 22 support)
- minimed-connect-to-nightscout: 1.5.5 → 1.5.6 (Node 22 support)

Both packages now allow Node 18/20/22+ in their engines field.
This is a prerequisite for the Node 22 upgrade (PR #8357).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-27 13:16:04 -08:00
Ben WestandGitHub e74f53c077 Merge pull request #8367 from nightscout/wip/bewest/collaborations
Wip/bewest/collaborations
2025-05-28 16:37:35 -07:00
Ben West 01808b7b17 Merge branch 'dev' of github.com:Foxy7/cgm-remote-monitor into wip/bewest/collaborations 2025-05-28 16:31:37 -07:00
Ben West a1ee00ee6a Merge branch 'crowdin_incoming' of github.com:nightscout/cgm-remote-monitor into wip/bewest/collaborations 2025-05-28 16:30:19 -07:00
Ben West 86742c0d6b Merge branch 'readmeupdate' of github.com:scrivy/cgm-remote-monitor into wip/bewest/collaborations 2025-05-28 16:29:23 -07:00
Ben WestandGitHub 05b8f08e80 Merge pull request #8220 from Joerg-Schoemer/feature/hide-by-display
hide tooltip by display attribute instead of opacity
2025-05-23 10:06:43 -07:00
Ben WestandGitHub 34707f0861 Merge branch 'dev' into crowdin_incoming 2025-05-23 09:42:16 -07:00
Ben WestandGitHub 598ba143c1 Merge branch 'dev' into docker-compose-restarts 2025-05-23 09:40:59 -07:00
Ben WestandGitHub 8591f2b26c Merge branch 'dev' into dev 2025-05-23 09:39:27 -07:00
Ben WestandGitHub a5d2b98fd1 Merge branch 'dev' into readmeupdate 2025-05-23 09:39:21 -07:00
Ben WestandGitHub b24c313dec Merge branch 'dev' into feature/hide-by-display 2025-05-23 09:38:59 -07:00
Ben West 03c01d03bc new dev branch for 15.0.4
This is first commit after the 15.0.3 release.
2025-05-08 15:17:54 -07:00
Ben WestandGitHub 91cd601038 Merge pull request #8145 from nightscout/dev
dev next release 15.0.3
2025-05-08 15:08:10 -07:00
Ben WestandGitHub 7d209bc0f6 Merge pull request #8076 from inventor96/google-asst-broken
Add notes about the Google Assistant integration being broken
2024-12-16 11:19:27 -08:00
Ben WestandGitHub 7114f63112 Merge branch 'dev' into google-asst-broken 2024-12-16 11:16:09 -08:00
Ben WestandGitHub bda257d3a7 Merge pull request #8321 from nightscout/wip/bewest/collaborations
Wip/bewest/collaborations
2024-12-13 16:37:04 -08:00
Ben West 9195c3c275 setup-node action syntax is lts/* 2024-12-13 14:40:41 -08:00
Ben West ffd28b041e continuously test on lts also
This adds the latest long term support version of node to the automated testing
matrix.
2024-12-13 14:35:14 -08:00
Ben West 3761c0fedd permit any LTS version of node 2024-12-13 14:28:49 -08:00
Ben West 59ff28204a allow tests to pass
Switching the way units is fetched to this way makes it similar to the other
code already in place that does something similar.  This allows the tests to
pass with the existing fixtures.
Considering augmenting  additional tests that explicitly tests whether the
relevant branch of code is taken.
2024-12-13 14:19:17 -08:00
Ben WestandGitHub 5985152865 Merge branch 'dev' into google-asst-broken 2024-11-29 12:41:56 -08:00
Ben WestandGitHub 46069a916c Merge pull request #8108 from gth001/master
This fixes the issue of a "stale" CGM value displaying indefinately.
2024-11-29 12:37:41 -08:00
Ben WestandGitHub a0647e27ca Merge branch 'dev' into google-asst-broken 2024-11-29 12:18:13 -08:00
Ben WestandGitHub 476bad9119 Merge branch 'dev' into master 2024-11-29 12:09:20 -08:00
Ben WestandGitHub 085590b922 Merge pull request #8313 from nightscout/wip/bewest/collaborations
Wip/bewest/collaborations
2024-11-25 13:50:35 -08:00
Ben West 558927bf3d Revert "Update sensorage.js for 10 day sensors"
This reverts commit cec3eebc40.
Need to update tests?  Not immediately clear why tests updated from 6 days to 9
days fails, so revertinig for now.
2024-11-25 13:40:48 -08:00
Ben West c6dfaa1f78 Merge remote-tracking branch 'official/crowdin_incoming' into wip/bewest/collaborations 2024-11-25 12:46:13 -08:00
Ben West 61d14718da Merge remote-tracking branch 'antoniomuniz/patch-2' into wip/bewest/collaborations
Gracias!
2024-11-25 12:43:32 -08:00
Ben West d7c93b456c Merge remote-tracking branch 'daaanosaur/return-boot-error-status-code' into wip/bewest/collaborations
Nice work, thanks for your contributions.
2024-11-25 12:37:23 -08:00
Ben West bf704059da Merge remote-tracking branch 'Nightfoxy/Nightfoxy-SAGE-Defaults' into wip/bewest/nspro-apns-crashfix 2024-11-25 12:27:50 -08:00
Ben West e0b0d6fd81 nice error handling, @AndyLow91 2024-11-25 12:17:42 -08:00
Ben West 5b440b7a98 create room for dev post release 2023-10-25 12:55:05 -07:00
Ben WestandGitHub 21e0591d49 Merge pull request #8128 from nightscout/dev
Dev branch for next release, 15.0.2
2023-10-25 12:52:17 -07:00
Ben WestandGitHub 44f70dbe1d Merge pull request #8132 from nightscout/wip/bewest/8107-profile-buttons
alarmSocket: customizing authorization requirements
2023-10-24 13:09:26 -07:00
Ben West a7ebb301b6 add notes regarding handling unauthorized ACK request
When someone is looking at Nightscout and needs the alarm silenced, it is very
desirable to always silence the local UI. This patch documents some of the
working code around handling the alarm notification process, as well as
provides commentary on handling unauthorized scenarios.  There are some open
questions such as how to update the permission set after authorization.
2023-10-23 10:07:26 -07:00
Ben West c0892863a2 remove spurious logging in profileeditor 2023-10-23 08:46:04 -07:00
Ben West 1fa6af412a alarmSocket: don't double initialize, stub out non-global-ack
Create an opportunity to respond with something other than a global ack when
someone that is not authorized sends an acknolwedgement to an alarm.
Eliminate double-initializing when subscribing to alarms. The `callback`
variable is not local to the function, anyway.
2023-10-22 12:14:28 -07:00
Ben West d8fe025ad2 alarmSocket: document and prep concept
This patch eliminates debugging logging in favor of commentary to capture how,
where, and why alarmSocket feature is causing different pages to demand the
authentication prompt in a variety of circumstances.
2023-10-22 10:59:54 -07:00
Ben WestandGitHub e0c35bc473 Merge branch 'dev' into wip/bewest/8107-profile-buttons 2023-10-22 09:29:12 -07:00
Ben West 0fbacfd3fc alarmSocket: customizing authorization requirements
This patch is intended to allow customizing the behavior for whether or not to
prompt for authorization before subscribing or acknolweding alarms.
There was a bug in previous attempts where the profileeditor would be double
initialized, causing the profileeditor to remove some buttons from the GUI.
This patch adds checking for a permission specifically related to acknolwedging
alarms, as well as avoids double-initializing the editor, which causes the
issue with the GUI.
2023-10-22 09:10:35 -07:00
Ben WestandGitHub 73c808958b Merge pull request #8127 from nightscout/wip/bewest/restore-v2
socket.io: enable legacy v2 connections
2023-10-21 18:10:25 -07:00
Ben West 19be01d2c0 socket.io prefer version from @thecubic
This patch removes my own patch to enable allowEIO3 in
favor of @thecubic's patch. They both do the same thing, but
@thecubic's is tested.
2023-10-21 17:46:08 -07:00
Ben West b166afc3bc socket.io: enable legacy v2 connections
The allowEIO3, when set to true allows v2 clients to connect while the
default is false. This patch should allow versions of AndroidAPS older
than 3.2 to connect to NS15 and above.
Thanks to Dave Carlson for researching and experimenting with this
option!
https://socket.io/docs/v4/migrating-from-2-x-to-3-0/#how-to-upgrade-an-existing-production-deployment
https://socket.io/docs/v4/server-options/#alloweio3
2023-10-21 14:58:59 -07:00
Ben West cfe89c867c bump for dev post release of 15.0.1 2023-10-20 09:05:41 -07:00
Ben West c22b9e6be5 create space for developing post release 2023-10-20 08:22:15 -07:00
Ben WestandGitHub f46f869c63 Merge pull request #8109 from nightscout/dev
Releasing 15.0.1, hotfix to revert series of changes affecting mongodb that were not quite ready.
2023-10-20 08:20:13 -07:00
Ben WestandGitHub bfecbe72b4 Merge pull request #8115 from nightscout/hotfix/revert/8026
Revert "Merge pull request #8026 from nightscout/less_frequent_db_upd…
2023-10-19 20:40:55 -07:00
Ben West 89354e5398 bump nightscout-connect version 2023-10-19 20:30:52 -07:00
Ben West 2e65b1dd9b Revert "Merge pull request #8026 from nightscout/less_frequent_db_updates"
This reverts commit 2757fe585d, reversing
changes made to 4a461e5890.
2023-10-19 13:03:38 -07:00
Ben West b2a59ee9dc create next dev area post release 2023-10-18 10:38:10 -07:00
Ben WestandGitHub da3b2eedd8 Merge pull request #7809 from nightscout/dev
dev - candidate for release 15.0.0
2023-10-18 08:13:54 -07:00
Ben WestandGitHub 5d8304809b Merge pull request #8082 from nightscout/crowdin_incoming
New Crowdin updates
2023-10-13 10:39:55 -07:00
Ben WestandGitHub 2d18433755 Merge branch 'dev' into crowdin_incoming 2023-10-12 15:53:59 -07:00
Ben WestandGitHub 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 WestandGitHub 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 WestandGitHub 6e1c69ff4e Merge branch 'dev' into readme-swagger-link 2023-10-11 17:21:36 -07:00
Ben WestandGitHub 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 WestandGitHub 5f8c7345e0 Merge pull request #8100 from nightscout/apiv3sync
APIv3 sync only on srvModified
2023-10-03 08:05:43 -07:00
Ben WestandGitHub 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 WestandGitHub 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 WestandGitHub 282a992a5b Merge pull request #8042 from nightscout/crowdin_incoming
New Crowdin updates
2023-08-04 14:17:42 -07:00
Ben WestandGitHub 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 WestandGitHub 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 WestandGitHub 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