Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 03 2017 05:02
    @scottleibrand banned @Prosulpump_twitter
Hi! I've had an issue for the past few weeks. Suddenly my NS cannot read data from Carelink. In the logs I'm getting "Request failed with status code 403" every time NS tries to connect to Carelink via mmconnect. Honestly nothing changed in my configuration so I'm not sure what could be the cause? My NS is up to date with master
2 replies
Guy Davies
I think 403 means authentication failed. I think I saw that MDT changed something to block other services from reading the data from Carelink. It could be just a bit of collateral damage from a simple app change or it could actually be another example of the "all this data is our proprietary data as soon as you upload it to our system" mindset common among the big pharma companies for many years 😔
Rafer Gluyas
I'm looking at using Tasker on my Android phone to upload to nightscout, or directly to xdrip+. Any docs or hints on the protocols etc? Or am I destined to read source code.
Guy Davies
Uploading to NS is pretty easy using the REST API. I do the same using Automate on my Android phone to detect activity and push up a note to NS when the activity finishes. You just need to construct a json record with the relevant data and POST it to your NS page with authentication. For v1 API, the authentication uses the SHA1 hash of your API Key. For v3, you need to use a token in the URL to authenticate, I think.
Rafer Gluyas
Sounds good. Guess it is time to dig into how Tasker handles JSON.

Hi there!

I'm trying to access the nightscout endpoints via the rest api, as described in:
I have set "cors" in the "ENABLE" variable, and also set CORS_ALLOW_ORIGIN : "*" variable and now I'm trying to access the ..../api/v1/experiments/test with axios sending the "API-SECRET" header with the api secret in the form of sha1, but I'm getting:

Access to XMLHttpRequest at 'https://<myname>.herokuapp.com/api/v1/experiments/test' from origin 'http://localhost:8081' has been blocked by CORS policy: Request header field api-secret is not allowed by Access-Control-Allow-Headers in preflight response.

Any ideas, does this look like a bug of the "API-SECRET" not being in the list of allowed headers in:
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');


I'm not sure if this is a bug, or I am missing some configuration, but after adding "API-SECRET" to lib/server/app.js:

res.header('Access-Control-Allow-Headers', 'API-SECRET, Content-Type, Authorization, Content-Length, X-Requested-With');

it started working.

Patrick Sonnerat
Might have more answers in Discord. This is not an active room anymore. https://discord.gg/rTKhrqz
@guydavies I'm interested in hearing more about what you have set up there, and how to do it. I never remember to log my activities on NS, and have been looking for a way to auto post my running. I have no idea how to go about a json record though!
Dustin Davis
Does anyone have a good docker-compose file that works with the latest version?
@djedi Does the one included in dev not work for you?
Hi Everyone. Just installed Nightscout trough Herokuapp and all works fine and I can see the BG levels. I do have an issue with the trend arrows that don't seem to work. They just show a double arrow <=||=> like this. Any configuration I am missing ?
Lorenzo Sandini
This is caused by changes in the Dexcom Share data format. Read here : https://discord.com/channels/629952586895851530/629952669967974410/916279397974155264

Link doesn't seem to lead to a channel. Maybe I need to be a member already.
Doesn't really matter. I guess it will come a fix in a later Nigthscout

Thanks for your respond

@psonnera Does that mean it is being tested and will be merged into the normal branch when verified ?
Patrick Sonnerat
@alleac yes
@psonnera Thank you

Hello @all

Small question I want to start the adventure of the closed loop thanks to FreeStyleLibre-2 (FSL-2) + OOP2 + xDrip + AAPS (AAPS + RileyLink in a second time when all the configuration with xDrip + FSL-2 will be totally OK) but the question is whether my choice to use T1Pal is compatible with my FSL-2 + OOP2 + xDrip devices because on https://nightscout.github.io/vendors/T1Pal/new_user/ it is null part indicated that the FSL-2 data may well be sent on the T1Pal service.
I am in total capacity hosting in DIY mode but I want to use the T1Pal service to reward the work and development that has been done so far as well as ensured my data and understand all the connections between the different equipment.

So you can confirm or NOT if T1Pal can match my desired equipment scheme.

Sorry for the English translation not great I am French.

Have a good day

Patrick Sonnerat
@vincent1890 you can upload to T1Pal or DIY independently of your sensor choice with xDrip+ and AAPS (and other data sources).
@psonnera thank you for your answers
Abigail Cember
I'm having trouble changing the timezone on my Nightscout site. I set the new timezone in my profile and saved it, but the change was not reflected, and it's causing my openAPS rig to revert to an incorrect time, also. Does anyone know how to do this properly?
Jürgen Zimmer
quick question: What are the minimum hardware requirements to build and run cgm-remote-monitor? I've just tried to install it on my old raspberry pi 3 (1GB RAM :( ) and failed miserably... webpack didn't get enough RAM. I wonder whether a Raspi 4 with 4GB RAM would be enough.
2 replies

Hi! I am running NS in a private self hosted docker-compose setup which runs happily for 1.5 years now, using medtronic uploader for 600-series on android.
Now I switched to minimd 780G and I have to use mmconnect plugin. I configured it with

    - MMCONNECT_USER_NAME=patientname

But I get no data but this in the logs:

nightscout-cgm | 2022-08-28T22:29:47.856316811Z 2022-08-28T22:29:47.855Z [Arguments] {
nightscout-cgm | 2022-08-28T22:29:47.856396435Z   '0': 'EU login 5 (url: https://carelink.minimed.eu/patient/sso/auth?code=b05c1123-XXXX-XXXX-XXXX-0bb823c8d7df&state=auth)'
nightscout-cgm | 2022-08-28T22:29:47.856419297Z }
nightscout-cgm | 2022-08-28T22:29:48.805059812Z 2022-08-28T22:29:48.804Z [Arguments] {
nightscout-cgm | 2022-08-28T22:29:48.805134116Z   '0': 'GET data https://carelink.minimed.eu/patient/connect/data?cpSerialNumber=NONE&msgType=last24hours&requestTime=1661725788804'
nightscout-cgm | 2022-08-28T22:29:48.805156380Z }
nightscout-cgm | 2022-08-28T22:29:49.043582469Z 2022-08-28T22:29:49.042Z [Arguments] { '0': 'Stale CareLink data: 27695429.82 minutes old' }

Any suggestions? I'm running on NS 14.2.2

Matt Holliday
anyone able to help me disable https redirect on ns?
I've tried INSECURE_USE_HTTP="true" and restarted pm2 (pm2 restart 0 --update-env) but it still redirects
Jürgen Zimmer
I don't know but I'm self-hosting NS 14.2.5 on a raspberry pi with nginx handling the SSL as a reverse proxy and I had the problem with infinite redirects. After setting INSECURE_USE_HTTP=true, things just worked. I'm NOT using pm2 though.

I cross-posted this to intend to bolus as well - anyone get a message from Medtronic today per below? Someone have luck with the comms on the newer medtronic pumps perhaps?? Fingers crossed.....

"Dear Valued Customer:
You are receiving this letter because our records indicate that you may be using a MiniMed™ 600 series insulin pump. For your safety, we want to inform you of a potential issue associated with the communication protocol used by your pump system. Unauthorized access to your pump’s communication protocol could compromise your pump’s delivery of insulin. This letter provides actions and mitigations you should take so please carefully review the information below."

Mark Baumgarten

Where do I find the "Developers guide - this is how to start nightscout in a local development environment". I am a noob when it comes to node development and I always seem to be using the wrong version of node.... Currently I did: 1) npm install 2) npm start. I get this though: mba@mba-ThinkPad-T450s  ~/cgm-remote-monitor   master ±  npm start kubernetes-admin@cluster.local

nightscout@14.2.5 start
node lib/server/server.js

throw err;

Error: ENOENT: no such file or directory, open './translations/undefined.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Function.loadLocalization (/home/mba/cgm-remote-monitor/lib/language.js:148:18)
at Object.<anonymous> (/home/mba/cgm-remote-monitor/lib/server/server.js:33:10)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: './translations/undefined.json'

Patrick Sonnerat
@markbaumgarten might have more answers in Discord https://discord.gg/rTKhrqz
Keith Garland
I'm looking at using CamAPS but it currently only supports Diasend uploads. I know I can use xDrip+ in companion mode to get BG readings but I would really like to get Carbs and Boluses also (and ideally basals). I can export Diasend to xls and use NightScout Uploader but was hoping to do something more realtime. Anyway, CamAPS will be moving to Glooko in January so I guess my question is actually about Glooko.
I know this was asked before but I see that Glooko has APIs which theoretically would facilitate this. Is anyone aware of anyone looking at any form of bridge (or even facility within NightScout itself)? Thanks
Keith Garland
Actually, I see the Discord channel is more active (as per Patrick's comment above) so I will ask there. Thanks
Steve Sixty-Four
@markbaumgarten what's your locale setting? try to set LC_ALL=en_US.UTF-8 and/or LANG=en_US.UTF-8