Nightscout
Recent glucose and trend
Recent CGM entries with trend direction and a single-series line chart.
A read-only Nightscout view with recent glucose entries and an in-app line chart. It is informational only: Cifru is not a medical device, does not replace Nightscout alarms or clinical advice, and must not be used as the only source for treatment decisions.
Prepare Nightscout / Nightscout Pro:
1. Open your personal Nightscout site, menu (three lines) → Admin Tools.
2. Authenticate Admin Tools with API_SECRET. Choose Add New Subject, create a dedicated subject such as “Cifru”, grant only the readable role, save, and copy the generated access token. Access tokens require Nightscout 14.1 or newer.
3. Never put API_SECRET in Cifru. If a hosted provider such as Nightscout Pro hides Admin Tools, ask its support to enable a read-only access token.
Official guide: https://nightscout.github.io/nightscout/admin_tools/
Configure Cifru on iPhone/iPad:
1. Sources → Add source → REST JSON.
2. Base URL: your personal Nightscout URL, for example https://your-site.example.
3. Set Default read-only endpoint to /api/v1/entries/sgv.json?count=288. This gives source testing and AI Configurator a concrete JSON collection; do not add the token to this path.
4. Authentication: Query parameter; parameter name: token; value: the readable access token. Cifru keeps it in Keychain and appends it only when sending the request.
5. Test the source, import this package, map “Nightscout REST”, then run the local read test. If the source was created before Default endpoint existed, edit it once and add the path from step 3.
6. The package reads /api/v1/entries/sgv.json?count=288. No secret or glucose value is stored in the Community package.
Ce creează pachetul
- Home: Recent glucose and trend
Sursele se mapează local și se verifică înainte de aplicare.
Vezi JSON-ul care se importărestrâns implicit
{
"components": {
"sourceSlots": [
{
"displayName": "Nightscout REST",
"id": "41F04DBB-8C3C-5DB0-BB54-8EEBC37908F6",
"kind": "rest",
"requiredObjects": [
"/api/v1/entries/sgv.json?count=288"
],
"requiresCustomSQL": false
}
],
"workspaceSelection": {
"commonFields": [],
"datasets": [
{
"cacheMode": "cached",
"calculatedFields": [],
"customQueryIntegrationName": "",
"endpointPath": "/api/v1/entries/sgv.json?count=288",
"fetchSortRules": [],
"id": "1E3FB773-988E-5EC2-8AA0-E82C6CF88C95",
"mappings": [
{
"commonFieldKey": "",
"key": "_id",
"label": "Entry ID",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "_id",
"type": "text",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "sgv",
"label": "Glucose",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "sgv",
"type": "number",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "date",
"label": "Timestamp",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "date",
"type": "number",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "dateString",
"label": "Time",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "dateString",
"type": "date",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "direction",
"label": "Trend",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "direction",
"type": "text",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "device",
"label": "Device",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "device",
"type": "text",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "type",
"label": "Entry type",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "type",
"type": "text",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "utcOffset",
"label": "UTC offset",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "utcOffset",
"type": "number",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "sysTime",
"label": "System time",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "sysTime",
"type": "date",
"visibleInDetail": true,
"visibleInList": false
}
],
"maxRows": 288,
"name": "Recent glucose and trend",
"primaryKey": "_id",
"refreshPolicy": {
"enabled": true,
"intervalMinutes": 15
},
"rootArrayPath": "",
"rowLimitEnabled": true,
"searchKeys": [
"_id",
"sgv",
"date",
"dateString",
"direction"
],
"sourceID": "41F04DBB-8C3C-5DB0-BB54-8EEBC37908F6",
"sqlQuery": "",
"tableName": ""
}
],
"pages": [
{
"actions": [],
"badgeKey": "dateString",
"cardEnrichments": [],
"cardFieldLayout": [
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "sgv",
"label": "Glucose",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "direction",
"label": "Trend",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "dateString",
"label": "Time",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
}
],
"datasetID": "1E3FB773-988E-5EC2-8AA0-E82C6CF88C95",
"dateFilterKey": "",
"dateFilterLastDays": 7,
"dateFilterPreset": "none",
"detailFieldLayout": [
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "_id",
"label": "Entry ID",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "sgv",
"label": "Glucose",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "date",
"label": "Timestamp",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "highlight",
"isVisible": true,
"key": "dateString",
"label": "Time",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "direction",
"label": "Trend",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "device",
"label": "Device",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "type",
"label": "Entry type",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "utcOffset",
"label": "UTC offset",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "sysTime",
"label": "System time",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
}
],
"fixedFilters": [],
"id": "D95CDCD6-E955-5360-AC07-61491B6B2A3B",
"openFilters": [],
"pageSize": 100,
"requiresOpeningFilterSelection": false,
"showOnHome": true,
"sortRules": [],
"subtitle": "",
"subtitleKey": "direction",
"systemImage": "waveform.path.ecg",
"title": "Recent glucose and trend",
"titleKey": "sgv"
}
],
"relations": [],
"widgets": [
{
"cacheMode": "cached",
"chartAggregation": "sum",
"chartStyle": "line",
"chartXAxisKey": "dateString",
"datasetID": "1E3FB773-988E-5EC2-8AA0-E82C6CF88C95",
"dateFilterKey": "",
"dateFilterPreset": "none",
"filterSourceMode": "custom",
"filters": [],
"id": "2DB11D7D-9E2E-5E5D-82A8-1C9DF86E2187",
"kind": "chart",
"limit": 288,
"refreshPolicy": {
"enabled": true,
"intervalMinutes": 5
},
"showInExternalWidgets": false,
"sortRules": [
{
"direction": "ascending",
"id": "32D536BD-4975-5B1F-9835-1993299B3FE5",
"key": "dateString",
"type": "date"
}
],
"subtitleKey": "",
"title": "Glucose trend",
"titleKey": "",
"valueKey": "sgv"
}
]
}
},
"format": "cifru-configuration-package",
"formatVersion": 1,
"manifest": {
"applicationName": "Nightscout",
"configurationLanguages": [
"en"
],
"countries": [
"ALL"
],
"createdAt": "2026-07-24T16:26:43Z",
"description": "A read-only Nightscout view with recent glucose entries and an in-app line chart. It is informational only: Cifru is not a medical device, does not replace Nightscout alarms or clinical advice, and must not be used as the only source for treatment decisions.\n\nPrepare Nightscout / Nightscout Pro:\n1. Open your personal Nightscout site, menu (three lines) → Admin Tools.\n2. Authenticate Admin Tools with API_SECRET. Choose Add New Subject, create a dedicated subject such as “Cifru”, grant only the readable role, save, and copy the generated access token. Access tokens require Nightscout 14.1 or newer.\n3. Never put API_SECRET in Cifru. If a hosted provider such as Nightscout Pro hides Admin Tools, ask its support to enable a read-only access token.\nOfficial guide: https://nightscout.github.io/nightscout/admin_tools/\n\nConfigure Cifru on iPhone/iPad:\n1. Sources → Add source → REST JSON.\n2. Base URL: your personal Nightscout URL, for example https://your-site.example.\n3. Set Default read-only endpoint to /api/v1/entries/sgv.json?count=288. This gives source testing and AI Configurator a concrete JSON collection; do not add the token to this path.\n4. Authentication: Query parameter; parameter name: token; value: the readable access token. Cifru keeps it in Keychain and appends it only when sending the request.\n5. Test the source, import this package, map “Nightscout REST”, then run the local read test. If the source was created before Default endpoint existed, edit it once and add the path from step 3.\n6. The package reads /api/v1/entries/sgv.json?count=288. No secret or glucose value is stored in the Community package.",
"licenseCode": "Cifru-Community-1.0",
"minimumCifruVersion": "1.0",
"minimumPlan": "free",
"packageID": "124BF9CD-7916-5646-AEDE-8B1E40A7EEAC",
"rootButtonCount": 1,
"summary": "Recent CGM entries with trend direction and a single-series line chart.",
"tags": [
"Nightscout",
"CGM",
"glucose",
"chart",
"read-only"
],
"title": "Recent glucose and trend"
}
}