Configuration interface
This commit is contained in:
119
web/config.json
119
web/config.json
@@ -1,20 +1,129 @@
|
||||
[
|
||||
{
|
||||
"name": "systemName",
|
||||
"label": "system name",
|
||||
"label": "System name",
|
||||
"type": "string",
|
||||
"default": "OBPkeypad61",
|
||||
"check": "checkSystemName",
|
||||
"description": "system name, used for the access point and for services",
|
||||
"category": "system"
|
||||
"description": "System name, used also for the access point SSID.",
|
||||
"category": "System"
|
||||
},
|
||||
{
|
||||
"name": "logLevel",
|
||||
"label": "Log level",
|
||||
"type": "list",
|
||||
"default": "0",
|
||||
"list": [
|
||||
{"l":"Off (0)","v":0},
|
||||
{"l":"Error (1)","v":1},
|
||||
{"l":"Warning (2)","v":2},
|
||||
{"l":"Info (3)","v":3},
|
||||
{"l":"Debug (4)","v":4},
|
||||
{"l":"Verbose (5)","v":5}
|
||||
],
|
||||
"description": "Log level at the USB port.\nHigher level means more output.",
|
||||
"category": "System"
|
||||
},
|
||||
{
|
||||
"name": "adminPassword",
|
||||
"label": "Admin Password",
|
||||
"type": "password",
|
||||
"default": "esp32admin",
|
||||
"check": "checkAdminPass",
|
||||
"description": "Set the password for config modifications",
|
||||
"category": "System"
|
||||
},
|
||||
{
|
||||
"name": "useAdminPass",
|
||||
"label": "Use Admin-Pass",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"description": "A password for config modifications is required.",
|
||||
"category": "System"
|
||||
},
|
||||
{
|
||||
"name": "apPassword",
|
||||
"label": "Wifi password",
|
||||
"type": "password",
|
||||
"default": "keypad61",
|
||||
"check": "checkApPass",
|
||||
"description": "set the password for the Wifi access point",
|
||||
"category": "system",
|
||||
"description": "Set the password for the Wifi access point.",
|
||||
"category": "Wifi",
|
||||
"capabilities":{"apPwChange":["true"]}
|
||||
},
|
||||
{
|
||||
"name": "apIp",
|
||||
"label": "AP IP-Address",
|
||||
"type": "string",
|
||||
"default":"192.168.15.1",
|
||||
"check": "checkApIp",
|
||||
"description": "The IP address for the wifi access point.\nClients will get addresses within the same subnet.",
|
||||
"category":"Wifi"
|
||||
},
|
||||
{
|
||||
"name": "apMask",
|
||||
"label": "AP Net-Mask",
|
||||
"type": "string",
|
||||
"default": "255.255.255.0",
|
||||
"check": "checkNetMask",
|
||||
"description": "The network mask for the access point.",
|
||||
"category": "Wifi"
|
||||
},
|
||||
{
|
||||
"name": "stopApTime",
|
||||
"label": "AP time off",
|
||||
"type": "number",
|
||||
"default": "0",
|
||||
"min": 0,
|
||||
"max": 60,
|
||||
"check": "checkMinMax",
|
||||
"description": "Stop the access point after that many minutes if not used.\n1 to 60 minutes.\n\n'0' means that the access point is permanently enabled.",
|
||||
"category": "Wifi"
|
||||
},
|
||||
{
|
||||
"name": "cpuSpeed",
|
||||
"label": "CPU Speed [MHz]",
|
||||
"type": "list",
|
||||
"default": "160",
|
||||
"list": [
|
||||
"80",
|
||||
"160",
|
||||
"240"
|
||||
],
|
||||
"description": "CPU speed in MHz [80|160|240].\nSlower speed means less power consumption.",
|
||||
"category": "Hardware"
|
||||
},
|
||||
{
|
||||
"name": "ledBrightness",
|
||||
"label": "LED brightness",
|
||||
"type": "number",
|
||||
"default": 64,
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"description": "The brightness of the destination leds (0..255).",
|
||||
"category": "Hardware"
|
||||
},
|
||||
{
|
||||
"name": "ledRgbBrightness",
|
||||
"label": "RGB-LED brightness",
|
||||
"type": "number",
|
||||
"default": 64,
|
||||
"min": 0,
|
||||
"max": 255,
|
||||
"description": "The brightness of the rgb status led (0..255).",
|
||||
"category": "Hardware"
|
||||
},
|
||||
{
|
||||
"name": "tempFormat",
|
||||
"label": "Temperature Format",
|
||||
"type": "list",
|
||||
"default": "C",
|
||||
"list": [
|
||||
"K",
|
||||
"C",
|
||||
"F"
|
||||
],
|
||||
"description": "Temperature format: Kelvin, Celsius or Fahrenheit [K|C|F].",
|
||||
"category": "Units"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user