Skip to content

Commit

Permalink
Update README to reflect new API
Browse files Browse the repository at this point in the history
  • Loading branch information
mddub committed Jan 7, 2016
1 parent a8a1656 commit 07018eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The easiest installation mode is to set up an instance of Nightscout [cgm-remote

## Installation on Heroku

Another turnkey installation option is to run this on a Heroku worker dyno. You may find this more affordable than Azure. Follow the [Share2 Bridge instructions for Heroku], substituting this repo for `share2nightscout-bridge`.
Another turnkey installation option is to run this on a Heroku worker dyno. You may find this more reliable than Azure. Follow the [Share2 Bridge instructions for Heroku], substituting this repo for `share2nightscout-bridge`.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

Expand Down Expand Up @@ -66,8 +66,10 @@ var client = mmcns.carelink.Client({username: 'username', password: 'password'})
client.fetch(function(err, data) {
if (!err) {
var transformed = mmcns.transform(data);
mmcns.nightscout.upload(transformed, 'https://your.ns.host/api/v1/entries.json', 'api-secret', callback);
// ...or use `transformed` directly
mmcns.nightscout.upload(transformed.entries, 'https://your.ns.host/api/v1/entries.json', 'api-secret', callback);
// ...or:
mmcns.nightscout.upload(transformed.devicestatus, 'https://your.ns.host/api/v1/devicestatus.json', 'api-secret', callback);
// ...or use `transformed.entries` and `transformed.devicestatus` directly
}
});
```
Expand Down

0 comments on commit 07018eb

Please sign in to comment.