Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. LevyKo

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 49
    • Best 3
    • Groups 1

    LevyKo

    @LevyKo

    4
    Reputation
    40
    Profile views
    49
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Bottrop Age 54

    LevyKo Follow
    Starter

    Best posts made by LevyKo

    • RE: Node.js sauber neu installieren?

      So... er hatte einiges zu deinstallieren. "iob diag" sagt nun, dass alles in Ordnung sei und auch die ganzen überflüssigen Pakete sind nun weg.

      Ein Hoch auf dieses Script!

      Vielen Dank und viele Grüße
      Levy

      posted in Installation
      LevyKo
      LevyKo
    • RE: Adapter Admin 4.1.7 - Probleme mit Sonderzeichen

      @apollon77 Done! 👍

      posted in Error/Bug
      LevyKo
      LevyKo
    • RE: [Gelöst] Adapter Smartmeter per ser2net und socat

      Das Problem ist gelöst!

      Dies ist das Device oder besser gesagt der Symlink, welcher von "socat" angelegt wird:

      lrwxrwxrwx  1 root root          10 Sep  1 14:53 ttyVSP0 -> /dev/pts/1
      

      Folgt man dem Symlink, kommt das dabei heraus:

      crw--w----  1 root tty  136, 1 Sep  1 14:53 1
      

      Da ioBroker unter dem Benutzer iobroker läuft, hat der Smartmeter-Adapter also gar keine Möglichkeit, das serielle Device anzusprechen.

      Gegenprobe: Auf der Konsole als root (oder per sudo) den folgenden Befehl ausführen. Dieser sollte den Smartmeter-Adapter starten, die Datenpunkte im ioBroker anlegen und natürlich auch die Werte aktualisieren.

      node smartmeter.js --force --logs
      

      Um die Berechtigungen dahingehend anzupassen, dass auch ioBroker auf das Device zugreifen darf, kann sollte man direkt ein chmod auf /dev/pts/1 ausführen und danach die Datei /etc/fstab anpassen. Nach Anpassung der Datei werden die entsprechenden Recht direkt bei Systemstart eingetragen bzw. die Devices werden direkt mit den richtigen Rechten angelegt.

      Von nun an funktioniert der Smartmeter-Adapter einwandfrei.

      Viele Grüße
      Levy

      posted in ioBroker Allgemein
      LevyKo
      LevyKo

    Latest posts made by LevyKo

    • RE: Fehler bei httpGet(), aber kein Fehlercode

      @homoran
      Ja, das ist nichts geheimes. Kann sich jeder dort einen Token für die API generieren.

      @Codierknecht
      Nehme ich eine andere URL (z. B. http://www.aws32.de/) funktioniert alles. (Das ist nur eine meiner leeren Domains)

      posted in JavaScript
      LevyKo
      LevyKo
    • RE: Fehler bei httpGet(), aber kein Fehlercode

      @codierknecht
      Dann kommt bei mir dies hier:
      Bildschirmfoto 2025-01-28 um 14.45.18.png

      posted in JavaScript
      LevyKo
      LevyKo
    • Fehler bei httpGet(), aber kein Fehlercode

      Hallo zusammen,

      und nochmals ich 😊

      Im Zuge der Aktualisierungen habe ich nun ein Script von Axios auf httpGet umgestellt und erhalte einen Fehler, der mir nicht ganz klar ist. Rufe ich das Beispiel aus der httpGet-Doku auf, funktioniert es einwandfrei. Sobald ich aber die URL auf meine umstelle, erhalte ich einen Fehler. Allerdings ist der Fehlercode leer.

      Mein Script (ganz simpel):

      httpGet('http://api.waqi.info/feed/Bottrop/?token=425d93df32e9d5805de3db8179da139ffa55616b', (err, response) => {
          if (!err) {
              console.log(response.statusCode);
              console.log(response.data);
          } else {
              console.error(err);
          }
      });
      

      Die Fehlermeldung im Log:

      script.js.common.Info_Luftdaten: httpGet(url=http://api.waqi.info/feed/Bottrop/?token=425d93df32e9d5805de3db8179da139ffa55616b, error=)
      

      Die URL kann man im Browser normal aufrufen und sie liefert dort folgendes zurück:

      {"status":"ok","data":{"aqi":22,"idx":6076,"attributions":[{"url":"https://www.lanuv.nrw.de/luft/luft.htm","name":"LANUV - State Agency for Nature, Environment and Consumer Protection of North Rhine Westphalia (Landesamt für Natur, Umwelt und Verbraucherschutz NRW)","logo":"de-lanuv.png"},{"url":"http://www.eea.europa.eu/themes/air/","name":"European Environment Agency","logo":"Europe-EEA.png"},{"url":"https://waqi.info/","name":"World Air Quality Index Project"}],"city":{"geo":[51.525955,6.97688],"name":"Bottrop-Welheim, Germany","url":"https://aqicn.org/city/germany/nrw/bottrop-welheim","location":""},"dominentpol":"o3","iaqi":{"h":{"v":62},"no2":{"v":12},"o3":{"v":22},"p":{"v":993.7},"pm10":{"v":9},"pm25":{"v":20},"so2":{"v":21.1},"t":{"v":10},"w":{"v":7},"wg":{"v":19}},"time":{"s":"2025-01-28 13:00:00","tz":"+01:00","v":1738069200,"iso":"2025-01-28T13:00:00+01:00"},"forecast":{"daily":{"o3":[{"avg":12,"day":"2025-01-28","max":14,"min":11},{"avg":8,"day":"2025-01-29","max":11,"min":5},{"avg":4,"day":"2025-01-30","max":8,"min":1},{"avg":2,"day":"2025-01-31","max":5,"min":1},{"avg":3,"day":"2025-02-01","max":8,"min":1},{"avg":1,"day":"2025-02-02","max":1,"min":1}],"pm10":[{"avg":5,"day":"2025-01-28","max":7,"min":5},{"avg":7,"day":"2025-01-29","max":9,"min":5},{"avg":10,"day":"2025-01-30","max":17,"min":7},{"avg":15,"day":"2025-01-31","max":21,"min":7},{"avg":16,"day":"2025-02-01","max":26,"min":9},{"avg":25,"day":"2025-02-02","max":25,"min":23}],"pm25":[{"avg":10,"day":"2025-01-28","max":14,"min":9},{"avg":13,"day":"2025-01-29","max":16,"min":9},{"avg":21,"day":"2025-01-30","max":51,"min":13},{"avg":41,"day":"2025-01-31","max":56,"min":15},{"avg":38,"day":"2025-02-01","max":58,"min":22},{"avg":58,"day":"2025-02-02","max":58,"min":57}],"uvi":[{"avg":0,"day":"2025-01-28","max":1,"min":0},{"avg":0,"day":"2025-01-29","max":0,"min":0},{"avg":0,"day":"2025-01-30","max":0,"min":0},{"avg":0,"day":"2025-01-31","max":1,"min":0},{"avg":0,"day":"2025-02-01","max":1,"min":0},{"avg":0,"day":"2025-02-02","max":0,"min":0}]}},"debug":{"sync":"2025-01-28T22:22:39+09:00"}}}
      

      Hat da jemand einen Tip für mich, wie ich den eigentlichen Fehler erhalte?

      Viele Grüße
      Levy

      posted in JavaScript
      LevyKo
      LevyKo
    • RE: Node.js sauber neu installieren?

      So... er hatte einiges zu deinstallieren. "iob diag" sagt nun, dass alles in Ordnung sei und auch die ganzen überflüssigen Pakete sind nun weg.

      Ein Hoch auf dieses Script!

      Vielen Dank und viele Grüße
      Levy

      posted in Installation
      LevyKo
      LevyKo
    • RE: Node.js sauber neu installieren?

      Ah, ok... Ich habe "iob nodejs-update 20" gerade angestoßen und nun ist er fleißig dabei, alles "node-"-Gedönse zu deinstallieren. Supi 👍

      Das dauert jetzt erstmal. Ich berichte, ob alles geklappt hat 🤗

      Bis hierhin schon mal vielen Dank für die Hilfe!

      Viele Grüße
      Levy

      posted in Installation
      LevyKo
      LevyKo
    • RE: Node.js sauber neu installieren?

      Das node.js hatte ich nach dem Upgrade des Systems selbst installiert *dummerfehler*. Viel schlimmer ist, dass ich davor auch noch ein "sudo apt install node" rausgejagt habe *nochdümmererfehler*. Da frage ich mich jetzt schon, wie ich den ganzen Krempel, den er dadurch installiert hat, wieder wegbekomme.

      Viele Grüße
      Levy

      posted in Installation
      LevyKo
      LevyKo
    • RE: Node.js sauber neu installieren?

      Hier ist der Output von "iob diag":

      ========== Start marking the full check here ===========
      
      Script v.2024-10-19
      
      *** BASE SYSTEM ***
       Static hostname: ioBroker
             Icon name: computer-vm
               Chassis: vm
        Virtualization: kvm
      Operating System: Debian GNU/Linux 12 (bookworm)
                Kernel: Linux 6.1.0-30-amd64
          Architecture: x86-64
       Hardware Vendor: QEMU
        Hardware Model: Standard PC _i440FX + PIIX, 1996_
      Firmware Version: Virtualization-2.5.1-11303-200428-0-gfff70e7
      OS is similar to: 
      
      model name	: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
      Docker          : false
      Virtualization  : kvm
      Kernel          : x86_64
      Userland        : 64 bit
      
      Systemuptime and Load:
       11:01:25 up 15:44,  2 users,  load average: 0.84, 1.03, 1.15
      CPU threads: 2
      
      
      *** LIFE CYCLE STATUS ***
      Operating System is the current Debian stable version codenamed 'bookworm'!
      
      *** TIME AND TIMEZONES ***
                     Local time: Tue 2025-01-28 11:01:25 CET
                 Universal time: Tue 2025-01-28 10:01:25 UTC
                       RTC time: Tue 2025-01-28 10:01:25
                      Time zone: Europe/Berlin (CET, +0100)
      System clock synchronized: yes
                    NTP service: active
                RTC in local TZ: no
      
      *** Users and Groups ***
      User that called 'iob diag':
      dkocks
      HOME=/home/dkocks
      GROUPS=dkocks dialout cdrom floppy sudo audio dip video plugdev netdev iobroker
      
      User that is running 'js-controller':
      iobroker
      HOME=/home/iobroker
      GROUPS=iobroker tty dialout audio video plugdev
      
      *** DISPLAY-SERVER SETUP ***
      Display-Server: false
      Desktop: 	
      Terminal: 	tty
      
      System is booting into 'graphical.target'. Usually a server is running in 'multi-user.target'. Please set BootTarget to 'multi-user.target' or run 'iobroker fix'
      
      *** MEMORY ***
                     total        used        free      shared  buff/cache   available
      Mem:            5.2G        2.3G        1.9G        602K        1.3G        2.9G
      Swap:           1.1G          0B        1.1G
      Total:          6.2G        2.3G        3.0G
      
      Active iob-Instances: 	17
      
               4917 M total memory
               2175 M used memory
                502 M active memory
               2298 M inactive memory
               1793 M free memory
                174 M buffer memory
               1059 M swap cache
               1023 M total swap
                  0 M used swap
               1023 M free swap
      
      *** top - Table Of Processes  ***
      top - 11:01:26 up 15:44,  2 users,  load average: 1.10, 1.08, 1.16
      Tasks: 115 total,   1 running, 114 sleeping,   0 stopped,   0 zombie
      %Cpu(s):  0.0 us, 50.0 sy,  0.0 ni,  0.0 id, 50.0 wa,  0.0 hi,  0.0 si,  0.0 st 
      MiB Mem :   4917.2 total,   1793.9 free,   2175.5 used,   1233.9 buff/cache     
      MiB Swap:   1024.0 total,   1024.0 free,      0.0 used.   2741.6 avail Mem 
      
      *** FAILED SERVICES ***
      
        UNIT LOAD ACTIVE SUB DESCRIPTION
      0 loaded units listed.
      
      
      *** DMESG CRITICAL ERRORS ***
      No critical errors detected
      
      *** FILESYSTEM ***
      Filesystem     Type      Size  Used Avail Use% Mounted on
      udev           devtmpfs  2.4G     0  2.4G   0% /dev
      tmpfs          tmpfs     492M  596K  492M   1% /run
      /dev/sda1      ext4       49G  9.6G   37G  21% /
      tmpfs          tmpfs     2.5G     0  2.5G   0% /dev/shm
      tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
      tmpfs          tmpfs     492M     0  492M   0% /run/user/1000
      
      Messages concerning ext4 filesystem in dmesg:
      [Mon Jan 27 19:16:38 2025] EXT4-fs (sda1): mounted filesystem with ordered data mode. Quota mode: none.
      [Mon Jan 27 19:16:44 2025] EXT4-fs (sda1): re-mounted. Quota mode: none.
      
      Show mounted filesystems:
      TARGET SOURCE    FSTYPE OPTIONS
      /      /dev/sda1 ext4   rw,relatime,errors=remount-ro
      
      Files in neuralgic directories:
      
      /var:
      2.0G	/var/
      1.4G	/var/log/journal/e9ba7cedd6a34816acc2144105aa5f75
      1.4G	/var/log/journal
      1.4G	/var/log
      434M	/var/cache
      
      Hint: You are currently not seeing messages from other users and the system.
            Users in groups 'adm', 'systemd-journal' can see all messages.
            Pass -q to turn off this notice.
      Archived and active journals take up 255.2M in the file system.
      
      /opt/iobroker/backups:
      4.0K	/opt/iobroker/backups/
      
      /opt/iobroker/iobroker-data:
      1.1G	/opt/iobroker/iobroker-data/
      978M	/opt/iobroker/iobroker-data/files
      617M	/opt/iobroker/iobroker-data/files/javascript.admin
      560M	/opt/iobroker/iobroker-data/files/javascript.admin/static
      558M	/opt/iobroker/iobroker-data/files/javascript.admin/static/js
      
      The five largest files in iobroker-data are:
      38M	/opt/iobroker/iobroker-data/files/iot.admin/static/js/main.d3d286bd.js.map
      26M	/opt/iobroker/iobroker-data/objects.jsonl
      24M	/opt/iobroker/iobroker-data/files/web.admin/static/js/main.135279a0.js.map
      24M	/opt/iobroker/iobroker-data/files/scenes.admin/static/js/main.c9369f6c.js.map
      8.8M	/opt/iobroker/iobroker-data/files/iot.admin/static/js/main.d3d286bd.js
      
      USB-Devices by-id:
      USB-Sticks -  Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id':
      
      /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2681058-if00
      
      *** NodeJS-Installation ***
      
      /usr/bin/nodejs 	v18.19.0
      /usr/bin/node 		v18.19.0
      /usr/bin/npm 		9.2.0
      /usr/bin/npx 		9.2.0
      corepack: 	N/A
      *** nodejs is NOT correctly installed ***
      
      nodejs:
        Installed: 18.19.0+dfsg-6~deb12u2
        Candidate: 18.19.0+dfsg-6~deb12u2
        Version table:
       *** 18.19.0+dfsg-6~deb12u2 500
              500 http://deb.debian.org/debian bookworm/main amd64 Packages
              100 /var/lib/dpkg/status
           18.19.0+dfsg-6~deb12u1 500
              500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
           18.17.1-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x bookworm/main amd64 Packages
      
      Temp directories causing deletion problem: 0
      No problems detected
      
      Errors in npm tree: 0
      No problems detected
      
      *** ioBroker-Installation ***
      
      ioBroker Status
      iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Hosts:
      ioBroker            ioBroker (version: 7.0.6, hostname: ioBroker      , alive, uptime: 1163)
      
      Core adapters versions
      js-controller: 	7.0.6
      admin: 		7.4.10
      javascript: 	8.8.3
      
      nodejs modules from github: 	0
      
      Adapter State
      + system.adapter.admin.0                  : admin                 : ioBroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.backitup.0               : backitup              : ioBroker                                 -  enabled
        system.adapter.daswetter.0              : daswetter             : ioBroker                                 -  enabled
      + system.adapter.deconz.0                 : deconz                : ioBroker                                 -  enabled, port: 80
      + system.adapter.discovery.0              : discovery             : ioBroker                                 -  enabled
        system.adapter.dwd.0                    : dwd                   : ioBroker                                 -  enabled
      + system.adapter.hm-rega.0                : hm-rega               : ioBroker                                 -  enabled
      + system.adapter.hm-rpc.0                 : hm-rpc                : ioBroker                                 -  enabled, port: 0
        system.adapter.hue.0                    : hue                   : ioBroker                                 - disabled, port: 443
        system.adapter.ical.0                   : ical                  : ioBroker                                 -  enabled
      + system.adapter.influxdb.0               : influxdb              : ioBroker                                 -  enabled, port: 8086
      + system.adapter.iot.0                    : iot                   : ioBroker                                 -  enabled
      + system.adapter.javascript.0             : javascript            : ioBroker                                 -  enabled
      + system.adapter.ping.0                   : ping                  : ioBroker                                 -  enabled
      + system.adapter.pushover.0               : pushover              : ioBroker                                 -  enabled
      + system.adapter.scenes.0                 : scenes                : ioBroker                                 -  enabled
      + system.adapter.viessmannapi.0           : viessmannapi          : ioBroker                                 -  enabled
        system.adapter.vis-google-fonts.0       : vis-google-fonts      : ioBroker                                 -  enabled
        system.adapter.vis-icontwo.0            : vis-icontwo           : ioBroker                                 -  enabled
      + system.adapter.vis-inventwo.0           : vis-inventwo          : ioBroker                                 -  enabled
        system.adapter.vis-map.0                : vis-map               : ioBroker                                 -  enabled
        system.adapter.vis-timeandweather.0     : vis-timeandweather    : ioBroker                                 -  enabled
        system.adapter.vis.0                    : vis                   : ioBroker                                 -  enabled
      + system.adapter.web.0                    : web                   : ioBroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      + system.adapter.yahka.0                  : yahka                 : ioBroker                                 -  enabled
      
      + instance is alive
      
      Enabled adapters with bindings
      + system.adapter.admin.0                  : admin                 : ioBroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.deconz.0                 : deconz                : ioBroker                                 -  enabled, port: 80
      + system.adapter.hm-rpc.0                 : hm-rpc                : ioBroker                                 -  enabled, port: 0
      + system.adapter.influxdb.0               : influxdb              : ioBroker                                 -  enabled, port: 8086
      + system.adapter.web.0                    : web                   : ioBroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      ioBroker-Repositories
      ┌─────────┬──────────┬─────────────────────────────────────────────────────────┬──────────────┐
      │ (index) │   name   │                           url                           │ auto upgrade │
      ├─────────┼──────────┼─────────────────────────────────────────────────────────┼──────────────┤
      │    0    │ 'stable' │    'http://download.iobroker.net/sources-dist.json'     │    false     │
      │    1    │  'beta'  │ 'http://download.iobroker.net/sources-dist-latest.json' │    false     │
      └─────────┴──────────┴─────────────────────────────────────────────────────────┴──────────────┘
      
      Active repo(s): stable
      Upgrade policy: none
      
      Installed ioBroker-Instances
      Used repository: stable
      Adapter    "admin"        : 7.4.10   , installed 7.4.10
      Adapter    "backitup"     : 3.0.31   , installed 3.0.31
      Adapter    "daswetter"    : 3.2.2    , installed 3.2.2
      Adapter    "deconz"       : 1.6.4    , installed 1.6.4
      Adapter    "discovery"    : 5.0.0    , installed 5.0.0
      Adapter    "dwd"          : 2.8.5    , installed 2.8.5
      Adapter    "hm-rega"      : 5.1.0    , installed 5.1.0
      Adapter    "hm-rpc"       : 2.0.2    , installed 2.0.2
      Adapter    "hue"          : 3.13.1   , installed 3.13.1
      Adapter    "ical"         : 1.16.1   , installed 1.16.1
      Adapter    "influxdb"     : 4.0.2    , installed 4.0.2
      Adapter    "iot"          : 3.3.0    , installed 3.3.0
      Adapter    "javascript"   : 8.8.3    , installed 8.8.3
      Controller "js-controller": 7.0.6    , installed 7.0.6
      Adapter    "ping"         : 1.6.2    , installed 1.6.2
      Adapter    "pushover"     : 4.1.0    , installed 4.1.0
      Adapter    "scenes"       : 3.2.3    , installed 3.2.3
      Adapter    "simple-api"   : 2.8.0    , installed 2.8.0
      Adapter    "socketio"     : 6.7.1    , installed 6.7.1
      Adapter    "viessmannapi" : 2.3.0    , installed 2.3.0
      Adapter    "vis"          : 1.5.6    , installed 1.5.6
      Adapter    "vis-google-fonts": 1.0.4 , installed 1.0.4
      Adapter    "vis-icontwo"  : 1.11.0   , installed 1.11.0
      Adapter    "vis-inventwo" : 3.3.4    , installed 3.3.4
      Adapter    "vis-map"      : 1.1.2    , installed 1.1.2
      Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
      Adapter    "web"          : 6.2.5    , installed 6.2.5
      Adapter    "ws"           : 2.6.2    , installed 2.6.2
      Adapter    "yahka"        : 1.0.3    , installed 1.0.3
      
      Objects and States
      Please stand by - This may take a while
      Objects: 	10842
      States: 	8885
      
      *** OS-Repositories and Updates ***
      Hit:1 http://phoscon.de/apt/deconz bookworm InRelease
      Hit:2 http://deb.debian.org/debian bookworm InRelease
      Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
      Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
      Hit:5 http://deb.debian.org/debian bullseye-backports InRelease
      Hit:6 https://repos.influxdata.com/debian stable InRelease
      Hit:7 https://apt.grafana.com stable InRelease
      Hit:8 https://deb.nodesource.com/node_18.x bookworm InRelease
      Reading package lists...
      Pending Updates: 0
      
      *** Listening Ports ***
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          14838      620/sshd: /usr/sbin 
      tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          12080      1/init              
      tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1000       16247      555/deCONZ          
      tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      1000       16641      555/deCONZ          
      tcp        0      0 0.0.0.0:45363           0.0.0.0:*               LISTEN      1001       124862     10894/io.yahka.0    
      tcp        0      0 192.168.55.74:2010      0.0.0.0:*               LISTEN      1001       124328     10700/io.hm-rpc.0   
      tcp        0      0 127.0.0.1:37267         0.0.0.0:*               LISTEN      1001       124870     10894/io.yahka.0    
      tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       122807     10588/iobroker.js-c 
      tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       122837     10588/iobroker.js-c 
      tcp6       0      0 :::22                   :::*                    LISTEN      0          14840      620/sshd: /usr/sbin 
      tcp6       0      0 :::111                  :::*                    LISTEN      0          12082      1/init              
      tcp6       0      0 :::3000                 :::*                    LISTEN      108        16781      723/grafana         
      tcp6       0      0 :::8086                 :::*                    LISTEN      998        16721      572/influxd         
      tcp6       0      0 :::8082                 :::*                    LISTEN      1001       124768     10836/io.web.0      
      tcp6       0      0 :::8081                 :::*                    LISTEN      1001       123978     10609/io.admin.0    
      udp        0      0 0.0.0.0:5353            0.0.0.0:*                           109        14816      550/avahi-daemon: r 
      udp        0      0 0.0.0.0:1900            0.0.0.0:*                           1001       124696     10758/io.deconz.0   
      udp        0      0 0.0.0.0:1900            0.0.0.0:*                           1000       16644      555/deCONZ          
      udp        0      0 0.0.0.0:59280           0.0.0.0:*                           109        14818      550/avahi-daemon: r 
      udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          14562      369/dhclient        
      udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          12081      1/init              
      udp6       0      0 :::5353                 :::*                                109        14817      550/avahi-daemon: r 
      udp6       0      0 :::1900                 :::*                                1001       124698     10758/io.deconz.0   
      udp6       0      0 :::1900                 :::*                                1001       124697     10758/io.deconz.0   
      udp6       0      0 :::111                  :::*                                0          12083      1/init              
      udp6       0      0 :::33570                :::*                                109        14819      550/avahi-daemon: r 
      
      *** Log File - Last 25 Lines ***
      
      2025-01-28 10:45:37.366  - info: host.ioBroker instance system.adapter.daswetter.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-28 10:49:59.514  - info: admin.0 (10609) ==> Connected system.user.admin from ::ffff:192.168.55.50
      2025-01-28 10:50:06.125  - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 11127
      2025-01-28 10:50:15.566  - info: dwd.0 (11127) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6
      2025-01-28 10:50:16.636  - info: dwd.0 (11127) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2025-01-28 10:50:17.205  - info: host.ioBroker instance system.adapter.dwd.0 having pid 11127 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-28 10:52:38.053  - info: host.ioBroker instance system.adapter.daswetter.0 in version "3.2.2" started with pid 11506
      2025-01-28 10:52:45.309  - info: daswetter.0 (11506) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.daswetter, node: v18.19.0, js-controller: 7.0.6
      2025-01-28 10:53:24.119  - info: daswetter.0 (11506) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment
      2025-01-28 10:53:24.687  - info: daswetter.0 (11506) cleaned everything up...
      2025-01-28 10:53:24.726  - info: host.ioBroker instance system.adapter.daswetter.0 having pid 11506 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-28 10:53:49.281  - info: admin.0 (10609) <== Disconnect system.user.admin from ::ffff:192.168.55.50 admin
      2025-01-28 10:55:06.074  - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 12834
      2025-01-28 10:55:12.296  - info: dwd.0 (12834) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6
      2025-01-28 10:55:13.197  - info: dwd.0 (12834) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2025-01-28 10:55:13.781  - info: host.ioBroker instance system.adapter.dwd.0 having pid 12834 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-28 11:00:06.043  - info: host.ioBroker instance system.adapter.dwd.0 in version "2.8.5" started with pid 12976
      2025-01-28 11:00:12.006  - info: dwd.0 (12976) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.19.0, js-controller: 7.0.6
      2025-01-28 11:00:12.900  - info: dwd.0 (12976) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2025-01-28 11:00:13.472  - info: host.ioBroker instance system.adapter.dwd.0 having pid 12976 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-28 11:00:38.055  - info: host.ioBroker instance system.adapter.daswetter.0 in version "3.2.2" started with pid 12993
      2025-01-28 11:00:43.984  - info: daswetter.0 (12993) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.daswetter, node: v18.19.0, js-controller: 7.0.6
      2025-01-28 11:01:14.953  - info: daswetter.0 (12993) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment
      2025-01-28 11:01:15.491  - info: daswetter.0 (12993) cleaned everything up...
      2025-01-28 11:01:15.528  - info: host.ioBroker instance system.adapter.daswetter.0 having pid 12993 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      
      ============ Mark until here for C&P =============
      
      posted in Installation
      LevyKo
      LevyKo
    • Node.js sauber neu installieren?

      Hallo zusammen,

      ich habe heute mein System mal auf den aktuellsten Stand gebracht (Bullseye -> Bookworm) und soweit läuft auch alles, wie es sollte. Basis für den ioBroker ist bei mir nun Debian Bookworm als virtuelle Maschine auf unserem Synology-NAS. In diesem Zuge wollte ich (nach Erstellung eines Snapshots) node.js auf den aktuellen Stand bringen und habe es aus dem Debian-Repository installiert. Ursprünglich war es auf dem "alten" System aber von nodesource installiert.

      Da ich nun befürchte, dass da etwas strubbelig sein oder werden könnte, würde ich das gesamte node.js gerne mal deinstallieren und aus dem Original-Debian-Repo neu installieren. Natürlich alles mit gestopptem ioBroker etc.

      Ist das so möglich?

      Viele Grüße
      Levy

      posted in Installation
      LevyKo
      LevyKo
    • RE: Test Adapter Porsche v0.0.x

      Hallo zusammen,

      da der Adapter leider mittlerweile nach kurzer Laufzeit nur Fehler produziert und immer wieder neu startet und letztendlich dann durch den ioBroker Server gestoppt wird (Restart-Loop), ist er leider unbrauchbar geworden.

      Wenn ich so auf Github schaue, dürfte die Weiterentwicklung dieses Adapters auch tot sein. Schade...

      Viele Grüße
      Levy

      posted in Tester
      LevyKo
      LevyKo
    • RE: In einer Funktion auf Änderung eines Datenpunkts warten

      @paul53
      Danke für die Überarbeitung. Das sieht doch wesentlich kompakter aus 👍

      Ja, toLog() ist eine globale Funktion, die mir eine Aktivitätsliste füllt und gleichzeitig einen Log-Eintrag erstellt.

      Da neben der Steuerung des Tors in dem eigentlichen Script noch die Regelung eines Lüfters drin ist, hier mal der aktuelle Stand des gesamten Scripts:

      /*
      **
      ** Steuerung Garage
      **
      */
      
      var cronVal               = '*/15 * * * *';
      var numMinDuration        = 30;
      
      var dpAussenTemperatur    = 'hm-rpc.0.00XXXXXXXXXXEF.1.ACTUAL_TEMPERATURE';
      var dpAussenFeuchtigkeit  = 'hm-rpc.0.00XXXXXXXXXXEF.1.HUMIDITY';
      var dpGarageFeuchtigkeit  = 'hm-rpc.0.00XXXXXXXXXX5F.1.HUMIDITY';
      var dpGarageLuefter       = 'hm-rpc.0.00XXXXXXXXXX9D.3.STATE';
      
      const dpGarageDoorOpen    = '0_userdata.0.Trigger.TriggerGarageDoorOpen';
      const dpGarageDoorClose   = '0_userdata.0.Trigger.TriggerGarageDoorClose';
      const dpGarageDoorStatus  = '0_userdata.0.Trigger.TriggerGarageDoorStatus';
      const dpGarageDoorState   = 'hm-rpc.0.00XXXXXXXXXXF7.1.DOOR_STATE';
      const dpGarageDoorCommand = 'hm-rpc.0.00XXXXXXXXXXF7.1.DOOR_COMMAND';
      
      var doorState = getState(dpGarageDoorState).val;
      
      /*
      ** Create Datapoints
      */
      createState(dpGarageDoorOpen,   false, { name: 'TriggerGarageDoorOpen',   desc: 'TriggerGarageDoorOpen',   type: 'boolean', role: 'state' });
      createState(dpGarageDoorClose,  false, { name: 'TriggerGarageDoorClose',  desc: 'TriggerGarageDoorClose',  type: 'boolean', role: 'state' });
      createState(dpGarageDoorStatus,   '-', { name: 'TriggerGarageDoorStatus', desc: 'TriggerGarageDoorStatus', type: 'string',  role: 'value' });
      
      /*
      ** Subscriptions
      */
      schedule(cronVal, function() {
          if(getState(dpGarageLuefter).val === false) {
              if(getState(dpGarageFeuchtigkeit).val > getState(dpAussenFeuchtigkeit).val) {
                  if(getState(dpAussenTemperatur).val > 5) {
                      if(getState(dpAussenTemperatur).val < 20) {
                          var numMilSecsDur = numMinDuration * 60000;
                          var endTime = Date.now() + numMilSecsDur;
                          setState(dpGarageLuefter, true);
                          toLog('Garagenbelüftung eingeschaltet (Dauer: ' + numMinDuration + ' - Lf: ' + getState(dpGarageFeuchtigkeit).val + '%)');
                          var sHandler = schedule(endTime, function () {
                              setState(dpGarageLuefter, false);
                              toLog('Garagenbelüftung ausgeschaltet (Lf: ' + getState(dpGarageFeuchtigkeit).val + '%)');
                              clearSchedule(sHandler);
                          });
                      }
                  }
              }
          }
      });
       
      on ({id: dpGarageDoorOpen, change: 'ne', val: true}, function () {
          if(doorState != 1) {
              setState(dpGarageDoorCommand, 1);
              setState(dpGarageDoorStatus, 'wird geöffnet', true);
          }
          setState(dpGarageDoorOpen, false, true);
      });
       
      on ({id: dpGarageDoorClose, change: 'ne', val: true }, function () {
          if(doorState > 0) {
              setState(dpGarageDoorCommand, 3);
              setState(dpGarageDoorStatus, 'wird geschlossen', true);
          }
          setState(dpGarageDoorClose, false, true);
      });
       
      on (dpGarageDoorState, function (dp) {
          doorState = dp.state.val;
          let msg = '';
          if(doorState === 0) {
              msg = 'geschlossen';
          } else if(doorState === 1) {
              msg = 'offen';
          }
          if(msg) {
              setState(dpGarageDoorStatus, msg, true);
              toLog('Das Garagentor ist ' + msg);
          }
      });
      

      Vielleicht kann der eine oder andere davon etwas gebrauchen.

      Viele Grüße
      Levy

      posted in JavaScript
      LevyKo
      LevyKo
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo