Configuration extended and some more LED code improvements

This commit is contained in:
2026-02-03 21:16:51 +01:00
parent 3b6b97011b
commit dcac1f70df
9 changed files with 138 additions and 23 deletions

View File

@@ -22,6 +22,13 @@
"category": "System"
},
{
"name": "nightMode",
"label": "Night mode",
"type": "boolean",
"default": "false",
"description": "Enable night mode for minimal lighting",
"category": "System"
},{
"name": "logLevel",
"label": "Log level",
"type": "list",
@@ -156,6 +163,27 @@
"description": "The brightness of the rgb status led (0..4095).",
"category": "Hardware"
},
{
"name": "buzEnable",
"label": "Enable buzzer",
"type": "boolean",
"default": "true",
"description": "Enable audio feedback with internal buzzer",
"category": "Hardware"
},
{
"name": "buzPower",
"label": "Buzzer power",
"type": "number",
"default": 50,
"min": 0,
"max": 100,
"description": "The loudness of the buzzer (0..100%)",
"category": "Hardware",
"condition": {
"buzEnable": "true"
}
},
{
"name": "tempFormat",
"label": "Temperature Format",
@@ -336,5 +364,25 @@
"max": 300,
"description": "interval in seconds to send environment data [1..300]",
"category": "NMEA2000"
},
{
"name": "n2kSysInst",
"label": "System instance",
"type": "number",
"default": 0,
"min": 0,
"max": 255,
"description": "The NMEA2000 system instance the device belongs to\nRange [0 .. 255] default 0",
"category": "NMEA2000"
},
{
"name": "n2kDevInst",
"label": "Device instance",
"type": "number",
"default": 0,
"min": 0,
"max": 255,
"description": "The instance number of this device\nRange [0 .. 255] default 0",
"category": "NMEA2000"
}
]

View File

@@ -2,7 +2,7 @@
<html><head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OBPkeyboard 6/1</title>
<title>OBPkeypad 6/1</title>
<link rel="icon" href="data:,">
<script>
if (!window.isSecureContext) {
@@ -17,7 +17,7 @@ if (!window.isSecureContext) {
</head>
<body>
<div class="main">
<h1 id="headline">OBPkb61</h1>
<h1 id="headline">OBPkp61</h1>
<div class="row">
<span class="label" id="conn_label">disconnected</span>
<span class="value" id="connected"></span>
@@ -66,15 +66,15 @@ if (!window.isSecureContext) {
<div class="row even">
<span class="label">Dest A</span>
<span class="value" id="destA">---</span>
<span class="value" id="n2kDestA">---</span>
</div>
<div class="row">
<span class="label">Dest B</span>
<span class="value" id="destB">---</span>
<span class="value" id="n2kDestB">---</span>
</div>
<div class="row even">
<span class="label">Dest C</span>
<span class="value" id="destC">---</span>
<span class="value" id="n2kDestC">---</span>
</div>
<div class="row">