Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. LE-R.Kelly

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 17
    • Posts 110
    • Best 3
    • Groups 2

    LE-R.Kelly

    @LE-R.Kelly

    Starter

    3
    Reputation
    12
    Profile views
    110
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    LE-R.Kelly Follow
    Pro Starter

    Best posts made by LE-R.Kelly

    • RE: The id "enum.functions." is invalid. [gelöst]

      Vielen Dank 🙂 Die Sache mit der Bearbeitung der objects.json hat geklappt.

      VG
      Ronny

      posted in Error/Bug
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @thomas-braun sagte in nodejs is NOT correctly installed:

      ./iob_node_update

      👍 😀 👍

      Tausend Dank - bin auf 20.16.0

      Viele Grüße und noch eine schöne Nacht
      Ronny

      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: tint remote (Müller Licht) - xy in RGB oder HEX

      @le-r-kelly

      Hab es selbst hingekriegt. Ich hatte mich nie mit den Funktionen beschäftigt. Jetzt weiß ich, dass die Syntax falsch war. Falls es jemand benötigt, anbei das funktionierende Skript:

      let z = 1.0 - x - y;
      let Y = bri / 255.0; // Brightness of lamp
      let X = (Y / y) * x;
      let Z = (Y / y) * z;
      let r = X * 1.612 - Y * 0.203 - Z * 0.302;
      let g = -X * 0.509 + Y * 1.412 + Z * 0.066;
      let b = X * 0.026 - Y * 0.072 + Z * 0.962;
          r = r <= 0.0031308 ? 12.92 * r : (1.0 + 0.055) * Math.pow(r, (1.0 / 2.4)) - 0.055;
          g = g <= 0.0031308 ? 12.92 * g : (1.0 + 0.055) * Math.pow(g, (1.0 / 2.4)) - 0.055;
          b = b <= 0.0031308 ? 12.92 * b : (1.0 + 0.055) * Math.pow(b, (1.0 / 2.4)) - 0.055;
          maxValue = Math.max(r,g,b);
          r /= maxValue;
          g /= maxValue;
          b /= maxValue;
          r = r * 255;   if (r < 0) { r = 255 };
          g = g * 255;   if (g < 0) { g = 255 };
          b = b * 255;   if (b < 0) { b = 255 };
          r = Math.round(r).toString(16);
          g = Math.round(g).toString(16);
          b = Math.round(b).toString(16);
          if (r.length < 2)
              r="0"+r;        
          if (g.length < 2)
              g="0"+g;        
          if (b.length < 2)
              b="0"+r;        
          rgb = "#"+r+g+b;
      return rgb       
      

      24788b99-5c14-421c-8cdf-690b0c0c553f-image.png

      Grüße
      Ronny

      posted in Blockly
      L
      LE-R.Kelly

    Latest posts made by LE-R.Kelly

    • RE: tint remote (Müller Licht) - xy in RGB oder HEX

      @le-r-kelly

      Hab es selbst hingekriegt. Ich hatte mich nie mit den Funktionen beschäftigt. Jetzt weiß ich, dass die Syntax falsch war. Falls es jemand benötigt, anbei das funktionierende Skript:

      let z = 1.0 - x - y;
      let Y = bri / 255.0; // Brightness of lamp
      let X = (Y / y) * x;
      let Z = (Y / y) * z;
      let r = X * 1.612 - Y * 0.203 - Z * 0.302;
      let g = -X * 0.509 + Y * 1.412 + Z * 0.066;
      let b = X * 0.026 - Y * 0.072 + Z * 0.962;
          r = r <= 0.0031308 ? 12.92 * r : (1.0 + 0.055) * Math.pow(r, (1.0 / 2.4)) - 0.055;
          g = g <= 0.0031308 ? 12.92 * g : (1.0 + 0.055) * Math.pow(g, (1.0 / 2.4)) - 0.055;
          b = b <= 0.0031308 ? 12.92 * b : (1.0 + 0.055) * Math.pow(b, (1.0 / 2.4)) - 0.055;
          maxValue = Math.max(r,g,b);
          r /= maxValue;
          g /= maxValue;
          b /= maxValue;
          r = r * 255;   if (r < 0) { r = 255 };
          g = g * 255;   if (g < 0) { g = 255 };
          b = b * 255;   if (b < 0) { b = 255 };
          r = Math.round(r).toString(16);
          g = Math.round(g).toString(16);
          b = Math.round(b).toString(16);
          if (r.length < 2)
              r="0"+r;        
          if (g.length < 2)
              g="0"+g;        
          if (b.length < 2)
              b="0"+r;        
          rgb = "#"+r+g+b;
      return rgb       
      

      24788b99-5c14-421c-8cdf-690b0c0c553f-image.png

      Grüße
      Ronny

      posted in Blockly
      L
      LE-R.Kelly
    • tint remote (Müller Licht) - xy in RGB oder HEX

      Hallo,
      ich habe eine Tint dim remote control in mein System eingebunden und verzweifle gerade an der Farbausgabe. Die Fernbedienung gibt die Farbe als "colorx" und "colory" ausgegeben. Die beiden Werte bewegen sich jeweils im 10.000er Bereich.
      Ich versuche das nun irgendwie in HEX umzurechnen, komme da aber nicht weiter. Ich habe unter [[https://stackoverflow.com/questions/22894498/philips-hue-convert-xy-from-api-to-hex-or-rgb](Link Adresse)](Link Adresse) folgenden Code gefunden und als "JS-Funktion mit Ergebnis" versucht einzubinden:

      function xyBriToRgb(x, y, bri)
      {
          z = 1.0 - x - y;
      
          Y = bri / 255.0; // Brightness of lamp
          X = (Y / y) * x;
          Z = (Y / y) * z;
          r = X * 1.612 - Y * 0.203 - Z * 0.302;
          g = -X * 0.509 + Y * 1.412 + Z * 0.066;
          b = X * 0.026 - Y * 0.072 + Z * 0.962;
          r = r <= 0.0031308 ? 12.92 * r : (1.0 + 0.055) * Math.pow(r, (1.0 / 2.4)) - 0.055;
          g = g <= 0.0031308 ? 12.92 * g : (1.0 + 0.055) * Math.pow(g, (1.0 / 2.4)) - 0.055;
          b = b <= 0.0031308 ? 12.92 * b : (1.0 + 0.055) * Math.pow(b, (1.0 / 2.4)) - 0.055;
          maxValue = Math.max(r,g,b);
          r /= maxValue;
          g /= maxValue;
          b /= maxValue;
          r = r * 255;   if (r < 0) { r = 255 };
          g = g * 255;   if (g < 0) { g = 255 };
          b = b * 255;   if (b < 0) { b = 255 };
      
          r = Math.round(r).toString(16);
          g = Math.round(g).toString(16);
          b = Math.round(b).toString(16);
      
          if (r.length < 2)
              r="0"+r;        
          if (g.length < 2)
              g="0"+g;        
          if (b.length < 2)
              b="0"+r;        
          rgb = "#"+r+g+b;
      
          return rgb;             
      }
      

      bc6c6fcf-7485-4296-8d5d-70907592f4a5-image.png

      Im Blockly rechne ich den colorx und colory Wert noch durch 100.000, da das Script für HUE ist und von dort Werte mit 0,.. kommen.

      f3e29fa0-f0c8-43a1-b0d0-9d913908faaa-image.png

      Ich erhalte aber nur ein undefined, komme aber auch ehrlich gesagt mit der Debug-Funktion nicht klar.

      Daher die Frage, ob mich jemand auf die richtigen Weg bzgl. des geschilderten Fehlers briungen kann oder eine andere Idee hat, wie ich XY in HEX konvertieren kann.

      Danke

      Viele Grüße
      Ronny

      posted in Blockly
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @thomas-braun sagte in nodejs is NOT correctly installed:

      ./iob_node_update

      👍 😀 👍

      Tausend Dank - bin auf 20.16.0

      Viele Grüße und noch eine schöne Nacht
      Ronny

      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @thomas-braun

      Das sieht dann so aus:

      pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_update
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100    14  100    14    0     0     35      0 --:--:-- --:--:-- --:--:--    35
      pi@raspberrypi:~ $ chmod 744 iob_node_update
      pi@raspberrypi:~ $ ./iob_node_update
      ./iob_node_update: line 1: 404:: command not found
      
      
      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @thomas-braun

      Kommt leider nix dabei raus:

      pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_update
      chmod 744 iob_node_update
      ./iob_node_update
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100    14  100    14    0     0     39      0 --:--:-- --:--:-- --:--:--    39
      ./iob_node_update: line 1: 404:: command not found
      pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_updatechmod 744 iob_node_update
      ./iob_node_update
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100    14  100    14    0     0     42      0 --:--:-- --:--:-- --:--:--    42
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:--  0:02:11 --:--:--     0
      curl: (28) Failed to connect to 0.0.2.232 port 80 after 131060 ms: Couldn't connect to server
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: iob_node_update
      ./iob_node_update: line 1: 404:: command not found
      
      
      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @tt-tom
      Sorry für das Missverständnis. Der Unterschied war mir bewusst, hab nur beim Übertragen der Angaben nicht aufgepasst 🤦‍♂️

      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: nodejs is NOT correctly installed

      @thomas-braun sagte in nodejs is NOT correctly installed:

      iob nodejs-update

      Hier der Lauf:

      ioBroker nodejs fixer 2024-05-23
      
      Recommended nodejs-version is: 20.16.0
      Checking your installation now. Please be patient!
      
      Your current setup is:
      /usr/bin/nodejs         v18.19.0
      /usr/bin/node           v18.19.0
      /home/iobroker/.nodejs-update.sh: line 146: npm: command not found
      
      /home/iobroker/.nodejs-update.sh: line 147: npx: command not found
      
      /home/iobroker/.nodejs-update.sh: line 168: npm: command not found
      /home/iobroker/.nodejs-update.sh: line 169: npx: command not found
      
      *** nodejs is NOT correctly installed ***
      We found these nodejs versions available for installation:
      
      nodejs:
        Installed: 18.19.0+dfsg-6~deb12u2
        Candidate: 20.16.0-1nodesource1
        Version table:
           20.16.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.15.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.15.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.14.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.13.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.13.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.12.2-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.12.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.12.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.11.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.11.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.10.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.9.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.8.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.8.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.7.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.6.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.6.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.5.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.5.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.4.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.3.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.3.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.2.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.1.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
           20.0.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
       *** 18.19.0+dfsg-6~deb12u2 500
              500 http://deb.debian.org/debian bookworm/main arm64 Packages
              100 /var/lib/dpkg/status
           18.19.0+dfsg-6~deb12u1 500
              500 http://security.debian.org/debian-security bookworm-security/main arm64 Packages
      
      
      
      Your nodejs-Installation seems to be faulty. Shall we try to fix it?
      Press <y> to continue or any other key to quit
      
      Fixing your nodejs setup
      *** Deleting  ***
      rm: cannot remove '': No such file or directory
      *** Deleting  ***
      rm: cannot remove '': No such file or directory
      
      Wrong paths have been fixed. Run 'iob diag' or 'iob nodejs-update' again to check if your installation is fine now
      
      You are running nodejs v18.19.0. Do you want to install recommended version 20.16.0?
      
      Press <y> to continue or any other key to quit
      Trying to fix your installation now. Please be patient.
      Waiting for ioBroker to shut down - Give me a minute...
      ############################################################
      
      *** These repos are active on your system:
      Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
      Hit:2 http://deb.debian.org/debian bookworm InRelease
      Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
      Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
      Get:5 http://security.debian.org/debian-security bookworm-security/main Sources [105 kB]
      Get:6 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [167 kB]
      Get:7 http://security.debian.org/debian-security bookworm-security/main armhf Packages [163 kB]
      Fetched 539 kB in 1s (401 kB/s)
      Reading package lists... Done
      
      *** Installing ca-certificates, curl and gnupg, just in case they are missing.
      
      *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
      
      deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
      Package: nodejs
      Pin: origin deb.nodesource.com
      Pin-Priority: 1001
      
      *** These repos are active after the adjustments:
      Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
      Hit:2 http://deb.debian.org/debian bookworm InRelease
      Hit:3 http://archive.raspberrypi.org/debian bookworm InRelease
      Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
      Get:5 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
      Get:6 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages [8731 B]
      Get:7 https://deb.nodesource.com/node_20.x nodistro/main armhf Packages [8776 B]
      Fetched 29.6 kB in 2s (17.5 kB/s)
      Reading package lists... Done
      
      Installing nodejs now!
      
      E: Broken packages
      Installing the nodejs!
      E: Broken packages
      
      We tried our best to fix your nodejs. Please run iob diag again to verify.
      
      *** RESTARTING ioBroker NOW! ***
       Please refresh or restart your browser in a few moments.
      
      
      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • nodejs is NOT correctly installed
      • Adaptername: js.controller
      • js-controller Version: 18.19.0
      • Admin Version: 7.0.22
      • Hardwaresystem: Pi4 .
      • Arbeitsspeicher: 4 GB
      • Festplattenart: SSD
      • Betriebssystem: 12 Bookworm
      • Nodejs-Version: 18.19.0
      • NPM-Version: ./.
      • Installationsart: Skript
      • Image, Docker genutzt: Nein
      ======================= SUMMARY =======================
                              v.2024-05-22
      
      
       Static hostname: raspberrypi
             Icon name: computer
      Operating System: Debian GNU/Linux 12 (bookworm)
                Kernel: Linux 6.1.21-v8+
          Architecture: arm64
      
      Installation:           native
      Kernel:                 aarch64
      Userland:               64 bit
      Timezone:               Europe/Berlin (CEST, +0200)
      User-ID:                1000
      Display-Server:         false
      Boot Target:            multi-user.target
      
      Pending OS-Updates:     0
      Pending iob updates:    4
      
      Nodejs-Installation:
      /usr/bin/nodejs         v18.19.0
      /usr/bin/node           v18.19.0
      npm:                    N/A
      npx:                    N/A
      corepack:       N/A
      
      Recommended versions are nodejs 20.16.0 and npm 10.8.1
      *** nodejs is NOT correctly installed ***
      Wrong installation path detected. This needs to be fixed.
      
      Please execute
      iobroker nodejs-update
      to fix these errors.
      
      MEMORY:
                     total        used        free      shared  buff/cache   available
      Mem:            4.0G        2.2G        391M        1.2M        1.5G        1.8G
      Swap:           209M          0B        209M
      Total:          4.2G        2.2G        600M
      
      Active iob-Instances:   27
      Upgrade policy: none
      
      ioBroker Core:          js-controller           6.0.9
                              admin                   7.0.22
      
      ioBroker Status:        iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Status admin and web instance:
      + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      Objects:                16164
      States:                 14586
      
      Size of iob-Database:
      
      35M     /opt/iobroker/iobroker-data/objects.jsonl
      16M     /opt/iobroker/iobroker-data/states.jsonl
      
      
      
      =================== END OF SUMMARY ====================
      
      
      

      Hallo, wie es der Name schon verrät...

      iob fix
      iob nodejs-update
      

      laufen durch und vermelden (soweit ich das sehe), dass alles gefixt wurde und der aktuellste js.Controller installiert wurden. Tatsächlich passiert ist aber nichts.

      Im Diag steht ja "Wrong installation path detected. This needs to be fixed.". Das müsste doch eigentlich iob fix erledigen, oder?

      Ich bin nicht wirklich firm auf der Konsole und will daher nicht irgendwelche Befehle verwenden, welche man in den Foren findet. Kann mir jemand helfen versuchen zu verstehen, wo das Problem liegt und wie man es beheben kann?

      Danke

      Grüße
      Ronny

      posted in Pflege des Betriebssystems
      L
      LE-R.Kelly
    • RE: Shelly Plus 1PM - BLE-Daten per MQTT an ioBroker

      @66er

      Hi, kannst Du mir mal bitte Dein shelly-Skript zur Verfügung stellen?
      Ich stelle mich irgendwie zu blöd an und kriege keine Daten an den MQTT-Adapter übertragen.

      Danke
      Ronny

      posted in Skripten / Logik
      L
      LE-R.Kelly
    • RE: jarvis v3.0.0 - just another remarkable vis

      @mcu
      Hat super funktioniert, Danke nochmal 👍 😊 👍

      https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/styles/statehtml#statehtml-zentrieren
      Kann man das auch vertikal zentrieren? Ich habe mich mal an https://kulturbanause.de/blog/text-mit-css-vertikal-zentrieren/ orientiert, kam aber nicht zum Ziel.

      .jarvis-widget-9cc9e479-2e16-4061-bdfe-f0c9ff4f5c04 .jarvis-StateHTML {
      	display: flex;
      	flex-direction: column;
      	align-items: center;
      	justify-content: center;
      	text-align: center;
      

      Danke

      posted in Tester
      L
      LE-R.Kelly
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo