Nightscout with xDrip Wireless Bridge (Wixel)

17 Oct
Guides > Setup Guides > Nightscout with xDrip Wireless Bridge (Wixel)

Build an xDrip Wireless Bridge (Wixel)

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:

After building the wireless bridge, download xDrip (beta recommended) and connect to xDrip on your uploader phone.

Note: 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).”

Connect to Nightscout

If you already have a Nightscout site, you can configure xDrip to upload to your Nightscout site by configuring the Data Sync 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 Auto Configure option. Follow these directions to use the tool (in a browser) to generate a QR code of your configuration settings.


If you want to enter your BASE URL manually, select API Upload (REST) as the upload method under Data Sync 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:

Set Up Nightscout for the First Time

If you do not have a Nightscout site and want to set one up, you will need to follow the steps for standard setup, but you will use the xDrip application as the “uploader” instead of the Nightscout uploader app.

The following steps are required to set up a Nightscout site:

  1. Mongolab
    Set up a free sandbox account at, and create a user and database as specified here. Be sure to write down all names and passwords as this information is required in the next steps.

  2. Github
    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 and then create (“fork”) a copy of the CGM-remote-monitor repository, as follows:

    • Sign up for a free account at You will see the following screen that confirms you have a free account:
      github setup
    • After creating your account and are logged in, open the master repository by clicking here -> cgm-remote-monitor
    • Make a copy (“Fork”) of the nightscout/cgm-remote-monitor to your own repository by clicking on the ‘Fork‘ button on top right
      OR – just click here -> fork the cgm-remote-monitor
    • When prompted with ‘Where should we fork this repository?‘, select your @<gitaccountname>, and it will Fork to your repository.
      At the top of the page, you will now see <gitaccountname>/cgm-remote-monitor indicating you have your own copy forked from Nightscout.
  3. Create an Azure or Heroku Website

    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: Setting Up Your Nightscout Website on Azure. 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 these directions.

  4. Verify that Your Nightscout Site Works

    In a browser, go to your site: 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.

    If you do not see a black screen, 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.

    If you see a black screen with the time but no data, 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.

  5. Switch to Pay-as-You-Go
  6. See this document for important information about changing your Azure account to Pay-as-You-Go.

xDrip Features

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 xDrip Project Site.