Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nighscout Port 443/80 #71

Closed
Dabbadoeber opened this issue Oct 16, 2022 · 5 comments
Closed

Nighscout Port 443/80 #71

Dabbadoeber opened this issue Oct 16, 2022 · 5 comments

Comments

@Dabbadoeber
Copy link

Is it possible to change the port numbers of the nightscout connection ?
I have nightscout running locally on a synology nas in docker port 80 and 443 are occupied by the nginx server
1337 is the port i use for web interface is it possible to use other ports to upload the data ?
i am new to this so forgive me, as i dont not fully understand everything.
my ultimate goal is to obtain the glucose data in home assistant so at night i can make some automations.

Gr.

@timoschlueter
Copy link
Owner

Yes, this is possible: Just add the Port to your Nightscout URL.
For example: nightscout.example.com:1337
Additionally, you might want to disable the default HTTPS connection by setting the environment variable NIGHTSCOUT_DISABLE_HTTPS to true.

This should make your setup work :)

@Dabbadoeber
Copy link
Author

Have tried a lot but no luck,
This is the log file:
[info]: no authTicket.expires
[info]: Logged in to LibreLink Up
info]: -> The following connection will be used: somebody (Patient-ID: 8723424234234234234234)
error]: connect ECONNREFUSED 172.17.0.4:80
info]: Trying to upload 142 glucose measurement items to Nightscout

NIGHTSCOUT_API_TOKEN - is the the acces token i have in nightscout on the admin page ?

@timoschlueter
Copy link
Owner

Not the main API admin token to access the “Admin Tools”. It’s a separate token you create (a so called “Subject”) via the Nightscout Admin Tools. You can create such token and give it the “admin” role. The returned token is the one you use with this app.

@Dabbadoeber
Copy link
Author

Thanks, i followed Upload Nightscout fail #15
now i get some data, Thank you for this !

@timoschlueter
Copy link
Owner

Awesome! Glad that you could resolve the problem. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants