Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tootallnate/dexcom-share
- Owner: TooTallNate
- Created: 2018-01-04T19:43:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T09:23:26.000Z (almost 2 years ago)
- Last Synced: 2024-12-10T14:04:16.114Z (17 days ago)
- Language: TypeScript
- Homepage:
- Size: 172 KB
- Stars: 12
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
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