Files
willemjan f2c3f97b1f Redesign the PDF report: landscape pages, headers/footers, icon, daily stats
Every report section now gets its own landscape A4 page (or, for
Dagoverzicht, one page per day) via a GlucoseReportPDF(FPDF) subclass
with a real header (section title, report version, insulin/pump/sensor
type from new REPORT_* env vars) and footer (page number, generation
timestamp, Nightscout link) on every page, plus an original SVG icon
in the header — inspired by the LibreView AGP report.

New "Insulineprofiel" PDF section mirrors the dashboard page (basal
bar chart, ISF/carb-ratio segments, DIA). Each Dagoverzicht day now
draws the same basal/bolus/carb/target overlays as the interactive
charts (matplotlib port of the Plotly helpers from #30) plus a new
per-day stats block (reporting.daily_stats: avg/min/max glucose,
total/basal/bolus/SMB insulin, hypo/hyper counts and durations).

Builds on #29 (profile data) and #30 (overlay logic/colors).
2026-09-05 22:44:14 +02:00

24 lines
989 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=
# Optioneel: apparatuurinfo voor de kop van het PDF-rapport (pages/8_Export.py).
# Puur informatief, geen effect op de berekeningen — leeg = "Onbekend ...".
REPORT_INSULIN_TYPE=Lyumjev 100U
REPORT_PUMP_TYPE=
REPORT_SENSOR_TYPE=