Commit Graph
5915 Commits
Author SHA1 Message Date
Ben WestandGitHub 4750f13f9e Merge pull request #7231 from cpitchford/wip/cpitchford/synchronize_dexcom_fetch_times
Optimize time between polling share2nightscout-bridge to reduce ingest lag
14.2.5
2021-12-09 17:21:57 -08:00
Chris Pitchford dc312a8b82 Update test for new default interval
The default interval is increasd from 2.5 minutes to 2.6 minutes
This change incorporates the lag between the app uploading
and the data being available in share2nightscout-bridge

This change also accomodates the optimisation of the refresh interval
based on the last collected data timestamp
2021-12-10 00:46:34 +00:00
Chris Pitchford 7b9e07b79f Merge branch 'dev' into wip/cpitchford/synchronize_dexcom_fetch_times 2021-12-10 00:16:59 +00:00
Chris Pitchford a19a0238d1 Merge branch 'dev' into wip/cpitchford/synchronize_dexcom_fetch_times 2021-12-09 23:17:44 +00:00
Chris Pitchford a34a58ba43 Synchronise the dexcom collection times to reduce refresh lag
When collecting date from Dexcom via share2bridge-dexcom
before we would poll at regular intervals.

Dexcom transmitters / apps refresh every 5 minutes give/take the inaccuracy in the transmitters clock.

If we poll every 5 minutes, we will randomly introduce up to 5 minutes of lag before we refresh.

For example, if we poll 4:59s after dexcom refreshed we will face a 4:59s lag seeing the latest data arrive

This patch introduces a refresh adjustment. We look at the timestamp of the most recent data item and aim to refresh
5 minutes plus a buffer after that timestamp.

for example, 5:20s after the most recent data time. the additional buffer gives dexcom a chance to push the data through their
application/infrastructure (after the app sends the data, it appears in testing to be around 20s before it is available in the API)

This reduces the lag time to a reliable 20 seconds regardless of when nightscout was started and keeps it in track as it drifts forwards and back.
2021-12-09 22:55:52 +00:00
Ben West df4acfae9a Generating codacy coverage should not fail build
This should force the coverage job to return with a success error code.
Codacy changed support for legacy projects.  This change should not cause
builds to fail and should not influence ability to merge pull requests.  Until
further work with coverage with codacy, this change emits a warning of "NO
COVERAGE" while allowing the build to pass, rather than failing the build.
2021-12-06 10:29:33 -08:00
Ben West cc392c8354 Merge branch 'pazaan/fix-docker-image-build' of git://github.com/pazaan/cgm-remote-monitor into dev 2021-12-06 10:22:32 -08:00
Ben West bf3d90db49 Merge branch 'crowdin_incoming' of github.com:nightscout/cgm-remote-monitor into dev 2021-12-06 08:48:40 -08:00
Sulka Haro 0df986fb29 New translations en.json (Chinese Simplified) 2021-12-06 09:05:59 +02:00
Lennart Goedhart 5e0e592949 Fixes broken Docker image build
The `npm audit fix` in the `Dockerfile` is currently
deleting vulnerable packages. Although we do want to have package
security, this should be done in a development process, not as part
of the Docker build.

This commit also reduces the Docker image size and improves security.
2021-12-06 17:56:04 +11:00
Sulka Haro cdc18b96ea New translations en.json (Chinese Simplified) 2021-12-06 06:05:22 +02:00
Ben West 1477c792ba Merge branch 'fix-swagger-auth' of github.com:mjdsys/cgm-remote-monitor into dev 2021-12-03 09:28:12 -08:00
Ben West ededfc847f Merge branch 'wip/cpitchford/increase_mmoll_accuracy' of github.com:cpitchford/cgm-remote-monitor into dev 2021-12-03 09:25:15 -08:00
Ben WestandGitHub 3def3a4a35 Merge branch 'dev' into wip/cpitchford/support_high_low_share2_device 2021-12-03 09:20:03 -08:00
Ben West b00df3d316 use newer version of minimed-connect-to-nightscout
This patches uses a newer versin of minimed-connect-to-nightscout
that is designed to work under the same version of node as
Nightscout.  It should result in Nightscout gaining a capability
to use Medtronic Careportal accounts for cloud to cloud
synchronization.
2021-12-03 09:04:29 -08:00
Ben West 4b58cf7b62 Revert "update minimed-connect-to-nightscout updates"
This reverts commit 513d155728.
2021-12-03 08:35:32 -08:00
cpitchfordandroot 8d83617c92 Support Dexcom HIGH/LOW when device is share2
Using share2nightscout-bridge, the device property is defined as 'share2'

displayBg should honour the Dexcom HIGH and LOW values when the device is share2

This ensures that NightScout returns "LOW" for 39mg/dl and "HIGH" for 401mg/dl as is reported in the Dexcom app/receiver.
2021-12-02 02:37:22 +00:00
cpitchfordandGitHub 44d6cb9900 Merge branch 'dev' into wip/cpitchford/increase_mmoll_accuracy 2021-12-02 02:25:40 +00:00
cpitchfordandGitHub 0bd983cd3c Increase accuracy of mg/dl to mmol/l ratio
Using a ratio of 18 mg/ml to 1 mmol/l causes NightScout to report different values compared Dexcom app/receivers.

A more accurate value is based on 0.0555 mmol/l to 1 mg/dl. The inverse is 18.018018018 mg/dl to 1 mmol/l

This puts the value closer to the Dexcom app/receiver. Affected values:

