docs: segment nightscout mmol template

This commit is contained in:
Dynasign 2021-12-03 00:35:25 +01:00 committed by Jan De Dobbeleer
parent 6b02ae47f7
commit 7aa2f86a77

View file

@ -53,7 +53,7 @@ if that color is visible against any of your backgrounds.
Or display in mmol/l (instead of the default mg/dl) with the following template:
```json
"template": " {{divf (floor (mulf 10 (divf .Sgv 18))) 10}} {{.TrendIcon}}"
"template": " {{ if eq (mod .Sgv 18) 0 }} {{ div .Sgv 18 }}.0 {{ else }} {{ round (divf .Sgv 18) 1 }} {{ end }} {{.TrendIcon}}"
```
## Properties