Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #49

Merged
merged 35 commits into from
Oct 20, 2023
Merged

Dev #49

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
dd0c7f0
Point readme to correct location of swagger.yaml
Jan 28, 2022
cf5646b
Increase debounce for data loads to 15 seconds and trigger a data-loa…
sulkaharo May 29, 2023
93ffb25
Upgrade Mongo driver to latest legacy-API compatible version
sulkaharo Jun 1, 2023
32163a0
* Fix storage so tests pass with new Mongo driver
sulkaharo Jun 1, 2023
ea56b79
Fix authorization storage
sulkaharo Jun 2, 2023
b4ab7ce
New translations en.json (Greek)
sulkaharo Aug 21, 2023
203f16f
README.md: use shareous1 for Nightscout connect using Dexcom share
bjornoleh Aug 13, 2023
2ba788d
Merge branch 'dev' into crowdin_incoming
sulkaharo Sep 13, 2023
0e485b4
Enable Ukrainian in translations
sulkaharo Sep 13, 2023
c591292
New translations en.json (Chinese Simplified)
sulkaharo Sep 14, 2023
b0756cc
New translations en.json (Chinese Simplified)
sulkaharo Sep 15, 2023
0b44d5d
New translations en.json (Spanish)
sulkaharo Sep 15, 2023
ed10ca1
New translations en.json (Chinese Simplified)
sulkaharo Sep 15, 2023
8b5c3d8
APIv3 sync only on srvModified
MilosKozak Sep 25, 2023
f722bb6
Merge branch 'dev' into apiv3sync
MilosKozak Sep 25, 2023
5f8c734
Merge pull request #8100 from nightscout/apiv3sync
bewest Oct 3, 2023
10cd789
Merge branch 'dev' into shareous
bjornoleh Oct 6, 2023
b1eb27e
Merge pull request #8073 from bjornoleh/shareous
bewest Oct 6, 2023
6e1c69f
Merge branch 'dev' into readme-swagger-link
bewest Oct 12, 2023
4a461e5
Merge pull request #7312 from jakobsandberg/readme-swagger-link
bewest Oct 12, 2023
3893eb4
allow running any version of LTS
bewest Oct 12, 2023
ebece1b
n 14 && npm install
bewest Oct 12, 2023
48dfa22
set expectation to take around 15 seconds for first load
bewest Oct 12, 2023
c6c0a0a
Merge remote-tracking branch 'official/dev' into less_frequent_db_upd…
bewest Oct 12, 2023
7819223
Allow any LTS version.
bewest Oct 12, 2023
6964916
n 14 && npm install
bewest Oct 12, 2023
97a603f
upgrade nightscout-connect@^0.0.12, npm install
bewest Oct 12, 2023
2757fe5
Merge pull request #8026 from nightscout/less_frequent_db_updates
bewest Oct 12, 2023
2d18433
Merge branch 'dev' into crowdin_incoming
bewest Oct 12, 2023
5d83048
Merge pull request #8082 from nightscout/crowdin_incoming
bewest Oct 13, 2023
da3b2ee
Merge pull request #7809 from nightscout/dev
bewest Oct 18, 2023
b2a59ee
create next dev area post release
bewest Oct 18, 2023
2e65b1d
Revert "Merge pull request #8026 from nightscout/less_frequent_db_upd…
bewest Oct 19, 2023
89354e5
bump nightscout-connect version
bewest Oct 20, 2023
bfecbe7
Merge pull request #8115 from nightscout/hotfix/revert/8026
bewest Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Once you've installed Nightscout, you can access API documentation by loading `/
* Boluses over 2U: `http://localhost:1337/api/v1/treatments.json?find[insulin][$gte]=2`

The API is Swagger enabled, so you can generate client code to make working with the API easy.
To learn more about the Nightscout API, visit https://YOUR-SITE.com/api-docs/ or review [swagger.yaml](swagger.yaml).
To learn more about the Nightscout API, visit https://YOUR-SITE.com/api-docs/ or review [swagger.yaml](lib/server/swagger.yaml).

