Register (Free Test Slot)
Grafana Examples
How It Works (Technical)
- Nightscout is the source of truth (SGVs, treatments, profile, devicestatus).
- We resample to 5‑minute steps and build features: BG, IOB/COB, SMB/bolus, carbs, ISF/CR, basal, targets, time + trend.
- The model is a sequence net (LSTM/GRU) that predicts the next 30–120 minutes.
- Metrics are exposed to Prometheus and visualized in Grafana (live values, forecasts, errors).
DP trains a sequence model (LSTM/GRU) on your recent Nightscout data to predict BG 30–120 minutes ahead, and exposes live metrics (BG/IOB/COB, prediction curves, error histograms, ISF/CR/basal suggestions) in Grafana. It can retrain periodically and uses actual outcomes to track forecast error over time.
Build Notes
- API (Flask): /predict + /train.
- Poller runs the predict → report loop and logs actual outcomes.
- Prometheus stores metrics (BG, IOB/COB, forecasts, errors).
- Grafana dashboards show predictions + therapy suggestions.
- When editing settings: use
NIGHTSCOUT_URLwithout trailing/(example:https://site.com).