NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.42k stars 1.15k forks source link

NovoPen scanning inconsistent uploading to Nightscout #3469

Closed rossiscool123 closed 6 months ago

rossiscool123 commented 6 months ago

Your environment

Expected behavior

All treatments scanned from the NovoPen should be uploaded from xDrip to nightscout via the REST API but this happens inconsistently

Actual behavior

Normally when I scan my NovoPen the treatments are uploaded to Nightscout in <30 seconds via the REST API, however, there is inconsistently in this, sometimes records do not upload to Nightscout via the REST API. The Nightscout instance is a Digital Ocean droplet with firewall rules configured to only allow HTTP and HTTPS traffic through Cloudflare. https://www.cloudflare.com/en-gb/ips/

I initially thought this could be caused by firewall rules on Cloudflare but there's nothing being blocked as I allow all traffic in the UK to be whitelisted as I have some displays that fetch data from Nightscout and this simply avoids the issue of manually whitelisting other attributes.

Steps to reproduce the behavior:

For example:

  1. Enable the insulin pen scanning like so. image
  2. Configure the RESTI API in the Cloud Upload section with a valid API token to allow uploading of treatment data.
  3. image image

  4. Tap NovoPen to the back of the phone until the treatments display on xDrip
  5. Wait a few minutes at max and see no record being uploaded to my Nightscout instance like so. image image

As you can see from the screenshots the data is not reflecting what's uploaded to Nightscout.

Navid200 commented 6 months ago

Please let's talk about this as a discussion before turning it into an issue.