Files
Button/config/config.json
T
2026-07-13 06:04:04 +03:00

73 lines
1.8 KiB
JSON

{
"version": 2,
"layout": {
"mode": "list",
"columns": 1,
"spacing": 10,
"showLabels": true,
"labelColor": "#ffffff"
},
"background": {
"type": "gradient",
"color1": "#00007b",
"color2": "#7b007b",
"animated": true,
"imagePath": ""
},
"feedback": {
"okColor": "#00cc44",
"errorColor": "#cc2200",
"okWidth": 3,
"errorWidth": 2,
"glowRadius": 28,
"holdColor": "#ffffff",
"pendingColor": "#ffffff",
"pendingWidth": 6
},
"settings": {
"darkMode": true,
"password": "admin",
"kioskMode": false,
"iconsDir": "/opt/buttontask/icons",
"webPort": 8080
},
"buttons": [
{
"id": "example-1",
"label": "Пример",
"iconPath": "cleaner1.png",
"action": {
"type": "http_get",
"url": "http://localhost/btn?bid=01",
"headers": {},
"body": ""
},
"feedback": {
"successText": "Отправлено",
"errorText": "Ошибка",
"fadeMs": 5000
},
"trigger": {
"mode": "hold",
"holdMs": 800
}
},
{
"id": "cbd6791cdcb74a58861554b30239c65e",
"label": "dfg",
"iconPath": "cogwheel1.png",
"action": {
"type": "http_get",
"url": "http://example.com",
"headers": {},
"body": ""
},
"feedback": {
"successText": "",
"errorText": "",
"fadeMs": 5000
},
"color": "#ab26ab"
}
]
}