dexcom-share
v3.4.0
Published
API for reading blood glucose values from Dexcom's Share servers
Downloads
18
Maintainers
Readme
dexcom-share
This JavaScript module provides an Async Iterator API for reading blood glucose readings from Dexcom's Share servers.
Example
const dexcom = require('dexcom-share')
async function main() {
const iterator = dexcom({
username: 'DEXCOM_SHARE_USERNAME',
password: 'DEXCOM_SHARE_PASSWORD'
})
for await (const reading of iterator) {
console.log(reading)
/*
{ DT: '/Date(1515095827000-0800)/',
ST: '/Date(1515095827000)/',
Trend: 4,
Value: 123,
WT: '/Date(1515095827000)/',
Date: 1515095827000 }
*/
}
}
main().catch(err => {
console.error(err)
process.exit(1)
})