timoschlueter / nightscout-librelink-up

Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout.
MIT License
192 stars 246 forks source link

No Data is being uploaded to Nightscout #64

Closed Birkertf closed 1 year ago

Birkertf commented 2 years ago

After setting everything up, this log appears, no data is being uploaded to Nightscout.

Has anybody got an Idea what to do?

2022-08-31T08:10:01.281280+00:00 app[worker.1]: [info]: -> The following connection will be used: Fabian Birkert (Patient-ID: 3cd57fc6-***********-8126-02d09c370615)
2022-08-31T08:10:06.514459+00:00 app[worker.1]: [error]: {"status":401,"message":"Unauthorized","description":"Invalid/Missing"}
2022-08-31T08:10:06.514621+00:00 app[worker.1]: [info]: Upload of 139 measurements to NightScout succeeded
timoschlueter commented 1 year ago

Have you checked your nightscout API token? It seems that the token you set is not valid and nightscout returns a 401 Unauthorized response. Have you created a new token specifically for librelinkup?

Birkertf commented 1 year ago

The token is the same as the one i set up in Nightscout...

Any other idea?

sfgul commented 1 year ago

Hello how to create new token?

timoschlueter commented 1 year ago

You have to open the Admin Tools after authenticating with your main Nightscout admin token. Within the Admin Tools, you can create a new Subect (pink arrow). Make sure that you give the subject a name and a role with read and write capabilities (or simply admin, if you don't care about fine-grained control). After that you can find the access token to use with this application under Access Token in the list of subjects (green arrow):

image
sfgul commented 1 year ago

Thank you so much :)

Chapagain43 commented 1 year ago

EDIT: Deleted earlier comment had an issue with writing to Nightscout... found out that I had "https://" followed by the site address... "https://" is not needed, soon as I took this out from the heroku config vars it started to write