Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tootallnate/dexcom-share

Async Iterator API for reading blood glucose readings from Dexcom's Share servers
https://github.com/tootallnate/dexcom-share

Last synced: 5 days ago
JSON representation

Async Iterator API for reading blood glucose readings from Dexcom's Share servers

Awesome Lists containing this project

README

        

# dexcom-share

This JavaScript module provides an [Async Iterator API][] for reading
blood glucose readings from Dexcom's Share servers.

### Example

```js
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)
})
```

[Async Iterator API]: https://github.com/tc39/proposal-async-iteration