1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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).
= "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).
= "readonly-subject-token"
# Display units: "mgdl" or "mmol". Toggle live in-app with `u`.
= "mmol"
# Graph marker style: "dots" (default), "blocks", or "line".
= "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.
= 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).
[]
= true
= 24
# Auto-refresh interval in seconds.
= 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.
[]
= 3.0 # red banner + critical notification at or below
= 3.9 # yellow banner below
= 10.0 # yellow banner above
= 13.9 # red banner + critical notification at or above
= 15 # warn when the newest reading is older than this
= true # fire desktop notifications (Linux/macOS/Windows)
= true # looping audible alarm on urgent low/high and stale data
= 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.
= 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"