Как настроить nightscout для ios павел мастяев

Содержание
  1. Как настроить nightscout для ios павел мастяев
  2. Как настроить nightscout для ios павел мастяев
  3. Nightscout¶
  4. Вопросы безопасности¶
  5. Настройки Nightscout¶
  6. Настройки системы AndroidAPS¶
  7. Дополнительные параметры защиты¶
  8. Установка Nightscout вручную¶
  9. Полуавтоматизированная установка Nightscout¶
  10. Главная
  11. Что такое проект Nightscout?
  12. Как получить актуальные данные глюкозы крови в облаке
  13. Начать работу с Nightscout
  14. Ваши данные CGM на часах
  15. Как это работает? — (оригинальный Nightscout)
  16. Сколько это стоит?
  17. Что мне теперь делать?
  18. Всё, что мы просим — чтобы вы делились полученным опытом с другими людьми, потому что «Мы не ждем!» (именно под таким хэштегом объединились диабетики всего мира — #wearenotwaiting)
  19. Nightscout Configuration⌁
  20. Nightscout Config Vars⌁
  21. Required variables⌁
  22. Features⌁
  23. Alarms⌁
  24. Predefined values for your browser settings (optional)⌁
  25. Predefined values for your server settings (optional)⌁
  26. Split View⌁
  27. Plugins⌁
  28. Default Plugins⌁
  29. Advanced Plugins:⌁
  30. Extended Settings⌁
  31. Pushover⌁
  32. IFTTT Maker⌁
  33. Treatment Profile⌁

Как настроить nightscout для ios павел мастяев

Информация для всех пользователей NightScout.
MLab (MongoDB) в очередной раз планово в автоматическом режиме обновляет базы данных. Происходит с конца июня по 20 июля 2018 г. После обновления может перестать работать сайт NightScout.

Что делать если перестал работать сайт?
1) Убедиться, что это произошло не по вине блокировок Роскомнадзора. Для этого в xdrip+:
1.1) Настройки — Cloud Upload — MongoDB — Включено — выключить
1.2) Настройки — Cloud Upload — API загрузки (REST) — Включено — включить.
1.3) Там же в «Базовый URL» стереть всё начисто, включая пробелы (это важно!), вбить туда
https:// API_SECRET@имясайта.herokuapp.com /api/v1/
(вводить всё без пробелов), где
— API_SECRET — это пароль от сайта длиной не меньше 12 символов, который Вы придумывали, когда создавали сайт NightScout*
— имясайта.herokuapp.com — адрес Вашего сайта Nightcout

Перепроверить не меньше 5 раз (это важно!), что адрес сайта вбит правильно и в строке нет пробелов, в том числе в начале и в конце (это важно!)

*Если Вы забыли API_SECRET, посмотреть его можно в личном кабинете heroku на вкладке Deploy, нажав Reveal Config Vars
Если сайт создавали не Вы, просто спростите API_SECRET у того, кто Вам его создавал

1.3) Убедиться, что на всех устройствах работает интернет (это очень-очень важно!) и подождать 20 минут. Если сайт заработал, то проблема была по причине блокировок.

2)
2.1) Если Вы настраивали сайт по старой инструкции** — в личном кабинете Heroku на вкладке Deploy в самом низу страницы нажмите Deploy Branch

2.2) Если Вы настраивали сайт по новой инструкции** — в личном кабинете Heroku на в верхем правом углу страницы нажмите More и выберите Restart All Dynos

2.3) Перейдите на Ваш сайт, и проверьте, что он работает.

**Если Вы не знаете, по какой инструкции создавали сайт, просто в личном кабинете heroku посмотрите на вкладке deploy:
— Если прямоугольником выделен GitHub и внизу страницы есть кнопка Deploy Branch, то Ваш сайт создан по старой инструкции.
— Если прямоугольником выделен Heroku Git и внизу страницы нет кнопки Deploy Branch, Ваш сайт создан по новой инструкции

Специально для диагрупп,
Павел Мастяев

Источник

Как настроить nightscout для ios павел мастяев

Сахарный диабет | Чебоксары | Чувашия запись закреплена

Информация для всех пользователей NightScout.
MLab (MongoDB) в очередной раз планово в автоматическом режиме обновляет базы данных. Происходит с конца июня по 20 июля 2018 г. После обновления может перестать работать сайт NightScout.

Что делать если перестал работать сайт?
1) Убедиться, что это произошло не по вине блокировок Роскомнадзора. Для этого в xdrip+:
1.1) Настройки — Cloud Upload — MongoDB — Включено — выключить
1.2) Настройки — Cloud Upload — API загрузки (REST) — Включено — включить.
1.3) Там же в «Базовый URL» стереть всё начисто, включая пробелы (это важно!), вбить туда
https:// API_SECRET@имясайта.herokuapp.com /api/v1/
(вводить всё без пробелов), где
— API_SECRET — это пароль от сайта длиной не меньше 12 символов, который Вы придумывали, когда создавали сайт NightScout*
— имясайта.herokuapp.com — адрес Вашего сайта Nightcout

Перепроверить не меньше 5 раз (это важно!), что адрес сайта вбит правильно и в строке нет пробелов, в том числе в начале и в конце (это важно!)

*Если Вы забыли API_SECRET, посмотреть его можно в личном кабинете heroku на вкладке Deploy, нажав Reveal Config Vars
Если сайт создавали не Вы, просто спростите API_SECRET у того, кто Вам его создавал

1.3) Убедиться, что на всех устройствах работает интернет (это очень-очень важно!) и подождать 20 минут. Если сайт заработал, то проблема была по причине блокировок.

2)
2.1) Если Вы настраивали сайт по старой инструкции** — в личном кабинете Heroku на вкладке Deploy в самом низу страницы нажмите Deploy Branch

2.2) Если Вы настраивали сайт по новой инструкции** — в личном кабинете Heroku на в верхем правом углу страницы нажмите More и выберите Restart All Dynos

2.3) Перейдите на Ваш сайт, и проверьте, что он работает.

**Если Вы не знаете, по какой инструкции создавали сайт, просто в личном кабинете heroku посмотрите на вкладке deploy:
— Если прямоугольником выделен GitHub и внизу страницы есть кнопка Deploy Branch, то Ваш сайт создан по старой инструкции.
— Если прямоугольником выделен Heroku Git и внизу страницы нет кнопки Deploy Branch, Ваш сайт создан по новой инструкции

Специально для диагрупп,
Павел Мастяев

Источник

Nightscout¶

Вопросы безопасности¶

Помимо отчетов Nightscout можно также использовать для управления AAPS. Например, вы можете задать временные цели или добавить будущие углеводы. Эта информация будет подхвачена в AAPS, которая будет выполнять соответствующие действия. Поэтому стоит задуматься над тем, как обеспечить безопасность веб-сайта Nightcut.

Настройки Nightscout¶

Можно запретить общий доступ к сайту Nightscout с помощью идентификационных ролей .

Настройки системы AndroidAPS¶

В параметрах AAPS есть функция только загрузки NS (без синхронизации). При этом AAPS не отбирает изменения, внесенные в Nightscout, такие как временные цели или будущие углеводы. Если вы используете профиль NS , то профили будут синхронизировано между AAPS и Nightscout, несмотря на настройку “только загрузка”.

  • Коснитесь 3-точечного меню в правом верхнем углу на домашней странице AAPS.
  • Выберите “Параметры”.
  • Прокрутите страницу вниз и выберите “Дополнительные параметры”.
  • Активируйте “только загрузку NS”

Дополнительные параметры защиты¶

Регулярно обновляйте программное обеспечение телефона, как описано в разделе безопасность прежде всего .

Установка Nightscout вручную¶

Предполагается, что у вас уже есть сайт Nightscout, если же нет — зайдите на страницу Nightscout для получения полных инструкций по настройке; приведенные ниже инструкции описывают параметры, которые также потребуется добавить на сайт Nightscout. Сайт Nightscut должен быть по крайней мере версии 10 (отображается как 0.10. ), поэтому убедитесь, что вы запускаете последнюю версию ; в противном случае появится сообщение об ошибке в приложении AAPS. Некоторые люди находят, что алгоритмы ИПЖ требуют больше трафика, чем квоты Azure, поэтому Heroku предпочтительнее.

  • Перейдите на https://herokuapp.com/
  • Нажмите на имя службы приложения.
  • Щелкните по параметрам приложения (azure) или Settings > ” Reveal Config Variables (heroku)
  • Добавьте или измените переменные следующим образом:
    • ENABLE = careportal boluscalc food bwp cage sage iob cob basal ar2 rawbg pushover bgi pump openaps
    • DEVICESTATUS_ADVANCED = true
    • SHOW_FORECAST = openaps
    • PUMP_FIELDS = reservoir battery clock
    • Для мониторинга помпы можно задать различные оповещения, в частности, рекомендуется % заряда батареи:
      • PUMP_WARN_BATT_P = 51
      • PUMP_URGENT_BATT_P = 26

  • Нажмите кнопку “Сохранить” в верхней части панели.

Полуавтоматизированная установка Nightscout¶

Fellow looper Martin Schiftan offered a semi-automated Nightscout setup for many years free of charge. As number of users increased so did cost and therefore he had to start asking a small fee starting October 2021 — starting at €4,17 per month.

Преимущества

  • Можно установить Nightscout в несколько щелчков и сразу же начать им пользоваться.
  • Сокращение ручной работы поскольку Martin пытается автоматизировать администрирование.
  • Все настройки можно задать с помощью удобного для пользователя веб-интерфейса.
  • Услуга включает автоматическую проверку базальной скорости с помощью автонастройки.
  • The servers are located in Germany and Finland.

An alternative would be https://t1pal.com/ — starting at $11,99 per month.

© Copyright AndroidAPS community Revision 604eafaf .

Источник

Главная

Что такое проект Nightscout?

Nightscout (CGM in the Cloud) — это DIY (Do It Yourself) проект с открытым исходным кодом, который обеспечивает доступ к данным CGM (Conscious glucose monitoring или система мониторинга глюкозы) в режиме реального времени через личный веб-сайт, посредством использования «умных часов», а также приложения или виджета для смартфонов или планшетов.

Nightscout был разработан родителями детей с диабетом 1-го типа и продолжал развиваться, поддерживаться и поддерживаться волонтерами. Когда Nightscout был впервые создан, он был предназначен специально для удаленного мониторинга данных с Dexcom G4 CGM. На данный момент доступны решения мониторинга через Nightscout для Dexcom G4, Dexcom Share с Android, Dexcom Share / G5 с iOS и Medtronic, Freestyle Libre 1 и 2. Nightscout также обеспечивает визуализацию и непосредственное участие в процессах работы Closed Loop (замкнутого цикла) для пользователей #OpenAPS, Loop и AndroidAPS — “Artificial Pancreas” или систем Искусственной Поджелудочной Железы. Целью проекта является обеспечить родителей (родственников и/или близких людей) возможностью удаленно контролировать уровень глюкозы Диабетика 1-го типа при помощи различных устройств, которые имеют доступ в интернет.

Как получить актуальные данные глюкозы крови в облаке

Выбор наилучшего способа настройки Nightscout зависит, прежде всего, от следующего:

  1. Какой телефон будет носить человек с диабетом 1-го типа? (Любой из способов передачи уровня Глюкозы Крови (далее ГК) требует, чтобы диабетик использовал телефон в качестве «загрузчика» данных на сайт Nightscout.)
  2. Какая у Вас система мониторинга глюкозы (далее — CGM)?

В следующей таблице представлен обзор разных вариантов, доступных для настройки удаленного мониторинга CGM с помощью Nightscout. Если не сможете разобраться, то напишите нам через форму обратной связи в разделе контакты. Мы постараемся помочь Вам.

Начать работу с Nightscout

  • Обновлено! Универсальная настройка Nightscout для Dexcom Share, xDrip + или Spike
  • Традиционная установка Nightscout (проводная Android-оснастка для G4 [non-Share])
  • Nightscout с xDrip и Dexcom G4 Share (Android / беспроводной)
  • Nightscout с беспроводным мостом xDrip (Android с DIY-приемником)
  • Nightscout для FreeStyle Libre
  • Ночная Скаута и Медтроник 640г
  • Ночная Скаута и Медтроник Вео / 530
  • Nightscout и Medtronic MiniMed Connect
  • Варианты Watchface

Nightscout активно развивается. Чтобы быстро получить доступ к необходимой информации, используйте ресурс Nightscout Cheat Sheet (Links) . Здесь же представлена базовая информация.

Ваши данные CGM на часах

Есть несколько вариантов SmartWatch для просмотра данных CGM. На сайте Nightscout доступны опции для Pebble (все варианты), AndroidWear и Apple Watch. Узнайте больше о параметрах watchface .

Как это работает? — (оригинальный Nightscout)

Технология довольно проста: ваш приемник Dexcom продолжает работать, как всегда, считывая уровень глюкозы у пациента с СД1, который носит датчик / передатчик. Система Nightscout позволяет подключать (или сопрягать) устройство к приемнику Dexcom, который передает показания глюкозы в Интернет, где любое подключенное к Интернету устройство может просматривать числа. Это так просто.

Это изображение из статьи «Wall Street Journal» «Гражданский хакер, работающий с медицинскими приборами» иллюстрирует всю систему. (Нажмите на изображение для увеличения.)

Изображение предоставлено «Wall Street Journal» . Опубликовано 26 сентября 2014 г.

Сколько это стоит?

Стоимость зависит от настроек, которые вы будете использовать. Онлайн-сервисы и учетные записи, необходимые для запуска сайта Nightscout, бесплатны для большинства пользователей.

Что мне теперь делать?

Важно запомнить и понять! Единственной целью вашего конкретного сайта Nightscout является отображение данных, а также удалённый мониторинг людьми, которые заботятся о Вас. Из-за упомянутых предостережений и по многим другим причинам важно не полагаться на эти графики и прогнозы в качестве единственного верного и окончательного решения для терапии диабета .

Прочтение пошаговых инструкций для вашего комплекта устройств (CGM, телефон, Closed Loop и пр.) перед началом работы поможет подготовить вас к тому, чтобы собрать все воедино и научиться пользоваться системой.

Обратите внимание: многие ресурсы и документы на этом сайте описывают оригинальную (первоначальную) настройку Nightscout (которая включает в себя кабель и Android). В настоящее время доступны беспроводные решения. Документация добавляется и пересматривается на постоянной основе.

Всё, что мы просим — чтобы вы делились полученным опытом с другими людьми, потому что «Мы не ждем!» (именно под таким хэштегом объединились диабетики всего мира — #wearenotwaiting)

Примечание: команда Nightscout не оказывает техническую поддержку и не даёт каких-либо гарантий, что Вы будете довольны качеством и производительностью данной системы мониторинга, если Вы решите настроить и использовать его. Это проект был создан и полностью поддерживается добровольцами, энтузиастами.

ОТКАЗ ОТ ОТВЕТСТВЕННОСТИ!

Источник

Nightscout Configuration⌁

Nightscout configuration is held in variables , their content can be modified to change and customize the behavior (data source, security, alarms, . ) and appearance (language, colors, visible items, . ). When deploying your Nightscout, most are left with default values and with time you might want to tune your site.

APPLIES TO:

Editing Config Vars in Heroku⌁

See here where and how to change your variables.

APPLIES TO:

You can change your settings in the Control Panel see here for available variables and plugins.

Nightscout Config Vars⌁

Required variables⌁

MONGODB_URI ⌁

The connection string required to access your database (where all your data is stored in the cloud).

This string is vital to your Nightscout functioning. A wrong connection string will prevent your site to open and your data to upload in Nightscout

An Atlas database string will look like this:

If you migrated from mLab, this variable might be MONGO_CONNECTION . Only one of these two variables must be present: MONGODB_URI or MONGO_CONNECTION .

API_SECRET⌁

This is an important password

Knowing your site’s API Secret gives anybody full access to your Nightscout data, allows uploading to your site and uncontrolled access. Make sure you keep this password secret and avoid exposing it publicly.

Читайте также:  Настроить ноутбук для работы с модемом

A passphrase that must be at least 12 characters long.

This is the passcode that will be required by the uploader app (if any) to send data to your site, and that will allow you to modify your site parameters from the web interface. Keep it secret, only share it with trusted people, change it if you believe it’s been exposed publicly. Minimum length is 12 characters, don’t make it too long and do not put special characters in it (better stick to letters and numbers). It is case-sensitive.

MONGO_COLLECTION ( entries )⌁

Deprecated (set as system default) from 14.0.7

The Mongo collection where CGM entries are stored. Leave default entries .

DISPLAY_UNITS⌁

Preferred BG units for the site: mg/dl or mmol/L (or just mmol ). Setting to mmol/L puts the entire server into mmol/L mode by default, no further settings needed.

Features⌁

ENABLE⌁

Select the right plugins! Better too many than not enough.

Plugins to enable for your site. Must be a space-delimited, lower-case list.

Include the word bridge here if you are receiving data from the Dexcom Share service.

If you don’t want to decide now, add all the followings, you can disable them if you don’t need them:

Note: mmconnect is not functional with Heroku (if you wanted to bridge from the MiniMed CareLink service you will need another device to send data to Nightscout). If you are sending data to CareLink do NOT enable mmconnect .

DISABLE⌁

Used to disable default features, expects a space delimited list.

For example this will disable the direction arrow and uploader battery information:

BASE_URL⌁

Used for building links to your site’s API, i.e. Pushover callbacks, usually the URL of your Nightscout site.

AUTH_DEFAULT_ROLES⌁

Possible values readable , denied , or any valid role name. When readable , anyone can view Nightscout without a token. Setting it to denied will require a token from every visit, using status-only will enable api-secret based login.

IMPORT_CONFIG⌁

Used to import settings and extended settings from a url such as a gist. Structure of file should be something like: <"settings": <"theme": "colors">, «extendedSettings»: <"upbat": <"enableAlerts": true>>>

TREATMENTS_AUTH⌁

Possible values on or off . Deprecated, if set to off the careportal role will be added to AUTH_DEFAULT_ROLES

Alarms⌁

These alarm setting affect all delivery methods (browser, Pushover, IFTTT, etc.). Values and settings entered here will be the defaults for new browser views, but will be overridden if different choices are made in the settings UI.

ALARM_TYPES ( simple )⌁

Keep the simple type if you want BG_ parameters (setup below) to be used.

simple and/or predict .

Simple alarms trigger when BG crosses the various thresholds set below.

Predict alarms uses highly tuned formula that forecasts where the BG is going based on its trend. You will not get warnings when crossing any of the BG_ thresholds set below when using only the predict type.

These values are the ones that will trigger simple alarms. They are expressed in the unit you selected with DISPLAY_UNITS .

BG_HIGH ( 260 )⌁

Urgent High BG threshold, triggers the ALARM_URGENT_HIGH alarm.

BG_LOW ( 55 )⌁

Urgent Low BG threshold, triggers the ALARM_URGENT_LOW alarm.

BG_TARGET_BOTTOM ( 80 )⌁

Low BG threshold, triggers the ALARM_LOW alarm.

BG_TARGET_TOP ( 180 )⌁

High BG threshold, triggers the ALARM_HIGH alarm.

You can setup alarms, so that when your Nightscout page is open and the alarm enabled, above ( HIGH ) or below ( LOW ) a certain threshold, a sound might play.

ALARM_URGENT_HIGH ( on )⌁

Default setting for new browser views, for the Urgent High alarm (triggered when BG crosses BG_HIGH ). ( on or off )

ALARM_HIGH ( on )⌁

Default setting for new browser views, for the High alarm (triggered when BG crosses BG_TARGET_TOP ). ( on or off )

ALARM_LOW ( on )⌁

Default setting for new browser views, for the Low alarm (triggered when BG crosses BG_TARGET_BOTTOM ). ( on or off )

ALARM_URGENT_LOW ( on )⌁

Default setting for new browser views, for the Urgent Low alarm (triggered when BG crosses BG_LOW ). ( on or off )

ALARM_*_MINS : Only the first value of the space separated list, for options in browser, will be used for pushover.

ALARM_URGENT_HIGH_MINS ( 30 60 90 120 )⌁

Number of minutes to snooze urgent high alarms.

ALARM_HIGH_MINS ( 30 60 90 120 )⌁

Number of minutes to snooze high alarms.

ALARM_LOW_MINS ( 15 30 45 60 )⌁

Number of minutes to snooze low alarms.

ALARM_URGENT_LOW_MINS ( 15 30 45 )⌁

Number of minutes to snooze urgent low alarms.

ALARM_URGENT_MINS ( 30 60 90 120 )⌁

Number of minutes to snooze urgent alarms (that aren’t tagged as high or low).

ALARM_WARN_MINS ( 30 60 90 120 )⌁

Number of minutes to snooze warning alarms (that aren’t tagged as high or low).

Missing data alarms can also be setup, so that when your Nightscout page is open and the alarm enabled, after a certain time without receiving BG, a sound might play.

ALARM_TIMEAGO_URGENT ( on )⌁

Default setting for new browser views, for an urgent alarm when CGM data hasn’t been received in the number of minutes set in ALARM_TIMEAGO_URGENT_MINS . on or off )

ALARM_TIMEAGO_URGENT_MINS ( 30 )⌁

Default setting for new browser views, for the number of minutes since the last CGM reading to trigger an ALARM_TIMEAGO_URGENT alarm.

ALARM_TIMEAGO_WARN ( 180 )⌁

Default setting for new browser views, for a warning alarm when CGM data hasn’t been received in the number of minutes set in ALARM_TIMEAGO_WARN_MINS . ( on or off )

ALARM_TIMEAGO_WARN_MINS ( 15 )⌁

Default setting for new browser views, for the number of minutes since the last CGM reading to trigger an ALARM_TIMEAGO_WARN alarm.

MONGO_TREATMENTS_COLLECTION ( treatments )⌁

The collection used to store treatments entered in the Care Portal, see the ENABLE env var above

MONGO_DEVICESTATUS_COLLECTION ( devicestatus )⌁

The collection used to store device status information such as uploader battery

MONGO_PROFILE_COLLECTION ( profile )⌁

The collection used to store your profiles

MONGO_FOOD_COLLECTION ( food )⌁

The collection used to store your food database

MONGO_ACTIVITY_COLLECTION ( activity )⌁

The collection used to store activity data

PORT ( 1337 )⌁

The port that the node.js application will listen on.

HOSTNAME⌁

The hostname that the node.js application will listen on, null by default for any hostname for IPv6 you may need to use :: .

SSL_KEY⌁

Path to your ssl key file, so that ssl(https) can be enabled directly in node.js. If using Let’s Encrypt, make this variable the path to your privkey.pem file (private key).

SSL_CERT⌁

Path to your ssl cert file, so that ssl(https) can be enabled directly in node.js. If using Let’s Encrypt, make this variable the path to fullchain.pem file (cert + ca).

SSL_CA⌁

Path to your ssl ca file, so that ssl(https) can be enabled directly in node.js. If using Let’s Encrypt, make this variable the path to chain.pem file (chain).

HEARTBEAT ( 60 )⌁

Number of seconds to wait in between database checks

DEBUG_MINIFY ( true )⌁

Debug option, setting to false will disable bundle minification to help tracking down error and speed up development

DE_NORMALIZE_DATES( true )⌁

The Nightscout REST API normalizes all entered dates to UTC zone. Some Nightscout clients have broken date deserialization logic and expect to received back dates in zoned formats. Setting this variable to true causes the REST API to serialize dates sent to Nightscout in zoned format back to zoned format when served to clients over REST.

Predefined values for your browser settings (optional)⌁

TIME_FORMAT ( 12 )⌁

Possible values 12 or 24

NIGHT_MODE ( off )⌁

Possible values on or off

SHOW_RAWBG ( never )⌁

Default setting for new browser views, for the display of raw CGM data (if available). ( always , never , or noise )

CUSTOM_TITLE ( Nightscout )⌁

This will change your Nightscout displayed name (top left) from default.

The display name for the Nightscout site. Appears in the upper left of the main view. Often set to the name of the CGM wearer.

THEME ( colors )⌁

Default setting for new browser views, for the color theme of the CGM graph.

SHOW_PLUGINS⌁

Default setting for whether or not these plugins are checked (active) by default, not merely enabled. Include plugins here as in the ENABLE line; space-separated and lower-case.

SHOW_FORECAST ( ar2 )⌁

Plugin forecasts that should be shown by default, supports space delimited values such as «ar2 openaps»

LANGUAGE ( en )⌁

Language of Nightscout. If not available English is used.

Currently supported language codes are: bg (Български), cs (Čeština), de (Deutsch), dk (Dansk), el (Ελληνικά), en (English), es (Español), fi (Suomi), fr (Français), he (עברית), hr (Hrvatski), it (Italiano), ko (한국어), nb (Norsk (Bokmål)), nl (Nederlands), pl (Polski), pt (Português (Brasil)), ro (Română), ru (Русский), sk (Slovenčina), sv (Svenska), tr (Turkish), zh_cn (中文(简体)), zh_tw (中文(繁體))

SCALE_Y ( log )⌁

The type of scaling used for the Y axis of the charts system wide.

The default log (logarithmic) option will let you see more detail towards the lower range, while still showing the full CGM range.

The linear option has equidistant tick marks; the range used is dynamic so that space at the top of chart isn’t wasted.

The log-dynamic is similar to the default log options, but uses the same dynamic range and the linear scale.

EDIT_MODE ( on )⌁

Possible values on or off . Enables the icon allowing for editing of treatments in the main view. More about edit here.

BOLUS_RENDER⌁

Settings to configure Bolus rendering

BOLUS_RENDER_OVER ( 0 ) — U value over which the bolus labels use the format defined in BOLUS_RENDER_FORMAT . This value can be an integer or a float, e.g. 0.3 , 1.5 , 2 , etc.

BOLUS_RENDER_FORMAT ( default ) — Possible values are hidden , default (with leading zero and U), concise (with U, without leading zero), and minimal (without leading zero and U).

BOLUS_RENDER_FORMAT_SMALL ( default ) — Possible values are hidden , default (with leading zero and U), concise (with U, without leading zero), and minimal (without leading zero and U).

Predefined values for your server settings (optional)⌁

INSECURE_USE_HTTP ( false )⌁

Setting this variable to true will allow (unsafe) http traffic to your Nightscout instance and is not recommended.

Redirect unsafe http traffic to https. Possible values false , or true . Your site redirects to https by default. If you don’t want that from Nightscout, but want to implement that with a Nginx or Apache proxy, set INSECURE_USE_HTTP to true .

SECURE_HSTS_HEADER ( true )⌁

Add HTTP Strict Transport Security (HSTS) header. Possible values false , or true .

SECURE_HSTS_HEADER_INCLUDESUBDOMAINS ( false )⌁

Include subdomains options for HSTS. Possible values false , or true .

SECURE_HSTS_HEADER_PRELOAD ( false )⌁

Ask for preload in browsers for HSTS. Possible values false , or true .

SECURE_CSP ( false )⌁

Add Content Security Policy headers. Possible values false , or true .

SECURE_CSP_REPORT_ONLY ( false )⌁

If set to true allows to experiment with policies by monitoring (but not enforcing) their effects. Possible values false , or true .

Split View⌁

Some users will need easy access to multiple Nightscout views at the same time. We have a special view for this case, accessed on /split path on your Nightscout URL. The view supports any number of sites between 1 to 8 way split, where the content for the screen can be loaded from multiple Nightscout instances. Note you still need to host separate instances for each Nightscout being monitored including the one that hosts the split view page — these variables only add the ability to load multiple views into one browser page. To set the URLs from which the content is loaded, set:

FRAME_URL_1 — URL where content is loaded, for the first view (increment the number up to 8 to get more views)

FRAME_NAME_1 — Name for the first split view portion of the screen (increment the number to name more views)

To display the split view browse to:

8 split view example:

Plugins⌁

Plugins are used to extend the way information is displayed, how notifications are sent, alarms are triggered, and more.

If you want the ENABLE ‘d plugins to show by default on any browser, you should put them in the SHOW_PLUGINS variable.

If you want to specifically disable a plugin (mainly a default plugin) you should place it in the DISABLE variable.

You also can decide to visualize them or not on your Nightscout view with the drawer menu. Authenticate and Save the settings on your browser. Heroku variables will not be modified and only default view will be seen on a new browser window.

Default Plugins⌁

Below some default plugins: timeago , upbat , direction and delta .

Hovering the mouse on (computer) or touching (touch screen) some plugins will give you additional information.

delta (BG Delta)⌁

Calculates and displays the change between the last 2 BG values. Delta shows a * if time difference is more than 5 minutes.

direction (BG Direction)⌁

Displays the trend direction.

upbat (Uploader Battery)⌁

Displays the most recent battery status from the uploader phone. . Use these extended setting to adjust behavior:

UPBAT_ENABLE_ALERTS ( false ) — Set to true to enable uploader battery alarms via Pushover and IFTTT.

Читайте также:  Не работают задние парктроники уаз патриот

UPBAT_WARN ( 30 ) — Minimum battery percent to trigger warning.

UPBAT_URGENT ( 20 ) — Minimum battery percent to trigger urgent alarm.

timeago (Time Ago)⌁

Displays the time since last CGM entry. Use these extended setting to adjust behavior:

TIMEAGO_ENABLE_ALERTS ( false ) — Set to true to enable stale data alarms via Pushover and IFTTT.

ALARM_TIMEAGO_WARN ( on ) — possible values on or off

ALARM_TIMEAGO_WARN_MINS ( 15 ) — minutes since the last reading to trigger a warning

ALARM_TIMEAGO_URGENT ( on ) — possible values on or off

ALARM_TIMEAGO_URGENT_MINS ( 30 ) — minutes since the last reading to trigger a urgent alarm

devicestatus (Device Status)⌁

Used by upbat and other plugins to display device status info. Supports the DEVICESTATUS_ADVANCED=»true» extended setting to send all device statuses to the client for retrospective use and to support other plugins.

Example: upbat information using devicestatus .

errorcodes (CGM Error Codes)⌁

Generates alarms for CGM codes 9 (hourglass) and 10 (. ).

Use extended settings to adjust what errorcodes trigger notifications and alarms:

ERRORCODES_INFO ( 1 2 3 4 5 6 7 8 ) — By default the needs calibration (blood drop) and other codes below 9 generate an info level notification, set to a space separate list of number or off to disable

ERRORCODES_WARN ( off ) — By default there are no warning configured, set to a space separate list of numbers or off to disable

ERRORCODES_URGENT ( 9 10 ) — By default the hourglass and . generate an urgent alarm, set to a space separate list of numbers or off to disable

ar2 (AR2 Forecasting)⌁

Generates alarms based on forecasted values. See Forecasting using AR2 algorithm

  • Enabled by default if no thresholds are set OR ALARM_TYPES includes predict .
  • AR2 forecasting display can be enabled/disabled from .
  • Use extended settings to adjust AR2 behavior:
  • AR2_CONE_FACTOR ( 2 ) — to adjust size of cone, use 0 for a single line.

simplealarms (Simple BG Alarms)⌁
  • Uses BG_HIGH , BG_TARGET_TOP , BG_TARGET_BOTTOM , BG_LOW thresholds to generate alarms.

Simple alarms are enabled by default if one of the BG_HIGH , BG_TARGET_TOP , BG_TARGET_BOTTOM , BG_LOW thresholds is set or ALARM_TYPES includes simple .

You’ll find the plugin in the drawer menu. You can change thresholds in Profile editor .

You can click the loudspeaker icon to test the alarms volume or to snooze an active alarm. If you want to use sound alarms, you should click the icon to enable playback at least once after opening your Nightscout page in order to allow the browser to play it.

profile (Treatment Profile)⌁

Add a link in the drawer menu to Profile Editor and allows to enter treatment profile settings. Also uses the extended setting:

  • PROFILE_HISTORY ( off ) — possible values on or off . Enable/disable NS ability to keep history of your profiles (still experimental)
  • PROFILE_MULTIPLE ( off ) — possible values on or off . Enable/disable NS ability to handle and switch between multiple treatment profiles

More variables of your profile will be used by Nightscout plugins like treatments, see below or here.

dbsize (Database Size)⌁

Show size of Nightscout Database, as a percentage of declared available space or in MiB.

Many deployments of Nightscout use free tier of MongoDB Atlas on Heroku, which is limited in size to 512MiB. After some time, as volume of stored data grows, it may happen that this limit is reached and system is unable to store new data. This plugin provides pill that indicates size of Database and shows (when configured) alarms regarding reaching space limit.

IMPORTANT: This plugin can only check how much space database already takes, but cannot infer max size available on server for it. To have correct alarms and realistic percentage, DBSIZE_MAX need to be properly set — according to your mongoDB hosting configuration.

NOTE: This plugin rely on db.stats() for reporting logical size of database, which may be different than physical size of database on server. It may work for free tier of MongoDB on Atlas, since it calculate quota according to logical size too, but may fail for other hostings or self-hosted database with quota based on physical size.

NOTE: MongoDB Atlas quota is for all databases in cluster, while each instance will get only size of its own database only. It is ok when you only have one database in cluster (most common scenario) but will not work for multiple parallel databases. In such case, spliting known quota equally beetween databases and setting DBSIZE_MAX to that fraction may help, but wont be precise.

All sizes are expressed as integers, in Mebibytes 1 MiB == 1024 KiB == 1024*1024 B

Extended settings available:

  • DBSIZE_MAX ( 496 ) — Maximal allowed size of database on your mongoDB server, in MiB. You need to adjust that value to match your database hosting limits — default value is for standard Heroku mongoDB free tier.
  • DBSIZE_WARN_PERCENTAGE ( 60 ) — Threshold to show first warning about database size. When database reach this percentage of DBSIZE_MAX size — pill will show size in yellow.
  • DBSIZE_URGENT_PERCENTAGE ( 75 ) — Threshold to show urgent warning about database size. When database reach this percentage of DBSIZE_MAX size, it is urgent to do backup and clean up old data. At this percentage info pill turns red.
  • DBSIZE_ENABLE_ALERTS ( false ) — Set to true to enable notifications about database size.
  • DBSIZE_IN_MIB ( false ) — Set to true to display size of database in MiB-s instead of default percentage.

Advanced Plugins:⌁

careportal (Careportal)⌁

An optional form to enter treatments.

Care Portal is an important plugin that gives access to the Log a treatment interface. Unlock it entering your API secret with the lock icon top right, then use the + icon to log a treatment. More information here.

boluscalc (Bolus Wizard)⌁

Bolus Wizard plugin gives access to the Bolus Wizard interface. You can access it with the calculator icon top right.

food (Custom Foods)⌁

Custom Foods enabled by the variable food allows to to customize your food database and adds a Food Editor entry in the menu.

rawbg (Raw BG)⌁

Calculates BG using sensor and calibration records from and displays an alternate BG values and noise levels. Defaults that can be adjusted with extended setting. Raw BG will only display if your sensor provides this data, your bridge device transfers it and your uploader sends it to Nightscout.

DISPLAY ( unsmoothed ) — Allows the user to control which algorithm is used to calculate the displayed raw BG values using the most recent calibration record.

​ unfiltered — Raw BG is calculated by applying the calibration to the glucose record’s unfiltered value.

filtered — Raw BG is calculated by applying the calibration to the glucose record’s filtered value. The glucose record’s filtered values are generally produced by the CGM by a running average of the unfiltered values to produce a smoothed value when the sensor noise is high.

unsmoothed — Raw BG is calculated by first finding the ratio of the calculated filtered value (the same value calculated by the filtered setting) to the reported glucose value. The displayed raw BG value is calculated by dividing the calculated unfiltered value (the same value calculated by the unfiltered setting) by the ratio. The effect is to exaggerate changes in trend direction so the trend changes are more noticeable to the user. This is the legacy raw BG calculation algorithm.

iob (Insulin-on-Board) — cob (Carbs-on-Board)⌁

iob (Insulin-on-Board)⌁

Adds the IOB pill visualization in the client and calculates values that used by other plugins. Uses treatments with insulin doses and the dia and sens fields from the treatment profile.

cob (Carbs-on-Board)⌁

Adds the COB pill visualization in the client and calculates values that used by other plugins. Uses treatments with carb doses and the carbs_hr , carbratio , and sens fields from the treatment profile.

When you enter the information with the Care Portal or Nightscout receives if from the uploader, you can see remaining insulin on board and carbs.

bwp (Bolus Wizard Preview)⌁

This plugin in intended for the purpose of automatically snoozing alarms when the CGM indicates high blood sugar but there is also insulin on board (IOB) and secondly, alerting to user that it might be beneficial to measure the blood sugar using a glucometer and dosing insulin as calculated by the pump or instructed by trained medicare professionals. The values provided by the plugin are provided as a reference based on CGM data and insulin sensitivity you have configured, and are not intended to be used as a reference for bolus calculation. The plugin calculates the bolus amount when above your target, generates alarms when you should consider checking and bolusing, and snoozes alarms when there is enough IOB to cover a high BG. Uses the results of the iob plugin and sens , target_high , and target_low fields from the treatment profile. Defaults that can be adjusted with extended settings

  • BWP_WARN ( 0.50 ) — If BWP is > BWP_WARN a warning alarm will be triggered.
  • BWP_URGENT ( 1.00 ) — If BWP is > BWP_URGENT an urgent alarm will be triggered.
  • BWP_SNOOZE_MINS ( 10 ) — minutes to snooze when there is enough IOB to cover a high BG.
  • BWP_SNOOZE — ( 0.10 ) If BG is higher then the target_high and BWP BWP_SNOOZE alarms will be snoozed for BWP_SNOOZE_MINS .

cage (Cannula Age) / sage (Sensor Age) / iage (Insulin Age) / bage (Battery Age)⌁

cage (Cannula Age)⌁

Calculates the number of hours since the last Site Change treatment that was recorded.

  • CAGE_ENABLE_ALERTS ( false ) — Set to true to enable notifications to remind you of upcoming cannula change.
  • CAGE_INFO ( 44 ) — If time since last Site Change matches CAGE_INFO , user will be warned of upcoming cannula change
  • CAGE_WARN ( 48 ) — If time since last Site Change matches CAGE_WARN , user will be alarmed to to change the cannula
  • CAGE_URGENT ( 72 ) — If time since last Site Change matches CAGE_URGENT , user will be issued a persistent warning of overdue change.
  • CAGE_DISPLAY ( hours ) — Possible values are hours or days . If days is selected and age of canula is greater than 24h number is displayed in days and hours
sage (Sensor Age)⌁

Calculates the number of days and hours since the last Sensor Start and Sensor Change treatment that was recorded.

  • SAGE_ENABLE_ALERTS ( false ) — Set to true to enable notifications to remind you of upcoming sensor change.
  • SAGE_INFO ( 144 ) — If time since last sensor event matches SAGE_INFO , user will be warned of upcoming sensor change
  • SAGE_WARN ( 164 ) — If time since last sensor event matches SAGE_WARN , user will be alarmed to to change/restart the sensor
  • SAGE_URGENT ( 166 ) — If time since last sensor event matches SAGE_URGENT , user will be issued a persistent warning of overdue change.
iage (Insulin Age)⌁

Calculates the number of days and hours since the last Insulin Change treatment that was recorded.

  • IAGE_ENABLE_ALERTS ( false ) — Set to true to enable notifications to remind you of upcoming insulin reservoir change.
  • IAGE_INFO ( 44 ) — If time since last Insulin Change matches IAGE_INFO , user will be warned of upcoming insulin reservoir change
  • IAGE_WARN ( 48 ) — If time since last Insulin Change matches IAGE_WARN , user will be alarmed to to change the insulin reservoir
  • IAGE_URGENT ( 72 ) — If time since last Insulin Change matches IAGE_URGENT , user will be issued a persistent warning of overdue change.
bage (Battery Age)⌁

Calculates the number of days and hours since the last Pump Battery Change treatment that was recorded.

BAGE_ENABLE_ALERTS ( false ) — Set to true to enable notifications to remind you of upcoming pump battery change.

BAGE_DISPLAY ( days ) — Set to hours to display time since last Pump Battery Change in hours only.

BAGE_INFO ( 312 ) — If time since last Pump Battery Change matches BAGE_INFO hours, user will be warned of upcoming pump battery change (default of 312 hours is 13 days).

BAGE_WARN ( 336 ) — If time since last Pump Battery Change matches BAGE_WARN hours, user will be alarmed to to change the pump battery (default of 336 hours is 14 days).

BAGE_URGENT ( 360 ) — If time since last Pump Battery Change matches BAGE_URGENT hours, user will be issued a persistent warning of overdue change (default of 360 hours is 15 days).

treatmentnotify (Treatment Notifications)⌁

Generates notifications when a treatment has been entered and snoozes alarms minutes after a treatment. Default snooze is 10 minutes, and can be set using the TREATMENTNOTIFY_SNOOZE_MINS extended setting.

basal (Basal Profile)⌁

Adds the Basal pill visualization to display the basal rate for the current time. Also enables the bwp plugin to calculate correction temp basal suggestions. Uses the basal field from the treatment profile. Also uses the extended settings:

Possible values are none ,

or icicle (inverted)

bridge (Share2Nightscout bridge)⌁

Glucose reading directly from the Dexcom Share service, uses these extended settings (* mandatory):

  • BRIDGE_USER_NAME — Your username for the Share service. *
  • BRIDGE_PASSWORD — Your password for the Share service. *
  • BRIDGE_INTERVAL ( 150000 2.5 minutes) — The time (in milliseconds) to wait between each update.
  • BRIDGE_MAX_COUNT ( 1 ) — The number of records to attempt to fetch per update.
  • BRIDGE_FIRST_FETCH_COUNT ( 3 ) — Changes max count during the very first update only.
  • BRIDGE_MAX_FAILURES ( 3 ) — How many failures before giving up.
  • BRIDGE_MINUTES ( 1400 ) — The time window to search for new data per update (the default value is one day in minutes).
  • BRIDGE_SERVER ( `) — The default blank value is used to fetch data from Dexcom servers in the US. Set to ( EU`) to fetch from European servers instead. *
Читайте также:  Бкс мобильное приложение не работает
mmconnect (MiniMed Connect bridge)⌁

This plugin is NOT functional with Heroku: do not enable it.

Transfer real-time MiniMed Connect data from the Medtronic CareLink server into Nightscout (read more) (* mandatory) with the following extended settings:

  • MMCONNECT_USER_NAME — Your user name for CareLink Connect. *
  • MMCONNECT_PASSWORD — Your password for CareLink Connect. *
  • MMCONNECT_INTERVAL ( 60000 1 minute) — Number of milliseconds to wait between requests to the CareLink server.
  • MMCONNECT_MAX_RETRY_DURATION ( 32 ) — Maximum number of total seconds to spend retrying failed requests before giving up.
  • MMCONNECT_SGV_LIMIT ( 24 ) — Maximum number of recent sensor glucose values to send to Nightscout on each request.
  • MMCONNECT_VERBOSE — Set this to «true» to log CareLink request information to the console.
  • MMCONNECT_STORE_RAW_DATA — Set this to «true» to store raw data returned from CareLink as type: «carelink_raw» database entries (useful for development).
  • MMCONNECT_SERVER — Set this to EU if you’re using the European Medtronic services *
pump (Pump Monitoring)⌁

Generic Pump Monitoring for OpenAPS, MiniMed Connect, RileyLink, t:slim, .

  • Requires DEVICESTATUS_ADVANCED=»true» to be set
  • PUMP_ENABLE_ALERTS ( false ) — Set to true to enable notifications for Pump battery and reservoir.
  • PUMP_WARN_ON_SUSPEND ( false ) — Set to true to get an alarm when the pump is suspended.
  • PUMP_FIELDS ( reservoir battery ) — The fields to display by default. Any of the following fields: reservoir , battery , clock , status , and device
  • PUMP_RETRO_FIELDS ( reservoir battery clock ) — The fields to display in retro mode. Any of the above fields.
  • PUMP_WARN_CLOCK ( 30 ) — The number of minutes ago that needs to be exceed before an alert is triggered.
  • PUMP_URGENT_CLOCK ( 60 ) — The number of minutes ago that needs to be exceed before an urgent alarm is triggered.
  • PUMP_WARN_RES ( 10 ) — The number of units remaining, a warning will be triggered when dropping below this threshold.
  • PUMP_URGENT_RES ( 5 ) — The number of units remaining, an urgent alarm will be triggered when dropping below this threshold.
  • PUMP_WARN_BATT_P ( 30 ) — The % of the pump battery remaining, a warning will be triggered when dropping below this threshold.
  • PUMP_URGENT_BATT_P ( 20 ) — The % of the pump battery remaining, an urgent alarm will be triggered when dropping below this threshold.
  • PUMP_WARN_BATT_V ( 1.35 ) — The voltage (if percent isn’t available) of the pump battery, a warning will be triggered when dropping below this threshold.
  • PUMP_URGENT_BATT_V ( 1.30 ) — The voltage (if percent isn’t available) of the pump battery, an urgent alarm will be triggered when dropping below this threshold.
openaps (OpenAPS)⌁

Integrated OpenAPS loop monitoring, uses these extended setting:

  • Requires DEVICESTATUS_ADVANCED=»true» to be set
  • OPENAPS_ENABLE_ALERTS ( false ) — Set to true to enable notifications when OpenAPS isn’t looping. If OpenAPS is going to offline for a period of time, you can add an OpenAPS Offline event for the expected duration from Careportal to avoid getting alerts.
  • OPENAPS_WARN ( 30 ) — The number of minutes since the last loop that needs to be exceed before an alert is triggered
  • OPENAPS_URGENT ( 60 ) — The number of minutes since the last loop that needs to be exceed before an urgent alarm is triggered
  • OPENAPS_FIELDS ( status-symbol status-label iob meal-assist rssi ) — The fields to display by default. Any of the following fields: status-symbol , status-label , iob , meal-assist , freq , and rssi
  • OPENAPS_RETRO_FIELDS ( status-symbol status-label iob meal-assist rssi ) — The fields to display in retro mode. Any of the above fields.
  • OPENAPS_PRED_IOB_COLOR ( #1e88e5 ) — The color to use for IOB prediction lines. Colors can be in #RRGGBB format, but other CSS color units may be used as well.
  • OPENAPS_PRED_COB_COLOR ( #FB8C00 ) — The color to use for COB prediction lines. Same format as above.
  • OPENAPS_PRED_ACOB_COLOR ( #FB8C00 ) — The color to use for ACOB prediction lines. Same format as above.
  • OPENAPS_PRED_ZT_COLOR ( #00d2d2 ) — The color to use for ZT prediction lines. Same format as above.
  • OPENAPS_PRED_UAM_COLOR ( #c9bd60 ) — The color to use for UAM prediction lines. Same format as above.
  • OPENAPS_COLOR_PREDICTION_LINES ( true ) — Enables / disables the colored lines vs the classic purple color.
loop (Loop)⌁

iOS Loop app monitoring, uses these extended settings:

  • Requires DEVICESTATUS_ADVANCED=»true» to be set
  • LOOP_ENABLE_ALERTS ( false ) — Set to true to enable notifications when Loop isn’t looping.
  • LOOP_WARN ( 30 ) — The number of minutes since the last loop that needs to be exceeded before an alert is triggered
  • LOOP_URGENT ( 60 ) — The number of minutes since the last loop that needs to be exceeded before an urgent alarm is triggered
  • Add loop to SHOW_FORECAST to show forecasted BG.

For remote overrides, the following extended settings must be configured:

  • LOOP_APNS_KEY — Apple Push Notifications service (APNs) Key, created in the Apple Developer website.
  • LOOP_APNS_KEY_ID — The Key ID for the above key.
  • LOOP_DEVELOPER_TEAM_ID — Your Apple developer team ID.
  • LOOP_PUSH_SERVER_ENVIRONMENT — (optional) Set this to production if you are using a provisioning profile that specifies production aps-environment, such as when distributing builds via TestFlight.
override (Override Mode)⌁

Additional monitoring for DIY automated insulin delivery systems to display real-time overrides such as Eating Soon or Exercise Mode:

  • Requires DEVICESTATUS_ADVANCED=»true» to be set
xdripjs (xDrip-js)⌁

Integrated xDrip-js monitoring, uses these extended settings:

Requires DEVICESTATUS_ADVANCED=»true» to be set

XDRIPJS_ENABLE_ALERTS ( false ) — Set to true to enable notifications when CGM state is not OK or battery voltages fall below threshold.

XDRIPJS_STATE_NOTIFY_INTRVL ( 0.5 ) — Set to number of hours between CGM state notifications

XDRIPJS_WARN_BAT_V ( 300 ) — The voltage of either transmitter battery, a warning will be triggered when dropping below this threshold.

alexa (Amazon Alexa)⌁
googlehome (Google Home/DialogFlow)⌁

Integration with Google Home (via DialogFlow), detailed setup instructions

speech (Speech)⌁

Speech synthesis plugin. When enabled, speaks out the blood glucose values, IOB and alarms. Note you have to set the LANGUAGE setting on the server to get all translated alarms.

cors (CORS)⌁

Enabled CORS so other websites can make request to your Nightscout site, uses these extended settings:

  • CORS_ALLOW_ORIGIN ( * ) — The list of sites that are allow to make requests
dbsize (Database Size)⌁

Show size of Nightscout Database, as a percentage of declared available space or in MiB.

Many deployments of Nightscout use free tier of MongoDB Atlas on Heroku, which is limited in size to 512MiB. After some time, as volume of stored data grows, it may happen that this limit is reached and system is unable to store new data. This plugin provides pill that indicates size of Database and shows (when configured) alarms regarding reaching space limit.

IMPORTANT: This plugin can only check how much space database already takes, but cannot infer max size available on server for it. To have correct alarms and realistic percentage, DBSIZE_MAX need to be properly set — according to your mongoDB hosting configuration.

NOTE: This plugin rely on db.stats() for reporting logical size of database, which may be different than physical size of database on server. It may work for free tier of MongoDB on Atlas, since it calculate quota according to logical size too, but may fail for other hostings or self-hosted database with quota based on physical size.

NOTE: MongoDB Atlas quota is for all databases in cluster, while each instance will get only size of its own database only. It is ok when you only have one database in cluster (most common scenario) but will not work for multiple parallel databases. In such case, spliting known quota equally beetween databases and setting DBSIZE_MAX to that fraction may help, but wont be precise.

All sizes are expressed as integers, in Mebibytes 1 MiB == 1024 KiB == 1024*1024 B

Extended settings available:

  • DBSIZE_MAX ( 496 ) — Maximal allowed size of database on your mongoDB server, in MiB. You need to adjust that value to match your database hosting limits — default value is for standard Heroku mongoDB free tier.
  • DBSIZE_WARN_PERCENTAGE ( 60 ) — Threshold to show first warning about database size. When database reach this percentage of DBSIZE_MAX size — pill will show size in yellow.
  • DBSIZE_URGENT_PERCENTAGE ( 75 ) — Threshold to show urgent warning about database size. When database reach this percentage of DBSIZE_MAX size, it is urgent to do backup and clean up old data. At this percentage info pill turns red.
  • DBSIZE_ENABLE_ALERTS ( false ) — Set to true to enable notifications about database size.
  • DBSIZE_IN_MIB ( false ) — Set to true to display size of database in MiB-s instead of default percentage.

Extended Settings⌁

Some plugins support additional configuration using extra environment variables. These are prefixed with the name of the plugin and a _ . For example setting MYPLUGIN_EXAMPLE_VALUE=1234 would make extendedSettings.exampleValue available to the MYPLUGIN plugin.

Plugins only have access to their own extended settings, all the extended settings of client plugins will be sent to the browser.

  • DEVICESTATUS_ADVANCED ( true ) — Defaults to true. Users who only have a single device uploading data to Nightscout can set this to false to reduce the data use of the site.
  • DEVICESTATUS_DAYS ( 1 ) — Defaults to 1, can optionally be set to 2. Users can use this to show 48 hours of device status data for in retro mode, rather than the default 24 hours. Setting this value to 2 will roughly double the bandwidth usage of nightscout, so users with a data cap may not want to update this setting.

Pushover⌁

In addition to the normal web based alarms, there is also support for Pushover based alarms and notifications.

To get started install the Pushover application on your iOS or Android device and create an account.

Using that account login to Pushover, in the top left you’ll see your User Key, you’ll need this plus an application API Token/Key to complete this setup.

You’ll need to Create a Pushover Application. You only need to set the Application name, you can ignore all the other settings, but setting an Icon is a nice touch. Maybe you’d like to use this one?

Pushover is configured using the following Environment Variables:

IFTTT Maker⌁

In addition to the normal web based alarms, and pushover, there is also integration for IFTTT Webhooks.

With Maker you are able to integrate with all the other IFTTT Services. For example you can send a tweet when there is an alarm, change the color of hue light, send an email, send and sms, and so much more.

Configure Nightscout by setting these webpage environment variables:

ENABLE — maker should be added to the list of plugins, for example: ENABLE=»maker» .

  • MAKER_KEY — Set this to your secret key (see [Detailed Instructions ) MAKER_KEY=»abcMyExampleabc123defjt1DeNSiftttmak-XQb69p» This also supports a space delimited list of keys.
  • MAKER_ANNOUNCEMENT_KEY — An optional Maker key, will be used for system wide user generated announcements. If not defined this will fallback to MAKER_KEY . A possible use for this is sending important messages and alarms to another device that you don’t want to send all notification too. This also support a space delimited list of keys.
  • Plugins can create custom events, but all events sent to IFTTT webhooks will be prefixed with ns- . The core events are:

    • ns-event — This event is sent to the maker service for all alarms and notifications. This is good catch all event for general logging.
    • ns-allclear — This event is sent to the maker service when an alarm has been ack’d or when the server starts up without triggering any alarms. For example, you could use this event to turn a light to green.
    • ns-info — Plugins that generate notifications at the info level will cause this event to also be triggered. It will be sent in addition to ns-event .
    • ns-warning — Alarms at the warning level with cause this event to also be triggered. It will be sent in addition to ns-event .
    • ns-urgent — Alarms at the urgent level with cause this event to also be triggered. It will be sent in addition to ns-event .
    • see the full list of events

    Treatment Profile⌁

    Some of the plugins make use of a treatment profile that can be edited using the Profile Editor.

    Treatment Profile Fields:

    • timezone (Time Zone) — time zone local to the patient. Should be set.
    • units (Profile Units) — blood glucose units used in the profile, either «mg/dl» or «mmol»
    • dia (Insulin duration) — value should be the duration of insulin action to use in calculating how much insulin is left active. Defaults to 3 hours.
    • carbs_hr (Carbs per Hour) — The number of carbs that are processed per hour, for more information see #DIYPS.
    • carbratio (Carb Ratio) — grams per unit of insulin.
    • sens (Insulin sensitivity) How much one unit of insulin will normally lower blood glucose.
    • basal The basal rate set on the pump.
    • target_high — Upper target for correction boluses.
    • target_low — Lower target for correction boluses.

    Источник

    Оцените статью