311 Commits
Author SHA1 Message Date
copilot-swe-agent[bot]andbewest 002f34fcda fix: gate UUID write-path normalization on UUID_HANDLING flag and fix docs accuracy
Co-authored-by: bewest <394179+bewest@users.noreply.github.com>
2026-03-17 23:44:47 +00:00
Ben WestandCopilot 86e0564694 docs: clarify UUID_HANDLING only affects _id field, not all UUIDs
The feature only handles the specific case where a UUID is sent as
the _id field itself. It does NOT affect:
- AAPS (uses 'identifier' field)
- xDrip+ (uses 'uuid' field)
- Loop carbs/doses (uses 'syncIdentifier' field)

Only affects:
- Loop overrides (_id: syncIdentifier.uuidString)
- Trio CGM entries (_id: UUID)

See docs/10-domain/client-id-handling-deep-dive.md for full analysis.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 14:40:37 -07:00
Ben WestandCopilot ca22e8d930 docs: fix MongoDB pool default values to match code
Actual defaults in lib/storage/mongo-storage.js:
- MONGO_POOL_SIZE: 5 (not 10)
- MONGO_MIN_POOL_SIZE: 0 (not 1)
- MONGO_MAX_IDLE_TIME_MS: 30000 (not 10000)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 14:36:34 -07:00
Ben WestandCopilot a2c6ce1e5a docs: use neutral wording for UUID handling description
Avoid implying all AID clients use the same pattern or that any
specific implementation is incorrect. Different clients have
divergent sync patterns - the feature accommodates this variety.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 14:32:05 -07:00
Ben WestandCopilot abb505b256 docs: add MongoDB pool settings and advanced test scripts
README.md:
- Add MONGO_POOL_SIZE, MONGO_MIN_POOL_SIZE, MONGO_MAX_IDLE_TIME_MS
  to Core section for production tuning

CONTRIBUTING.md:
- Add 'Advanced Test Scripts' section documenting:
  - test:stress for concurrent write testing
  - test:flaky variants for detecting flaky tests
  - test:timing for finding slow tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 14:28:02 -07:00
Ben WestandCopilot 3bb100836b fix: change UUID_HANDLING default to true
Update default from false to true to enable AID client compatibility
out of the box:

- lib/server/env.js: readENVTruthy('UUID_HANDLING', true)
- README.md: Document UUID_HANDLING in Features section
- docs/example-template.env: Update comments, show true as default

Rationale:
- Loop, Trio, AAPS, xDrip+ use UUID sync patterns by default
- Before MongoDB 5.x, UUID _id didn't crash (just didn't CRUD properly)
- ObjectID users completely unaffected (quirk only triggers on UUID)
- Can set UUID_HANDLING=false for strict mode if needed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 14:17:48 -07:00
Ben WestandCopilot 81393a4c1f docs: update Node.js requirements and add test documentation
- README.md: Update from Node 14/16 to Node 20+ (v22, v24 supported)
- README.md: Update MongoDB from 4.2/4.4 to 4.4+ (5.0, 6.0 supported)
- CONTRIBUTING.md: Add 'Running Tests Locally' section
- Document NODE_ENV=test requirement for safety
- Document npm scripts: test:unit, test:integration

