Nightscout and Medtronic 640g

25 Feb

Revision for “Nightscout and Medtronic 640g” created on May 19, 2016 @ 20:11:32

Title
Nightscout and Medtronic 640g
Content
<h2>Nightscout and the Medtronic 640g</h2> <!-- CONTENT PROVIDED BY MATT GUY; update 5/20/16 --> <strong>Direct Nightscout access is now available in a Beta Release Android application!</strong> Please visit <a href="http://pazaan.github.io/640gAndroidUploader/">Lennart Goedhart's page</a> for up-to-date information on this evolving Nightscout solution. Please read all of the <a href="https://github.com/pazaan/640gAndroidUploader/wiki">instructions </a>and <a href="http://pazaan.github.io/640gAndroidUploader/">warnings</a> carefully before deciding whether to proceed with this Beta release. Once a stable, full release candidate is available, full instructions will be posted here. While not as flexible or easy to setup as the Android version, the earlier method (utilizing CareLink) may suit the needs of some, particularly for overnight monitoring, and also provides a convenient method of getting additional pump information (e.g. bolus wizard entries and pump alarms) up to Nightscout. Instructions for this installation remain below. Thanks for waiting patiently The 640g Nightscout Support Team - Lennart Goedhart Matt Guy David Wright Tom Collins <hr /> <h2>Alternate to Android Uploader Setup</h2> The following information can be used to help connect a Medtronic 640g to a Nightscout site. <strong>Note:</strong> there are multiple options for setting up the 640g with Nightscout using CareLink. For more information, visit the <a href="http://littlet1d.blogspot.com">Little D blog</a>. <span style="background-color: white; font-family: &quot;oxygen&quot; , sans-serif; font-size: 1.571em; line-height: 1.4;"><b>Setup Nightscout</b></span><br /> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Please consult the step-by-step directions for setting up a Nightscout site. In setting up Nightscout, you need to do the following steps:</div> <ul style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; list-style: square; margin: 0px 0px 1.5em 3em;"> <li>Create a mlab account and database.</li> <li>Create a Github account and a copy of the CGM-Remote-Monitor.</li> <li>Create an Azure or Heroku site.</li> <li>Configure your site’s connection strings (mongo information).</li> <li>Configure the API SECRET in Azure or Heroku.</li> <li>Configure the ENABLE variable with the value&nbsp;<span class="redText">careportal</span>&nbsp;(and any other plugins you wish to use; see example in note below).</li> <li>Deploy your site using the Github repository.</li> </ul> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="font-weight: 700;">Directions for setting up the Nightscout site, beginning with the creation of the mlab database, appear&nbsp;<a href="http://www.nightscout.info/wiki/welcome/configuring-the-data-backend" style="background-color: transparent; text-decoration: none;">here</a>.</span>&nbsp;<span style="font-weight: 700;">Note:</span>&nbsp;complete each step listed above. Once you have&nbsp;<em>successfully</em>&nbsp;created a Nightscout site (e.g., you see a black site showing time and dashes when viewing your site in a browser), return here to move forward.</div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="font-weight: 700;">Note:</span>&nbsp;you&nbsp;<span style="font-weight: 700;">do</span>&nbsp;need to enable&nbsp;<a href="http://www.nightscout.info/wiki/welcome/website-features/cgm-remote-monitor-care-portal" style="background-color: transparent; text-decoration: none;" target="_blank">CarePortal</a>&nbsp;to allow additional pump data, such as basal rates and bolus events, to reach Nightscout. I have my enable connection string set to&nbsp;<span class="redText">enable careportal basal rawbg iob cage bwp</span>.</div> <blockquote style="background-color: white; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 4px; font-family: Oxygen, sans-serif; font-size: 14px; font-style: italic; line-height: 22.4px; margin: 1.5em 0px; padding: 0px 1em;"> You do&nbsp;<span style="font-weight: 700;">not</span>&nbsp;need to enter the Dexcom settings. </blockquote> <blockquote style="background-color: white; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 4px; font-family: Oxygen, sans-serif; font-size: 14px; font-style: italic; line-height: 22.4px; margin: 1.5em 0px; padding: 0px 1em;"> You do&nbsp;<span style="font-weight: 700;">not</span>&nbsp;need to enable the Medtronic&nbsp;<a href="http://nightscout.github.io/posts/2015-10-27-set-up-minimed-connect-with-nightscout-on-azure/" style="background-color: transparent; text-decoration: none;">Connect plugin</a>.</blockquote> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> Setup CareLink</h2> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Getting&nbsp;<a href="https://carelink.minimed.eu/patient/entry.jsp?bhcp=1" style="background-color: transparent; text-decoration: none;">CareLink</a>&nbsp;all set essentially means making sure everything&nbsp;<em>works manually</em></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> </div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Follow Medtronic’s instructions precisely when first attempting a pump upload.</div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="font-weight: 700;"><em>Install Java if prompted and complete any system confirmation requests to enable.</em></span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Make sure you can manually upload data from the pump to CareLink.</div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Make sure you can manually select a CSV Report and download it.</div> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> Create Core Folders</h2> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> Open File Explorer in Windows and double click on the SD Card (probably the D: or E: drive).</div> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> Click on the New Folder icon and type&nbsp;<span class="redText">AutoCSV</span>. (<em>This is where we’ll throw the data around before uploading to Nightscout.</em>)</div> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> <a href="http://www.nightscout.info/wp-content/uploads/2016/02/640g_sd_new_folder.png" style="background-color: transparent; text-decoration: none;"><span style="color: black;"><img alt="640g_sd_new_folder" class="wikiImage" src="http://www.nightscout.info/wp-content/uploads/2016/02/640g_sd_new_folder.png" height="67" style="border: thin solid black; height: auto; margin-top: 6px; max-width: 100%; padding: 12px; width: auto;" width="320" /></span></a></div> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> Click on the New Folder icon again and type&nbsp;<span class="redText">data</span>. (<em>This is where we’ll ask Firefox to download the CareLink CSV file initially.</em>)</div> </h2> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> Download the Github files</h2> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> From your browser, go to my&nbsp;<a href="https://github.com/LittleDMatt/mmcsv/tree/mmcsv640g" style="background-color: transparent; text-decoration: none;" target="_blank">mmcsv640g</a>&nbsp;repository and click&nbsp;<span class="redText">Download Zip</span>.</div> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> <a href="http://www.nightscout.info/wp-content/uploads/2016/02/640g_sd_download_zip.png" style="background-color: transparent; text-decoration: none;"><span style="color: black;"><img alt="640g_sd_download_zip" class="wikiImage" src="http://www.nightscout.info/wp-content/uploads/2016/02/640g_sd_download_zip.png" height="102" style="border: thin solid black; height: auto; margin-top: 6px; max-width: 100%; padding: 12px; width: auto;" width="320" /></span></a></div> <div style="font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> Extract the zip file to your SD Card&nbsp;<em>(creating a folder called “mmcsv-mmcsv640g” and subfolders)</em>.</div> </h2> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> Install Git-Bash</h2> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Download Git SCM via&nbsp;<a href="https://git-for-windows.github.io/" style="background-color: transparent; text-decoration: none;">https://git-for-windows.github.io/</a>.</div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Install, accepting all defaults until you get to select terminal emulator. Select&nbsp;<span class="redText">Use Windows’ default Console Window</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <a href="http://www.nightscout.info/wp-content/uploads/2016/02/640g_GitTerminalOption.png" style="background-color: transparent; text-decoration: none;"><span style="color: black;"><img alt="640g_GitTerminalOption" class="wikiImage" src="http://www.nightscout.info/wp-content/uploads/2016/02/640g_GitTerminalOption.png" height="310" style="border: thin solid black; height: auto; margin-top: 6px; max-width: 100%; padding: 12px; width: auto;" width="400" /></span></a></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Complete the installation and close the installer.</div> <h2 style="background-color: white; clear: both; font-family: Oxygen, sans-serif; font-size: 1.571em; line-height: 1.4; margin: 1.5em 0px 0.5em;"> Create Local Copies</h2> <h2 style="background-color: white; clear: both; margin: 1.5em 0px 0.5em;"> <div style="font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="font-weight: normal;">From the mmcsv-mmcsv640g folder, copy the </span><i style="font-weight: normal;">config.sh</i><span style="font-weight: normal;"> file to the root directory of the SD Card (e.g. D: or E:). Making a copy means that when you next update the mmcsv repository you still have your local settings retained.</span></div> <div style="font-family: Oxygen, sans-serif; font-size: 14px; font-weight: normal; line-height: 22.4px; margin-bottom: 1.5em;"> </div> <div style="margin-bottom: 1.5em;"> <span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; font-weight: 700; line-height: 22.4px;">config.sh&nbsp;</span><span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; font-weight: normal; line-height: 22.4px;">contains default file locations and parameters, such as upload frequency, for use by the bash script. Assuming your SD Card is mounted as the D: drive it should read as shown below. You need to check/update the parameters in the&nbsp;</span><span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; font-weight: 700; line-height: 22.4px;">copy</span><span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; font-weight: normal; line-height: 22.4px;">&nbsp;of this file. The “api_secret_hash” below is the SHA-1 Hash of your API-Secret string. To generate this, simply type in your API-Secret key into a converter, such as this&nbsp;</span><a href="http://www.sha1-online.com/" style="background-color: transparent; font-family: Oxygen, sans-serif; font-size: 14px; font-weight: normal; line-height: 22.4px; text-decoration: none;" target="_blank">one</a><span style="font-family: &quot;oxygen&quot; , sans-serif;"><span style="font-size: 14px; font-weight: normal; line-height: 22.4px;">. Please note and review the&nbsp;additional&nbsp;parameters towards the end of the file, compared to the older (&lt;0.82) versions.</span></span></div> </h2> <h2 style="font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="font-size: 1.571em; line-height: 1.4;">Install nodejs</span></h2> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> Download and install&nbsp;<a href="https://nodejs.org/en/" style="background-color: transparent; text-decoration: none;">nodejs</a>&nbsp;(select the latest stable version).</div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">Open a bash terminal window:&nbsp;</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">Start, All Apps, Git Bash</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">Change to the directory where you've downloaded mmcsv640g, e.g. by typing:</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">cd /d/mmcsv-mmcsv640g</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">(NB forward slash and drive letter d/...... to get things going in the bash shell)</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">Once you're sure you're in the correct directory, type:</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;"><b>npm install</b></span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">You only need to do this ONCE, on installation, not for every run of the application.</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">If you get an error along the lines of can't find npm or nodejs, type:&nbsp;</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">export PATH=$PATH:'/c/Program Files/nodejs'</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">You might get a couple of lines of grumbling / advisories, but you shouldn't get a stream of warnings or errors.</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;"><br /></span></div> <h2 style="background-color: white; font-family: Oxygen, sans-serif; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;"><span style="font-size: large;">Running the Application</span></span></h2> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent; line-height: 22.4px;">Open a bash terminal window: &nbsp;</span><span style="background-color: transparent; line-height: 22.4px;">Start, All Apps, Git Bash</span></div> <div style="background-color: white; font-family: Oxygen, sans-serif; font-size: 14px; line-height: 22.4px; margin-bottom: 1.5em;"> <span style="background-color: transparent;">Change to the directory where you've downloaded mmcsv640g, e.g. by typing:</span></div> <span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; line-height: 22.4px;">cd /d/mmcsv-mmcsv640g&nbsp;</span><br /> <span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; line-height: 22.4px;"><br /></span> <span style="font-family: &quot;oxygen&quot; , sans-serif; font-size: 14px; line-height: 22.4px;">Then type:&nbsp;</span><br /> ./mmcsv640g.sh "/d"<br /> <br /> where /d is the root directory of the sd card, where you popped the updated config.sh file.<br /> <div> <br /></div> <span style="font-family: inherit;">That's it.</span><br /> <br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><b>Want to go back to Firefox and Selenium?</b></span><br /> <span style="font-family: inherit;">The <a href="http://littlet1d.blogspot.co.uk/2015/11/nightscout-on-640g-first-details.html" target="_blank">initial setup</a> was really designed as a proof of principal and to deliver a very specific need for us as a family with a little one on the 640g. To see dozens of other 640g users take the step to their pumps connected to Nightscout has been amazing. I would recommend all users (old and new) try the updated solution. But if you really want to go back to Firefox and Selenium you can - just change <i>uploader=0</i> in the config.sh file and follow the original instructions here.</span><br /> <h2>Getting Support</h2> If you have questions about the 640g setup, the <a href="https://www.facebook.com/groups/Nightscoutformedtroincusersuk/">Nightscout Medtronic</a> group at Facebook is a great place to ask questions.
Excerpt


