blinky/config.json

77 lines
1.9 KiB
JSON
Raw Normal View History

2021-04-06 16:41:49 +02:00
{
"server": {
"listen": "0.0.0.0",
2022-02-21 00:48:29 +01:00
"port": 3000
2021-04-06 16:41:49 +02:00
},
"blinkstick": {
"cache": true,
2022-03-04 00:02:07 +01:00
"map": [
{
"id": "square",
"serial": "BS006537-3.0"
},
{
"id": "strip",
"serial": "BS042165-3.0"
}
],
"serials": [
"BS006537-3.0"
]
},
2021-04-06 16:41:49 +02:00
"log": {
2022-02-21 00:48:29 +01:00
"level": "debug",
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
2021-04-06 16:41:49 +02:00
},
"api": {
"get": {
"description": "show this page"
},
"post": {
"endpoints": [
"/set",
"/morph",
"/blink",
"/pulse",
"/poweroff"
],
"blinkstick": {
"available": "string values",
"default": "undefined",
"description": "specifies the blinkstick by the id given in the config.json file or by serial"
},
2021-04-06 16:41:49 +02:00
"color": {
"available": "random, hex color codes (#ffffff), rgb color codes (255, 255, 255)",
"default": "random",
"description": "specifies the color to change to"
},
2022-02-21 12:20:18 +01:00
"index": {
"available": "number values",
"default": "all",
"description": "specifies the led index / defaults to all leds"
2022-02-21 12:20:18 +01:00
},
2021-04-06 16:41:49 +02:00
"duration": {
"available": "number values",
"default": 1000,
"description": "specifies the duration of the color change animation in milliseconds"
},
"steps": {
"available": "number values",
"default": "[duration] / 10",
"description": "specifies the number of steps for the color change"
2021-04-06 16:41:49 +02:00
},
"repeats": {
"restrictions": "blink, pulse",
2021-04-06 16:41:49 +02:00
"available": "number values",
"default": "0 (infinite)",
"description": "specifies the number of blinks/pulses"
},
"delay": {
"restrictions": "blink",
"available": "number values",
"default": "500",
"description": "delay between blinks in milliseconds "
2021-04-06 16:41:49 +02:00
}
}
}
}