nightscout / nightscout.github.io Goto Github PK
View Code? Open in Web Editor NEWwebsite, meta repo for whole project
License: GNU General Public License v2.0
website, meta repo for whole project
License: GNU General Public License v2.0
Ben - Looking into how to add my "dexcom-uploader" instructions to the "guides/06-android-app.html.md". The prose.io site looks very helpful -- I've never used it before, but can see how it's tagging content and then using that for rendering.
Questions (so I don't create chaos in trying to contribute)
Thanks.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The “front page” of this project, and where all inquiring minds should be directed: http://nightscout.github.io/ . Once these changes are made, I suggest putting this at the very top of the Facebook group because the veterans are having to direct newbies all the time.
The above “front page” has too many links on it and they are not organized. From what I can discern there should be 3 major sections:
Suggested specific edits:
Copy this document after the three major sections identified above https://attachment.fbsbx.com/file_download.php?id=300539976776929&eid=ASvW380xAmqDoxvM64ityWfa-R8zYLe42AHM5Og7Gj2NKlPUM6JweOx2qA7l7btATAY&inline=1&ext=1403142771&hash=ASu5AewhgLakw7ZN
Then delete it from Facebook
Delete this as it’s now been integrated into the Quickstart Guide
https://www.facebook.com/groups/cgminthecloud/566399763481284/
Create a page in the wiki called Dexcom Error Codes and then copy this post to that page:
https://www.facebook.com/notes/cgm-in-the-cloud/dexcom-error-codes/561005774020683
Then delete it from Facebook
Reconcile this document: https://attachment.fbsbx.com/file_download.php?id=308379319313798&eid=AStWpp_ptNyRFj_KrOuo0sYSVSeFDIPrsQIfjJpV2brwAsNrQDVQKgod73zm3u-ULZI&inline=1&ext=1403142981&hash=ASupexQRvVU9ZMby
With the What Uploaders work best? Link on the wiki.
Then delete it from Facebook
That’s all for now, but I’ll have more suggestions on cleaning up the wiki another day.
Oh, and let’s add a snazzy image to the front page. Maybe this one? https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10408646_786591064708847_4157694538599979556_n.jpg
THANKS!
Jen Montbach
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
In 2019 the ADA and other medical groups announced and published new guidelines for T1Ds and set the NEW ranges as 70-180 SG/BG with >70% TIR. We should show this on our Heroku graphs and alarms/alerts as well. BG_TARGET_BOTTOM (80) should be (70)!
Oops - Nightscout is having trouble
Don't panic, we can work this out! This happens to the best of us.
Check the errors below and then refer to the troubleshooting documentation.
Errors occurred during startup:
Unable to connect to Mongo
{"stack":"Error: MongoDB connection failed! Double check the MONGODB_URI setting in Heroku.
at MongoClient.connect.then.catch.err (/app/lib/storage/mongo-storage.js:63:32)","message":"MongoDB connection failed! Double check the MONGODB_URI setting in Heroku."}
A number of people are trying to conduct polls on Facebook, and they are getting overwhelmed with discussion (naturally).
You say on the wiki that the software is MIT licensed, but "If you sell this software we would consider it stealing." The MIT license specifically allows selling the software.
I have no intention of selling it, but you should definitely clarify.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4007897-clarify-license?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github).@psonnera: Thanks for your hard work with the documentation! I am doing the first migration to Atlas, and will report any documentation issues here. I will just note everything, including minor mismatches. All of this in not necessarily something that needs attention. Just consider it a helping hand at looking for whatever issues might be there. And this was all I could find, in other words, not much :-)
The question about "How are you using MongoDB" was required to proceed.
Did not see the page related to Choose a name for your organization
Click your name, top right, and select View All Organizations
(not "Organizations" [sorry for nitpicking! :-)]
Click Confirm Connectivity (not "Test Connectivity")
There should be a short instruction to paste string into Notepad (missing)
Other guides have mentioned the "Maintenance Mode" in Heroku/Settings, is this required? Or will Heroku stop the apps when Begin Migration
is clicked?
Possibly a missing suggestion about "Patience" before the green "Start Using Atlas" button appears (but it doesn't take very long).
I see from FB that you have already got input on this one:
(and your solution from FB: You're right that's not what should be written. It should read: "Copy the contents of your Notepad (the Atlas string) in the line MONGO_CONNECTION")
The helper script is great, and you could probably make it better by clarifying the last sentence here as well (Step 6: Copy the resulting connection string in Heroku)
And, please do suggest using your helper script as the main method to get a working connection string, I suspect it is just too confusing for most to grasp what should be and not be included.
You have already some instructions for pasting the string into theMONGO_CONNECTION variable, so a review of this whole section can be useful:
Hi,
It could be useful to mention that Access tokens will be changed if API_SECRET is changed. Just as a heads up for anyone that is already using tokens, so they know that any tokens already in use must be updated. Potentially a lot of apps/devices will be affected (family, other caretakers, various devices etc).
The latest release of NS now issues warnings about weak API_SECRET, so many users will be prompted to change theirs.
Probably this could be introduced here:
http://nightscout.github.io/nightscout/security/#create-authentication-tokens-for-users
Side note:
In NS, the tokens are called "Access tokens", but in the security documentation it is "Authentication tokens".
Quickstart guide, especially with my addition of pebble and pictures, has grown a bit.
People on facebook are requesting a simple "step by step" guide. Perhaps it makes sense to break up the quickstart into sections, which each section on it's own page. Reviewing jade
and docpad
stuff.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hi Gurus,
am extracting treatment logs from Accuchek SOLO for upload. testing the rest API for treatments at https:///api-docs/#/Treatments/addTreatments which provides a CURL of
curl -X POST "https:///api/v1/treatments" -H "accept: /" -H "api_secret:stuff" -H "Content-Type: application/json" -d "[{"eventType":"","created_at":"2021-04-10T15:28:00Z","carbs":27,"insulin":3.9}]"
gives an error:
{
"status": 401,
"message": "Unauthorized",
"description": "Invalid/Missing"
}
Any thoughts?
Witam mam problem z połączeniem się z nightscout po aktualizacji. po przeprowadzonej aktualizacji w portalu heroku- zgodnie z instrukcja która była umieszczona na stronie http://nightscout.pl/. wyskakuje mi informacja
Hi @psonnera
I have seen a few people reporting issues with getting their NS site to open when clicking the "View" button after deployment in Heroku. It seems that opening their url manually is working fine, so the deployment must have been successful after all.
Perhaps add a hint to the guide about this, and possibly also in the troubleshooting?
http://nightscout.github.io/nightscout/new_user/#step-4-fork-and-deploy-cgm-remote-monitor
Loop specific paragraph, remove, or rephrase?:
http://nightscout.github.io/nightscout/overview/#predicted-bg
Might be useful after mistakes, to return to a known good point. In the troubleshooting page.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hi everyone: I have set up Spanish in the website showing BG values. I included LANGUAGE ES in Heroku (with language as variable on the left box and ES on the right one). While the site is now translated into Spanish (the text of IOB, COB...) the text spoken continues to be in English. What have I done wrong?
The help says I should set the language IN THE SERVER. What does it mean?
Thanks in advance
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
When I try to select browse on my dashboard it tries to load a new tab but says The page cannot be displayed because an internal server error has occurred. Is this a problem on my end or azure's? Thanks!
Dead link:
http://nightscout.github.io/nightscout/uploader/setup.md
( found here: http://nightscout.github.io/nightscout/new_user/#step-5-uploader-setup
Correct link:
http://nightscout.github.io/uploader/setup/
Ping @psonnera :-)
Hi
In Heroku Config Vars the API_SECRET is set to a certain PW (12 characters) but when trying to launch Nightscout App the PW is not accepted?
Pls help
BR Mikkel
MONGODB_URI
Good morning. My Nightscout herokuapp.com has been working since I created it ten days ago. Now it shows an error message. Could you please help me to solve it?
Thank you in advance
Regards
Edit: it seems to be related to AUTH_DEFAULT_ROLES denied. If I delete this variable and enable it again it works, don't know for how long...
Nightscout - Boot Error
Unable to setup authorization
{"name":"MongoNetworkError","message":"connection 0 to ds157956.mlab.com:57956 timed out","stack":"MongoNetworkError: connection 0 to ds157956.mlab.com:57956 timed out
at Socket. (/app/node_modules/mongodb-core/lib/connection/connection.js:258:7)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Socket.emit (events.js:208:7)
at Socket._onTimeout (net.js:410:8)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)"}
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
For some reason it's wonky.
Other people report similar experience:
For some reason it's wonky, and it doesn't seem to have anything to do with the code (or the instructions).
I reproduced the issue using three different code-bases, two of which are apps maintained by other people, none of them worked correctly using builds from cloudpebble on my recent iOS 7.1.1
.
Historically this part of the API is kind of wonky:
Please change the wording to read may instead of will in this statement. In over 3 years of use as a single user, I have never had to clean or delete the data.
Free databases like M0 Sandbox provided by Atlas will only hold a limited amount of data (512MB) and you will eventually need to manually cleanup. You can extend the capacity to 2 and 5GB paying an M2 or M5 Shared cluster.
The first link on the first page of http://www.nightscout.info/ is broken.
Get Started with Nightscout
Updated! General-purpose Nightscout setup, for Dexcom Share, xDrip+, or Spike
Links to: http://www.nightscout.info/wiki/welcome/set-up-nightscout-using-heroku
Get an OOPs error.
I think it should goto here: https://nightscout.github.io/nightscout/new_user/
I would do a pull request...but i cannot find the page. Sorry.
I will keep looking.
Bunch of useful things here: https://github.com/rnpenguin/cgm-remote-monitor/issues
Might be useful to move them into one of the org repos.
@bewest https://www.youtube.com/watch?v=n0kugielpnw in https://nightscout.github.io/#development-history link in text; and the Nightscout community [over years](https://www.youtube.com/watch?v=n0kugielpnw).
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I'd love to see a preference setting on the uploader to switch between mg/dl and mmol/l - is anyone able to point me in the right direction to add the conversion rate? (x/18.1)
Thanks in advance!
This is a FAQ/POLL that needs to be ongoing.
The current website instructions allow us to track who has done them by looking at forks of cgm-remote-monitor
Braindump: I would like to augment instructions for other providers, including for @jasoncalabrese 's project glu, especially if we can automate instructions.
Braindump, with support of community, it would be great to wrap the whole thing up in a service which does the whole thing.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Please add the value cor in the ENABLE string so that the program Nightscout Reporter will work properly with Nightscout.
New Nightscout Users/Troubleshooting should also include info about possible issues with Dexcom usernames containing special characters, please see below. I had this issue myself with an "@" after trying to use an email address as the username, and have helped a few others with this issue since that.
New Nightscout Users
http://nightscout.github.io/nightscout/new_user/#step-4-fork-and-deploy-cgm-remote-monitor
Troubleshooting section:
http://nightscout.github.io/troubleshoot/troublehoot/#heroku-settings
Documentation of the username issue here: https://github.com/Josef-A/sugarmate2nightscout/blob/master/how_to_fix_en.md
During configuration of the uploader app on my Samsung Galaxy S5, I used the API auto configure tool (http://nightscout.github.io/pages/configure/) to enter the URL and API secret into the uploader app.
My API secret includes special characters (for example, a "#", "%", or "$"). After completing setup, the app wasn't uploading data--it returned an error that indicated an authorization issue. When I reviewed the app settings, I realized that each special character had been converted to its encoded "%23", "%24", or "%25" which caused the error.
This occurred while I was using the 600SeriesAndroidUploader app but I imagine that it would be a problem regardless of the uploader app.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
While migrating our NS sites to Atlas, I documented some steps to simplify the management of multiple NS sites. I didn't want to mention this earlier, as there have been more than enough to deal with regarding the migration process.
Perhaps we could now consider adding these steps to a separate page in http://nightscout.github.io/?
The hints are given in the order of usefulness. Number 1. - 3. are easy, and could be considered mandatory when managing multiple NS sites. Number 4 is the most effort, and probably not very useful to most.
(and a hint about Reverting to a previous deploy in Heroku, which is useful, but slightly off topic)
I have the required screenshots, but haven't edited out the usernames etc yet. @psonnera , what are you using to edit screenshots? It could be good to do it consistently throughout the documentation.
Managing multiple Nightscout sites: Hints to reduce the administrative burden
-but it will take a few clicks now to set it up:
Github:
You need only one Github account!
Then, the Github part of the update Nightscout will only have to be done once.
(must use "pull request for updating for this to work, not the "delete fork" procedure)
(make it even clearer in http://nightscout.github.io/nightscout/new_user/#step-1-create-a-github-account that only one account is needed for multiple NS sites).
Heroku
https://dashboard.heroku.com/apps
Log into the Heroku account that you wish to administer from another account (let’s call the other account the “master Heroku account”).
Select the “App” you want to access from the master account.
Click Access
Click Add collaborator
Enter the email address which is used with the master Heroku account
Click Save changes
You will receive an email, but no actions are needed.
Log out of the current account
Log into your “master Heroku account”
All “Apps” (NS-instances) will be available after login. Select either one to do what you need to do.
Automatic deploy of Nightscout Master:
Click Deploy
Scroll down to Deployment method – Check that your Github account is connected
Scroll down to Automatic deploys
Click Enable Automatic Deploys
Do this for each Nightscout instance in Heroku. Now, all your NS sites will be updated to the latest Master as soon as you perform a “Pull request” in Github.
To update NS, please follow the instructions from within the NS site
Click Check for Updates and follow the instructions. There is a mention about how to proceed with “Enable Automatic Deploys” turned on.
You will only have to do this for one of the NS-sites, the others will be updated simultaneously if you followed the steps above.
(Reverting to a previous deploy:)
Should you ever regret updating your NS, it is easy to revert to any previous version.
Click Activity
Find your previous deploy in the list
Click “Roll back to here”
This goes for any changes made to the Heroku Config variables as well.
MongoDB Atlas
After having migrated your NS databases to MongoDB Atlas (or set up a new NS site with Atlas), these few steps will let you manage all your databases from one login.
https://account.mongodb.com/account/login
Log into the Atlas account that you wish to administer from another account (let’s call the other account the “master Atlas account”).
ORGANIZATION: Click Access Manager
Click Invite Users
Enter the email address of the “master Atlas account”
Select access permissions: Organization Owner
Click Invite to Organization
The invited account will be listed in the Access Manager
Log out of the current Atlas user, and into the “master Atlas account”. You should never have to log into the other accounts again.
Check the email which is used for the “master Atlas account”, look for “Invitation to MongoDB Cloud”, and click “Accept Invite”.
You will be prompted to log into your “master Atlas account” to accept the invite.
Click your name in the upper left-hand corner
You will find all your organizations here. Select either one.
Optional:
To rename the organization, klick the gear icon next to the selected name
Edit the Organization Name by clicking the pen icon
The MQTT URI should default to ssl:// rather than tcp:// or make it configurable.
Hello all,
I follow the tutorial from "https://github.com/nightscout/nightscout.github.io" but I have some problema. I receive this message: "Warning: We couldn't find an existing DocPad project inside your current directory". A attach one print screen with this error.
Please advise me in order to succeed to install this application.
Especially would like to link to facebook and other social groups.
There's already a quick stab on the homepage of linking to facebook, is there a google+ group as well? Any others? Instagram?
From #45
The Mongo tab seems confusing in general. It doesn't follow the documentation on .info and some of the text is unclear.
Can we leverage existing documentation on .info for Step 1; i.e. "Refer to the Nightscout documentation at http://www.nightscout.info/wiki/welcome/configuring-the-data-backend to configure your Mongo database. We can modify the existing documentation / cheat sheet as required to accommodate using this auto-configure tool.
For Step 2, you're really asking for the Mongolab server hostname, port, and db name. Can we change it to say something like "Enter your Mongo server, port, and database name here:" and increase the size of the text box so you can see all data entered. Also, users can copy/paste this text directly from Mongolab.com. Here's an example from one of my databases:
For step 3, if we leverage existing Nightscout documentation for this process, users will already have a db username and password. You could change the text to read "Enter your database username and password"
There are many users with non-standard collection names. I think we should accommodate this by adding a collection box, just as there is in the android-uploader preferences screen. Set the default to entries and allow users to change as required.
Is the Format button required? It seems to auto-format as I enter text.
Suggest merging:
http://nightscout.github.io/pdfs/CGM-Pebble-App-Install-Tutorial-FB.pdf
and
https://docs.google.com/spreadsheets/d/1q6-MszAhMI_6vNPKZSOAFyDAIRHMIgGbQQMwJHrZ1TI/edit#gid=0
(are there others too?)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Entering just api configuration information does not generate a barcode.
See https://www.facebook.com/groups/cgminthecloud/permalink/654808487973744/
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6496703-enable-more-research?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github).Here are a few suggestions for the Configure page used to generate QR codes:
REST Tab
Change "Azure site" text to "Nightscout site" to be more generic, supporting Heroku and other hosting providers. Also, consider enlarging the text box so the user can see the entire URL they enter.
Automatically add /api/v1 to the Nightscout site entered by the user. Currently, if a user enters what is asked for (Azure site) they will get a malformed REST API URL. See below for a malformed URL example.
Mongo Tab
The Mongo tab seems confusing in general. It doesn't follow the documentation on .info and some of the text is unclear.
Can we leverage existing documentation on .info for Step 1; i.e. "Refer to the Nightscout documentation at http://www.nightscout.info/wiki/welcome/configuring-the-data-backend to configure your Mongo database. We can modify the existing documentation / cheat sheet as required to accommodate using this auto-configure tool.
For Step 2, you're really asking for the Mongolab server hostname, port, and db name. Can we change it to say something like "Enter your Mongo server, port, and database name here:" and increase the size of the text box so you can see all data entered. Also, users can copy/paste this text directly from Mongolab.com. Here's an example from one of my databases:
For step 3, if we leverage existing Nightscout documentation for this process, users will already have a db username and password. You could change the text to read "Enter your database username and password"
There are many users with non-standard collection names. I think we should accommodate this by adding a collection box, just as there is in the android-uploader preferences screen. Set the default to entries and allow users to change as required.
Is the Format button required? It seems to auto-format as I enter text.
WebApp tab
The required section should include MONGO_CONNECTION as well as MONGO_COLLECTION. This will accommodate users with existing databases that use non-standard collection names.
Does it make sense to add a label of "Connection Strings" above the variables, values, and the custom label so users know where to enter them?
It would be a little easier to read if the variable name, value, and custom had a little more space in between them.
API_SECRET should be required, at least for anyone who has a REST URL configured.
Hi,
I'm currently using the nightscout service to retrieve data from my miamiao device via spike+. This is then sent to my Sugarmate app from where I log my carbs and bolus. As Sugarmate provides a food database to easily find the carbs iv eaten i'd prefer to use this however if there is a way for me to have a searchable food directory in nightscout, please let me know.
Unfortunately Sugarmate doesn't show me my Insulin On Board which is very useful info in predicting hypos. I see that Nightscout does in fact have an insulin on board calculator and so I'd like to use that however I have an issue where my nightscout site only contains bg readings and not my carb and bolus inputs.
Is there a way for me to sync this data which I am inputting from my sugarmate app (this data also syncs with apple health) to my nightscout app allowing me to input insulin/carb data via sugarmate but open nightscout to check my insulin on board?
Any help will be greatly appreciated!
And also thank you for creating this service, it has been the sole reason I have managed to reduce my hba1c down so drastically!
Best Wishes,
Hamza
Hi everyone
I have migrated to Atlas following this guide https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/
to continue using nightscout, and now i see glucose levels and calibrations but i don't see insulin boluses.
I have the last xdrip version (xDrip-plus-20200713-e14bae1.apk) and i think i have the necessary variables in heroku settings.
Now I can't use Nightscout reporting to correctly see the results obtained.
I have tried to find a solution on the internet but I have not seen anything. If you need more information, please ask me.
Thanks in advance.
(Forgive my bad English but I am Spanish and I am using a translator)
When I got to open the app, here are the errors I am getting:
ENV Error
{"desc":"API_SECRET should be at least 12 characters"}
Mandatory setting missing
MONGODB_URI setting is missing, cannot connect to database
Mandatory setting missing
API_SECRET setting is missing, cannot enable REST API
The MONGODB_URI is not auto-populating as it did in the instructions, and is a required field. I am not sure why I am getting errors about the API secrets either. It set up with Nightscout fine and never said anything about 12 characters?
Any help is greatly appreciated.
When I run this page against a github username that is already up to date, there's a broken image link:
<img src="http://opensourcebridge.org/wp-content/uploads/2009/04/ce16006_f.gif">
A simple small suite of graphics that can be used on a web page to show what the OTG usb cable, why it's important (it's function in controlling master/slave relationship) and how to use it.
Maybe a cartoon/graphic and a picture showing?
Or a picture overlaid with text showing what's happening?
If someone can link the appropriate photos to use in a doc/comment somewhere I'll create page for it.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2353895-simple-set-of-graphics-pictures-showing-otg-cable-how-why?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2443593&utm_medium=issues&utm_source=github).Aparece pra mim..... nighstcout esta tendo problemas..
erros ocorridos durante a inicializacao.
nao e possivel conectar o mongo:
mongodb_url parece invalido: url não tem nome de host, nome de domínio e tld.
por favor, como resolver isso. obrigado.
The dexcom-uploader link on http://nightscout.github.io/ is https://github.com/nightscout/dexcom-uploader, which is a bad (404) request. It should be https://github.com/nightscout/android-uploader, and should probably be renamed, "android-uploader".
The barcode generator should not add a key if the transport is not added
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.