Temp: Display: support better temperature value formatting

Fix #737
This commit is contained in:
李通洲 committed 2024-02-26 11:09:00 +08:00
1 parent 1c87693867
commit a0c47204bb
10 files changed
+227 -51

No files matched your search

+35
View File
@@ -667,6 +667,41 @@
},
"default": "C"
}
},
{
"long": "temperature-ndigits",
"desc": "Set the number of digits to keep after the decimal point when printing temperature",
"arg": {
"type": "num",
"default": 2
}
},
{
"long": "temperature-color-green",
"desc": "Set color used in green state of temperature values",
"remark": "See `-h color` for the list of available colors",
"arg": {
"type": "color",
"default": "green"
}
},
{
"long": "temperature-color-yellow",
"desc": "Set color used in yellow state of temperature values",
"remark": "See `-h color` for the list of available colors",
"arg": {
"type": "color",
"default": "light_yellow"
}
},
{
"long": "temperature-color-red",
"desc": "Set color used in red state of temperature values",
"remark": "See `-h color` for the list of available colors",
"arg": {
"type": "color",
"default": "light_red"
}
}
],
"Library path": [