Skip to content

Commit

Permalink
Add Heroku deploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mddub committed Nov 2, 2015
1 parent 90edd29 commit a63630c
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: node run.js
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

The easiest installation mode is to set up an instance of Nightscout [cgm-remote-monitor] on Azure and enable the `mmconnect` plugin. This module is packaged with Nightscout 0.8.2+ and can pull data from CareLink Connect as part of the web server process. Follow [this guide][azure-install].

## 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`.

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

## Installation in general

1. Install [Node].
Expand Down Expand Up @@ -84,6 +90,7 @@ This project is intended for educational and informational purposes only. It rel
[Nightscout]: http://www.nightscout.info/
[cgm-remote-monitor]: https://github.com/nightscout/cgm-remote-monitor
[azure-install]: http://www.nightscout.info/wiki/welcome/website-features/funnel-cake-0-8-features/minimed-connect-and-nightscout
[Share2 Bridge instructions for Heroku]: https://github.com/bewest/share2nightscout-bridge/wiki/Deploy-to-Heroku
[Node]: https://nodejs.org
[download a zip]: https://github.com/mddub/minimed-connect-to-nightscout/archive/master.zip
[azure-environment]: https://github.com/projectkudu/kudu/wiki/Azure-runtime-environment
Expand Down
54 changes: 54 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "MiniMed Connect to Nightscout",
"repository": "https://github.com/mddub/minimed-connect-to-nightscout",
"env": {
"CARELINK_USER_NAME": {
"description": "Your username for CareLink (https://carelink.minimed.com)",
"value": "",
"required": true
},
"CARELINK_PASSWORD": {
"description": "Your password for CareLink (https://carelink.minimed.com)",
"value": "",
"required": true
},
"API_SECRET": {
"description": "This must match the API_SECRET password from your Nightscout website",
"value": "",
"required": true
},
"WEBSITE_HOSTNAME": {
"description": "The host name for your Nightscout instance, for example yoursite.herokuapp.com or yoursite.azurewebsites.net. Do not include http:// or https://.",
"value": "",
"required": true
},
"CARELINK_REQUEST_INTERVAL": {
"description": "OPTIONAL: number of milliseconds to wait between requests to the CareLink server (default: 60000)",
"value": "",
"required": false
},
"CARELINK_SGV_LIMIT": {
"description": "OPTIONAL: maximum number of recent sensor glucose values to send to Nightscout (default: 24)",
"value": "",
"required": false
},
"CARELINK_MAX_RETRY_DURATION": {
"description": "OPTIONAL: maximum number of seconds to spend retrying failed requests to CareLink, ideally a power of 2 (default: 512)",
"value": "",
"required": false
},
"CARELINK_QUIET": {
"description": "OPTIONAL: set to a truthy value to not output details of CareLink and Nightscout requests to the console (default: empty)",
"value": "",
"required": false
},
"NS": {
"description": "OPTIONAL: a fully-qualified Nightscout URL (e.g. https://sitename.azurewebsites.net) which overrides WEBSITE_HOSTNAME",
"value": "",
"required": false
}
},
"addons": [
"papertrail"
]
}

0 comments on commit a63630c

Please sign in to comment.