First increment of the clinical reporting feature (see docs/requirements-reporting.md and docs/design-reporting.md): moves the existing live view to pages/1_Live.py, adds a password gate since the dashboard URL will be shared with the diabetes team, adds fetch_entries_range/fetch_treatments_range for multi-day report queries, and adds reporting.py with the core clinical calculations (GMI, %CV, 5-band time-in-range, hypo/hyper event detection per the Battelino et al. 2019 persistence rule). No report pages wired up yet — that's next. Co-Authored-By: Claude Sonnet 5 <[email protected]>
18 lines
758 B
Bash
18 lines
758 B
Bash
# Kopieer dit bestand naar .env en vul je eigen Nightscout-gegevens in.
|
|
# .env wordt niet meegecommit (zie .gitignore).
|
|
|
|
NIGHTSCOUT_URL=https://jouw-nightscout.example.com
|
|
|
|
# Gebruik precies EEN van de twee onderstaande auth-opties.
|
|
# Optie 1: een Nightscout API-token (rol-gebaseerd, aan te raden — kan
|
|
# read-only worden ingesteld in Nightscout onder Admin Tools > Manage Tokens).
|
|
NIGHTSCOUT_TOKEN=
|
|
|
|
# Optie 2: het klassieke "API secret" van je Nightscout-instantie.
|
|
# NIGHTSCOUT_API_SECRET=
|
|
|
|
# Wachtwoord voor toegang tot het dashboard (de URL wordt straks gedeeld met
|
|
# het diabetesteam). Zet hier een sha256-hash, NIET het wachtwoord zelf:
|
|
# python -c "import hashlib; print(hashlib.sha256(b'jouw-wachtwoord').hexdigest())"
|
|
DASHBOARD_PASSWORD_HASH=
|