|mg/dl|  18|18.018018018|
|----:|---:|-----------:|
|  109| 6.1|         6.0|
|  118| 6.6|         6.5|
|  127| 7.1|         7.0|
|  136| 7.6|         7.5|
|  145| 8.1|         8.0|
|  154| 8.6|         8.5|
|  163| 9.1|         9.0|
|  172| 9.6|         9.5|
|  181|10.1|        10.0|
|  190|10.6|        10.5|
|  199|11.1|        11.0|
|  208|11.6|        11.5|
|  217|12.1|        12.0|
|  226|12.6|        12.5|
|  235|13.1|        13.0|
|  244|13.6|        13.5|
|  253|14.1|        14.0|
|  262|14.6|        14.5|
|  271|15.1|        15.0|
|  280|15.6|        15.5|
|  289|16.1|        16.0|
|  298|16.6|        16.5|
|  307|17.1|        17.0|
|  309|17.2|        17.1|
|  316|17.6|        17.5|
|  318|17.7|        17.6|
|  325|18.1|        18.0|
|  327|18.2|        18.1|
|  334|18.6|        18.5|
|  336|18.7|        18.6|
|  343|19.1|        19.0|
|  345|19.2|        19.1|
|  352|19.6|        19.5|
|  354|19.7|        19.6|
|  361|20.1|        20.0|
|  363|20.2|        20.1|
|  370|20.6|        20.5|
|  372|20.7|        20.6|
|  379|21.1|        21.0|
|  381|21.2|        21.1|
|  388|21.6|        21.5|
|  390|21.7|        21.6|
|  397|22.1|        22.0|
|  399|22.2|        22.1|
2021-12-02 01:39:57 +00:00
Ben West 513d155728 update minimed-connect-to-nightscout updates
Include enhancements on the minimed-connect-to-nightscout plugin to include
fetching data from a Careportal account.
2021-12-01 17:19:49 -08:00
Ben West 55e14fe849 update minimum version of share2nightscout-bridge
Forcing a newer version of share2nightscout-bridge in order to keep up
with Dexcom changes.
2021-12-01 16:35:59 -08:00
Sulka Haro 327051e391 New translations en.json (Hebrew) 2021-12-01 01:00:46 +02:00
Sulka Haro c0a566d7aa New translations en.json (Turkish) 2021-11-30 22:05:04 +02:00
Sulka Haro 8b17eb798c New translations en.json (Turkish) 2021-11-27 23:50:25 +02:00
Sulka Haro 27dd88ee52 New translations en.json (Turkish) 2021-11-27 20:46:41 +02:00
Sulka Haro 39cba5ca46 New translations en.json (Polish) 2021-11-22 11:37:52 +02:00
Sulka Haro e9b50e7f09 New translations en.json (Polish) 2021-11-22 08:35:00 +02:00
Sulka Haro 780e5b04d6 New translations en.json (Portuguese, Brazilian) 2021-11-19 15:19:39 +02:00
Sulka Haro 4e0d8fd4de New translations en.json (Portuguese, Brazilian) 2021-11-19 12:22:41 +02:00
Sulka Haro 1b780cb478 New translations en.json (Polish) 2021-11-13 15:24:49 +02:00
Sulka Haro 321592f60d New translations en.json (Polish) 2021-11-13 12:24:52 +02:00
Sulka Haro c65230fcff New translations en.json (Polish) 2021-11-13 09:25:00 +02:00
Sulka Haro 3da5b92780 New translations en.json (Polish) 2021-11-13 00:28:30 +02:00
Sulka Haro f8aa686370 New translations en.json (Polish) 2021-11-12 02:14:55 +02:00
Sulka Haro cf92d4d854 New translations en.json (Polish) 2021-11-11 23:14:45 +02:00
Sulka Haro 69aa5eeec0 New translations en.json (Polish) 2021-11-10 22:33:34 +02:00
Sulka Haro a4fde71a94 New translations en.json (Polish) 2021-11-10 19:32:14 +02:00
Sulka Haro ca7ae174b9 New translations en.json (Turkish) 2021-11-10 01:07:46 +02:00
Sulka Haro fb33420e3a New translations en.json (Turkish) 2021-11-08 03:55:54 +02:00
Sulka Haro 1b6112282b New translations en.json (Turkish) 2021-11-08 00:55:11 +02:00
Sulka Haro 07559b6ff8 New translations en.json (Turkish) 2021-11-07 21:55:21 +02:00
Sulka Haro 473912c81e New translations en.json (Turkish) 2021-11-07 15:55:31 +02:00
Sulka Haro 534c117d3a New translations en.json (Turkish) 2021-11-07 12:55:44 +02:00
Sulka Haro 93f5c0b426 New translations en.json (Turkish) 2021-11-05 23:25:34 +02:00
Sulka Haro cf5503474a New translations en.json (Turkish) 2021-11-05 20:25:56 +02:00
Sulka Haro a08d2aedba New translations en.json (Turkish) 2021-11-05 03:06:26 +02:00
Sulka Haro 753550f656 New translations en.json (Turkish) 2021-11-05 00:06:45 +02:00
Sulka Haro 811249f4ca New translations en.json (Turkish) 2021-11-04 00:25:12 +02:00
Sulka Haro 1f747cdc2d New translations en.json (Turkish) 2021-11-03 21:25:38 +02:00
Matthew Dawson 8e476b3d42 Fix api-secret header name in swagger configuration.
The /api-docs/ endpoint will now send the correct api-secret header
when API_SECRET is used for authentication.
2021-10-31 00:45:55 -04:00