You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,7 +305,7 @@ To learn more about the Nightscout API, visit https://YOUR-SITE.com/api-docs/ or
305
305
*`SHOW_PLUGINS` - enabled plugins that should have their visualizations shown, defaults to all enabled
306
306
*`SHOW_FORECAST` (`ar2`) - plugin forecasts that should be shown by default, supports space delimited values such as `"ar2 openaps"`
307
307
*`LANGUAGE` (`en`) - language of Nightscout. If not available english is used
308
-
* Currently supported language codes are: bg (Български), cs (Čeština), de (Deutsch), dk (Dansk), el (Ελληνικά), en (English), es (Español), fi (Suomi), fr (Français), he (עברית), hr (Hrvatski), it (Italiano), ko (한국어), nb (Norsk (Bokmål)), nl (Nederlands), pl (Polski), pt (Português (Brasil)), ro (Română), ru (Русский), sk (Slovenčina), sv (Svenska), tr (Turkish), zh_cn (中文(简体)), zh_tw (中文(繁體))
308
+
* Currently supported language codes are: bg (Български), cs (Čeština), de (Deutsch), dk (Dansk), el (Ελληνικά), en (English), es (Español), fi (Suomi), fr (Français), he (עברית), hr (Hrvatski), hu (magyar), it (Italiano), ko (한국어), nb (Norsk (Bokmål)), nl (Nederlands), pl (Polski), pt (Português (Brasil)), ro (Română), ru (Русский), sk (Slovenčina), sv (Svenska), tr (Turkish), zh_cn (中文(简体)), zh_tw (中文(繁體))
309
309
*`SCALE_Y` (`log`) - The type of scaling used for the Y axis of the charts system wide.
310
310
* The default `log` (logarithmic) option will let you see more detail towards the lower range, while still showing the full CGM range.
311
311
* The `linear` option has equidistant tick marks; the range used is dynamic so that space at the top of chart isn't wasted.
Copy file name to clipboardExpand all lines: docs/plugins/add-virtual-assistant-support-to-plugin.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,8 @@ There are 2 types of handlers that you can supply:
36
36
37
37
A plugin can expose multiple intent handlers (e.g. useful when it can supply multiple kinds of metrics). Each intent handler should be structured as follows:
38
38
+`intent` - This is the intent this handler is built for. Right now, the templates used by both Alexa and Google Home use only the `"MetricNow"` intent (used for getting the present value of the requested metric)
39
-
+`metrics` - An array of metric name(s) the handler will supply. e.g. "What is my `metric`" - iob, bg, cob, etc. Make sure to add the metric name and its synonyms to the list of metrics used by the virtual assistant(s).
40
-
-**IMPORTANT NOTE:** There is no protection against overlapping metric names, so PLEASE make sure your metric name is unique!
41
-
- Note: Although this value *is* an array, you really should only supply one (unique) value, and then add aliases or synonyms to that value in the list of metrics for the virtual assistant. We keep this value as an array for backwards compatibility.
39
+
+`metrics` - An array of metric name(s) the handler will supply. e.g. "What is my `metric`" - iob, bg, cob, etc. Although this value *is* an array, you really should only supply one (unique) value, and then add aliases or synonyms to that value in the list of metrics for the virtual assistant. We keep this value as an array for backwards compatibility.
40
+
-**IMPORTANT NOTE:** There is no protection against overlapping metric names, so PLEASE make sure your metric name is unique!
42
41
+`intenthandler` - This is a callback function that receives 3 arguments:
43
42
-`callback` Call this at the end of your function. It requires 2 arguments:
44
43
- `title` - Title of the handler. This is the value that will be displayed on the Alexa card (for devices with a screen). The Google Home response doesn't currently display a card, so it doesn't use this value.
Copy file name to clipboardExpand all lines: lib/api3/doc/tutorial.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Each NS instance with API v3 contains self-included OpenAPI specification at [/a
11
11
---
12
12
### VERSION
13
13
14
-
[VERSION](https://nsapiv3.herokuapp.com/api/v3/swagger-ui-dist/#/other/get_version) operation gets you basic information about software packages versions.
14
+
[VERSION](https://nsapiv3.herokuapp.com/api3-docs/#/other/get_version) operation gets you basic information about software packages versions.
15
15
It is public (there is no need to add authorization parameters/headers).
16
16
17
17
Sample GET `/version` client code (to get actual versions):
@@ -38,7 +38,7 @@ Sample result:
38
38
---
39
39
### STATUS
40
40
41
-
[STATUS](https://nsapiv3.herokuapp.com/api/v3/swagger-ui-dist/#/other/get_status) operation gets you basic information about software packages versions.
41
+
[STATUS](https://nsapiv3.herokuapp.com/api3-docs/#/other/get_status) operation gets you basic information about software packages versions.
42
42
It is public (there is no need to add authorization parameters/headers).
43
43
44
44
Sample GET `/status` client code (to get my actual permissions):
@@ -75,7 +75,7 @@ Sample result:
75
75
---
76
76
### SEARCH
77
77
78
-
[SEARCH](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/generic/SEARCH) operation filters, sorts, paginates and projects documents from the collection.
78
+
[SEARCH](https://nsapiv3insecure.herokuapp.com/api3-docs/#/generic/SEARCH) operation filters, sorts, paginates and projects documents from the collection.
79
79
80
80
Sample GET `/entries` client code (to retrieve last 3 BG values):
81
81
```javascript
@@ -110,7 +110,7 @@ Sample result:
110
110
---
111
111
### CREATE
112
112
113
-
[CREATE](https://nsapiv3.herokuapp.com/api/v3/swagger-ui-dist/#/generic/post__collection_) operation inserts a new document into the collection.
113
+
[CREATE](https://nsapiv3.herokuapp.com/api3-docs/#/generic/post__collection_) operation inserts a new document into the collection.
114
114
115
115
Sample POST `/treatments` client code:
116
116
```javascript
@@ -140,7 +140,7 @@ Sample result:
140
140
---
141
141
### READ
142
142
143
-
[READ](https://nsapiv3.herokuapp.com/api/v3/swagger-ui-dist/#/generic/get__collection___identifier_) operation retrieves you a single document from the collection by its identifier.
143
+
[READ](https://nsapiv3.herokuapp.com/api3-docs/#/generic/get__collection___identifier_) operation retrieves you a single document from the collection by its identifier.
144
144
145
145
Sample GET `/treatments/{identifier}` client code:
146
146
```javascript
@@ -172,7 +172,7 @@ Sample result:
172
172
---
173
173
### LAST MODIFIED
174
174
175
-
[LAST MODIFIED](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/other/LAST-MODIFIED) operation finds the date of last modification for each collection.
175
+
[LAST MODIFIED](https://nsapiv3insecure.herokuapp.com/api3-docs/#/other/LAST-MODIFIED) operation finds the date of last modification for each collection.
176
176
177
177
Sample GET `/lastModified` client code (to get latest modification dates):
178
178
```javascript
@@ -199,7 +199,7 @@ Sample result:
199
199
---
200
200
### UPDATE
201
201
202
-
[UPDATE](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/generic/put__collection___identifier_) operation updates existing document in the collection.
202
+
[UPDATE](https://nsapiv3insecure.herokuapp.com/api3-docs/#/generic/put__collection___identifier_) operation updates existing document in the collection.
203
203
204
204
Sample PUT `/treatments/{identifier}` client code (to update `insulin` from 0.3 to 0.4):
205
205
```javascript
@@ -231,7 +231,7 @@ Sample result:
231
231
---
232
232
### PATCH
233
233
234
-
[PATCH](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/generic/patch__collection___identifier_) operation partially updates existing document in the collection.
234
+
[PATCH](https://nsapiv3insecure.herokuapp.com/api3-docs/#/generic/patch__collection___identifier_) operation partially updates existing document in the collection.
235
235
236
236
Sample PATCH `/treatments/{identifier}` client code (to update `insulin` from 0.4 to 0.5):
237
237
```javascript
@@ -259,7 +259,7 @@ Sample result:
259
259
---
260
260
### DELETE
261
261
262
-
[DELETE](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/generic/delete__collection___identifier_) operation deletes existing document from the collection.
262
+
[DELETE](https://nsapiv3insecure.herokuapp.com/api3-docs/#/generic/delete__collection___identifier_) operation deletes existing document from the collection.
263
263
264
264
Sample DELETE `/treatments/{identifier}` client code (to update `insulin` from 0.4 to 0.5):
265
265
```javascript
@@ -282,7 +282,7 @@ Sample result:
282
282
---
283
283
### HISTORY
284
284
285
-
[HISTORY](https://nsapiv3insecure.herokuapp.com/api/v3/swagger-ui-dist/index.html#/generic/HISTORY2) operation queries all changes since the timestamp.
285
+
[HISTORY](https://nsapiv3insecure.herokuapp.com/api3-docs/#/generic/HISTORY2) operation queries all changes since the timestamp.
286
286
287
287
Sample HISTORY `/treatments/history/{lastModified}` client code:
288
288
```javascript
@@ -326,4 +326,4 @@ Sample result:
326
326
}
327
327
]
328
328
```
329
-
Notice the `"isValid":false` field marking the deletion of the document.
329
+
Notice the `"isValid":false` field marking the deletion of the document.
0 commit comments