steve8x8 / libre2link-nightscout Goto Github PK
View Code? Open in Web Editor NEWExtract L2 scan data from LL database, upload to NS
License: GNU General Public License v3.0
Extract L2 scan data from LL database, upload to NS
License: GNU General Public License v3.0
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.