Files
OBPkp61/web/config.json

190 lines
4.5 KiB
JSON

[
{
"name": "systemName",
"label": "System name",
"type": "string",
"default": "OBPkeypad61",
"check": "checkSystemName",
"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": "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"
},
{
"name": "key1",
"label": "Key 1 code",
"type": "number",
"default": 1,
"min": 1,
"max": 28,
"description": "The keycode to send for key 1 (leftmost) [1 .. 28]",
"category": "Keys"
},
{
"name": "key2",
"label": "Key 2 code",
"type": "number",
"default": 2,
"min": 1,
"max": 28,
"description": "The keycode to send for key 2 (second from left) [1 .. 28]",
"category": "Keys"
},
{
"name": "key3",
"label": "Key 3 code",
"type": "number",
"default": 3,
"min": 1,
"max": 28,
"description": "The keycode to send for key 3 (third from left) [1 .. 28]",
"category": "Keys"
},
{
"name": "key4",
"label": "Key 4 code",
"type": "number",
"default": 4,
"min": 1,
"max": 28,
"description": "The keycode to send for key 4 (fourth from left) [1 .. 28]",
"category": "Keys"
},
{
"name": "key5",
"label": "Key 5 code",
"type": "number",
"default": 5,
"min": 1,
"max": 28,
"description": "The keycode to send for key 5 (fifth from left) [1 .. 28]",
"category": "Keys"
},
{
"name": "key6",
"label": "Key 6 code",
"type": "number",
"default": 6,
"min": 1,
"max": 28,
"description": "The keycode to send for key 6 (rightmost) [1 .. 28]",
"category": "Keys"
}
]