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
Jon
@jonprogers
@cameronrenwick mine has a node of <5 random chars>.azure.mongodb.net - the one you posted is missing the azure but you may have selected a different hosting option to me...
kskandispersonal
@kskandispersonal
@cameronrenwick See my comment above re: MONGO_CONNECTION ... You might be missing quotes around the connection string in the the mongo command.
cameronrenwick
@cameronrenwick
hey everyone.. so I've got nightscout working now but just need to get CGM to NS. I'm using an xdrip and android. Do I need to change my base URL in xdrip or how does CGM get to NS now?
ArthurusDent
@ArthurusDent
@cameronrenwick Everything you need should be in here: https://androidaps.readthedocs.io/en/latest/EN/Configuration/xdrip.html
cameronrenwick
@cameronrenwick
thanks @ArthurusDent .. that's what I needed! I was using an old set of directions.... many thx!
nicoleloop
@nicoleloop
@jonprogers Thanks! That was very helpful! 😊
nicoleloop
@nicoleloop
The wonderful team at mlab made this specialized migration guide specifically for Nightscout users! I asked them if I could share it here so others would also benefit from the rather EXTENSIVE help that I required to get my site back up and running again! LOL.
https://docs.mlab.com/how-to-migrate-nightscout-sandbox-heroku-addons-to-atlas/
gitanO0
@gitanO0
hello all. I've got a new anroid phone and have installed xdrip+ on it and am trying to start an existing sensor/transmitter on the new phone, transitioning from/replacing the old phone. It seems I've done everything right... I've stopped the sensor on the old phone, waited for the system status to say "stopped"... then I disabled the collection on the old phone and turned off bluetooth. I imported my settings into the new phone xdrip+, reinserted the sensor and started a new sensor. Everything seems to be working, I'm getting data, etc... and it says "warming up", which is the big success indicator, however, I am seeing a button below the "warming up" message that says, "Start Source Setup Wizard". That's making me nervous. If I click that, nothing happens. How do I make that go away and just let the app/sensor "warm up" as normal?
ArthurusDent
@ArthurusDent
@gitanO0 Try doing a long press on the blood drop at the top. Check if the wizard is still active.
gitanO0
@gitanO0
@ArthurusDent I just checked... the warmup is done and that button has gone away... so it looks like all's good. Thanks again.
Nick Tiliakos
@ntiliakos_twitter
Apart from the migrating guide which is super useful is there a guide for setting up Nightscout with Atlas in the first place?
Amr Haggag
@aimohaggag
Hi , i have a problem with api secret when login to my nightscout site , it gives wrong api
i have moved to atlas, ir was working fine before
Guy Davies
@guydavies
@aimohaggag the API secret didn't (necessarily) get touched during the update/migration. Check again on your Heroku config site and maybe update the API secret to a new known value and retest.
claresloggett
@claresloggett
Thanks @nicoleloop !
claresloggett
@claresloggett
I wonder if anyone can help me troubleshoot... I have a Nightscout problem that seems to have occurred spontaneously: I am not seeing any BGL readings on the graph, and <my-url>/api/v1/entries.json returns []. I do see treatments (carbs etc) and I do still see data at <my-url>/api/v1/treatments.json . I'm also getting an xDrip error saying that it can't add values to the database. But I'm not sure what's causing the xDrip error, and it doesn't just seem to be a data upload problem - old BGL entries have vanished too
The xDrip+ uploader status error is "Unable to do REST API Upload: Internal Server Error url: <my-url>/api/v1/ marking record: failed"
A bit of googling found a similar error in a case where the mongodb ran out of space (I think?) but again this doesn't explain why old entries have disappeared
I should probably look at NightScout logs?... how do I find those?
Foxy7
@Foxy7
@claresloggett the Nightscout help has migrated over to discord. https://discord.gg/zg7CvCQ best to ask on there now.
claresloggett
@claresloggett
Thanks @Foxy7
Sorry, I had heard, forgot!
Foxy7
@Foxy7
:thumbsup:
Guy Davies
@guydavies
@sulkaharo , 14.0.3 running happily receiving data from AAPS 2.7.0-rc7 + DanaRSv3. I like some of the new report styling. Subtly different and definitely better. Thanks for everything.
Chris
@Tchibola_twitter
Hi, I am trying to setup a local Nightscout instance on a raspberry pi. I have installed node and npm and also installed cgm-remote-monitor. When I try to start with pm2 (env $(cat my.env) PORT=1337 pm2 start server.js), I am getting the following error: "env: ‘careportal’: No such file or directory". In my.env, I have the line "ENABLE=careportal%20openaps%20iob%20bwp%20cage%20basal%20pump%20bridge". Am I doing something wrong with the ENABLE variable definition ?
Guy Davies
@guydavies
I have just noticed that the Automation flows I use to automatically record walks and gym sessions are not uploading the data to NS. When I checked a previously working request (POST) to my NS, I get the response
{
"status": 401,
"message": "Unauthorized",
"description": "Invalid/Missing"
}
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');
?