Troubleshoot Dexcom Share
Note
The recommended way to receive Dexcom Share data in Nightscout is the connect plugin with CONNECT_SOURCE set to dexcomshare (see here). The bridge plugin (Share2Nightscout bridge) is deprecated. Nightscout 15.0.8 and later still accept the legacy BRIDGE_* settings but serve them through nightscout-connect by default, so logs refer to Connect even when your variables use Bridge names. If a deployment-specific problem begins after upgrading, DEXCOM_BRIDGE_USE_LEGACY=true temporarily restores the deprecated share2nightscout-bridge implementation while you troubleshoot. See how to migrate.
Username and password
Your Dexcom account is the one that identifies you to access all services: Store, Clarity and mobile apps. In order to make sure you’re accessing the right account, log into Clarity to check your credentials are valid.
For US account: https://clarity.dexcom.com/
For all others: https://clarity.dexcom.eu/
In the case you have linked accounts, check you are using the right credentials for the profile you want to connect to Nightscout.
Verify you actually have current data in this profile/account! You want to put the username and password of the account that has CGM data in the CONNECT_SHARE_* (or legacy BRIDGE_*) variables, this is usually the credentials you are using with the master phone (the one connected to the sensor).
Password
Some people have had problems with their bridge connecting when their Dexcom passwords are entirely numeric. If you have connection issues in that case, try changing your password to something with a mix of numbers and letters.
Changing password
Before you decide to change your password, make sure to update your Nightscout variables accordingly and make sure you have recent data in Clarity before exiting maintenance mode.
Username is an email
Newly created Dexcom users do not have an username but only an email address.
This can be an issue if you want to have your data directly in Nightscout. Make sure you’re using the latest release if you experience problems.
Common symptoms are:
no data in Nightscout even with correct credentials
account locking once or more per day even with correct credentials
Username is a phone number
New users might have the phone app setup with their phone number including country code and the symbol +. This is not supported by Nightscout. Continue below and create a dependent account with an alphanumerical username.
Obtaining a username
Dependent accounts can have a username.
You can create your Dexcom account and add dependent accounts for children, wife, …
Some dependent accounts with an email address can generate problems when trying to connect directly to Nightscout.
Account lock
You can check if your account is locked by trying to log into Clarity.
If you see this message, you must disable (enter an empty username for example) all devices and apps trying to get data from or push data into Dexcom share.
In order to recover from an account lock, it is usually enough to wait for 10-15 minutes after you disabled all devices and apps trying to access the account with a wrong password.
Do not forget any app or device!
Nightscout
Smartwatches apps
Sugarmate, Happy Bob, xDrip,…
…
Dexcom Share
Make sure you have Dexcom Share turned ON in your Dexcom app. In the Dexcom app’s main screen, find the triangle made of dots. If the dots are grey, you do not have Share turned on. Tap the triangle, and follow the directions to add a follower (yourself if you don’t have someone else you’d like to invite) and turn on Share.
If you are using a Dexcom system, and your data is not appearing in Nightscout, there are only a limited number of reasons for that. You should check your (1) Nightscout settings and (2) Dexcom Share.
NOTE: The #1 reason why BGs aren’t showing is that you have mismatched password and user names in Nightscout settings and Dexcom.
Verify your configuration
Variables location will depend on the platform you use:
You must use the same
CONNECT_SHARE_ACCOUNT_NAMEandCONNECT_SHARE_PASSWORDthat your Dexcom mobile app is using.CONNECT_SOURCEmust bedexcomshare, and you must haveconnectandcareportalon theENABLEline (you can have other values there, but don’t forget these two).If you are outside the USA, you must add
CONNECT_SHARE_REGIONset toousin Nightscout variables settings. If you are in the USA, don’t add it.Your
careportalmust be one word in theENABLEline, sometimes autocorrect makes it two words.If using
mmol, make sure you have spelled that value correctly in theDISPLAY_UNITS.If you still use the deprecated
bridgeplugin:bridgemust be on theENABLEline,BRIDGE_USER_NAMEandBRIDGE_PASSWORDmust match your Dexcom app, andBRIDGE_SERVERmust beEUoutside the USA or empty in the USA (in Nightscout 15.0.8 the valueUSis passed to Nightscout Connect as a server name and no data is received). Consider migrating toconnect.
Migrate from the deprecated bridge plugin
The bridge plugin (Share2Nightscout bridge) is deprecated and its legacy share2nightscout-bridge implementation will be retired in a future release. Since Nightscout 15.0.8 your BRIDGE_* settings are already served by Nightscout Connect, so switching to the connect plugin changes nothing in the data you receive, but keeps your site ready for the retirement.
Legacy |
|
|---|---|
|
|
|
|
|
|
|
|
|
nothing (the default region is |
|
nothing (Nightscout Connect manages its own polling and retries) |
Add
CONNECT_SOURCEwith the valuedexcomshare, then theCONNECT_*variables listed in the table above.Replace
bridgebyconnectinENABLE.Delete all the
BRIDGE_*variables, andDEXCOM_BRIDGE_USE_LEGACYif you added it.Restart your site (or wait for the automatic redeploy) and check data is flowing in.
Authentication errors
One thing that can happen if you have an incorrect Dexcom login/password in your Share account settings and/or in your Nightscout CONNECT_SHARE_* settings is that Dexcom will lock your account…and you won’t see CGM data in Nightscout. If you notice your CGM readings disappeared, but everything else is flowing…
Check your Heroku logs that are viewable by selecting View Logs from the drop-down menu underneath the More option.
With Railway they are available selecting your app, then Deployments and View Logs at the end of the top (last) deployment line.
Do your logs have “SSO authentication errors” like in the red box highlighted above? With Nightscout 15.0.8 and later, look for ERROR AUTHENTICATING ACCOUNT or nightscout-connect: Dexcom authentication failed instead. If you do, then:
Delete your Dexcom credentials within Heroku settings. Don’t delete the variables, just delete the values of
CONNECT_SHARE_PASSWORDandCONNECT_SHARE_ACCOUNT_NAME(orBRIDGE_PASSWORDandBRIDGE_USER_NAMEwith the deprecatedbridgeplugin).Wait 15 minutes and then follow the directions below. It is important to wait 15 minutes: the reason you can’t log in right now is that your Dexcom account has a temporary lock from the passwords in the step above being incorrect. The temporary lock will expire after 10-15 minutes of giving the account login a break from the incorrect logins. So, definitely wait or else you’ll just keep prolonging the issue.
Hint
About your Dexcom password and user name The most common error on initial Nightscout setups is that people incorrectly use an old account or an old password. To test your username and password, go to Dexcom’s Clarity page (check here for USA accounts and here for the others) and try logging in to your Dexcom account. If your account info isn’t valid, or you don’t see any data in your Clarity account… you need to figure out your actual credentials before moving ahead.
Detailed logs
Since Nightscout 15.0.9, routine Dexcom Share messages are no longer logged by default. If you need to see what the connection is doing, add the variable CONNECT_DEBUG set to true (or DEBUG_LOGGING for the whole server) and restart your site. Errors and warnings are always logged, even without these variables. Remove them once you are done: verbose logs can exhaust the log quota of hosted platforms like Heroku.