- Convert from Microdot back to Flask - Add presets system with CRUD operations - Store presets in presets.json file - Replace patterns section with presets grid - Add preset editor with full configuration - Add collapse/expand functionality to left panel - Always show on/off presets in presets list - Highlight active preset matching current tab settings - Add 'Create from Current' button in preset editor
157 lines
4.5 KiB
JSON
157 lines
4.5 KiB
JSON
{
|
|
"tab_password": "",
|
|
"color_palette": [
|
|
"#c12525",
|
|
"#246dcc"
|
|
],
|
|
"lights": {
|
|
"test": {
|
|
"names": [
|
|
"test"
|
|
],
|
|
"settings": {
|
|
"pattern": "pulse",
|
|
"brightness": 127,
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10,
|
|
"patterns": {
|
|
"on": {
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"off": {
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"rainbow": {
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"transition": {
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"blink": {
|
|
"colors": [
|
|
"#12b533"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"circle": {
|
|
"colors": [
|
|
"#9d3434",
|
|
"#cb5d5d"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"pulse": {
|
|
"colors": [
|
|
"#9f1d1d",
|
|
"#176d2d",
|
|
"#50309c"
|
|
],
|
|
"delay": 300,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"test2": {
|
|
"names": [
|
|
"test"
|
|
],
|
|
"settings": {
|
|
"pattern": "pulse",
|
|
"brightness": 127,
|
|
"colors": [
|
|
"#000000"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10,
|
|
"patterns": {
|
|
"blink": {
|
|
"colors": [
|
|
"#12b533"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"circle": {
|
|
"colors": [
|
|
"#9d3434",
|
|
"#cb5d5d"
|
|
],
|
|
"delay": 100,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
},
|
|
"pulse": {
|
|
"colors": [
|
|
"#9f1d1d",
|
|
"#176d2d",
|
|
"#50309c"
|
|
],
|
|
"delay": 300,
|
|
"n1": 10,
|
|
"n2": 10,
|
|
"n3": 10,
|
|
"n4": 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tab_order": [
|
|
"test",
|
|
"test2"
|
|
]
|
|
} |