mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
docs: segment nightscout mmol template
This commit is contained in:
parent
6b02ae47f7
commit
7aa2f86a77
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue