Code Monkey home page Code Monkey logo

libre2link-nightscout's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libre2link-nightscout's Issues

Delayed 15-minute data

When reading the DB at 10:00Z (right after scanning), the following records get extracted into both sgv-*.json files:

[
{"device":"LibreLink-DB-hist","rssi":99,"date":1590483686000,"dateString":"2020-05-26T09:01:26.0Z","type":"sgv","sgv":116.0},
{"device":"LibreLink-DB-hist","rssi":99,"date":1590484559000,"dateString":"2020-05-26T09:15:59.0Z","type":"sgv","sgv":113.0},
{"device":"LibreLink-DB-hist","rssi":99,"date":1590485465000,"dateString":"2020-05-26T09:31:05.0Z","type":"sgv","sgv":111.0}
]

[
{"device":"LibreLink-DB-real","rssi":99,"date":1590483795000,"dateString":"2020-05-26T09:03:15.0Z","type":"sgv","sgv":117.0},
{"device":"LibreLink-DB-real","rssi":99,"date":1590485006000,"dateString":"2020-05-26T09:23:26.0Z","type":"sgv","sgv":114.0},
{"device":"LibreLink-DB-real","rssi":99,"date":1590485191000,"dateString":"2020-05-26T09:26:31.0Z","type":"sgv","sgv":114.0},
{"device":"LibreLink-DB-real","rssi":99,"date":1590485879000,"dateString":"2020-05-26T09:37:59.0Z","type":"sgv","sgv":107.0},
{"device":"LibreLink-DB-real","rssi":99,"date":1590486079000,"dateString":"2020-05-26T09:41:19.0Z","type":"sgv","sgv":107.0},
{"device":"LibreLink-DB-real","rssi":99,"date":1590487145000,"dateString":"2020-05-26T09:59:05.0Z","type":"sgv","sgv":115.0}
]

The current code uses the latest uploaded sgv value. After uploading the above data, this will skip the 15-minute record that's expected for ~09:46 but hasn't been provided yet.

Since much attention has been paid not to upload records twice, a possible compatible workaround would be to drop all "real" (scanned) records that are newer than the latest "hist" record.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.