nsfollow http://localhost:17580/ timeout #2206
JotaMyke
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using nsfollow to receive data from the diabox APP via http://localhost:17580/
When there is no data, it returns timeout. I analyzed the LOG and verified that the COUNT variable is very large
Put the following on line 117 in public class NightscoutFollow {
...
if (!emptyString(urlString)) {
try {
int count = Math.min(MissedReadingsEstimator.estimate() + 1, (int) (Constants.DAY_IN_MS / DEXCOM_PERIOD));
UserError.Log.d(TAG, "Estimating missed readings as: " + count);
count = Math.max(10, count); // pep up with a view to potential period mismatches - might be excessive
if (count>30)count=30; // NEW
getService().getEntries(session.url.getHashedSecret(), count, JoH.tsl() + "").enqueue(session.entriesCallback);
} catch (Exception e) {
...
Beta Was this translation helpful? Give feedback.
All reactions