Addresses DOC-NODE-001 and DOC-ENV-001 from release-15.0.7-documentation.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-17 13:02:12 -07:00
Ben WestandGitHub a5d2b98fd1 Merge branch 'dev' into readmeupdate 2025-05-23 09:39:21 -07:00
Ben WestandGitHub a0647e27ca Merge branch 'dev' into google-asst-broken 2024-11-29 12:18:13 -08:00
Ben WestandGitHub 6e1c69ff4e Merge branch 'dev' into readme-swagger-link 2023-10-11 17:21:36 -07:00
Daniel ScrivanoandGitHub ecd8baf733 Merge branch 'dev' into readmeupdate 2023-09-18 22:59:14 -07:00
scrivy b98cc017a6 update readme link to maker plugin doc 2023-09-16 10:46:49 -07:00
bjornoleh 203f16f434 README.md: use shareous1 for Nightscout connect using Dexcom share
Please see https://github.com/nightscout/nightscout-connect/pull/18 for the proposed code change.
2023-09-13 12:31:29 +02:00
inventor96 61477b96ac Added notes about the Google Assistant integration being broken 2023-08-15 20:41:58 -06: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 a6ad6780a9 add a note on OBSCURED and OBSCURE_DEVICE_PROVENANCE 2023-01-12 10:03:36 -08:00
Ben West efc994b423 remove Heroku deploy button from readme 2022-11-16 09:48:30 -08:00
PieterGit 3c516d5baf support > 0.25% of browerslist, see if we can support iOS 9.3.x as well... 2022-08-16 15:49:49 +02:00
PieterGit fb4d467755 update Node requirements. This is a follow up from https://github.com/nightscout/cgm-remote-monitor/pull/7417 since @bewest already merged his branch to dev
add NodeJS 16.x support.
drop NodeJS 12.x support.It reached End-of-Life status on 30 April 2022
allow NodeJS 18.x support to run for CI
upgrade webpack and webpack-cli
update browserlist and browser documentation, config is now at .browserslistrc
update README.md for browsers and Node versions
fix typos in comments in lib/client/hashauth.js and webpack/webpack.config from https://github.com/nightscout/cgm-remote-monitor/pull/7440
2022-08-15 17:44:08 +02:00
Jakob Sandberg dd0c7f07d0 Point readme to correct location of swagger.yaml 2022-01-28 09:23:25 -08:00
Ben West 3149bf8b95 task: clean project root
setup.sh appears to be a developer utility to assist in bootstrapping a debian
based system.  It is intended to help install the dependencies needed to run
node, and not used in any automated deploy pipeline.

Instructions have been updated to suite this change which simply moves the
developer tool out of the project repo and into the bin subdirectory.
2021-02-18 10:02:00 -08:00
Ben West 5ae162cc6b task: clean project root
Move update image into docs folder, away from project root.
2021-02-18 09:55:47 -08:00
Ben West a42408b0a7 task: clean repo root
This change seeks to continue tidying up the repo.

* The database_configuration.json file is not used and has not been used since
  the project was published on github.  We remove the ability to look at files
  inside the source tree for database credentials.

*  Move example-profiles.md to the relevant documentation for plugins area and
   update the link to match.
