nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.36k stars 71.35k forks source link

Special character in the variable BRIDGE_USER_NAME #8181

Open JoanoToxo opened 7 months ago

JoanoToxo commented 7 months ago

Hello, I have an email as the value in the variable special character in the variable BRIDGE_USER_NAME. If I put an ampersand in BRIDGE_USER_NAME, bridge does not work, that is, it does not read the dexcom account data. If I put a BRIDGE_USER_NAME without the ampersand it works perfect

oddst commented 7 months ago

Dexcom has now changed their account registration process. It is no longer possible to register a username as earlier. Instead the username will automatically become (and cannot be changed) either your email address (with “@“ and “.”) or even worse your phone number in the format of “+4686751622”. How will BRIDGE or CONNECT support these changes for Dexcom Share?

psonnera commented 7 months ago

I though that was addressed some time ago... https://github.com/nightscout/nightscout.github.io/issues/79

BrianWieder commented 7 months ago

I don't think that usernames based off phone numbers currently work. My dexcom account username is my phone number starting with +1. Based on the startup logs of nightscount-connect, it removes the +. I think it could be due to https://github.com/nightscout/cgm-remote-monitor/blob/21e0591d49235845acba58cf8b3cc7339921185b/lib/server/env.js#L210, since !isNaN('+1') === true therefore value is getting set to Number('+1') which is 1.

CHR15714N commented 5 months ago

Hast this issue been solved? I can't get it to work with my phone number.

cameronm77 commented 5 months ago

Also wondering if there is a fix for the dexcom account with phone number ?

CHR15714N commented 5 months ago

There is no fix, just a workaround. All you can do is create a caregiver account in your account (a Sub-Account) and give it a nickname without symbols. Then login with the new account in your dexcom app and in nightscout.