Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. WLED - RGB Stripe - Farbe ändern und dimmen?

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    WLED - RGB Stripe - Farbe ändern und dimmen?

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Beowolf @mickym last edited by

      @mickym sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

      @beowolf sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

      @mickym sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

      Nein lösch einfach nochmal alles raus trage das javascript-color-gradient ein. Ich glaube ich habe nirgends geschrieben, dass Du für die Installation irgendwelche npm Kommandos ausführen solltest.

      Ich hatte das so verstanden das ich das so dort eintragen muß "npm install javascript-color-gradient".

      Nein bitte einfach nur javascript-color-gradient als benötigtes Modul eintragen, so wie in dem Screenshot.

      Ist jetzt drin.

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @Beowolf last edited by mickym

        @beowolf Hmm das npm list schaut nicht ganz sauber aus. Aber es scheint bereits was installiert worden zu sein. Du kannst ja erst mal prüfen, ob es funktioniert, wenn Du die Funktion definierst und siehst, ob Du die Gradienten siehst. Wenn das nicht hilft, dann müsste man das halt wieder rückgängig machen.

        Ich habs jetzt gerade nochmal in die Adapterkonfig im JS Adapter eingegeben

        f4b77147-e92d-4b73-98f1-f88cb8df1750-image.png

        Dann mir Speichern und Schließen wird der Adapter neu gestartet.

        pi@MWHome:/opt/iobroker/node_modules/iobroker.javascript $ npm list
        iobroker.javascript@5.7.0 /opt/iobroker/node_modules/iobroker.javascript
        ├── @alcalzone/release-script-plugin-iobroker@3.5.9
        ├── @alcalzone/release-script-plugin-license@3.5.9
        ├── @alcalzone/release-script@3.5.9
        ├── @iobroker/adapter-core@2.6.0
        ├── @types/iobroker@4.0.4
        ├── @types/node@16.11.41
        ├── @types/request@2.48.8
        ├── alcalzone-shared@4.0.1
        ├── chai@4.3.6
        ├── coffee-compiler@0.3.2
        ├── coffee-script@1.12.7
        ├── del@6.1.1
        ├── eslint@7.32.0
        ├── gulp-rename@2.0.0
        ├── gulp-replace@1.1.3
        ├── gulp@4.0.2
        ├── javascript-color-gradient@2.4.4
        ├── jsonata@1.8.6
        ├── jszip@3.10.0
        ├── mocha@9.2.2
        ├── node-inspect@2.0.0
        ├── node-schedule@2.1.0
        ├── request@2.88.2
        ├── semver@7.3.7
        ├── suncalc2@1.8.1
        ├── timekeeper@2.2.0
        ├── typescript@4.7.4
        ├── virtual-tsc@0.6.2
        ├── vm2@3.9.9
        └── wake_on_lan@1.0.0
        

        Wenn es ganz sauber aussehen soll, dann sieht es wie bei mir jetzt aus.

        Man kann bei den Fehlern die ich vorher gesehen habe in dem Verzeichnis /opt/iobroker/node_modules/iobroker.javascript

        npm prune
        

        eingeben - das bereinigt nicht aufgelöste Abhängigkeiten.

        B 1 Reply Last reply Reply Quote 0
        • B
          Beowolf @mickym last edited by

          @mickym

          Ich habe jetzt das Blockly importiert. Es erscheint so wie in deinem Beitrag.

          Ist dann alles richtig?

          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @Beowolf last edited by

            @beowolf Ja dann funktioniert das.

            1 Reply Last reply Reply Quote 0
            • B
              Beowolf last edited by

              Sieht so aus.

              led2.jpg

              mickym 1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @Beowolf last edited by mickym

                @beowolf sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

                Sieht so aus.

                led2.jpg

                Ja dann funktioniert das Modul - und Du hast den Gradient wie beschrieben. Du wolltest ja einen Farbverlauf von ROT nach HELLGELB. Du hast ja standardmässig 10 Farben für den Farbverlauf. Wenn Du mehr Punktehaben willst, dann kannst Du wie in der Bibliothek ja siehst mehrere Farben Dir ausgeben lassen.

                Du kannst ja nun prüfen, ob Du die Farben so in Deinen Datenpunkt 0_HEX eingeben - oder wie Du halt bisher Deine Farbe verändert hast.

                Wie gesagt interessant wäre ja noch, ob Du Dir das Dimmen sparen kannst, und was passiert, wenn Du als Farbe mal schwarz #000000 definierst. 😉

                B 1 Reply Last reply Reply Quote 0
                • B
                  Beowolf @mickym last edited by

                  @mickym

                  wenn ich npm prune eingebe, kommt das.

                  
                  pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $ npm prune
                  audited 218 packages in 4.418s
                  
                  13 packages are looking for funding
                    run `npm fund` for details
                  
                  found 0 vulnerabilities
                  
                  pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $
                  
                  
                  mickym 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @Beowolf last edited by

                    @beowolf Dann nochmal

                    npm list
                    

                    eingeben.

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Beowolf @mickym last edited by

                      @mickym sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

                      npm list

                      
                      pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $ npm list
                      iobroker.javascript@5.7.0 /opt/iobroker/node_modules/iobroker.javascript
                      ├── UNMET DEPENDENCY @iobroker/adapter-core@^2.6.0
                      ├── @types/node@14.18.18
                      ├── UNMET DEPENDENCY @types/request@^2.48.8
                      ├── UNMET DEPENDENCY coffee-compiler@^0.3.2
                      ├── UNMET DEPENDENCY coffee-script@^1.12.7
                      ├── javascript-color-gradient@2.4.4
                      ├── UNMET DEPENDENCY jsonata@^1.8.6
                      ├── UNMET DEPENDENCY jszip@^3.9.1
                      ├── UNMET DEPENDENCY node-inspect@^2.0.0
                      ├── UNMET DEPENDENCY node-schedule@2.1.0
                      ├─┬ node-ssh@12.0.4
                      │ ├── is-stream@2.0.1
                      │ ├─┬ make-dir@3.1.0
                      │ │ └── semver@6.3.0
                      │ ├── sb-promise-queue@2.1.0
                      │ ├─┬ sb-scandir@3.1.0
                      │ │ └── sb-promise-queue@2.1.0 deduped
                      │ ├── shell-escape@0.2.0
                      │ └─┬ ssh2@1.11.0
                      │   ├─┬ asn1@0.2.6
                      │   │ └── safer-buffer@2.1.2
                      │   ├─┬ bcrypt-pbkdf@1.0.2
                      │   │ └── tweetnacl@0.14.5
                      │   ├─┬ cpu-features@0.0.4
                      │   │ ├── buildcheck@0.0.3
                      │   │ └── nan@2.16.0 deduped
                      │   └── nan@2.16.0
                      ├─┬ npm@8.13.1
                      │ ├── @isaacs/string-locale-compare@1.1.0
                      │ ├─┬ @npmcli/arborist@5.2.3
                      │ │ ├── @isaacs/string-locale-compare@1.1.0 deduped
                      │ │ ├─┬ @npmcli/installed-package-contents@1.0.7
                      │ │ │ ├─┬ npm-bundled@1.1.2
                      │ │ │ │ └── npm-normalize-package-bin@1.0.1 deduped
                      │ │ │ └── npm-normalize-package-bin@1.0.1 deduped
                      │ │ ├── @npmcli/map-workspaces@2.0.3 deduped
                      │ │ ├─┬ @npmcli/metavuln-calculator@3.1.0
                      │ │ │ ├── cacache@16.1.1 deduped
                      │ │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ │ ├── pacote@13.6.1 deduped
                      │ │ │ └── semver@7.3.7 deduped
                      │ │ ├─┬ @npmcli/move-file@2.0.0
                      │ │ │ ├── mkdirp@1.0.4 deduped
                      │ │ │ └── rimraf@3.0.2 deduped
                      │ │ ├── @npmcli/name-from-folder@1.0.1
                      │ │ ├── @npmcli/node-gyp@2.0.0
                      │ │ ├── @npmcli/package-json@2.0.0 deduped
                      │ │ ├── @npmcli/run-script@4.1.3 deduped
                      │ │ ├─┬ bin-links@3.0.1
                      │ │ │ ├─┬ cmd-shim@5.0.0
                      │ │ │ │ └── mkdirp-infer-owner@2.0.0 deduped
                      │ │ │ ├── mkdirp-infer-owner@2.0.0 deduped
                      │ │ │ ├── npm-normalize-package-bin@1.0.1 deduped
                      │ │ │ ├── read-cmd-shim@3.0.0
                      │ │ │ ├── rimraf@3.0.2 deduped
                      │ │ │ └── write-file-atomic@4.0.1 deduped
                      │ │ ├── cacache@16.1.1 deduped
                      │ │ ├── common-ancestor-path@1.0.1
                      │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ ├── json-stringify-nice@1.1.4
                      │ │ ├── mkdirp@1.0.4 deduped
                      │ │ ├── mkdirp-infer-owner@2.0.0 deduped
                      │ │ ├── nopt@5.0.0 deduped
                      │ │ ├── npm-install-checks@5.0.0 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├── npm-pick-manifest@7.0.1 deduped
                      │ │ ├── npm-registry-fetch@13.1.1 deduped
                      │ │ ├── npmlog@6.0.2 deduped
                      │ │ ├── pacote@13.6.1 deduped
                      │ │ ├── parse-conflict-json@2.0.2 deduped
                      │ │ ├── proc-log@2.0.1 deduped
                      │ │ ├── promise-all-reject-late@1.0.1
                      │ │ ├── promise-call-limit@1.0.1
                      │ │ ├── read-package-json-fast@2.0.3 deduped
                      │ │ ├── readdir-scoped-modules@1.1.0 deduped
                      │ │ ├── rimraf@3.0.2 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ ├── ssri@9.0.1 deduped
                      │ │ ├── treeverse@2.0.0 deduped
                      │ │ └── walk-up-path@1.0.0
                      │ ├── @npmcli/ci-detect@2.0.0
                      │ ├─┬ @npmcli/config@4.1.0
                      │ │ ├── @npmcli/map-workspaces@2.0.3 deduped
                      │ │ ├── ini@3.0.0 deduped
                      │ │ ├── mkdirp-infer-owner@2.0.0 deduped
                      │ │ ├── nopt@5.0.0 deduped
                      │ │ ├── proc-log@2.0.1 deduped
                      │ │ ├── read-package-json-fast@2.0.3 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ └── walk-up-path@1.0.0 deduped
                      │ ├─┬ @npmcli/fs@2.1.0
                      │ │ ├── @gar/promisify@1.1.3
                      │ │ └── semver@7.3.7 deduped
                      │ ├─┬ @npmcli/map-workspaces@2.0.3
                      │ │ ├── @npmcli/name-from-folder@1.0.1 deduped
                      │ │ ├── glob@8.0.3 deduped
                      │ │ ├─┬ minimatch@5.1.0
                      │ │ │ └─┬ brace-expansion@2.0.1
                      │ │ │   └── balanced-match@1.0.2
                      │ │ └── read-package-json-fast@2.0.3 deduped
                      │ ├─┬ @npmcli/package-json@2.0.0
                      │ │ └── json-parse-even-better-errors@2.3.1 deduped
                      │ ├─┬ @npmcli/run-script@4.1.3
                      │ │ ├── @npmcli/node-gyp@2.0.0 deduped
                      │ │ ├─┬ @npmcli/promise-spawn@3.0.0
                      │ │ │ └── infer-owner@1.0.4 deduped
                      │ │ ├── node-gyp@9.0.0 deduped
                      │ │ └── read-package-json-fast@2.0.3 deduped
                      │ ├── abbrev@1.1.1
                      │ ├── archy@1.0.0
                      │ ├─┬ cacache@16.1.1
                      │ │ ├── @npmcli/fs@2.1.0 deduped
                      │ │ ├── @npmcli/move-file@2.0.0 deduped
                      │ │ ├── chownr@2.0.0 deduped
                      │ │ ├─┬ fs-minipass@2.1.0
                      │ │ │ └── minipass@3.1.6 deduped
                      │ │ ├── glob@8.0.3 deduped
                      │ │ ├── infer-owner@1.0.4
                      │ │ ├── lru-cache@7.9.0
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├─┬ minipass-collect@1.0.2
                      │ │ │ └── minipass@3.1.6 deduped
                      │ │ ├─┬ minipass-flush@1.0.5
                      │ │ │ └── minipass@3.1.6 deduped
                      │ │ ├── minipass-pipeline@1.2.4 deduped
                      │ │ ├── mkdirp@1.0.4 deduped
                      │ │ ├─┬ p-map@4.0.0
                      │ │ │ └─┬ aggregate-error@3.1.0
                      │ │ │   ├── clean-stack@2.2.0
                      │ │ │   └── indent-string@4.0.0
                      │ │ ├── promise-inflight@1.0.1
                      │ │ ├── rimraf@3.0.2 deduped
                      │ │ ├── ssri@9.0.1 deduped
                      │ │ ├── tar@6.1.11 deduped
                      │ │ └─┬ unique-filename@1.1.1
                      │ │   └─┬ unique-slug@2.0.2
                      │ │     └── imurmurhash@0.1.4 deduped
                      │ ├─┬ chalk@4.1.2
                      │ │ ├─┬ ansi-styles@4.3.0
                      │ │ │ └─┬ color-convert@2.0.1
                      │ │ │   └── color-name@1.1.4
                      │ │ └─┬ supports-color@7.2.0
                      │ │   └── has-flag@4.0.0
                      │ ├── chownr@2.0.0
                      │ ├─┬ cli-columns@4.0.0
                      │ │ ├─┬ string-width@4.2.3
                      │ │ │ ├── emoji-regex@8.0.0
                      │ │ │ ├── is-fullwidth-code-point@3.0.0
                      │ │ │ └── strip-ansi@6.0.1 deduped
                      │ │ └─┬ strip-ansi@6.0.1
                      │ │   └── ansi-regex@5.0.1
                      │ ├─┬ cli-table3@0.6.2
                      │ │ ├── @colors/colors@1.5.0
                      │ │ └── string-width@4.2.3 deduped
                      │ ├─┬ columnify@1.6.0
                      │ │ ├── strip-ansi@6.0.1 deduped
                      │ │ └─┬ wcwidth@1.0.1
                      │ │   └─┬ defaults@1.0.3
                      │ │     └── clone@1.0.4
                      │ ├── fastest-levenshtein@1.0.12
                      │ ├─┬ glob@8.0.3
                      │ │ ├── fs.realpath@1.0.0
                      │ │ ├─┬ inflight@1.0.6
                      │ │ │ ├── once@1.4.0 deduped
                      │ │ │ └── wrappy@1.0.2
                      │ │ ├── inherits@2.0.4
                      │ │ ├── minimatch@5.1.0 deduped
                      │ │ └─┬ once@1.4.0
                      │ │   └── wrappy@1.0.2 deduped
                      │ ├── graceful-fs@4.2.10
                      │ ├─┬ hosted-git-info@5.0.0
                      │ │ └── lru-cache@7.9.0 deduped
                      │ ├── ini@3.0.0
                      │ ├─┬ init-package-json@3.0.2
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├─┬ promzard@0.3.0
                      │ │ │ └── read@1.0.7 deduped
                      │ │ ├── read@1.0.7 deduped
                      │ │ ├── read-package-json@5.0.1 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ ├─┬ validate-npm-package-license@3.0.4
                      │ │ │ ├─┬ spdx-correct@3.1.1
                      │ │ │ │ ├── spdx-expression-parse@3.0.1 deduped
                      │ │ │ │ └── spdx-license-ids@3.0.11
                      │ │ │ └─┬ spdx-expression-parse@3.0.1
                      │ │ │   ├── spdx-exceptions@2.3.0
                      │ │ │   └── spdx-license-ids@3.0.11 deduped
                      │ │ └── validate-npm-package-name@4.0.0 deduped
                      │ ├─┬ is-cidr@4.0.2
                      │ │ └─┬ cidr-regex@3.1.1
                      │ │   └── ip-regex@4.3.0
                      │ ├── json-parse-even-better-errors@2.3.1
                      │ ├─┬ libnpmaccess@6.0.3
                      │ │ ├── aproba@2.0.0
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ └── npm-registry-fetch@13.1.1 deduped
                      │ ├─┬ libnpmdiff@4.0.4
                      │ │ ├─┬ @npmcli/disparity-colors@2.0.0
                      │ │ │ └── ansi-styles@4.3.0 deduped
                      │ │ ├── @npmcli/installed-package-contents@1.0.7 deduped
                      │ │ ├── binary-extensions@2.2.0
                      │ │ ├── diff@5.0.0
                      │ │ ├── minimatch@5.1.0 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├── pacote@13.6.1 deduped
                      │ │ └── tar@6.1.11 deduped
                      │ ├─┬ libnpmexec@4.0.8
                      │ │ ├── @npmcli/arborist@5.2.3 deduped
                      │ │ ├── @npmcli/ci-detect@2.0.0 deduped
                      │ │ ├── @npmcli/run-script@4.1.3 deduped
                      │ │ ├── chalk@4.1.2 deduped
                      │ │ ├── mkdirp-infer-owner@2.0.0 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├── npmlog@6.0.2 deduped
                      │ │ ├── pacote@13.6.1 deduped
                      │ │ ├── proc-log@2.0.1 deduped
                      │ │ ├── read@1.0.7 deduped
                      │ │ ├── read-package-json-fast@2.0.3 deduped
                      │ │ └── walk-up-path@1.0.0 deduped
                      │ ├─┬ libnpmfund@3.0.2
                      │ │ └── @npmcli/arborist@5.2.3 deduped
                      │ ├─┬ libnpmhook@8.0.3
                      │ │ ├── aproba@2.0.0 deduped
                      │ │ └── npm-registry-fetch@13.1.1 deduped
                      │ ├─┬ libnpmorg@4.0.3
                      │ │ ├── aproba@2.0.0 deduped
                      │ │ └── npm-registry-fetch@13.1.1 deduped
                      │ ├─┬ libnpmpack@4.1.2
                      │ │ ├── @npmcli/run-script@4.1.3 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ └── pacote@13.6.1 deduped
                      │ ├─┬ libnpmpublish@6.0.4
                      │ │ ├─┬ normalize-package-data@4.0.0
                      │ │ │ ├── hosted-git-info@5.0.0 deduped
                      │ │ │ ├─┬ is-core-module@2.9.0
                      │ │ │ │ └─┬ has@1.0.3
                      │ │ │ │   └── function-bind@1.1.1
                      │ │ │ ├── semver@7.3.7 deduped
                      │ │ │ └── validate-npm-package-license@3.0.4 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├── npm-registry-fetch@13.1.1 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ └── ssri@9.0.1 deduped
                      │ ├─┬ libnpmsearch@5.0.3
                      │ │ └── npm-registry-fetch@13.1.1 deduped
                      │ ├─┬ libnpmteam@4.0.3
                      │ │ ├── aproba@2.0.0 deduped
                      │ │ └── npm-registry-fetch@13.1.1 deduped
                      │ ├─┬ libnpmversion@3.0.6
                      │ │ ├─┬ @npmcli/git@3.0.1
                      │ │ │ ├── @npmcli/promise-spawn@3.0.0 deduped
                      │ │ │ ├── lru-cache@7.9.0 deduped
                      │ │ │ ├── mkdirp@1.0.4 deduped
                      │ │ │ ├── npm-pick-manifest@7.0.1 deduped
                      │ │ │ ├── proc-log@2.0.1 deduped
                      │ │ │ ├── promise-inflight@1.0.1 deduped
                      │ │ │ ├── promise-retry@2.0.1 deduped
                      │ │ │ ├── semver@7.3.7 deduped
                      │ │ │ └── which@2.0.2 deduped
                      │ │ ├── @npmcli/run-script@4.1.3 deduped
                      │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ ├── proc-log@2.0.1 deduped
                      │ │ └── semver@7.3.7 deduped
                      │ ├─┬ make-fetch-happen@10.1.8
                      │ │ ├─┬ agentkeepalive@4.2.1
                      │ │ │ ├─┬ debug@4.3.4
                      │ │ │ │ └── ms@2.1.2
                      │ │ │ ├── depd@1.1.2
                      │ │ │ └─┬ humanize-ms@1.2.1
                      │ │ │   └── ms@2.1.3 deduped
                      │ │ ├── cacache@16.1.1 deduped
                      │ │ ├── http-cache-semantics@4.1.0
                      │ │ ├─┬ http-proxy-agent@5.0.0
                      │ │ │ ├── @tootallnate/once@2.0.0
                      │ │ │ ├─┬ agent-base@6.0.2
                      │ │ │ │ └── debug@4.3.4 deduped
                      │ │ │ └── debug@4.3.4 deduped
                      │ │ ├─┬ https-proxy-agent@5.0.1
                      │ │ │ ├── agent-base@6.0.2 deduped
                      │ │ │ └── debug@4.3.4 deduped
                      │ │ ├── is-lambda@1.0.1
                      │ │ ├── lru-cache@7.9.0 deduped
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├── minipass-collect@1.0.2 deduped
                      │ │ ├─┬ minipass-fetch@2.1.0
                      │ │ │ ├─┬ encoding@0.1.13
                      │ │ │ │ └─┬ iconv-lite@0.6.3
                      │ │ │ │   └── safer-buffer@2.1.2
                      │ │ │ ├── minipass@3.1.6 deduped
                      │ │ │ ├─┬ minipass-sized@1.0.3
                      │ │ │ │ └── minipass@3.1.6 deduped
                      │ │ │ └── minizlib@2.1.2 deduped
                      │ │ ├── minipass-flush@1.0.5 deduped
                      │ │ ├── minipass-pipeline@1.2.4 deduped
                      │ │ ├── negotiator@0.6.3
                      │ │ ├─┬ promise-retry@2.0.1
                      │ │ │ ├── err-code@2.0.3
                      │ │ │ └── retry@0.12.0
                      │ │ ├─┬ socks-proxy-agent@7.0.0
                      │ │ │ ├── agent-base@6.0.2 deduped
                      │ │ │ ├── debug@4.3.4 deduped
                      │ │ │ └─┬ socks@2.6.2
                      │ │ │   ├── ip@1.1.8
                      │ │ │   └── smart-buffer@4.2.0
                      │ │ └── ssri@9.0.1 deduped
                      │ ├─┬ minipass@3.1.6
                      │ │ └── yallist@4.0.0
                      │ ├─┬ minipass-pipeline@1.2.4
                      │ │ └── minipass@3.1.6 deduped
                      │ ├── mkdirp@1.0.4
                      │ ├─┬ mkdirp-infer-owner@2.0.0
                      │ │ ├── chownr@2.0.0 deduped
                      │ │ ├── infer-owner@1.0.4 deduped
                      │ │ └── mkdirp@1.0.4 deduped
                      │ ├── ms@2.1.3
                      │ ├─┬ node-gyp@9.0.0
                      │ │ ├── env-paths@2.2.1
                      │ │ ├─┬ glob@7.2.3
                      │ │ │ ├── fs.realpath@1.0.0 deduped
                      │ │ │ ├── inflight@1.0.6 deduped
                      │ │ │ ├── inherits@2.0.4 deduped
                      │ │ │ ├─┬ minimatch@3.1.2
                      │ │ │ │ └─┬ brace-expansion@1.1.11
                      │ │ │ │   ├── balanced-match@1.0.2 deduped
                      │ │ │ │   └── concat-map@0.0.1
                      │ │ │ ├── once@1.4.0 deduped
                      │ │ │ └── path-is-absolute@1.0.1
                      │ │ ├── graceful-fs@4.2.10 deduped
                      │ │ ├── make-fetch-happen@10.1.8 deduped
                      │ │ ├── nopt@5.0.0 deduped
                      │ │ ├── npmlog@6.0.2 deduped
                      │ │ ├── rimraf@3.0.2 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ ├── tar@6.1.11 deduped
                      │ │ └── which@2.0.2 deduped
                      │ ├─┬ nopt@5.0.0
                      │ │ └── abbrev@1.1.1 deduped
                      │ ├─┬ npm-audit-report@3.0.0
                      │ │ └── chalk@4.1.2 deduped
                      │ ├─┬ npm-install-checks@5.0.0
                      │ │ └── semver@7.3.7 deduped
                      │ ├─┬ npm-package-arg@9.0.2
                      │ │ ├── hosted-git-info@5.0.0 deduped
                      │ │ ├── semver@7.3.7 deduped
                      │ │ └── validate-npm-package-name@4.0.0 deduped
                      │ ├─┬ npm-pick-manifest@7.0.1
                      │ │ ├── npm-install-checks@5.0.0 deduped
                      │ │ ├── npm-normalize-package-bin@1.0.1
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ └── semver@7.3.7 deduped
                      │ ├─┬ npm-profile@6.1.0
                      │ │ ├── npm-registry-fetch@13.1.1 deduped
                      │ │ └── proc-log@2.0.1 deduped
                      │ ├─┬ npm-registry-fetch@13.1.1
                      │ │ ├── make-fetch-happen@10.1.8 deduped
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├── minipass-fetch@2.1.0 deduped
                      │ │ ├─┬ minipass-json-stream@1.0.1
                      │ │ │ ├── jsonparse@1.3.1
                      │ │ │ └── minipass@3.1.6 deduped
                      │ │ ├─┬ minizlib@2.1.2
                      │ │ │ ├── minipass@3.1.6 deduped
                      │ │ │ └── yallist@4.0.0 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ └── proc-log@2.0.1 deduped
                      │ ├── npm-user-validate@1.0.1
                      │ ├─┬ npmlog@6.0.2
                      │ │ ├─┬ are-we-there-yet@3.0.0
                      │ │ │ ├── delegates@1.0.0
                      │ │ │ └─┬ readable-stream@3.6.0
                      │ │ │   ├── inherits@2.0.4 deduped
                      │ │ │   ├─┬ string_decoder@1.3.0
                      │ │ │   │ └── safe-buffer@5.2.1
                      │ │ │   └── util-deprecate@1.0.2
                      │ │ ├── console-control-strings@1.1.0
                      │ │ ├─┬ gauge@4.0.4
                      │ │ │ ├── aproba@2.0.0 deduped
                      │ │ │ ├── color-support@1.1.3
                      │ │ │ ├── console-control-strings@1.1.0 deduped
                      │ │ │ ├── has-unicode@2.0.1
                      │ │ │ ├── signal-exit@3.0.7 deduped
                      │ │ │ ├── string-width@4.2.3 deduped
                      │ │ │ ├── strip-ansi@6.0.1 deduped
                      │ │ │ └─┬ wide-align@1.1.5
                      │ │ │   └── string-width@4.2.3 deduped
                      │ │ └── set-blocking@2.0.0
                      │ ├── opener@1.5.2
                      │ ├─┬ pacote@13.6.1
                      │ │ ├── @npmcli/git@3.0.1 deduped
                      │ │ ├── @npmcli/installed-package-contents@1.0.7 deduped
                      │ │ ├── @npmcli/promise-spawn@3.0.0 deduped
                      │ │ ├── @npmcli/run-script@4.1.3 deduped
                      │ │ ├── cacache@16.1.1 deduped
                      │ │ ├── chownr@2.0.0 deduped
                      │ │ ├── fs-minipass@2.1.0 deduped
                      │ │ ├── infer-owner@1.0.4 deduped
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├── mkdirp@1.0.4 deduped
                      │ │ ├── npm-package-arg@9.0.2 deduped
                      │ │ ├─┬ npm-packlist@5.1.0
                      │ │ │ ├── glob@8.0.3 deduped
                      │ │ │ ├─┬ ignore-walk@5.0.1
                      │ │ │ │ └── minimatch@5.1.0 deduped
                      │ │ │ ├── npm-bundled@1.1.2 deduped
                      │ │ │ └── npm-normalize-package-bin@1.0.1 deduped
                      │ │ ├── npm-pick-manifest@7.0.1 deduped
                      │ │ ├── npm-registry-fetch@13.1.1 deduped
                      │ │ ├── proc-log@2.0.1 deduped
                      │ │ ├── promise-retry@2.0.1 deduped
                      │ │ ├── read-package-json@5.0.1 deduped
                      │ │ ├── read-package-json-fast@2.0.3 deduped
                      │ │ ├── rimraf@3.0.2 deduped
                      │ │ ├── ssri@9.0.1 deduped
                      │ │ └── tar@6.1.11 deduped
                      │ ├─┬ parse-conflict-json@2.0.2
                      │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ ├── just-diff@5.0.2
                      │ │ └── just-diff-apply@5.2.0
                      │ ├── proc-log@2.0.1
                      │ ├── qrcode-terminal@0.12.0
                      │ ├─┬ read@1.0.7
                      │ │ └── mute-stream@0.0.8
                      │ ├─┬ read-package-json@5.0.1
                      │ │ ├── glob@8.0.3 deduped
                      │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ ├── normalize-package-data@4.0.0 deduped
                      │ │ └── npm-normalize-package-bin@1.0.1 deduped
                      │ ├─┬ read-package-json-fast@2.0.3
                      │ │ ├── json-parse-even-better-errors@2.3.1 deduped
                      │ │ └── npm-normalize-package-bin@1.0.1 deduped
                      │ ├─┬ readdir-scoped-modules@1.1.0
                      │ │ ├── debuglog@1.0.1
                      │ │ ├─┬ dezalgo@1.0.4
                      │ │ │ ├── asap@2.0.6
                      │ │ │ └── wrappy@1.0.2 deduped
                      │ │ ├── graceful-fs@4.2.10 deduped
                      │ │ └── once@1.4.0 deduped
                      │ ├─┬ rimraf@3.0.2
                      │ │ └─┬ glob@7.2.3
                      │ │   ├── fs.realpath@1.0.0 deduped
                      │ │   ├── inflight@1.0.6 deduped
                      │ │   ├── inherits@2.0.4 deduped
                      │ │   ├─┬ minimatch@3.1.2
                      │ │   │ └─┬ brace-expansion@1.1.11
                      │ │   │   ├── balanced-match@1.0.2 deduped
                      │ │   │   └── concat-map@0.0.1 deduped
                      │ │   ├── once@1.4.0 deduped
                      │ │   └── path-is-absolute@1.0.1 deduped
                      │ ├─┬ semver@7.3.7
                      │ │ └─┬ lru-cache@6.0.0
                      │ │   └── yallist@4.0.0 deduped
                      │ ├─┬ ssri@9.0.1
                      │ │ └── minipass@3.1.6 deduped
                      │ ├─┬ tar@6.1.11
                      │ │ ├── chownr@2.0.0 deduped
                      │ │ ├── fs-minipass@2.1.0 deduped
                      │ │ ├── minipass@3.1.6 deduped
                      │ │ ├── minizlib@2.1.2 deduped
                      │ │ ├── mkdirp@1.0.4 deduped
                      │ │ └── yallist@4.0.0 deduped
                      │ ├── text-table@0.2.0
                      │ ├── tiny-relative-date@1.3.0
                      │ ├── treeverse@2.0.0
                      │ ├─┬ validate-npm-package-name@4.0.0
                      │ │ └─┬ builtins@5.0.1
                      │ │   └── semver@7.3.7 deduped
                      │ ├─┬ which@2.0.2
                      │ │ └── isexe@2.0.0
                      │ └─┬ write-file-atomic@4.0.1
                      │   ├── imurmurhash@0.1.4
                      │   └── signal-exit@3.0.7
                      ├── UNMET DEPENDENCY request@^2.88.2
                      ├── UNMET DEPENDENCY semver@^7.3.7
                      ├── UNMET DEPENDENCY suncalc2@^1.8.1
                      ├── UNMET DEPENDENCY typescript@^4.6.4
                      ├── UNMET DEPENDENCY virtual-tsc@^0.6.2
                      ├── UNMET OPTIONAL DEPENDENCY vm2@^3.9.9
                      └── UNMET DEPENDENCY wake_on_lan@^1.0.0
                      
                      npm ERR! missing: @iobroker/adapter-core@^2.6.0, required by iobroker.javascript@5.7.0
                      npm ERR! missing: @types/request@^2.48.8, required by iobroker.javascript@5.7.0
                      npm ERR! missing: coffee-compiler@^0.3.2, required by iobroker.javascript@5.7.0
                      npm ERR! missing: coffee-script@^1.12.7, required by iobroker.javascript@5.7.0
                      npm ERR! missing: jsonata@^1.8.6, required by iobroker.javascript@5.7.0
                      npm ERR! missing: jszip@^3.9.1, required by iobroker.javascript@5.7.0
                      npm ERR! missing: node-inspect@^2.0.0, required by iobroker.javascript@5.7.0
                      npm ERR! missing: node-schedule@2.1.0, required by iobroker.javascript@5.7.0
                      npm ERR! missing: request@^2.88.2, required by iobroker.javascript@5.7.0
                      npm ERR! missing: semver@^7.3.7, required by iobroker.javascript@5.7.0
                      npm ERR! missing: suncalc2@^1.8.1, required by iobroker.javascript@5.7.0
                      npm ERR! missing: typescript@^4.6.4, required by iobroker.javascript@5.7.0
                      npm ERR! missing: virtual-tsc@^0.6.2, required by iobroker.javascript@5.7.0
                      npm ERR! missing: wake_on_lan@^1.0.0, required by iobroker.javascript@5.7.0
                      pi@raspberrypi:/opt/iobroker/node_modules/iobroker.javascript $
                      
                      
                      mickym 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @Beowolf last edited by mickym

                        @beowolf Na ja schaut besser aus - aber nicht alles - aber das hat nun mit der Bibliothek nichts zu tun. der javascript-color-gradient schaut nun gut aus. Alles andere ist was von früher, aber bevor Du das node_modules Directory neu aufbaust - mach erst mal backup und mach ggf. einen eigenen Thread auf, wo Dir ggf- die Linux Gurus wie @thomas-braun besser helfen können.

                        Aber das javascript-color-gradient Modul ist jetzt sauber installiert und Du kannst es jetzt weiter verwenden. Wie gesagt die anderen UNMET DEPENDENCYs waren mit Sicherheit schon vorher da.

                        Jedenfalls hat das nichts mit der Thematik dieses Threads zu tun.

                        Thomas Braun B 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @mickym last edited by

                          npm@8.13.1
                          sieht jedenfalls mal wieder nach verhunzter nodeJS/npm Installation aus.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            Beowolf @mickym last edited by

                            @mickym

                            ok dann kümmere ich mich darum später.

                            Was ich jetzt aber nicht verstehe ist, wie bekomme ich die "Farbdaten" in den Datenpunkt von WLED rein?

                            mickym 1 Reply Last reply Reply Quote 0
                            • B
                              Beowolf @Thomas Braun last edited by

                              @thomas-braun sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

                              npm@8.13.1
                              sieht jedenfalls mal wieder nach verhunzter nodeJS/npm Installation aus.

                              Soll ich das wie in deinem Link machen?

                              https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @Beowolf last edited by mickym

                                @beowolf Nun Du schreibst doch sonst auch die Daten in Dein WLED um die Farben zu ändern. Also weiß nicht on Du das in den Punkt 0_HEX reinschreiben musst.

                                Ich bin kein Blockly Spezi - die Bibliothek gibt Dir ja nun ein Array zurück und das schreibst Du halt in den Datenpunkt um die Farben zu setzen - ggf- musst Du da halt noch Verzögerungen einbauen

                                1a9844d4-3776-42e9-8446-f2c47d633e0d-image.png

                                Aber zumindest sehe ich, dass nun aus dem Array die einzelnen Werte so gesetzt werden können. 😉 Die Warnung liegt natürlich daran, dass ich keinen korrekten Datenpunkt zum Steuern der Farbe eingegeben habe. 😉

                                Da musst Du die Blockly Spezis nun fragen, wie @paul53 oder @DJMarc75. Da ich meine Logik mit NodeRed mache - möchte ich das nicht weiter von meiner Seite vertiefen. Das Steuern der Farben über welche Datenpunkte (wie gesagt ich denke es wird seg.0.col.0_HEX) - aber das musst Du wissen - ich kenne den Adapter ja nicht. Ich habe nur versucht ein kleines Puzzleteilchen beizutragen.

                                Im Prinzip ist das weitere Vorgehen, ja das was @DJMarc75 beschrieben hat, musst Du wissen mit welchen Datenpunkten Du die Farben einstellst.

                                So ungefähr mit dem richtigen Datenpunkt würdest Du in 10 sek - den kompletten Farbverlauf von ROT nach Hellgelb simulieren.

                                @asgothian sagte in WLED - RGB Stripe - Farbe ändern und dimmen?:

                                @beowolf Ausgehend davon das der stripe in RGB angesteuert wird ist es nicht trivial diesen Übergang zu erzeugen, da sich die Werte nicht über eine einfache Funktion berechnen lassen.

                                Unter der Bedingung das du bei Aus anfängst kann der Folgende Weg funktionieren:

                                • du erzeugst dir eine Variable für die Farben (Farbdimmliste)
                                • du erzeugst dir eine Variable als Index (index)
                                • die Farbdimmliste initialisierst du mit dem Baustein "Liste erstellen mit." Für jede gewünschte Farbstufe brauchst du einen Wert (RGB), den du per Ausprobieren selber ermitteln musst.

                                In der Folge nutzt du ein ähnliches Konstrukt wie beim dimmen der Helligkeit, aber

                                • vor dem Intervall die Variable Index auf 0 setzen
                                • im Intervall: Index um 1 erhöhen
                                • Den RGB Datenpunkt mit "Aus liste "Farbdimmliste" nimm das "index" element" ansteuern
                                • Falls index = länge von farbdimmliste das Intervall anhalten.

                                Fertig.

                                A.

                                @Asgothian beschrieben hat. Mit der Bibliothek bekommst Du nun aber Deine Farbdimmliste und statt Ausprobieren, wird Dir diese Liste nun über diese Bibliothek zur Verfügung stellt.

                                B ? 2 Replies Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Beowolf last edited by

                                  @beowolf

                                  Mach 'nen eigenen Thread dazu auf, das ist OT hier.

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    Beowolf @mickym last edited by

                                    @mickym

                                    Vielen Dank für die Hilfe - Alles löpp. 😳 😳 😳

                                    1 Reply Last reply Reply Quote 1
                                    • B
                                      Beowolf @Thomas Braun last edited by

                                      @thomas-braun

                                      Habe ich
                                      https://forum.iobroker.net/topic/55895/npm-list-schaut-nicht-ganz-sauber-aus

                                      Kannst du mir da helfen?

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User @mickym last edited by

                                        @mickym

                                        vielleicht hilft dir das: ich habe mir ein Blockly für meine Gardenpools geschrieben, welche in zwei schritten zu einer zielfarbe dimmen.
                                        zuerst von schwarz zu farbe blau 100%
                                        und dann zur Zielfarbe gelb....

                                        e399ebb2-ecfb-4c78-929d-81543893e8fd-image.png

                                        vielleicht ist das, was du gesucht hast.

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          socke85 @Guest last edited by

                                          Oder das hier

                                          https://flows.nodered.org/node/node-red-contrib-light-transition

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          520
                                          Online

                                          32.0k
                                          Users

                                          80.4k
                                          Topics

                                          1.3m
                                          Posts

                                          7
                                          35
                                          2394
                                          Loading More Posts
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          The ioBroker Community 2014-2023
                                          logo