nightscout / cgm-remote-monitor

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

no BG values in nightscout #7479

Open Thomas-git opened 2 years ago

Thomas-git commented 2 years ago

Describe the bug No BG data displayed in Nightscout (but everything else is)

To Reproduce I use AndroidAPS, xDrip+ and LibreLink pached. Nightscout is installed on my own server. BG data is available in AndroidAPS. NSClient is properly configured and send data to Nightscout. But Nightscout shows everything but BG values. AndoidAPS objectives shows everything OK except "BG readings available in NS". Did I missed a plugin to enable ?

Expected behavior CGM BG readings should be visible

Screenshots Capture d’écran du 2022-07-10 16-49-50

Your setup information

Additional context My env variables

ENABLE="direction timeago delta upbat careportal basal dbsize rawbg iob maker bridge cob bwp cage iage sage boluscalc pushover treatmentnotify pump profile food openaps bage override cors"
AUTH_DEFAULT_ROLES="denied"
DEVICESTATUS_ADVANCED=true
PUMP_FIELDS="reservoir battery clock"
SHOW_FORECAST="openaps"
PUMP_ENABLE_ALERTS=true
PUMP_URGENT_BATT_V=1.39
PUMP_URGENT_RES=10
PUMP_URGENT_CLOCK=60
OPENAPS_WARN=30
OPENAPS_URGENT=60
SHOW_PLUGINS="direction timeago delta upbat careportal basal dbsize rawbg iob maker bridge cob bwp cage iage sage boluscalc pushover treatmentnotify pump profile food openaps bage override cors"
DISPLAY="filtered"
ALARM_TYPES="predict"
LANGUAGE=fr
DISPLAY_UNITS="mg/dl"
MONGO_CONNECTION="***********"
BASE_URL="*************"
PORT=8080
API_SECRET="*********"
TIME_FORMAT=24
INSECURE_USE_HTTP=true
victoreekhof commented 2 years ago

I have the same issue with my Android 600 uploader -> Nightscout site connection, it shows stale data for the BG, but everything else seems to update still (such as bolusses given, calibration times), just not the value. Any ideas? I tried restarting heroku, checking mongodb, checking internet connections, opening/closing apps, updating repo to latest version, upgrading heroku to v22.

For 2 days in a row the BG graph stopped at 3am, and then started working again at 5pm.

Using the latest version of NS.

zdfields commented 2 years ago

Having the same issue with apple, dexcom and ns. No bg readings for 2 days now. ns

zehnBE commented 1 year ago

@Thomas-git , was shows in xDrip: "systemstate, 3th tab (uploader queue)"? There will be an error message.

@victoreekhof The 600er Uploader App, does not send BG Values, if the time changed. Disable on the master phone the automatically timedetection over the mobile service provider and check on the Pump, phone and Nightscout the Time, that is all the same. Then it will working fine again after 24 Hours.

@zdfields do you use the dexcom bridge or Upload over iphone loop?

Thomas-git commented 1 year ago

Data is sent by AndroidAPS. In the NSClient tab, uploading data leads to the same error from time to time (especially when uploading large chucks of data): io.socket.engineio.client.EngineIOException: xhr poll error. NSClient pause for 15 minutes and, most of the time, sending works again.

michaelcadilhac commented 1 year ago

@Thomas-git Are you using an Apache reverse proxy by any chance? Some users (e.g., Michael Schloemp ) report that the error disappears when switching to Nginx. I'd rather keep my Apache configuration though… Also, the usual solution found around the web for this error message is to add android:usesCleartextTraffic="true" to the application's manifest. This did not work in my case. That's a very obscure error…

Thomas-git commented 1 year ago

@michaelcadilhac I already use Nginx as a reverse proxy. I will try your manifest trick though. But I don't understand why and how this error can be related to having all data in nightscout except for BG readings!?

michaelcadilhac commented 1 year ago

@Thomas-git Ah damn… What I can see from the live logs is that it seems to be some sort of timeout, but I can't find who is timing out. It's a 10 second timeout and I can't find any socketio related timeout with that value nor any such parameter in Apache.

Edit: Apologies for the noise, it was due to a misconfiguration with the URL rewriting within Apache. Carefully reading Apache's logs helped in finding my typo.

harrylah commented 1 year ago

I've got exactly the same problem. My values are in the (Docker) MongoDB, I can see them in the Reports Module on (Docker) Nightscout. However, the main windows doesn't show BG readings. Please see the screen shots below. I can even query the values via the Nightscout API (.../api/v1/entries.json?count=1) and I receive appropriate values.

I pulled docker images for 14.2.5 and 14.2.6 with no difference. I also backfilled a couple months' data as suggested in the referenced #7590 but that doesn't change anything.

Values are in the DB grafik

But they don't show up grafik

harrylah commented 1 year ago

OK - another backfill from XDrip and what do I say - all OK now!

Thomas-git commented 1 year ago

With my setup, no BG reading in Reports Module either. What Db query can I make (command line) to ensure BG readings are stored ?