Revision for “Nightscout with xDrip Wireless Bridge (Wixel)” created on March 29, 2017 @ 13:10:12
Nightscout with xDrip Wireless Bridge (Wixel)
<h2>Build an xDrip Wireless Bridge (Wixel)</h2> The xDrip Wireless Bridge is a DIY project in which you assemble and program an alternate CGM receiver that can be used to receive data from the Dexcom G4 transmitter. Once built, your xDrip wireless bridge (which fits in a container as small as a Tic-Tac box) can be used with xDrip to send data to a Nightscout site. For materials lists, schematics, and directions to build the xDrip Wireless Bridge, visit: <a href="https://github.com/StephenBlackWasAlreadyTaken/xDrip/wiki/xDrip-Wireless-Bridge">https://github.com/StephenBlackWasAlreadyTaken/xDrip/wiki/xDrip-Wireless-Bridge</a> After building the wireless bridge, download xDrip (<a href="https://github.com/StephenBlackWasAlreadyTaken/xDrip/wiki/xDrip-Beta">beta recommended</a>) and connect to xDrip on your uploader phone. <strong>Note:</strong> If your uploader phone is using Marshmallow (Android 6), you must do this step for xDrip to pair with your sensor: "A note regarding Marshmallow (Android 6) in Cyanogen-Mod and Google Nexus flavour: These versions of Android have the "privacy guard" that by default has location services disabled for the app and will only ask you if you want to allow them if xDrip would actually access GPS services (which it doesn't). You have to enable the permission for location services manually in the system settings (Settings > apps > xdrip > Permissions)." <h2>Connect to Nightscout</h2> If you already have a Nightscout site, you can configure xDrip to upload to your Nightscout site by configuring the <span style="color: red;" class="redText">Data Sync</span> settings. You can configure your Data Sync settings manually or use the Auto Configure tool and scan the information into xDrip. To use the Auto Configure tool, select the <span style="color: red;" class="redText">Auto Configure</span> option. Follow <a href="/wiki/labs/mongodb-upgrade-to-3-0/using-auto-configure-for-rest-api">these directions</a> to use the tool (in a browser) to generate a QR code of your configuration settings. <br /> <a href="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-autoconfigure.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-autoconfigure.png" alt="xdrip-autoconfigure" width="500" height="213" class="alignnone size-full wp-image-3107" /></a> <br /> If you want to enter your BASE URL manually, select API Upload (REST) as the upload method under <span style="color: red;" class="redText">Data Sync</span> and enter your BASE URL. (As long as you are using a beta version, REST API in xDrip uses the "new" syntax when setting up the base url. Sample: <span style="color: red;" class="redText">https://YOURSECRET123@yoursitename.azurewebsites.net/api/v1</span>) <!--(Note: xDrip Beta 4 v2.0.3 supports mongo 3 upload.)--> <a href="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-restapi1.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-restapi1.png" alt="xdrip-restapi" width="500" height="446" class="alignnone size-full wp-image-3106" /></a> <h2>Set Up Nightscout for the First Time</h2> If you do not have a Nightscout site and want to set one up, you will need to follow the <a href="/wiki/welcome/nightscout">steps for standard setup</a>, <strong>but</strong> you will use the xDrip application as the "uploader" <strong>instead of the Nightscout uploader app</strong>. The following steps are required to set up a Nightscout site: <ol> <li style="padding-bottom: 10px;"><strong>Mongolab</strong> Set up a free sandbox account at <a href="http://www.mongolab.com/plans">www.mongolab.com</a>, and create a user and database as <a href="http://www.nightscout.info/wiki/welcome/configuring-the-data-backend">specified here</a>. Be sure to write down all names and passwords as this information is required in the next steps.<br /><br /></li> <li style="padding-bottom: 10px;"><strong>Github</strong> Your Github account allows you to create a personal copy of the Nightscout code. You will use this copy in the creation of your website. When updates are released for the code, you will return to Github to update your copy. To begin, set up a free account at <a href="https://www.github.com">www.github.com</a> and then create ("fork") a copy of the CGM-remote-monitor repository, as follows: <blockquote> <ul> <li>Sign up for a free account at <a href="https://github.com/" target="_blank">github.com</a>. You will see the following screen that confirms you have a free account: <a href="http://www.nightscout.info/wp-content/uploads/2014/08/github-setup1.jpg"><img class=" aligncenter wp-image-1750 size-thumbnail" src="http://www.nightscout.info/wp-content/uploads/2014/08/github-setup1-150x150.jpg" alt="github setup" width="150" height="150" /></a></li> <li><span style="color: red;"><strong>WRITE DOWN YOUR USERNAME & PASSWORD</strong></span>.</li> <li>After creating your account and are logged in, open the master repository by clicking here -> <a href="https://github.com/nightscout/cgm-remote-monitor" target="_blank">cgm-remote-monitor</a></li> <li>Make a copy ("Fork") of the nightscout/cgm-remote-monitor to your own repository by clicking on the '<strong>Fork</strong>' button on top right OR - just click here -> <a href="https://github.com/nightscout/cgm-remote-monitor/fork"><img src="http://i.imgur.com/gR4wJ24.png" alt="fork" /> the cgm-remote-monitor</a></li> <li>When prompted with '<strong><em>Where should we fork this repository?</em></strong>', select your <strong>@<gitaccountname></strong>, and it will Fork to your repository. At the top of the page, you will now see <strong><gitaccountname>/cgm-remote-monitor</strong> indicating you have your own copy forked from Nightscout.</li> </ul> </blockquote> </li> <li style="padding-bottom: 10px;"><strong>Create an Azure or Heroku Website</strong> Your website will be the website you use to view your Nightscout data. The url for this website will also be used if you use a Pebble watch to access your Nightscout data. To set up your Nightscout website, follow Steps 2-5 on this page: <a href="http://www.nightscout.info/wiki/welcome/monitor-cgm-web#azure">Setting Up Your Nightscout Website on Azure</a>. These steps will guide you through creating an Azure site, deploying your GitHub code to Azure, configuring your site to use Mongo (Mlab) and setting the API SECRET. To set up your Nightscout website using Heroku, follow <a href="http://www.nightscout.info/wiki/welcome/set-up-nightscout-using-heroku">these directions</a>. </li> <li style="padding-bottom: 10px;"><strong>Verify that Your Nightscout Site Works</strong> In a browser, go to your site: <span style="color: red;">http://YOURSITE.azurewebsites.net</span>. If your deployment and configuration of your mongo variables was successful, you will see a black screen with the time. If you have correctly configured your upload method in xDrip (and set the matching API_SECRET), you should also see your current CGM data. <strong>If you do not see a black screen</strong>, your deployment may have failed. You may also have an error in the entry of the mongo connection strings, or your API SECRET may be less than 12 characters. <strong>If you see a black screen with the time but no data</strong>, wait 5-10 minutes and then refresh your site. If you still do not have data, there may be a problem with the configuration of your upload method in xDrip. </li> <li style="padding-bottom: 10px;"><strong>Switch to Pay-as-You-Go</strong></li> See <a href="http://www.nightscout.info/wiki/faqs-2/azure-2/azure-management">this document</a> for important information about changing your Azure account to Pay-as-You-Go.<br /><br /> </li> </ol> <!-- Need to confirm this is possible with the wixel --> <!-- <h2>Optional: Upload to Share Servers</h2> Using xDrip with Dexcom Share, you have the option to upload the data to the Share servers so that you can use the Dexcom Follow app. This method also enables you to use the Simple CGM watchface for Pebble and the Dexcom watchface for Apple Watch. <ol> <li style="padding-bottom: 8px;">Under the <span style="color: red;" class="redText">Dexcom Share Server Upload</span> section in xDrip settings, check the box to <span style="color: red;" class="redText">Upload BG values as Dexcom Share</span>. <a href="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-share.png"><img src="http://www.nightscout.info/wp-content/uploads/2015/09/xdrip-share.png" alt="xdrip-share" width="500" height="582" class="alignnone size-full wp-image-3110" /></a></li> <li style="padding-bottom: 8px;">Enter the name and password for the Dexcom Share account.</li> <li>xDrip also has tools to enable you to send Follow invites, if needed.</li> </ol> --> <h2>xDrip Features</h2> There are numerous features built into xDrip, so be sure and explore the optional settings to configure xDrip for your use. For additional xDrip information, see the <a href="http://stephenblackwasalreadytaken.github.io/xDrip/">xDrip Project Site</a>.