Scope presets to active profiles and support cloning.

This keeps data isolated per profile while letting users duplicate setups quickly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-08 13:51:02 +13:00
parent 00514f0525
commit 6c6ed22dbe
8 changed files with 406 additions and 45 deletions

View File

@@ -15,7 +15,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"2": {
"name": "off",
@@ -31,7 +32,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"3": {
"name": "rainbow",
@@ -47,7 +49,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"4": {
"name": "transition",
@@ -67,7 +70,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"5": {
"name": "chase",
@@ -86,7 +90,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"6": {
"name": "pulse",
@@ -104,7 +109,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"7": {
"name": "circle",
@@ -123,7 +129,8 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"8": {
"name": "blink",
@@ -144,6 +151,126 @@
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0
"n8": 0,
"profile_id": "1"
},
"9": {
"name": "warm white",
"pattern": "on",
"colors": ["#FFF5E6"],
"brightness": 200,
"delay": 100,
"auto": true,
"n1": 0,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"10": {
"name": "cool white",
"pattern": "on",
"colors": ["#E6F2FF"],
"brightness": 200,
"delay": 100,
"auto": true,
"n1": 0,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"11": {
"name": "red",
"pattern": "on",
"colors": ["#FF0000"],
"brightness": 255,
"delay": 100,
"auto": true,
"n1": 0,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"12": {
"name": "blue",
"pattern": "on",
"colors": ["#0000FF"],
"brightness": 255,
"delay": 100,
"auto": true,
"n1": 0,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"13": {
"name": "rainbow slow",
"pattern": "rainbow",
"colors": [],
"brightness": 255,
"delay": 150,
"auto": true,
"n1": 1,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"14": {
"name": "pulse slow",
"pattern": "pulse",
"colors": ["#FF6600"],
"brightness": 255,
"delay": 800,
"auto": true,
"n1": 2000,
"n2": 1000,
"n3": 2000,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
},
"15": {
"name": "blink red green",
"pattern": "blink",
"colors": ["#FF0000", "#00FF00"],
"brightness": 255,
"delay": 500,
"auto": true,
"n1": 0,
"n2": 0,
"n3": 0,
"n4": 0,
"n5": 0,
"n6": 0,
"n7": 0,
"n8": 0,
"profile_id": "1"
}
}

View File

@@ -2,7 +2,7 @@
"1": {
"name": "default",
"names": [
"1"
"1","2","3","4","5","6","7","8"
],
"presets": [
[
@@ -13,18 +13,15 @@
"5",
"6",
"7",
"8"
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15"
]
],
"presets_flat": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
]
}
}