diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..3f566b6 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +worker: node run.js diff --git a/README.md b/README.md index e56470d..7c37678 100644 --- a/README.md +++ b/README.md @@ -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]. @@ -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 diff --git a/app.json b/app.json new file mode 100644 index 0000000..3abe3ef --- /dev/null +++ b/app.json @@ -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" + ] +}