name: 💉 Nightscout
category: community
description: |
  This plugin displays blood sugar values from a [Nightscout](http://nightscout.info) site.
disclaimer: |
  This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with [Nightscout](http://nightscout.info).
  All product and company names are trademarks™ or registered® trademarks of their respective holders.
examples:
  default: https://github.com/legoandmars/legoandmars/blob/master/metrics.plugin.nightscout.svg
authors:
  - legoandmars
supports:
  - user
scopes: []
inputs:

  plugin_nightscout:
    description: |
      Enable nightscout plugin
    type: boolean
    default: no

  plugin_nightscout_url:
    description: |
      Nightscout URL
    type: string
    default: https://example.herokuapp.com

  plugin_nightscout_datapoints:
    description: |
      Number of datapoints shown the graph
    type: number
    default: 12
    min: 0
    zero: disable

  plugin_nightscout_lowalert:
    description: |
      Threshold for low blood sugar
    type: number
    default: 80
    min: 0

  plugin_nightscout_highalert:
    description: |
      Threshold for high blood sugar
    type: number
    default: 180
    min: 0

  plugin_nightscout_urgentlowalert:
    description: |
      Threshold for urgently low blood sugar
    type: number
    default: 50
    min: 0

  plugin_nightscout_urgenthighalert:
    description: |
      Threshold for urgently high blood sugar
    type: number
    default: 250
    min: 0