## Environment

Expand Down Expand Up @@ -525,7 +525,7 @@ To synchronize from Dexcom Share use the following variables.
Optional, `CONNECT_SHARE_REGION` and `CONNECT_SHARE_SERVER` do the same thing, only specify one.
* `CONNECT_SHARE_REGION=` `ous` or `us`. `us` is the default if nothing is
provided. Selecting `us` sets `CONNECT_SHARE_SERVER` to `share2.dexcom.com`.
Selecting `ous` here sets `CONNECT_SHARE_SERVER` to `shareous2.dexcom.com`.
Selecting `ous` here sets `CONNECT_SHARE_SERVER` to `shareous1.dexcom.com`.
* `CONNECT_SHARE_SERVER=` set the server domain to use.


Expand Down
8 changes: 2 additions & 6 deletions lib/api3/generic/history/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ function parseFilter (opCtx) {
}

return [
{ field: 'srvModified', operator: operator, value: lastModified.getTime() },
{ field: 'created_at', operator: operator, value: lastModified.toISOString() },
{ field: 'date', operator: operator, value: lastModified.getTime() }
{ field: 'srvModified', operator: operator, value: lastModified.getTime() }
];
}

Expand All @@ -116,9 +114,7 @@ function parseFilter (opCtx) {
*/
function prepareSort () {
return {
srvModified: 1,
created_at: 1,
date: 1
srvModified: 1
};
}

Expand Down
1 change: 1 addition & 0 deletions lib/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function init (fs) {
, { code: 'sl', file: 'sl_SL', language: 'Slovenščina', speechCode: 'sl-SL' }
, { code: 'sv', file: 'sv_SE', language: 'Svenska', speechCode: 'sv-SE' }
, { code: 'tr', file: 'tr_TR', language: 'Türkçe', speechCode: 'tr-TR' }
, { code: 'uk', file: 'uk_UA', language: 'українська', speechCode: 'uk-UA' }
, { code: 'zh_cn', file: 'zh_CN', language: '中文(简体)', speechCode: 'cmn-Hans-CN' }
// , { code: 'zh_tw', file: 'zh_TW', language: '中文(繁體)', speechCode: 'cmn-Hant-TW' }
];
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nightscout",
"version": "15.0.0",
"version": "15.0.1",
"description": "Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.",
"license": "AGPL-3.0",
"author": "Nightscout Team",
Expand Down Expand Up @@ -116,7 +116,7 @@
"mongo-url-parser": "^1.0.2",
"mongodb": "^3.6.0",
"mongomock": "^0.1.2",
"nightscout-connect": "^0.0.11",
"nightscout-connect": "^0.0.12",
"node-cache": "^4.2.1",
"parse-duration": "^0.1.3",
"process": "^0.11.10",
Expand Down
74 changes: 37 additions & 37 deletions translations/el_GR.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@
"Fat [g]": "Λιπαρά [g]",
"Protein [g]": "Πρωτεΐνη [g]",
"Energy [kJ]": "Ενέργεια [kJ]",
"Clock Views:": "Clock Views:",
"Clock": "Clock",
"Clock Views:": "Εμφανίσεις ρολογιού:",
"Clock": "Ρολόι",
"Color": "Χρώμα",
"Simple": "Απλή",
"TDD average": "Μέσος όρος Συνολικής πρόσληψης ημερήσιας ινσουλίνης",
Expand All @@ -627,49 +627,49 @@
"Base basal average:": "Μέσος όρος βασικού ρυθμού:",
"Carbs average": "Μέσος όρος υδατανθράκων",
"Eating Soon": "Eating Soon",
"Last entry {0} minutes ago": "Last entry {0} minutes ago",
"change": "change",
"Speech": "Speech",
"Target Top": "Target Top",
"Target Bottom": "Target Bottom",
"Last entry {0} minutes ago": "Τελευταία καταχώρηση πριν από {0} λεπτά",
"change": "αλλαγή",
"Speech": "Εκφώνηση",
"Target Top": "Υψηλός στόχος",
"Target Bottom": "Χαμηλός στόχος",
"Canceled": "Canceled",
"Meter BG": "Meter BG",
"predicted": "predicted",
"future": "future",
"ago": "ago",
"Last data received": "Last data received",
"Clock View": "Clock View",
"predicted": "προβλεπόμενο",
"future": "μέλλον",
"ago": "πριν",
"Last data received": "Τελευταία λήψη δεδομένων",
"Clock View": "Εμφάνιση ρολογιού",
"Protein": "Πρωτεΐνες",
"Fat": "Λιπαρά",
"Protein average": "Μέσος όρος πρωτεϊνών",
"Fat average": "Μέσος όρος λιπαρών",
"Total carbs": "Σύνολο υδατανθράκων",
"Total protein": "Σύνολο πρωτεϊνών",
"Total fat": "Σύνολο λιπαρών",
"Database Size": "Database Size",
"Database Size near its limits!": "Database Size near its limits!",
"Database size is %1 MiB out of %2 MiB. Please backup and clean up database!": "Database size is %1 MiB out of %2 MiB. Please backup and clean up database!",
"Database file size": "Database file size",
"%1 MiB of %2 MiB (%3%)": "%1 MiB of %2 MiB (%3%)",
"Data size": "Data size",
"virtAsstDatabaseSize": "%1 MiB. That is %2% of available database space.",
"virtAsstTitleDatabaseSize": "Database file size",
"Database Size": "Μέγεθος βάσης δεδομένων",
"Database Size near its limits!": "Μέγεθος βάσης δεδομένων κοντά στα όριά της!",
"Database size is %1 MiB out of %2 MiB. Please backup and clean up database!": "Το μέγεθος της βάσης δεδομένων είναι %1 MiB από %2 MiB. Παρακαλώ δημιουργήστε αντίγραφα ασφαλείας και καθαρίστε τη!",
"Database file size": "Μέγεθος αρχείου βάσης δεδομένων",
"%1 MiB of %2 MiB (%3%)": "%1 MiB από %2 MiB (%3%)",
"Data size": "Μέγεθος δεδομένων",
"virtAsstDatabaseSize": "%1 MiB. Αυτό είναι %2% του διαθέσιμου χώρου βάσης δεδομένων.",
"virtAsstTitleDatabaseSize": "Μέγεθος αρχείου βάσης δεδομένων",
"Carbs/Food/Time": "Υδατάνθρακες/Φαγητό/Χρόνος",
"You have administration messages": "You have administration messages",
"You have administration messages": "Έχετε μηνύματα διαχείρισης",
"Admin messages in queue": "Διαθέσιμα μηνύματα διαχειριστή",
"Queue empty": "Σειρά μηνυμάτων κενή",
"There are no admin messages in queue": "Δεν υπάρχουν αδιάβαστα μηνύματα διαχείρισης",
"Please sign in using the API_SECRET to see your administration messages": "Παρακαλούμε συνδεθείτε χρησιμοποιώντας το API_SECRET για να δείτε τα μηνύματα διαχείρισης",
"Reads enabled in default permissions": "Reads enabled in default permissions",
"Data reads enabled": "Data reads enabled",
"Data writes enabled": "Data writes enabled",
"Data writes not enabled": "Data writes not enabled",
"Reads enabled in default permissions": "Οι αναγνώσεις είναι ενεργοποιημένες με προεπιλεγμένα δικαιώματα",
"Data reads enabled": "Ανάγνωση δεδομένων ενεργή",
"Data writes enabled": "Εγγραφή δεδομένων ενεργή",
"Data writes not enabled": "Εγγραφή δεδομένων ανενεργή",
"Color prediction lines": "Γραμμές πρόβλεψης με χρωματικό κώδικα",
"Release Notes": "Σημειώσεις έκδοσης",
"Check for Updates": "Έλεγχος για ενημερώσεις",
"Open Source": "Ανοικτός κώδικας",
"Nightscout Info": "Πληροφορίες Nightscout",
"The primary purpose of Loopalyzer is to visualise how the Loop closed loop system performs. It may work with other setups as well, both closed and open loop, and non loop. However depending on which uploader you use, how frequent it is able to capture your data and upload, and how it is able to backfill missing data some graphs may have gaps or even be completely empty. Always ensure the graphs look reasonable. Best is to view one day at a time and scroll through a number of days first to see.": "The primary purpose of Loopalyzer is to visualise how the Loop closed loop system performs. It may work with other setups as well, both closed and open loop, and non loop. However depending on which uploader you use, how frequent it is able to capture your data and upload, and how it is able to backfill missing data some graphs may have gaps or even be completely empty. Always ensure the graphs look reasonable. Best is to view one day at a time and scroll through a number of days first to see.",
"The primary purpose of Loopalyzer is to visualise how the Loop closed loop system performs. It may work with other setups as well, both closed and open loop, and non loop. However depending on which uploader you use, how frequent it is able to capture your data and upload, and how it is able to backfill missing data some graphs may have gaps or even be completely empty. Always ensure the graphs look reasonable. Best is to view one day at a time and scroll through a number of days first to see.": "Ο κύριος σκοπός του Loopalyzer είναι να απεικονίσει την επίδοση του συστήματος κλειστού κυκλώματος. Μπορεί να λειτουργήσει είστε με τη λειτουργία κλειστού κυκλώματος, ανοιχτού κυκλώματος, ή και χωρίς κύκλωμα καθόλου. Ανάλογα με τον uploader που χρησιμοποιείτε, το πόσο συχνά καταγράφει και ανεβάζει τα δεδομένα σας, και το πώς μπορεί να συμπληρώσει προηγούμενα δεδομένα, ενδέχεται μερικά γραφήματα να έχουν κενά ή να είναι εντελώς άδεια. Πάντα να σιγουρεύεστε πως το γράφημα απεικονίζει λογικές πληροφορίες. Καλό θα ήταν αρχικά να κοιτάξετε δεδομένα μια μέρα τη φορά για μερικές ημέρες.",
"Loopalyzer includes a time shift feature. If you for example have breakfast at 07:00 one day and at 08:00 the day after your average blood glucose curve these two days will most likely look flattened and not show the actual response after a breakfast. Time shift will compute the average time these meals were eaten and then shift all data (carbs, insulin, basal etc.) during both days the corresponding time difference so that both meals align with the average meal start time.": "Loopalyzer includes a time shift feature. If you for example have breakfast at 07:00 one day and at 08:00 the day after your average blood glucose curve these two days will most likely look flattened and not show the actual response after a breakfast. Time shift will compute the average time these meals were eaten and then shift all data (carbs, insulin, basal etc.) during both days the corresponding time difference so that both meals align with the average meal start time.",
"In this example all data from first day is pushed 30 minutes forward in time and all data from second day 30 minutes backward in time so it appears as if you had had breakfast at 07:30 both days. This allows you to see your actual average blood glucose response from a meal.": "In this example all data from first day is pushed 30 minutes forward in time and all data from second day 30 minutes backward in time so it appears as if you had had breakfast at 07:30 both days. This allows you to see your actual average blood glucose response from a meal.",
"Time shift highlights the period after the average meal start time in gray, for the duration of the DIA (Duration of Insulin Action). As all data points the entire day are shifted the curves outside the gray area may not be accurate.": "Time shift highlights the period after the average meal start time in gray, for the duration of the DIA (Duration of Insulin Action). As all data points the entire day are shifted the curves outside the gray area may not be accurate.",
Expand All @@ -678,23 +678,23 @@
"Show profiles table": "Show profiles table",
"Show predictions": "Εμφάνιση προβλέψεων",
"Timeshift on meals larger than %1 g carbs consumed between %2 and %3": "Χρονική μετατόπιση για γεύματα μεγαλύτερα από %1 γρ. υδατανθράκων που καταναλώνονται μεταξύ %2 και %3",
"Previous": "Previous",
"Previous day": "Previous day",
"Next day": "Next day",
"Next": "Next",
"Temp basal delta": "Temp basal delta",
"Previous": "Προηγούμενο",
"Previous day": "Προηγούμενη ημέρα",
"Next day": "Επόμενη ημέρα",
"Next": "Επόμενο",
"Temp basal delta": "Μεταβολή προσωρινού βασικού ρυθμού",
"Authorized by token": "Πιστοποίηση από Token",
"Auth role": "Πιστοποίηση ρόλου",
"view without token": "view without token",
"view without token": "προβολή χωρίς συνθηματικό",
"Remove stored token": "Αφαίρεση αποθηκευμένου token",
"Weekly Distribution": "Εβδομαδιαία Κατανομή",
"Failed authentication": "Αποτυχία ταυτοποίησης στοιχείων",
"A device at IP address %1 attempted authenticating with Nightscout with wrong credentials. Check if you have an uploader setup with wrong API_SECRET or token?": "Έγινε προσπάθεια πιστοποίησης στο Nightscout μια συσκευής από τη διεύθυνση IP %1 με λάθος διαπιστευτήρια. Ελέγξτε αν έχετε ρυθμίσει τον uploader με λάθος API_SECRET ή token.",
"Default (with leading zero and U)": "Default (with leading zero and U)",
"Concise (with U, without leading zero)": "Concise (with U, without leading zero)",
"Minimal (without leading zero and U)": "Minimal (without leading zero and U)",
"Small Bolus Display": "Small Bolus Display",
"Large Bolus Display": "Large Bolus Display",
"Default (with leading zero and U)": "Προεπιλογή (με αρχικό μηδέν και U)",
"Concise (with U, without leading zero)": "Συνοπτική (με U, χωρίς μηδενικό προβάδισμα)",
"Minimal (without leading zero and U)": "Ελάχιστη (χωρίς μηδενικό προβάδισμα και U)",
"Small Bolus Display": "Απεικόνιση μικρού Bolus",
"Large Bolus Display": "Απεικόνιση μεγάλου Bolus",
"Bolus Display Threshold": "Bolus Display Threshold",
"%1 U and Over": "%1 U and Over",
"Event repeated %1 times.": "Η ενέργεια επανλήφθηκε %1 φορές.",
Expand Down
2 changes: 1 addition & 1 deletion translations/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,6 @@
"Last recorded %1 %2 ago.": "Última grabación hace %1 %2.",
"Security issue": "Problema de seguridad",
"Weak API_SECRET detected. Please use a mix of small and CAPITAL letters, numbers and non-alphanumeric characters such as !#%&/ to reduce the risk of unauthorized access. The minimum length of the API_SECRET is 12 characters.": "Detectada API_SECRET débil. Por favor, utilice una mezcla de letras en minúscula y en mayúscula, números y caracteres no alfanuméricos como !#%&/ para reducir el riesgo de acceso no autorizado. La longitud mínima de la API_SECRET es de 12 caracteres.",
"less than 1": "menos que 1",
"less than 1": "menos de 1",
"MongoDB password and API_SECRET match. This is a really bad idea. Please change both and do not reuse passwords across the system.": "La contraseña de MongoDB y la API_SECRET coinciden. Esto es una muy mala idea. Por favor, cambie ambas contraseñas y no reutilice contraseñas en el sistema."
}
Loading