2021-02-18 09:46:29 -08:00
d762694b83 Bolus settings (#6834)
* Add bolus plugin and restructure rendering settings

* Add setting to prevent automated micro boluses from triggering notifications and snoozing alarms

* clean up

* Small change to the bolus-settings branch so it supports flexible configuration that enables the old behavior

* Translations

* Fix settings default

Co-authored-by: Jason Calabrese <jason@cbrese.com>
2021-02-02 19:14:32 +02:00
3ee90d6927 feat: disable pump battery alarms at night option (#5359)
* feat: add feature to disable pump battery alarms at night

* add timezone handling for server side

* Update pump.test.js

* Update pump.test.js

* Update pump.test.js

Co-authored-by: Jeremy Cunningham <jpcunningh@gmail.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-01-17 15:31:31 +02:00
Sulka Haro 85c59a66a9 Merge branch 'master' into dev 2020-11-14 11:36:48 +02:00
f81ac5922a Adding Hungarian translation to nightscout (#6037)
* Finished first round of translation for Hungarian language

* Added hungarian language to the readme file

* Fixes

* WIP

* Typo fixes and changes to translations

* Update language.js

Fixed some mistyped language keys

Co-authored-by: Andy Feher <andras.feher@smildonis.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-11-11 17:01:35 +02:00
Sulka HaroandGitHub 0aed5c93a0 Update README.md
Explicitly link to the application template in Github
2020-10-03 09:07:13 +03:00
Sulka Haro 14621a4f29 Update README to point to new docs 2020-09-13 10:03:36 +03:00
Dominik DzieniaandGitHub 22d150664b Fix dbsize for usage with Atlas (#5962) 2020-09-08 08:01:58 +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
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 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
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
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
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
Sulka HaroandGitHub 78be0f6a4d mgdl -> mg/dl (#3423) 2020-01-01 11:33:23 +02:00
Sulka HaroandGitHub 83c22f92ab Read BG targets in using mmol when server is in mmol mode (#5291)
* Read BG targets in using mmol when server is in mmol mode

* Change the Heroku template to match the new logic

* Deal with mmol targets being set using commas
2019-12-15 16:13:53 +02:00
Sulka HaroandGitHub c153a965bc Merge pull request #5137 from inventor96/update-virtual-assistants-v2
Update virtual assistants v2
2019-12-06 12:18:26 +02:00
Jeremy CunninghamandSulka Haro f7750b3534 Rename xdrip-js to xdripjs (#4959)
* rename xdrip-js to xdripjs

* update readme for xdrip-js name change

* update from CGM to XDRIPJS label

* change label from all caps to mixed case for xDripJS

* change pill label back to CGM
2019-11-10 22:32:46 +00:00
John WestonandSulka Haro 9877a5133e Wording tweaks to go with #4810 (#4866)
* mmol/L wording tweak in Readme

* Various wording & clarity tweaks in the Readme

* Heroku template update to reflect mmol allowance tweak

* Update README.md

* Update minimum device requirements

Ran some proper browser test suites, determined actual minimum specs for the main site.
2019-11-10 21:53:46 +00:00
ireneusz-ptakandSulka Haro d3bd77b514 Extra info (delta and last measurement time) on clock view. (#5151)
* Parametrized clock view

* Parametrized clock view
2019-11-10 21:51:19 +00:00
John WestonandSulka Haro 1b8dc27c19 Adding to #5121 (#5126)
* changed gitter shield to discord

* changed discord shield text to discord chat instead of just chat

* changed gitter shield to discord

* need to fix my md error

* Update CONTRIBUTING.md

Few more tweaks

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update README.md

Change Discord URL to be an invite link instead of a direct link to the channel (which doesn't work if you're not already in it).
2019-11-10 21:48:56 +00:00
DiabetlumandSulka Haro fcfc209f22 Turkish language updates (#5192)
* Turkish language updates

* in to Languages Part Turkish added

* in to Languages Part Turkish added
2019-11-10 21:04:48 +00:00
inventor96 67e6cddc4b Merge branch 'update-virtual-assistants' into update-virtual-assistants-v2 2019-10-21 14:24:58 -07:00
PieterGitandGitHub 36de82bffd Revert "fix/feat: Update Alexa integration and add Google Home support (#4980)" (#5131)
This reverts commit 30b88f6765.
2019-10-21 16:23:32 +02:00
CalebandPieterGit 30b88f6765 fix/feat: Update Alexa integration and add Google Home support (#4980)
* Copied work done by mdomox

* Updates and fixes to CONTRIBUTING.md

* Spacing unification

* One more fix for CONTRIBUTING.md

* Minor code formatting improvements

* One more time...

* Renamed Alexa stuff to virtAsst for generic-ness

* Corrected missed translate() text

* Updated googlehome plugin to mimic the alexa plugin

* Changed order of operations

* Fixed parameter referencing in googlehome

* Yet another CONTRIBUTING fix

* Removed extra google stuff

* Migrated standalone intents to MetricNow intent

* Simplified route handling

* Added logging

* Added forgotten path selector

* Separated instructions for adding virtual assistant support in a plugin

* A few typo fixes

* Improved logging

* Updated Google Home plugin instructions

* Attempt to trigger download of template file

* Small wording tweaks

* Updated Alexa plugin documentation

* Updated test files

* Re-added handler count tests so devs are prompted to write tests for new handlers

* Updated Alexa documentation

* Small typo fix

* Clarification

* Further clarifications and typos

* Added language info to Google Home plugin doc

* URL correction

* URL fix v2

* Wording clarification

* Ugh...

* Minor instruction fix

* Sub steps fix

* Fixed Alexa references in Google Home

* Added a couple steps for improved user experience

* One more forgotten step

* Updated pump reservoir handler to handle undefined values

* Updated titles and unknown-value responses

* Modified forecast responses to use translate()

* Updated tests

* Improved training phrases

* Wording improvements

* Google Home setup instruction corrections

* Corrected how metric selection is found
2019-10-21 14:09:49 +02:00
John WestonandSulka Haro 06e3d6a23e Clock cleanup (#5018)
* Create robots.txt

* Update robots.txt

* Delete robots.txt

* refactor clock css

* swap css import order

* Update README.md

* Update index.html

* Update bgclock.css

* Update shared.html

* Update clock-shared.css

* Update settings.js

* Update clock-shared.css

* Update clock-shared.css

* Update robots.txt
2019-10-21 10:01:19 +03:00
OpossumGitandSulka Haro a9f89aa679 changed gitter shield to discord (#5121)
* changed gitter shield to discord

* changed discord shield text to discord chat instead of just chat

* changed gitter shield to discord

* need to fix my md error
2019-10-21 08:54:45 +03:00