refactor: sensor configuration fields

Automatically round decimal values for sensor.x and .y to an integer.
Make fields optional which are not used in every sensor.
This commit is contained in:
Markus Zehnder
2025-08-24 21:18:56 +02:00
parent 98941a00fe
commit 84455e9254
6 changed files with 50 additions and 62 deletions
-2
View File
@@ -53,7 +53,6 @@ The background image and sensor definitions are taken from the default system pa
"sensor": [
{
"mode": 1,
"type": 1,
"name": "CPU temp",
"label": "cpu_temperature",
"x": 195,
@@ -67,7 +66,6 @@ The background image and sensor definitions are taken from the default system pa
},
{
"mode": 1,
"type": 1,
"name": "CPU usage",
"label": "cpu_percent",
"unit": "%",