Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 03 2017 05:02
    @scottleibrand banned @Prosulpump_twitter
Guy Davies
@guydavies
It doesn't really tell me what is Invalid/Missing but the API_KEY is correctly converted into a SHA1 string and it was working pre-14
@sulkaharo , any suggestions what I may have missed in the git logs. I couldn't find anything suggesting that the authentication had changed, looking back through the tagged releases
Guy Davies
@guydavies
It appears, from a little testing with Postman, that it works if I put a valid token on the end of the URL, but not any more if I put the API-SECRET converted to SHA1 into the HEADERS.
I can use that approach but it's interesting that it's changed. If I've missed it in a release note then apologies.
Guy Davies
@guydavies
Hmm, but interestingly, it only works if the token has admin rights. I've tried api:treatments:create, api:activities:create, both of which are system defaults, but only admin works.
Sulka Haro
@sulkaharo
Right, that should not have changed. Need to check what’s up
Guy Davies
@guydavies
Thanks @sulkaharo. Let me know if you need anything from me. Happy to help.
Guy Davies
@guydavies
Hi @sulkaharo , I also noticed a couple of "oddities" in the JSON in the swagger /api-docs/ for treatments. The first is that "created_at" doesn't follow the customary camel case for attribute names (I would have expected "createdAt"). It's not critical but probably good to change unless it's an insanely huge task. The second is that "duration" is missing from the (I presume) supposedly complete set of attributes. I use the API to push activities automatically from Automate into NS where I set a start and end time and calculate the duration before pushing. It seems to work but that option is absent from the swagger. I could take a look at the relevant files to see if I can fix them but I would be nervous of breaking everything ;-)
Foxy7
@Foxy7
@guydavies that's a good spot, agree "duration" isn't there. i was looking at this last night for the first time. i use HTTP Shortcuts to upload info about exercise and temp targets etc and wanted to add some more colour to NS from our OpenAPS rig automatically. i also see that "reason": isn't on the list (this adds a line below "eventType" to give more info on the treatments page). I got the info from the docs: ifttt-integration so these still work, but somehow haven't made it to the swagger docs.
loopy321
@loopy321
Is there a way to use the URL to set a view/theme/color? i.e. http://nightscout.site/?theme=colors&show=IOB,COB
Foxy7
@Foxy7
@bobhavlin the Nightscout help has migrated over to discord. https://discord.gg/zg7CvCQ best to ask on there now.
DonaldBough
@DonaldBough
Hi all! I'm excited I found the nightscout dev gitter here. I've been googling around and can't find any existing apps or services that sync Apple Health data into Nightscout. I'm mainly wanting to see my apple watch workouts overlayed onto my glucose when reviewing my BGs for the week. Has anyone seen this yet? I know tidepool uploads your Apple Health data, but they don't even let you visualize workouts which is frustrating. Thanks in advance.
Eric
@ecc1
@DonaldBough actually, you found the previous dev channel. Current one is now on discord, see a few posts back for the invite link
DonaldBough
@DonaldBough
Gotcha thanks.
Svet
@fichtenweg
does anyone know how can I stop uploading "LimiTTer" data to Nightscout
I mean the battery info, seems like xDrip+ interprets it like Bridge battery and uploads it although I did not configured uploading
Patrick Sonnerat
@psonnera
@fichtenweg https://gitter.im/jamorham/xDrip-plus might be the place to ask
idowolf
@idowolf
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
@guydavies
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
@rafer.gluyas_gitlab
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
@guydavies
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
@rafer.gluyas_gitlab
Sounds good. Guess it is time to dig into how Tasker handles JSON.
Piotr
@turbofart

Hi there!

I'm trying to access the nightscout endpoints via the rest api, as described in:
https://github.com/nightscout/cgm-remote-monitor/wiki/API-v1-Security
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:
lib/server/app.js:
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');
?

Piotr
@turbofart

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
@psonnera
Might have more answers in Discord. This is not an active room anymore. https://discord.gg/rTKhrqz
Dave
@mistermintsgh
@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
@djedi
Does anyone have a good docker-compose file that works with the latest version?
philipgo
@philipgo
@djedi Does the one included in dev not work for you?
alleac
@alleac
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
@lsandini
This is caused by changes in the Dexcom Share data format. Read here : https://discord.com/channels/629952586895851530/629952669967974410/916279397974155264
alleac
@alleac

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

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

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
@psonnera
@vincent1890 you can upload to T1Pal or DIY independently of your sensor choice with xDrip+ and AAPS (and other data sources).
vincent1890
@vincent1890
@psonnera thank you for your answers
Abigail Cember
@acember
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
@juzi
Hi,
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
psit
@psit

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
    - MMCONNECT_PASSWORD=password
    - MMCONNECT_SERVER=EU
    - MMCONNECT_VERBOSE=true

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
@mattmholliday
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
@juzi
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.
JELCRAWFORD
@JELCRAWFORD

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
@markbaumgarten

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

node:internal/fs/utils:344
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
@psonnera
@markbaumgarten might have more answers in Discord https://discord.gg/rTKhrqz
Keith Garland
@Cagier
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
@Cagier
Actually, I see the Discord channel is more active (as per Patrick's comment above) so I will ask there. Thanks
Steve Sixty-Four
@steve8x8
@markbaumgarten what's your locale setting? try to set LC_ALL=en_US.UTF-8 and/or LANG=en_US.UTF-8