UPDATING NIGHTSCOUT SITE

If you are new to Loop and haven’t updated your NS site since before December 1, 2016, you will want to update your NS site. You can run either the "master" or "dev" branches of cgm-remote-monitor with Loop. To check what version your Nightscout site is running, go to your Nightscout site and pull open the site settings by clicking on the three horizontal lines at the top right of the screen. Scroll down and see if you are running 0.9.2-dev-20161201 or newer for "dev" branch. Notice the “dev” branch is date stamped 0.9.x-dev-YYYMMDD; or you’ll see version 0.9.2 for "master" branch deployments.

If you are a current NS user and simply want to update your site, this procedure will work as well.

Updating your repository in GitHub

for master branch deployments:

https://github.com/yourgithubname/cgm-remote-monitor/compare/master...nightscout:master

For dev branch deployments:

https://github.com/yourgithubname/cgm-remote-monitor/compare/dev...nightscout:dev





New Loopers Variables

For new Loopers (but old Nightscout users), you will need to add some variables to your Heroku site to Loop.

KEY VALUE
ENABLE bridge loop pump iob cob basal careportal sage cage

(Double check that you have at least these words on your ENABLE line. Enter all of the words without commas; just a single space between each word. Make sure autocorrect does not add space between careportal.)
DEVICESTATUS_ADVANCED true
PUMP_FIELDS battery reservoir clock status
PUMP_RETRO_FIELDS battery reservoir clock status
SHOW_FORECAST loop
SHOW_PLUGINS loop pump cob iob sage cage careportal
PUMP_ENABLE_ALERTS true
PUMP_URGENT_BATT_U 30

(This is the pump battery percentage that will trigger a red, urgent alert in NS.)
PUMP_URGENT_BATT_V 1.25

(This is the pump battery voltage that will trigger a red, urgent alert in NS.)
PUMP_URGENT_RES 10

(This is the reservoir volume that will trigger a red, urgent alert in NS.)
PUMP_URGENT_CLOCK 30
LOOP_ENABLE_ALERTS true
LOOP_WARN 20

(This is the minutes since Loop last successfully looped, the t1d will have a similar notification at this time through the Loop app. This will be a yellow alert in NS.)
LOOP_URGENT 60

(Same as the alert above, but will be red in color and have a shorter snooze option.)

EVENT HISTORY

Don't forget to keep you Loop App's Preferred Source set to Event History if you want your NS site to smoothly integrate. Preferred Source set to Reservoir will result in carbs not being uploaded and temp basals not being displayed.