-
Notifications
You must be signed in to change notification settings - Fork 526
Deploy to Azure
Setting up the Share to Nightscout bridge on Azure is very easy assuming you already have a Nightscout website hosted on Azure. If you do not have a Nightscout website, it may be easier to Deploy to Heroku. Or, visit the Nightscout Setup Guide to setup a new Nightscout website on Azure.
You will perform the following steps to deploy the Share to Nightscout bridge.
- Download the latest bridge sidecar
- Change the Nightscout website configuration
- Deploy the bridge sidecar as a webjob
- Verify operation
-
Visit the share2nightscout-bridge releases page.
-
Download the nightscout-sidecar.zip file from the latest release to your computer.
-
Login to the Azure Management Portal.
-
Click on your website name, then click on the Configure tab.
-
Scroll down to option for "ALWAYS ON". Change the setting from off to on. If it is greyed out, you must first change your website hosting plan to "Basic" on the Scale tab for your website. Without the Always On option, your bridge will not operate continuously, and your Nightscout website will not update reliably. If you do not have an active Azure Pass obtained from the Nightscout Foundation, Basic web hosting services will cost about $50 per month.
-
Scroll down to the "connection strings" section and add the
DEXCOM_ACCOUNT_NAME
andDEXCOM_PASSWORD
variables. Add theAPI_SECRET
variable if it is not already present.API_SECRET
must be at least 12 characters long. Press Save at the bottom of the page to save your changes. All variables must have their type set to Custom. The default is SQL Database, which will not work.
-
Click on the Webjobs tab for your website
-
Click Add a job to create a new webjob.
-
Enter a name such as
share-ms-bridge
in the Name field. -
Click Browse for file and choose the nightscout-sidecar.zip file you downloaded.
-
Click the check mark in the bottom right to add the webjob.
-
After adding the new webjob, your job will transition to the
Running
state after a few moments.
After you have deployed your Share to Nightscout bridge, you will need to wait at least three minutes for data to upload to your Nightscout website. Once you verify that your website is showing current data, you are done.
See the README for details about additional variables you can set to control how your bridge operates.