Benutzer-Werkzeuge

Webseiten-Werkzeuge


p-lsd:sk6812:wled

Drop Down Knopf für Node Red

Effekt Stand 12.2020

[
    {
        "id": "860fc271.b0c9b8",
        "type": "tab",
        "disabled": false,
        "info": ""
    },
    {
        "id": "a082a9fb.60e85",
        "type": "ui_dropdown",
        "z": "860fc271.b0c9b8",
        "name": "Effekte WLED",
        "label": "Effekte WLED",
        "tooltip": "",
        "place": "Select option",
        "group": "c49c6b02.8403e",
        "order": 7,
        "width": 0,
        "height": 0,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "Einfarbig",
                "value": "0",
                "type": "str"
            },
            {
                "label": "Pride 2015",
                "value": "63",
                "type": "str"
            },
            {
                "label": "Rainbow",
                "value": "9",
                "type": "str"
            },
            {
                "label": "Blink",
                "value": "1",
                "type": "str"
            },
            {
                "label": "Breathe",
                "value": "2",
                "type": "str"
            },
            {
                "label": "Wipe",
                "value": "3",
                "type": "str"
            },
            {
                "label": "Wipe Random",
                "value": "4",
                "type": "str"
            },
            {
                "label": "Random Colors",
                "value": "5",
                "type": "str"
            },
            {
                "label": "Sweep",
                "value": "6",
                "type": "str"
            },
            {
                "label": "Dynamic",
                "value": "7",
                "type": "str"
            },
            {
                "label": "Colorloop",
                "value": "8",
                "type": "str"
            },
            {
                "label": "Scan",
                "value": "10",
                "type": "str"
            },
            {
                "label": "Dual Scan",
                "value": "11",
                "type": "str"
            },
            {
                "label": "Fade",
                "value": "12",
                "type": "str"
            },
            {
                "label": "Theater",
                "value": "13",
                "type": "str"
            },
            {
                "label": "Theater Rainbow",
                "value": "14",
                "type": "str"
            },
            {
                "label": "Running",
                "value": "15",
                "type": "str"
            },
            {
                "label": "Saw",
                "value": "16",
                "type": "str"
            },
            {
                "label": "Twinkle",
                "value": "17",
                "type": "str"
            },
            {
                "label": "Dissolve",
                "value": "18",
                "type": "str"
            },
            {
                "label": "Dissolve Rnd",
                "value": "19",
                "type": "str"
            },
            {
                "label": "Sparkle",
                "value": "20",
                "type": "str"
            },
            {
                "label": "Dark Sparkle",
                "value": "21",
                "type": "str"
            },
            {
                "label": "Sparkle+",
                "value": "22",
                "type": "str"
            },
            {
                "label": "Strobe",
                "value": "23",
                "type": "str"
            },
            {
                "label": "Strobe Rainbow",
                "value": "24",
                "type": "str"
            },
            {
                "label": "Mega Strobe",
                "value": "25",
                "type": "str"
            },
            {
                "label": "Blink Rainbow",
                "value": "26",
                "type": "str"
            },
            {
                "label": "Android",
                "value": "27",
                "type": "str"
            },
            {
                "label": "Chase",
                "value": "28",
                "type": "str"
            },
            {
                "label": "Chase Random",
                "value": "29",
                "type": "str"
            },
            {
                "label": "Chase Rainbow",
                "value": "30",
                "type": "str"
            },
            {
                "label": "Chase Flash",
                "value": "31",
                "type": "str"
            },
            {
                "label": "Chase Flash Rnd",
                "value": "32",
                "type": "str"
            },
            {
                "label": "Rainbow Runner",
                "value": "33",
                "type": "str"
            },
            {
                "label": "Colorful",
                "value": "34",
                "type": "str"
            },
            {
                "label": "Traffic Light",
                "value": "35",
                "type": "str"
            },
            {
                "label": "Sweep Random",
                "value": "36",
                "type": "str"
            },
            {
                "label": "Running 2",
                "value": "37",
                "type": "str"
            },
            {
                "label": "Red & Blue",
                "value": "38",
                "type": "str"
            },
            {
                "label": "Stream",
                "value": "39",
                "type": "str"
            },
            {
                "label": "Scanner",
                "value": "40",
                "type": "str"
            },
            {
                "label": "Lighthouse",
                "value": "41",
                "type": "str"
            },
            {
                "label": "Fireworks",
                "value": "42",
                "type": "str"
            },
            {
                "label": "Rain",
                "value": "43",
                "type": "str"
            },
            {
                "label": "Merry Christmas",
                "value": "44",
                "type": "str"
            },
            {
                "label": "Fire Flicker",
                "value": "45",
                "type": "str"
            },
            {
                "label": "Gradient",
                "value": "46",
                "type": "str"
            },
            {
                "label": "Loading",
                "value": "47",
                "type": "str"
            },
            {
                "label": "Police",
                "value": "48",
                "type": "str"
            },
            {
                "label": "Police All",
                "value": "49",
                "type": "str"
            },
            {
                "label": "Two Dots",
                "value": "50",
                "type": "str"
            },
            {
                "label": "Two Areas",
                "value": "51",
                "type": "str"
            },
            {
                "label": "Circus",
                "value": "52",
                "type": "str"
            },
            {
                "label": "Halloween",
                "value": "53",
                "type": "str"
            },
            {
                "label": "Tri Chase",
                "value": "54",
                "type": "str"
            },
            {
                "label": "Tri Wipe",
                "value": "55",
                "type": "str"
            },
            {
                "label": "Tri Fade",
                "value": "56",
                "type": "str"
            },
            {
                "label": "Lightning",
                "value": "57",
                "type": "str"
            },
            {
                "label": "ICU",
                "value": "58",
                "type": "str"
            },
            {
                "label": "Multi Comet",
                "value": "59",
                "type": "str"
            },
            {
                "label": "Dual Scanner",
                "value": "60",
                "type": "str"
            },
            {
                "label": "Stream 2",
                "value": "61",
                "type": "str"
            },
            {
                "label": "Oscillate",
                "value": "62",
                "type": "str"
            },
            {
                "label": "Juggle",
                "value": "64",
                "type": "str"
            },
            {
                "label": "Palette",
                "value": "65",
                "type": "str"
            },
            {
                "label": "Fire 2012",
                "value": "66",
                "type": "str"
            },
            {
                "label": "Colorwaves",
                "value": "67",
                "type": "str"
            },
            {
                "label": "BPM",
                "value": "68",
                "type": "str"
            },
            {
                "label": "Fill Noise",
                "value": "69",
                "type": "str"
            },
            {
                "label": "Noise 1",
                "value": "70",
                "type": "str"
            },
            {
                "label": "Noise 2",
                "value": "71",
                "type": "str"
            },
            {
                "label": "Noise 3",
                "value": "72",
                "type": "str"
            },
            {
                "label": "Noise 4",
                "value": "73",
                "type": "str"
            },
            {
                "label": "Colortwinkle",
                "value": "74",
                "type": "str"
            },
            {
                "label": "Lake",
                "value": "75",
                "type": "str"
            },
            {
                "label": "Meteor",
                "value": "76",
                "type": "str"
            },
            {
                "label": "Smooth Meteor",
                "value": "77",
                "type": "str"
            },
            {
                "label": "Railway",
                "value": "78",
                "type": "str"
            },
            {
                "label": "Ripple",
                "value": "79",
                "type": "str"
            },
            {
                "label": "Twinklefox",
                "value": "80",
                "type": "str"
            },
            {
                "label": "Twinklecat",
                "value": "81",
                "type": "str"
            },
            {
                "label": "Halloween Eyes",
                "value": "82",
                "type": "str"
            },
            {
                "label": "Solid Pattern",
                "value": "83",
                "type": "str"
            },
            {
                "label": "Solid Pattern Tri",
                "value": "84",
                "type": "str"
            },
            {
                "label": "Spots",
                "value": "85",
                "type": "str"
            },
            {
                "label": "Spots Fade",
                "value": "86",
                "type": "str"
            },
            {
                "label": "Glitter",
                "value": "87",
                "type": "str"
            },
            {
                "label": "Candle",
                "value": "88",
                "type": "str"
            },
            {
                "label": "Fireworks Starburst",
                "value": "89",
                "type": "str"
            },
            {
                "label": "Fireworks 1D",
                "value": "90",
                "type": "str"
            },
            {
                "label": "Bouncing Balls",
                "value": "91",
                "type": "str"
            },
            {
                "label": "Sinelon",
                "value": "92",
                "type": "str"
            },
            {
                "label": "Sinelon Dual",
                "value": "93",
                "type": "str"
            },
            {
                "label": "Sinelon Rainbow",
                "value": "94",
                "type": "str"
            },
            {
                "label": "Popcorn",
                "value": "95",
                "type": "str"
            },
            {
                "label": "Drip",
                "value": "96",
                "type": "str"
            },
            {
                "label": "Plasma",
                "value": "97",
                "type": "str"
            },
            {
                "label": "Percent",
                "value": "98",
                "type": "str"
            },
            {
                "label": "Ripple Rainbow",
                "value": "99",
                "type": "str"
            },
            {
                "label": "Heartbeat",
                "value": "100",
                "type": "str"
            },
            {
                "label": "Pacifica",
                "value": "101",
                "type": "str"
            },
            {
                "label": "Candle Multi",
                "value": "102",
                "type": "str"
            },
            {
                "label": "Solid Glitter",
                "value": "103",
                "type": "str"
            },
            {
                "label": "Sunrise",
                "value": "104",
                "type": "str"
            },
            {
                "label": "Phased",
                "value": "105",
                "type": "str"
            },
            {
                "label": "Twinkle Up",
                "value": "106",
                "type": "str"
            },
            {
                "label": "Noise Pal",
                "value": "107",
                "type": "str"
            },
            {
                "label": "Sinewave",
                "value": "108",
                "type": "str"
            },
            {
                "label": "Phased Noise",
                "value": "109",
                "type": "str"
            },
            {
                "label": "Flow",
                "value": "110",
                "type": "str"
            },
            {
                "label": "Chunchun",
                "value": "111",
                "type": "str"
            },
            {
                "label": "Dancing Shadows",
                "value": "112",
                "type": "str"
            },
            {
                "label": "Washing machine",
                "value": "113",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "",
        "x": 460,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "c49c6b02.8403e",
        "type": "ui_group",
        "z": "",
        "name": "LED",
        "tab": "448b6c4d.b0016c",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": true
    },
    {
        "id": "448b6c4d.b0016c",
        "type": "ui_tab",
        "z": "",
        "name": "Teich",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

Farb Palette Stand 12.2020

Einige Effekte nutzen die Farbpalette

[
    {
        "id": "860fc271.b0c9b8",
        "type": "tab",
        "disabled": false,
        "info": ""
    },
    {
        "id": "8e8536f7.b139f",
        "type": "ui_dropdown",
        "z": "860fc271.b0c9b8",
        "name": "Pallete WLED",
        "label": "Pallete WLED",
        "tooltip": "",
        "place": "Select option",
        "group": "c49c6b02.8403e",
        "order": 7,
        "width": 0,
        "height": 0,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "Default",
                "value": "0",
                "type": "str"
            },
            {
                "label": "Random Cycle",
                "value": "1",
                "type": "str"
            },
            {
                "label": "Primary color",
                "value": "2",
                "type": "str"
            },
            {
                "label": "Based on primary",
                "value": "3",
                "type": "str"
            },
            {
                "label": "Set colors",
                "value": "4",
                "type": "str"
            },
            {
                "label": "Based on set",
                "value": "5",
                "type": "str"
            },
            {
                "label": "Party",
                "value": "6",
                "type": "str"
            },
            {
                "label": "Cloud",
                "value": "7",
                "type": "str"
            },
            {
                "label": "Lava",
                "value": "8",
                "type": "str"
            },
            {
                "label": "Ocean",
                "value": "9",
                "type": "str"
            },
            {
                "label": "Forest",
                "value": "10",
                "type": "str"
            },
            {
                "label": "Rainbow",
                "value": "11",
                "type": "str"
            },
            {
                "label": "Rainbow bands",
                "value": "12",
                "type": "str"
            },
            {
                "label": "Sunset",
                "value": "13",
                "type": "str"
            },
            {
                "label": "Rivendell",
                "value": "14",
                "type": "str"
            },
            {
                "label": "Breeze",
                "value": "15",
                "type": "str"
            },
            {
                "label": "Red & Blue",
                "value": "16",
                "type": "str"
            },
            {
                "label": "Yellowout",
                "value": "17",
                "type": "str"
            },
            {
                "label": "Analoguous",
                "value": "18",
                "type": "str"
            },
            {
                "label": "Splash",
                "value": "19",
                "type": "str"
            },
            {
                "label": "Pastel",
                "value": "20",
                "type": "str"
            },
            {
                "label": "Sunset 2",
                "value": "21",
                "type": "str"
            },
            {
                "label": "Beech",
                "value": "22",
                "type": "str"
            },
            {
                "label": "Vintage",
                "value": "23",
                "type": "str"
            },
            {
                "label": "Departure",
                "value": "24",
                "type": "str"
            },
            {
                "label": "Landscape",
                "value": "25",
                "type": "str"
            },
            {
                "label": "Beach",
                "value": "26",
                "type": "str"
            },
            {
                "label": "Sherbet",
                "value": "27",
                "type": "str"
            },
            {
                "label": "Hult",
                "value": "28",
                "type": "str"
            },
            {
                "label": "Hult 64",
                "value": "29",
                "type": "str"
            },
            {
                "label": "Drywet",
                "value": "30",
                "type": "str"
            },
            {
                "label": "Jul",
                "value": "31",
                "type": "str"
            },
            {
                "label": "Grintage",
                "value": "32",
                "type": "str"
            },
            {
                "label": "Rewhi",
                "value": "33",
                "type": "str"
            },
            {
                "label": "Tertiary",
                "value": "34",
                "type": "str"
            },
            {
                "label": "Fire",
                "value": "35",
                "type": "str"
            },
            {
                "label": "Icefire",
                "value": "36",
                "type": "str"
            },
            {
                "label": "Cyane",
                "value": "37",
                "type": "str"
            },
            {
                "label": "Light Pink",
                "value": "38",
                "type": "str"
            },
            {
                "label": "Autumn",
                "value": "39",
                "type": "str"
            },
            {
                "label": "Magenta",
                "value": "40",
                "type": "str"
            },
            {
                "label": "Magred",
                "value": "41",
                "type": "str"
            },
            {
                "label": "Yelmag",
                "value": "42",
                "type": "str"
            },
            {
                "label": "Yelblu",
                "value": "43",
                "type": "str"
            },
            {
                "label": "Orange & Teal",
                "value": "44",
                "type": "str"
            },
            {
                "label": "Tiamat",
                "value": "45",
                "type": "str"
            },
            {
                "label": "April Night",
                "value": "46",
                "type": "str"
            },
            {
                "label": "Orangery",
                "value": "47",
                "type": "str"
            },
            {
                "label": "C9",
                "value": "48",
                "type": "str"
            },
            {
                "label": "Sakura",
                "value": "49",
                "type": "str"
            },
            {
                "label": "Aurora",
                "value": "50",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "",
        "x": 340,
        "y": 140,
        "wires": [
            []
        ]
    },
    {
        "id": "c49c6b02.8403e",
        "type": "ui_group",
        "z": "",
        "name": "LED",
        "tab": "448b6c4d.b0016c",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": true
    },
    {
        "id": "448b6c4d.b0016c",
        "type": "ui_tab",
        "z": "",
        "name": "Teich",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

Mini Shell Script zur teil Automatischen Erzeugung des >>option<< Abschnitt

  1. Auf der WLED Webseite die Tabelle Effekte oder Palette markieren und kopieren
  2. In Calc oder Excel importieren
  3. Die Spalte A&B Makieren und exportiere
  4. In ein UNIX-Text File importieren (vim)
  5. Bash-Script Anwenden
  6. Nach dem letzten »}« das »,« entfernen
  7. Im Drop Down (siehe oben) den »options« Bereich austauschen
#!/bin/bash
 
FILE=$1
OLDIFS=$IFS
IFS='   '
[ ! -f $FILE ] && { echo "$FILE file not found"; exit 99; }
echo "\"options\": ["
while read nummer name
do
        echo "{"
        echo "\"label\": \"$name\","
        echo "\"value\": \"$nummer\","
        echo "\"type\": \"str\""
        echo "},"
done < $FILE
IFS=$OLDIFS
p-lsd/sk6812/wled.txt · Zuletzt geändert: 2020/12/17 08:59 von lsd

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki