sugarrush 2026.7.3

A terminal UI for viewing Nightscout CGM (blood glucose sensor) data
# sugarrush config
# Copy to ~/.config/sugarrush/config.toml and set perms 600:
#   mkdir -p ~/.config/sugarrush
#   cp config.example.toml ~/.config/sugarrush/config.toml
#   chmod 600 ~/.config/sugarrush/config.toml

# Base URL of your Nightscout instance (no trailing slash).
url = "https://nightscout.example.com"

# Read-only access token.
# Create it in Nightscout Admin Tools: add a Subject with the `readable` role,
# then copy its access token here. Do NOT use API_SECRET (admin-level).
token = "readonly-subject-token"

# Display units: "mgdl" or "mmol". Toggle live in-app with `u`.
units = "mmol"

# Graph marker style: "dots" (default), "blocks", or "line".
graph_style = "dots"

# How many days the AGP view (the "AGP" graph tab) folds into its percentile
# profile. Clamped to 1–90. Change live in settings; cycle graph tabs with Tab.
agp_days = 14

# Minimap navigator: a trailing overview strip under the graph. Click or drag
# it to move the main window. Enabling it turns on terminal mouse capture
# (hold Shift to select text while the app runs).
[minimap]
enabled = true
span_hours = 24

# Auto-refresh interval in seconds.
refresh_secs = 30

# Alert thresholds and behaviour. Glucose bounds are in the same unit as
# `units` above (mmol/L here). This whole section is optional, as is each key;
# the values shown are the mmol equivalents of the defaults.
[alerts]
urgent_low = 3.0      # red banner + critical notification at or below
low = 3.9             # yellow banner below
high = 10.0           # yellow banner above
urgent_high = 13.9    # red banner + critical notification at or above
stale_minutes = 15    # warn when the newest reading is older than this
desktop = true        # fire desktop notifications (Linux/macOS/Windows)
sound = true          # looping audible alarm on urgent low/high and stale data
snooze_minutes = 15   # how long the `a` key silences the audible alarm
# Quiet hours: during this window only urgent-low sounds (others stay silent).
# Omit to disable. The window may cross midnight.
# quiet_start = "23:00"
# quiet_end = "07:00"
# quiet_urgent_low = true   # keep urgent-low audible overnight (safety)
# Escalation: re-notify (and push) if an urgent alert isn't cleared in time.
# escalate_minutes = 20     # 0 disables
# push_url = "https://ntfy.sh/your-topic"  # POST urgent alerts here (ntfy/webhook)
# Predictive alert: warn when the forecast crosses low/high within N minutes.
predict_horizon_minutes = 30   # 0 disables

# Display colors (optional). Each is a color name (red, green, cyan, yellow,
# blue, magenta, gray, white, light*) or a #rrggbb hex value.
# [theme]
# low = "red"
# in_range = "green"
# high = "yellow"
# urgent = "red"
# prediction = "magenta"
# graph = "cyan"

# Multiple sites (optional). Provide one or more [[sites]] instead of the
# top-level url/token above, and switch between them in-app with `n`.
# [[sites]]
# name = "home"
# url = "https://home.example.com"
# token = "readonly-token-1"
#
# [[sites]]
# name = "clinic"
# url = "https://clinic.example.com"
# token = "readonly-token-2"