Home Documentation Blog Login
Home Documentation Blog Privacy Terms

Nightscout Documentation

What is Nightscout?

Nightscout (CGM in the Cloud) is an open-source cloud application used by diabetics to visualize, store and share Continuous Glucose Monitoring (CGM) data in real time. Supports uploaders (xDrip+, Dexcom Share, xDrip4iOS) and followers on smartwatches and phones.

Setup on diab.ninja

Create an instance in the panel, set API_SECRET (min. 12 characters) and choose plugins. Your Nightscout will be available at your-instance.diab.ninja.

Security and Privacy

By default Nightscout is publicly accessible. To require authorization for all access, set AUTH_DEFAULT_ROLES=denied. You can create tokens with limited permissions for family and caregivers.

Uploaders – Sending Data

Send CGM data via xDrip+ (Android), xDrip4iOS (iOS), Dexcom Share, or other apps. In xDrip+ enter URL: https://API_SECRET@your-instance.diab.ninja/api/v1/

Nightscout Plugins

Available plugins: IOB (insulin on board), COB (carbs on board), CAGE (cannula age), SAGE (sensor age), IAGE (insulin age), BAGE (battery age), Bolus Calculator, BWP, Custom Foods, Raw BG, Treatment Notifications. Plugins can be changed once every 24 hours.

Reports for Clinicians

Nightscout offers reports: Day to Day, Week to Week, Daily Stats, Distribution (%TIR, %TUR, %TAR, estimated HbA1c), Percentile Chart, Hourly Stats. Share with your doctor via screenshot or print.

Nightscout API

REST API: GET https://your-instance.diab.ninja/api/v1/entries.json?count=10. With token: ?token=YOUR_API_SECRET. Nightscout also supports WebSocket for real-time communication.

Troubleshooting

If data is not uploading: check API_SECRET, instance URL and internet connection. If plugins are missing: refresh the page (Ctrl+F5) and remember plugins can only be changed once every 24h. Contact: kontakt@diab.ninja