MiniMed Connect and Nightscout

1 Nov

Revision for “MiniMed Connect and Nightscout” created on October 14, 2016 @ 13:32:23

Title
MiniMed Connect and Nightscout
Content
<h2 id="set-up-minimed-connect-with-nightscout-on-azure">Set up MiniMed Connect with Nightscout on Azure</h2> <em>By Mark Wilson</em> <!-- CONTENT PROVIDED BY MARK WILSON --> <p>This setup guide will enable you to bridge data from the MiniMed Connect into a Nightscout site running on Azure. If you use a Medtronic Enlite CGM, you will be able to view the numbers and trends from the CGM in Nightscout. If you use a Medtronic insulin pump compatible with the Connect, you will be able to pump status data such as active insulin in Nightscout.</p> <p><strong>NOTE:</strong> You will <strong>not</strong> be able to see the amounts of specific boluses or glucose values from linked meters. This bridge can only see the data which is visible in <a href="https://carelink.minimed.com/">CareLink Connect</a>.</p> <h2><a id="user-content-step-0-prerequisites" class="anchor" href="#step-0-prerequisites" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Step 0: Prerequisites</h2> <p>You should already have:</p> <ul> <li>a MiniMed Connect and compatible pump</li> <li>an iPhone running the MiniMed Connect app</li> <li>a username and password for CareLink</li> </ul> <p>You should already be able to:</p> <ul> <li>see real-time values from the Connect (sensor glucose, active insulin, etc.) in the iPhone app</li> <li>log into <a href="https://carelink.minimed.com/">CareLink</a> on your web browser using your username and password, go to the CareLink Connect section, and see the same values</li> </ul> <p>If you haven’t achieved the above, read the online help or contact Medtronic support.</p> <h2><a id="user-content-step-1-set-up-nightscout" class="anchor" href="#step-1-set-up-nightscout" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Step 1: Set up Nightscout</h2> <p><em>Note: If you already have a Nightscout site, you may skip this step. Instead, use the <a href="http://nightscout.github.io/pages/update-fork/">Nightscout Update Fork Tool</a> to ensure that your site is running the latest version of Nightscout.</em></p> <p>Follow all the steps in the <a href="http://www.nightscout.info/wiki/welcome/nightscout-with-ios-and-dexcom-share">Nightscout with iOS and Dexcom Share Bridge</a> setup guide <strong>except step 4</strong>. Set aside a decent amount of time to get through it. We can use this guide because the MiniMed Connect plugin works very similarly to the Dexcom Share Bridge plugin, except instead of reading data sent to Dexcom's servers by the Dexcom Share app, it reads data sent to Medtronic's servers by the MiniMed Connect app.</p> <p>If you need more help or need to troubleshoot a step of this process, the main <a href="http://www.nightscout.info/wiki/welcome">Nightscout setup guide</a> walks through each of the steps in more detail. Just keep in mind this is an "alternate setup," so ignore any reference to a rig or an Android phone or app.</p> <p>By the end of this, you should have a GitHub account, a MongoLab account, and an Azure or Heroku account with a running Nightscout website. You should be able to access your website at <a href="https://YOURSITENAME.azurewebsites.net/">https://YOURSITENAME.azurewebsites.net/</a> or <a href="https://YOURSITENAME.herokuapp.com/">https://YOURSITENAME.herokuapp.com/</a>.</p> <h2><a id="user-content-step-2-enable-the-minimed-connect-plugin" class="anchor" href="#step-2-enable-the-minimed-connect-plugin" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Step 2: Enable the MiniMed Connect plugin</h2> <p><em>Note: the instructions below are for Azure. If you are on Heroku (which is far more stable but costs $7/month), the steps are very similar, but on Heroku these settings are called "Config Variables", not "Connection Strings". You can access them by going to Settings &gt; Config Vars in the Heroku control panel.</em></p> <p><strong>2a.</strong> In your Azure dashboard, go to "Configure", and scroll down to "Connection Strings". (This is the same place you just configured your Mongo database and API_SECRET in step 1.)</p> <p><strong>2b.</strong> Add these new environment variables:</p> <ul> <li><code>ENABLE</code> - the value should be "mmconnect", type should be "Custom"</li> <li><code>MMCONNECT_USER_NAME</code> - the value should be the username you use to log in to <a href="https://carelink.minimed.com/">CareLink</a>, type should be "Custom"</li> <li><code>MMCONNECT_PASSWORD</code> - the value should be the password you use to log in to <a href="https://carelink.minimed.com/">CareLink</a>, type should be "Custom"</li> </ul> <p>Your "Connection Strings" section should look like this (sensitive information redacted):</p> <p><a href="https://camo.githubusercontent.com/063582202d92bf2a6e0ef4d20fa8334a94ca7a6d/687474703a2f2f692e696d6775722e636f6d2f7753524a384c4d2e706e67" target="_blank"><img src="https://camo.githubusercontent.com/063582202d92bf2a6e0ef4d20fa8334a94ca7a6d/687474703a2f2f692e696d6775722e636f6d2f7753524a384c4d2e706e67" alt="connection-strings" data-canonical-src="http://i.imgur.com/wSRJ8LM.png" style="max-width:100%;"></a></p> <p><em>Note: If this is not your first time setting up Nightscout, there is a possibility that you already have an <code>ENABLE</code> environment variable. That’s fine. Just add a space and "mmconnect" to the end. For example, if <code>ENABLE</code> already had the value <code>bridge</code>, change it to <code>bridge mmconnect</code>.</em></p> <p><strong>2c.</strong> Triple-check the environment variables. Go to the <a href="https://carelink.minimed.com/">CareLink</a> website and log in by copying and pasting the values directly from your Azure dashboard into the login form. Confirm that (a) you are able to log in successfully, and (b) when you go to "CareLink Connect", you can see the real-time values from the Connect.</p> <p><strong>2d.</strong> At the bottom of the Azure dashboard, click "Save", then "Reload".</p> <h2><a id="user-content-step-3-show-pump-data-in-nightscout-optional" class="anchor" href="#step-3-show-pump-data-in-nightscout-optional" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Step 3: Show pump data in Nightscout (optional)</h2> <p><strong>IMPORTANT:</strong> You must be running at least version 0.9 (Grilled Cheese) of Nightscout for these features.</p> <h3><a id="user-content-showing-pump-iob-in-nightscout" class="anchor" href="#showing-pump-iob-in-nightscout" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Showing pump IOB in Nightscout</h3> <p><a href="https://camo.githubusercontent.com/405784afcb5e50d77a44d27d46e434a63081c181/687474703a2f2f692e696d6775722e636f6d2f347a6969556c782e706e67" target="_blank"><img src="https://camo.githubusercontent.com/405784afcb5e50d77a44d27d46e434a63081c181/687474703a2f2f692e696d6775722e636f6d2f347a6969556c782e706e67" alt="" data-canonical-src="http://i.imgur.com/4ziiUlx.png" style="max-width:100%;"></a></p> <ul> <li>Make sure you have a Nightscout site running at least version 0.9 (see "Set up Nightscout" above).</li> <li>Add <code>iob</code> to your <code>ENABLE</code> environment variable (the same place you added <code>mmconnect</code> earlier).</li> <li>Add a new environment variable <code>DEVICESTATUS_ADVANCED</code> with the value <code>true</code></li> <li>Restart or redeploy your Nightscout site.</li> <li>Open the Settings sidebar on your Nightscout site and check the "Insulin-on-Board" checkbox.</li> </ul> <h3><a id="user-content-showing-pump-reservoir-and-battery-in-nightscout" class="anchor" href="#showing-pump-reservoir-and-battery-in-nightscout" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Showing pump reservoir and battery in Nightscout</h3> <p><a href="https://camo.githubusercontent.com/b38e1bfca540948dcbb3ea211e0aa54346df4a2b/687474703a2f2f692e696d6775722e636f6d2f773938354834512e706e67" target="_blank"><img src="https://camo.githubusercontent.com/b38e1bfca540948dcbb3ea211e0aa54346df4a2b/687474703a2f2f692e696d6775722e636f6d2f773938354834512e706e67" alt="" data-canonical-src="http://i.imgur.com/w985H4Q.png" style="max-width:100%;"></a></p> <ul> <li>Add <code>pump</code> to your <code>ENABLE</code> environment variable.</li> <li>Restart or redeploy your Nightscout site.</li> <li>Open the Settings sidebar on your Nightscout site and check the "Pump" checkbox.</li> </ul> <h3><a id="user-content-showing-pump-iob-on-a-pebble-watch" class="anchor" href="#showing-pump-iob-on-a-pebble-watch" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Showing pump IOB on a Pebble watch</h3> <p><a href="https://camo.githubusercontent.com/caf61847f6d99e37a04daaabc108626e9c373dfe/687474703a2f2f692e696d6775722e636f6d2f523374483646592e706e67" target="_blank"><img src="https://camo.githubusercontent.com/caf61847f6d99e37a04daaabc108626e9c373dfe/687474703a2f2f692e696d6775722e636f6d2f523374483646592e706e67" alt="" data-canonical-src="http://i.imgur.com/R3tH6FY.png" style="max-width:100%;"></a></p> <p>After following the steps above, any Nightscout watchface capable of showing IOB will show pump IOB from MiniMed Connect. Each watchface has its own particular way of enabling IOB. You'll do this in the "Settings" screen on the Pebble app. For example, <a href="https://github.com/mddub/urchin-cgm/">Urchin</a> has an "Insulin on board" option for the status bar. Some other watchfaces require you to type "IOB" in the "T1 name" field.</p> <h3><a id="user-content-getting-pump-notifications-from-nightscout" class="anchor" href="#getting-pump-notifications-from-nightscout" aria-hidden="true"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Getting pump notifications from Nightscout</h3> <p>Nightscout can send you a notification for certain pump events: low reservoir, low battery, time since last data logged from the pump. These are generally sent to your phone via Pushover.</p> <ul> <li>If you haven't already, set up Pushover by following <a href="http://www.nightscout.info/wiki/labs/pushover-in-funnel-cake">this guide</a>.</li> <li>Add a new environment variable <code>PUMP_ENABLE_ALERTS=true</code>.</li> <li>Use <a href="https://github.com/nightscout/cgm-remote-monitor/#pump-pump-monitoring">this list of environment variables for the pump plugin</a> to tweak the conditions under which you want to receive notifications. For example, if you want a "warning" notification when the reservoir is below 30 units, add the environment variable <code>PUMP_WARN_RES=30</code>.</li> <li>If you don't set a particular environment variable, it will use the default. You can see the defaults listed in the list of environment variables, in parentheses. For example, default is to warn when reservoir is below 10 units, battery is below 30%, or the pump data hasn't been logged for 30 minutes.</li> </ul> <!-- END PROVIDED CONTENT -->
Excerpt


OldNewDate CreatedAuthorActions
October 14, 2016 @ 13:32:23 Amy Cowen
October 14, 2016 @ 13:32:11 [Autosave] Amy Cowen
December 29, 2015 @ 09:02:44 Amy Cowen
December 21, 2015 @ 18:10:38 Amy Cowen
November 1, 2015 @ 18:54:49 Amy Cowen
November 1, 2015 @ 18:49:52 Amy Cowen
November 1, 2015 @ 18:49:24 Amy Cowen
November 1, 2015 @ 18:47:29 Amy Cowen