OldNewDate CreatedAuthorActions
May 19, 2016 @ 20:11:32 Amy Cowen
May 19, 2016 @ 20:10:23 Amy Cowen
May 19, 2016 @ 20:09:58 Amy Cowen
May 19, 2016 @ 20:09:32 Amy Cowen
May 19, 2016 @ 12:58:58 Amy Cowen
May 19, 2016 @ 12:58:11 Amy Cowen
May 19, 2016 @ 12:57:59 Amy Cowen
May 19, 2016 @ 12:57:39 [Autosave] Amy Cowen
May 15, 2016 @ 17:15:19 Amy Cowen
May 14, 2016 @ 17:49:28 Amy Cowen
March 6, 2016 @ 23:04:50 Amy Cowen
March 6, 2016 @ 23:04:08 Amy Cowen
March 6, 2016 @ 23:03:28 Amy Cowen
February 28, 2016 @ 13:32:38 Amy Cowen
February 28, 2016 @ 13:25:25 Amy Cowen
February 28, 2016 @ 13:24:34 Amy Cowen
February 28, 2016 @ 13:24:09 Amy Cowen
February 28, 2016 @ 12:18:50 Amy Cowen
February 26, 2016 @ 01:09:52 Amy Cowen
February 26, 2016 @ 01:09:23 Amy Cowen
February 26, 2016 @ 01:08:24 Amy Cowen
February 26, 2016 @ 01:07:35 Amy Cowen
February 26, 2016 @ 01:06:45 Amy Cowen
February 26, 2016 @ 01:05:43 Amy Cowen
February 25, 2016 @ 22:06:22 Amy Cowen
February 25, 2016 @ 22:05:58 Amy Cowen
February 25, 2016 @ 22:04:52 Amy Cowen
February 25, 2016 @ 21:31:28 Amy Cowen
February 25, 2016 @ 21:29:11 Amy Cowen
February 25, 2016 @ 21:26:58 Amy Cowen
February 25, 2016 @ 21:23:11 Amy Cowen
February 25, 2016 @ 21:22:31 Amy Cowen
February 25, 2016 @ 21:19:44 Amy Cowen
February 25, 2016 @ 21:18:52 Amy Cowen
February 25, 2016 @ 21:17:20 Amy Cowen
February 25, 2016 @ 20:58:42 Amy Cowen
February 25, 2016 @ 20:52:25 Amy Cowen
February 25, 2016 @ 20:38:35 Amy Cowen
February 25, 2016 @ 20:33:23 Amy Cowen
February 25, 2016 @ 20:21:35 Amy Cowen
February 25, 2016 @ 20:10:38 Amy Cowen
February 25, 2016 @ 20:03:36 Amy Cowen