Comments (11)
That 22 minutes probably includes server reboot time to switch between libre linkup systems... so the delay may actually be more like 20 minutes. I did check the system clock on my server and the time is accurate and is GMT. To be clear, I had to wait about 20 minutes for that sample just to the right of 1 to show up on the graph... and the Glucose reading in the upper right was just --.. it never updated.
from nightscout-connect.
I do have the same issue. I have setup nightscout for the first time and have no other tooling using the linkup interface. I also uninstalled the LibreLinkUp app from my mobile which I used to setup the account. It's running now for 12h and I get my data in avarage 20 minutes delayed. Any ideas what is going wrong?
from nightscout-connect.
I believe this is intentional [by Libre]. Libre does 20 minutes, Dexcom delays Apple HomeKit by a whole 3 hours. This is most likely their way to prevent other apps from making real time decisions on this data. I opened a PR to fix the delay with LinkUp.
from nightscout-connect.
And this PR addresses the interval.
from nightscout-connect.
That was quick!!! Thank-you for doing this! I'm unfamiliar with the nightscout-connect update process... Is there a way I can tell which version of nightscout will incorporate the changes? Thanks again for your quick response. It's very much appreciated.
from nightscout-connect.
I do not know their process, I believe PRs would have to be approved, merged, then released as part of a future NS release. If you're feeling adventurous, here's is a HACKY way to do it, you can go into your NS instance where you installed it, browse into:
<your_installation_folder>/node_modules/nightscout-connect/lib/sources /librelinkup.js
make a backup copy, then replace it with this file from my fork. Or, better, implement the changes from the PRs into your file yourself. Restart the service afterwards and test that it still works. This is a risky way to do it, if your version is not the same as the one I modified, you may ruin your install. I recommend making the same changes yourself, based off of the PRs.
If using pm2 to run it as per NS instructions, if changing the my.env
file to add the 1min interval, you may need to delete the pm2 item and readd it. If that's how you run it, per NS instructions, this should do it:
go to your NS folder, where you installed it, then:
lists the active services:
pm2 l
┌────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├────┼───────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ server │ default │ 15.0.3 │ fork │ 24704 │ 0s │ 0 │ online │ 0% │ 31.4mb │ hoobs │ disabled │
└────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
delete the item you want, ID is a zero based integer, left column, replace X with the proper ID:
pm2 delete X
reinstall the pm2 service:
env $(cat my.env) pm2 start lib/server/server.js
then save:
pm2 save
from nightscout-connect.
![image](https://private-user-images.githubusercontent.com/5341982/299371414-8fb3b1e8-5ebc-4165-a686-9fa0c06808b9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjE4MzUsIm5iZiI6MTcyMTIyMTUzNSwicGF0aCI6Ii81MzQxOTgyLzI5OTM3MTQxNC04ZmIzYjFlOC01ZWJjLTQxNjUtYTY4Ni05ZmEwYzA2ODA4YjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTdUMTMwNTM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTFmNmFkOTMwMjgyMDQ3YzE3NDNmZjYwODU5Y2U3MmZjNmM3NmQ1NWM1YjFhZWU4YzQ3YzFhZDQyMTU3Njg2OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.I-sEK0Gt5vWzspgtKjgkzy1Dj6XStuEesxcizSBuTEM)
POC: No delay, data extends to 10:45am, and has one entry per minute 😋
from nightscout-connect.
I can confirm that your fixes work! I chose to modify my existing librelinkup.js file directly. Thank you for the guidance!!!
from nightscout-connect.
Well then, it's off to the races! Glad I could help.
from nightscout-connect.
from nightscout-connect.
Thanks for the heads up, I've updated README.md as well to notify about the new CONNECT_LINK_UP_INTERVAL
parameter.
from nightscout-connect.
Related Issues (20)
- Timezone offset for glooko does not respect daylight savings time (DST) HOT 3
- [glooko] meal bolus split into insulin and carbs part HOT 1
- shareous2.dexcom.com HOT 1
- Requirements to get this working against LibreLinkup HOT 6
- [GLOOKO] Problem with nightscout-connect using European Glooko account HOT 42
- Wrong time of SG on Nightscout with minimedcarelink source HOT 4
- Request failed with status code 504 HOT 10
- [minimed carelink] Nightscout-connect adds 0, when no up-to-date SGV data is available
- Crashing when attempting to sync with Glooko HOT 1
- [minimed carelink] Pulling always at :00, :05, :10, .., no matter when the upload was
- [minimed carelink] Carelink follower login error HOT 1
- LibreLinkUp crashes when last_known is null HOT 1
- librelinkup data polling fails with [401 Unauthorized] status
- Glooko: filter out pump timestamps
- Can't seem to get dexcom share to work with dexcom.jp account
- Get no data from europe dexcom share connection
- Glooko returns 0 treatments
- Glooko: Request failed with status code 432 HOT 12
- Add support for Dexcom Japan server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightscout-connect.