Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 13
    • Best 0
    • Groups 1

    Architect0711

    @Architect0711

    Starter

    0
    Reputation
    6
    Profile views
    13
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Architect0711 Follow
    Starter

    Latest posts made by Architect0711

    • RE: js-controller 5.0.x jetzt für alle User im STABLE!

      @mcm57 danke, habe die Liste mit den Adaptern gefunden 🙂 nach dem Upgrade vom Admin und vom Node Red Adapter hat wieder alles funktioniert wie gehabt 🙂

      posted in ioBroker Allgemein
      A
      Architect0711
    • RE: js-controller 5.0.x jetzt für alle User im STABLE!

      ich habe neben dem iobroker noch andere sachen auf dem raspi, deshalb mache ich immer sd card images als backup.

      posted in ioBroker Allgemein
      A
      Architect0711
    • RE: js-controller 5.0.x jetzt für alle User im STABLE!

      @foxriver76 @Thomas-Braun Bei mir startet der admin adapter nicht mehr seit dem Update. Unten ist der output von "iob diag". Ganz unten steht ja Rebuild for adapter system.adapter.admin.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually., aber das hat leider keine Abhilfe gebracht.

      pi@raspberrypi:/opt/iobroker/node_modules/iobroker.admin $ npm install --production
      npm WARN config production Use `--omit=dev` instead.
      
      up to date, audited 141 packages in 5s
      
      13 packages are looking for funding
        run `npm fund` for details
      
      4 moderate severity vulnerabilities
      
      To address issues that do not require attention, run:
        npm audit fix
      
      To address all issues possible (including breaking changes), run:
        npm audit fix --force
      
      Some issues need review, and may require choosing
      a different dependency.
      
      Run `npm audit` for details.
      
      
      
      Skript v.2023-10-10
      
      *** BASE SYSTEM ***
         Static hostname: raspberrypi
               Icon name: computer
        Operating System: Raspbian GNU/Linux 10 (buster)
                  Kernel: Linux 5.10.103-v7l+
            Architecture: arm
      
      Model		: Raspberry Pi 4 Model B Rev 1.2
      Docker          : false
      Virtualization  : none
      Kernel          : armv7l
      Userland        : armhf
      
      Systemuptime and Load:
       17:27:27 up  1:07,  2 users,  load average: 1.61, 1.93, 1.26
      CPU threads: 4
      
      
      *** RASPBERRY THROTTLING ***
      Current issues:
      No throttling issues detected.
      
      Previously detected issues:
      No throttling issues detected.
      
      *** Time and Time Zones ***
                     Local time: Sat 2023-12-23 17:27:27 CET
                 Universal time: Sat 2023-12-23 16:27:27 UTC
                       RTC time: n/a
                      Time zone: Europe/Berlin (CET, +0100)
      System clock synchronized: yes
                    NTP service: active
                RTC in local TZ: no
      
      *** User and Groups ***
      pi
      /home/pi
      pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
      
      *** X-Server-Setup ***
      X-Server: 	true
      Desktop: 	LXDE-pi
      Terminal: 	x11
      Boot Target: 	graphical.target
      
      *** MEMORY ***
                    total        used        free      shared  buff/cache   available
      Mem:           3.8G        705M        2.2G         21M        968M        3.0G
      Swap:           99M          0B         99M
      Total:         3.9G        705M        2.3G
      
               3838 M total memory
                705 M used memory
                417 M active memory
               1076 M inactive memory
               2164 M free memory
                128 M buffer memory
                839 M swap cache
                 99 M total swap
                  0 M used swap
                 99 M free swap
      
      Raspberry only:
      oom events: 0
      lifetime oom required: 0 Mbytes
      total time in oom handler: 0 ms
      max time spent in oom handler: 0 ms
      
      *** FAILED SERVICES ***
      
      0 loaded units listed. Pass --all to see loaded but inactive units, too.
      To show all installed unit files use 'systemctl list-unit-files'.
      
      *** FILESYSTEM ***
      Filesystem     Type      Size  Used Avail Use% Mounted on
      /dev/root      ext4       59G  5.0G   51G   9% /
      devtmpfs       devtmpfs  1.8G     0  1.8G   0% /dev
      tmpfs          tmpfs     1.9G     0  1.9G   0% /dev/shm
      tmpfs          tmpfs     1.9G   17M  1.9G   1% /run
      tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
      tmpfs          tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
      /dev/mmcblk0p1 vfat      253M   49M  204M  20% /boot
      tmpfs          tmpfs     384M   12K  384M   1% /run/user/1000
      
      Messages concerning ext4 filesystem in dmesg:
      [Sat Dec 23 16:20:11 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:60:A4:C4 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=676d1976-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
      [Sat Dec 23 16:20:11 2023] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
      [Sat Dec 23 16:20:11 2023] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
      [Sat Dec 23 16:20:13 2023] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
      
      Show mounted filesystems \(real ones only\):
      TARGET                SOURCE         FSTYPE          OPTIONS
      /                     /dev/mmcblk0p2 ext4            rw,noatime
      |-/sys/fs/bpf         none           bpf             rw,nosuid,nodev,noexec,relatime,mode=700
      |-/run/user/1000/gvfs gvfsd-fuse     fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
      `-/boot               /dev/mmcblk0p1 vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
      
      Files in neuralgic directories:
      
      /var:
      1.3G	/var/
      644M	/var/lib
      521M	/var/cache
      515M	/var/lib/piVCCU3
      509M	/var/cache/apt
      
      Archived and active journals take up 16.0M in the file system.
      
      /opt/iobroker/backups:
      du: cannot access '/opt/iobroker/backups/': No such file or directory
      
      /opt/iobroker/iobroker-data:
      157M	/opt/iobroker/iobroker-data/
      53M	/opt/iobroker/iobroker-data/node-red
      52M	/opt/iobroker/iobroker-data/node-red/node_modules
      46M	/opt/iobroker/iobroker-data/files
      41M	/opt/iobroker/iobroker-data/backup-objects
      
      The five largest files in iobroker-data are:
      21M	/opt/iobroker/iobroker-data/files/web.admin/static/js/main.aaea95f8.js.map
      8.3M	/opt/iobroker/iobroker-data/files/web.admin/static/js/main.aaea95f8.js
      5.6M	/opt/iobroker/iobroker-data/objects.jsonl
      5.4M	/opt/iobroker/iobroker-data/objects.json.migrated
      5.4M	/opt/iobroker/iobroker-data/objects.json.bak.migrated
      
      USB-Devices by-id:
      USB-Sticks -  Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id':
      
      find: '/dev/serial/by-id/': No such file or directory
      
      *** NodeJS-Installation ***
      
      /usr/bin/nodejs 	v18.16.1
      /usr/bin/node 		v18.16.1
      /usr/bin/npm 		9.5.1
      /usr/bin/npx 		9.5.1
      /usr/bin/corepack 	0.17.0
      
      
      nodejs:
        Installed: 18.16.1-deb-1nodesource1
        Candidate: 18.17.1-deb-1nodesource1
        Version table:
           18.17.1-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_18.x buster/main armhf Packages
       *** 18.16.1-deb-1nodesource1 100
              100 /var/lib/dpkg/status
           10.24.0~dfsg-1~deb10u3 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
      
      Temp directories causing npm8 problem: 0
      No problems detected
      
      Errors in npm tree:
      
      *** ioBroker-Installation ***
      
      ioBroker Status
      iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Core adapters versions
      js-controller: 	5.0.17
      admin: 		5.1.28
      javascript: 	"javascript" not found
      
      Adapters from github: 	0
      
      Adapter State
        system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.discovery.0              : discovery             : raspberrypi                              -  enabled
      + system.adapter.hm-rega.0                : hm-rega               : raspberrypi                              -  enabled
      + system.adapter.hm-rpc.0                 : hm-rpc                : raspberrypi                              -  enabled, port: 0
      + system.adapter.hs100.0                  : hs100                 : raspberrypi                              -  enabled
      + system.adapter.info.0                   : info                  : raspberrypi                              -  enabled
      + system.adapter.node-red.0               : node-red              : raspberrypi                              -  enabled, port: 1880, bind: 0.0.0.0
      + system.adapter.pushover.0               : pushover              : raspberrypi                              -  enabled
      + system.adapter.shelly.0                 : shelly                : raspberrypi                              -  enabled, port: 1882, bind: 192.168.20.100
      + system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      + instance is alive
      
      Enabled adapters with bindings
        system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.hm-rpc.0                 : hm-rpc                : raspberrypi                              -  enabled, port: 0
      + system.adapter.node-red.0               : node-red              : raspberrypi                              -  enabled, port: 1880, bind: 0.0.0.0
      + system.adapter.shelly.0                 : shelly                : raspberrypi                              -  enabled, port: 1882, bind: 192.168.20.100
      + system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      ioBroker-Repositories
      stable        : http://download.iobroker.net/sources-dist.json
      beta          : http://download.iobroker.net/sources-dist-latest.json
      
      Active repo(s): stable
      
      Installed ioBroker-Instances
      Used repository: stable
      Adapter    "admin"        : 6.12.0   , installed 5.1.28 [Updatable]
      Adapter    "discovery"    : 4.2.0    , installed 3.1.0  [Updatable]
      Adapter    "hm-rega"      : 4.0.0    , installed 3.0.46 [Updatable]
      Adapter    "hm-rpc"       : 1.15.19  , installed 1.15.18 [Updatable]
      Adapter    "hs100"        : 2.2.0    , installed 2.1.2  [Updatable]
      Adapter    "info"         : 2.0.0    , installed 1.9.26 [Updatable]
      Controller "js-controller": 5.0.17   , installed 5.0.17
      Adapter    "mqtt-client"  : 1.7.0    , installed 1.7.0
      Adapter    "node-red"     : 4.0.3    , installed 3.3.1  [Updatable]
      Adapter    "pushover"     : 3.0.6    , installed 3.0.3  [Updatable]
      Adapter    "shelly"       : 6.6.1    , installed 4.0.7  [Updatable]
      Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
      Adapter    "socketio"     : 6.6.0    , installed 6.6.0
      Adapter    "web"          : 6.1.10   , installed 6.1.10
      Adapter    "ws"           : 2.5.8    , installed 2.5.8
      
      Objects and States
      Please stand by - This may take a while
      Objects: 	2298
      States: 	860
      
      *** OS-Repositories and Updates ***
      Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
      Hit:2 http://archive.raspberrypi.org/debian buster InRelease
      Hit:3 https://deb.nodesource.com/node_18.x buster InRelease
      Hit:4 https://www.pivccu.de/piVCCU stable InRelease
      Reading package lists...
      Pending Updates: 155
      
      *** 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          17270      582/sshd            
      tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          18683      420/cupsd           
      tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      1001       61793      7787/node-red       
      tcp        0      0 192.168.20.100:1882     0.0.0.0:*               LISTEN      1001       64971      8166/io.shelly.0    
      tcp        0      0 192.168.20.100:2010     0.0.0.0:*               LISTEN      1001       63568      7826/io.hm-rpc.0    
      tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      0          15251      558/mosquitto       
      tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       61619      7722/iobroker.js-co 
      tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       61612      7722/iobroker.js-co 
      tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      0          15349      577/vncserver-x11-c 
      tcp6       0      0 :::8082                 :::*                    LISTEN      1001       62790      8041/io.web.0       
      tcp6       0      0 :::22                   :::*                    LISTEN      0          17272      582/sshd            
      tcp6       0      0 ::1:631                 :::*                    LISTEN      0          18682      420/cupsd           
      tcp6       0      0 :::1883                 :::*                    LISTEN      0          15252      558/mosquitto       
      tcp6       0      0 :::5900                 :::*                    LISTEN      0          15348      577/vncserver-x11-c 
      udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          20657      545/cups-browsed    
      udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        16086      402/avahi-daemon: r 
      udp        0      0 0.0.0.0:35206           0.0.0.0:*                           108        16088      402/avahi-daemon: r 
      udp6       0      0 :::5353                 :::*                                108        16087      402/avahi-daemon: r 
      udp6       0      0 :::50048                :::*                                108        16089      402/avahi-daemon: r 
      
      *** Log File - Last 25 Lines ***
      
      2023-12-23 17:26:35.046  - info: host.raspberrypi iobroker npm-rebuild: Rebuilding native modules done
      2023-12-23 17:26:36.060  - info: host.raspberrypi iobroker npm-rebuild: exit 0
      2023-12-23 17:26:36.236  - info: host.raspberrypi instance system.adapter.admin.0 started with pid 9252
      2023-12-23 17:26:38.169  - error: host.raspberrypi Caught by controller[0]: node:internal/modules/cjs/loader:1080
      2023-12-23 17:26:38.169  - error: host.raspberrypi Caught by controller[0]:   throw err;
      2023-12-23 17:26:38.169  - error: host.raspberrypi Caught by controller[0]:   ^
      2023-12-23 17:26:38.170  - error: host.raspberrypi Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js'
      2023-12-23 17:26:38.170  - error: host.raspberrypi Caught by controller[0]: Require stack:
      2023-12-23 17:26:38.170  - error: host.raspberrypi Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.admin/main.js
      2023-12-23 17:26:38.170  - error: host.raspberrypi Caught by controller[0]:     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
      2023-12-23 17:26:38.170  - error: host.raspberrypi Caught by controller[0]:     at Module._load (node:internal/modules/cjs/loader:922:27)
      2023-12-23 17:26:38.171  - error: host.raspberrypi Caught by controller[0]:     at Module.require (node:internal/modules/cjs/loader:1143:19)
      2023-12-23 17:26:38.171  - error: host.raspberrypi Caught by controller[0]:     at require (node:internal/modules/cjs/helpers:110:18)
      2023-12-23 17:26:38.171  - error: host.raspberrypi Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/main.js:18:18)
      2023-12-23 17:26:38.171  - error: host.raspberrypi Caught by controller[0]:     at Module._compile (node:internal/modules/cjs/loader:1256:14)
      2023-12-23 17:26:38.171  - error: host.raspberrypi Caught by controller[0]:     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
      2023-12-23 17:26:38.172  - error: host.raspberrypi Caught by controller[0]:     at Module.load (node:internal/modules/cjs/loader:1119:32)
      2023-12-23 17:26:38.172  - error: host.raspberrypi Caught by controller[0]:     at Module._load (node:internal/modules/cjs/loader:960:12)
      2023-12-23 17:26:38.172  - error: host.raspberrypi Caught by controller[0]:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
      2023-12-23 17:26:38.172  - error: host.raspberrypi Caught by controller[0]:   code: 'MODULE_NOT_FOUND',
      2023-12-23 17:26:38.172  - error: host.raspberrypi Caught by controller[0]:   requireStack: [ '/opt/iobroker/node_modules/iobroker.admin/main.js' ]
      2023-12-23 17:26:38.173  - error: host.raspberrypi Caught by controller[0]: }
      2023-12-23 17:26:38.173  - error: host.raspberrypi Caught by controller[0]: Node.js v18.16.1
      2023-12-23 17:26:38.173  - error: host.raspberrypi instance system.adapter.admin.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      2023-12-23 17:26:38.173  - info: host.raspberrypi Rebuild for adapter system.adapter.admin.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
      
      
      posted in ioBroker Allgemein
      A
      Architect0711
    • RE: node-red 4.0.3 startet nicht mehr

      @thomas-braun

      Cool, vielen Dank für deine Hilfe! 😊

      Das Upgrade Kommando auf eine spezifische Versionsnummer iobroker upgrade ADAPTERNAME@versionsnummer habe ich in der Doku leider nicht gefunden, daher habe ich danach gegoogelt und wohl etwas falsches gefunden.

      Bring das alles auf einen aktuellen Stand. Inklusive js-controller. Dann brauchst du da auch nicht so'n Versions-Harakiri machen.

      Ja das ist das mittelfristige Ziel, aber das Update auf die neue js-controller Version dauert laut des Forum Threads dazu etwas länger und dafür habe ich jetzt akut leider keine Zeit. Bis dahin kann ich mit diesem Quick Fix leben! 🙂

      posted in Error/Bug
      A
      Architect0711
    • node-red 4.0.3 startet nicht mehr
      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi4
      Arbeitsspeicher: 4GB
      Festplattenart: SD-Karte
      Betriebssystem: Ubuntu
      Node-Version: 18.16.1
      Nodejs-Version: 18.16.1
      NPM-Version: 9.5.1
      Installationsart: Manuell
      Image genutzt: Nein
      Ort/Name der Imagedatei: Link

      Hallo liebe iobroker-Kollegen,

      Ich habe bei meinem iobroker in den letzten Wochen einige Updates installiert. Ich aktuell bei js-controller 3.3.18 und der admin-adapter hatte bis eben version 5.1.25. Den node-red habe ich vor einer Woche auf 4.0.3 gebracht. Jetzt habe ich festgestellt, dass der node-red nicht mehr lief ohne eine Fehlermeldung auszugeben im Log. Als ich die Instanz eben neu gestartet habe, bekam ich folgende Meldung im Log:

      startInstance system.adapter.node-red.0: required adapter "admin" has wrong version. Installed "5.1.25", required ">=5.1.28"!

      Also habe ich folgende Befehle genutzt, um den Admin-Adapter auf die benötigte Version zu aktualiseren. Ich möchte erstmal nicht auf die neueste Admin-Version, da ich dafür den js-controller aktualisieren muss und dafür brauche ich erstmal mehr Zeit.

      cd opt/iobroker/
      sudo iobroker stop
      npm install iobroker.admin@5.1.28
      sudo iobroker start

      Leider kommt die Fehlermeldung des node-red adapters weiterhin, obwohl iobroker offensichtlich die neue Admin-Version erkennt und sie auch in der "Adapter" Seite richtig anzeigt. Sie kommt aber immernoch nur beim Neustart des Adapters. Wenn ich den kompletten iobroker neu starte und alle Adapter neu hochfahren, kommt diese Fehlermeldung irgendwie nicht im Log vor. Man kann ja nach Adapter filtern.

      Also dachte ich mir, dann gehe ich mal mit dem node-red Adapter auf die letzte Major Version runter, vielleicht funktioniert die noch ohne den Admin 5.1.28 aus. Also, folgendes gemacht:

      cd opt/iobroker/
      sudo iobroker stop
      npm install iobroker.node-red@3.3.1
      sudo iobroker start

      Leider das selbe Verhalten. Der node-red Adapter startet nicht und bringt beim Neustart die obige Meldung.

      Jetzt dachte ich, ich frage mal nach, was man da machen kann. Muss ich noch irgendwas machen, damit die Downgrades erkannt werden? Oder ist das ein Bug im Node-Red Adapter? Ich glaube Initial war ich bei Version 2.4.0. Würde aber sehr ungerne ein altes Backup mit der Version wiederherstellen, ich will ja die Versionen hoch kriegen.

      Was würdet ihr empfehlen? Mache ich vielleicht etwas falsch?

      posted in Error/Bug
      A
      Architect0711
    • RE: Überwachungskamera-System

      @architect0711 said in Überwachungskamera-System:

      Vielleicht kann man solche Funktionalitäten dann auch in einen iobroker Adapter gießen.

      Ich habe schon mal einen Adapter programmiert und wenn das System läuft würde ich es auch gerne in den ioBroker integrieren. Ich möchte auf jeden Fall Empfehlungen von ioBroker Nutzern haben, dann weiß ich auch, was mit ioBroker kompatibel ist.

      posted in Off Topic
      A
      Architect0711
    • Überwachungskamera-System

      Hallo zusammen,

      Ich möchte mir ein Videoüberwachungs-System anschaffen und dachte mir, das ist doch die perfekte Gelegenheit, um euer Schwarmwissen zu nutzen 😄

      Da es wirklich tonnenweise Produkte da draußen gibt, beschreibe ich einfach mal meine Anforderungen, ohne auf ein spezielles Produkt einzugehen, das ich schon angeschaut habe. Dann bin ich mal gespannt, was euch dazu so einfällt:

      • Zentrale: Es sollte eine zentrale Steuereinheit mit Speicher und verschiedenen Funktionen dabei sein. Ich habe keine Lust irgendein Raspi, NAS oder ähnliches für das speichern der Videos einzurichten und zu administrieren. Sie sollte schon 6 Kameras unterstützen. 4 Wären mir wahrscheinlich zu wenig.

      • Keine Cloud: Das System soll komplett On-Premises bei mir laufen, möchte ihm auch ein eigenes VLAN spendieren und den Zugriff aufs Internet komplett sperren.

      • WLAN + PoE LAN fähig: Manche Punkte, die ich überwachen möchte, sind (noch) nicht per Kabel erreichbar. Die Kameras sollten beides können. Die Kabelgebundenen Kameras sollten über PoE betrieben werden können, damit ich weniger Löcher in meine Hauswand bohren muss.

      • Zugriff auf die Videostreams: Natürlich möchte ich die Videostreams in Benutzeroberflächen einbinden. Ich werde meine Smart Home UI wohl selbst mit Angular programmieren. Außerdem möchte ich perspektivisch gerne KI-Funktionen einbauen, wie z.B. eine Personenerkennung mit Pushnachricht oder eine Erkennung, wie viele Sonnenstunden ich in meinen Gemüsebeeten habe. Da wäre also ein System, wo ich nicht an die Videostreams komme, fehl am Platz. Vielleicht kann man solche Funktionalitäten dann auch in einen iobroker Adapter gießen.

      • Nachtsicht: Standard eigentlich, aber ich schreibs mal dazu

      • Deutscher Hersteller: Wäre cool, muss aber nicht sein. China ist aber meine letzte Wahl.

      Bin mal gespannt was ihr so bei euch laufen habt, was ihr empfehlt und was ihr zu meinen Anforderungen sagt. Vielen Dank für eure Zeit und Mühen schon in Vorraus 🙂

      posted in Off Topic
      A
      Architect0711
    • RE: Empfehlungen für zuverlässige Darstellung auf Tablets?

      @unclesam hatte den Port 8084 genommen. Sorry für die späte Antwort, ich war eine Weile nicht zuhause.

      Also, um ein paar mehr Informationen zu providen:

      Ich kriege eine Verbindung, wenn ich aus dem example Ordner in dem ioBroker.socketio Github repo die conn.js in mein Projekt nehme und die <script> Tags aus der index.html in meine index.html einfüge. Dann verbindet sich die conn.js mit dem Server und loggt fröhlich irgendwelche States in die Konsole.

      Aber das will ich doch gar nicht. Ich will einen Service in einer TypeScript Klasse haben (z.b. IoBrokerService), der sich mit dem Server verbindet und den ich dann als Singleton Service in meine ganzen Komponenten injecten kann und mich auf gewisse Topics subscriben kann. Dafür ist die Library doch da, oder nicht? Wie benutzt du die Bibliothek denn in deiner Angular Anwendung?

      Ich habe das gerade mal geprüft und das conn.js Skript stellt die Verbindung zum iobroker auch her, wenn ich gar kein Connection objekt instanziere.

      Die Parameter für das Connection objekt sind auch etwas anders als die, die in der conn.js für das servConn objekt übergeben werden. In allen Beispielen wird immer direkt die conn.js in vanilla javascript verwendet. Wofür die TypeScript library überhaupt da ist, habe ich bis jetzt nicht verstanden.

      Ich bleibe auf jeden Fall dran, bin mal gespannt, was dabei raus kommt 🙂

      posted in Visualisierung
      A
      Architect0711
    • RE: Empfehlungen für zuverlässige Darstellung auf Tablets?

      @unclesam Hey ich habe mir einen Service gebastelt, der so ein "Connection" objekt erstellt, kriege aber immer die Meldung:

      "Socket connection could not be initialized: Error: Socket library could not be loaded!"

      Kennst du eine Lösung für das Problem? Muss ich da noch irgend ein npm paket installieren? Die README.md enthält leider wenig hilfreiche infos. In der Connection.ts sucht er irgendwie nach einem object namens window.io und wirft dann den fehler, wenn er es nicht findet, aber was es damit auf sich hat, weiß ich leider nicht:

      
      	private waitForSocketLib(): Promise<void> {
      		// Only wait once
      		if (this._waitForSocketPromise) return this._waitForSocketPromise;
      
      		this._waitForSocketPromise = new Promise(async (resolve, reject) => {
      			// If socket io is not yet loaded, we need to wait for it
      			if (typeof window.io === "undefined") {
      				// If the registerSocketOnLoad function is defined in index.html,
      				// we can use it to know when the socket library was loaded
      				if (typeof window.registerSocketOnLoad === "function") {
      					window.registerSocketOnLoad(() => resolve());
      				} else {
      					// otherwise we need to poll
      					for (let i = 1; i <= 30; i++) {
      						if (window.io) return resolve();
      						await wait(100);
      					}
      
      					reject(new Error("Socket library could not be loaded!"));
      				}
      			} else {
      				resolve();
      			}
      		});
      		return this._waitForSocketPromise;
      	}
      
      

      Hier ist meine config, wobei ich nicht glaube, dass es daran liegen kann. (ip und port habe ich mal abgeändert) 🦆

      
        private connectionProps: ConnectionProps  = {
          /** The socket name. */
          name: "angularUiConnectionSocket",
          /** State IDs to always automatically subscribe to. */
          autoSubscribes: [],
          /** Automatically subscribe to logging. */
          autoSubscribeLog: true,
          /** The protocol to use for the socket.io connection. */
          protocol: "https",
          /** The host name to use for the socket.io connection. */
          host: "123.45.67.890",
          /** The port to use for the socket.io connection. */
          port: 12345,
          /** The socket.io connection timeout. */
          ioTimeout: 20000,
          /** The socket.io command timeout. */
          cmdTimeout: 5000,
          /** Flag to indicate if all objects should be loaded or not. Default true (not loaded) */
          doNotLoadAllObjects: true,
          /** Flag to indicate if AccessControlList for current user will be loaded or not. Default true (not loaded) */
          doNotLoadACL: true,
          /** Progress callback. */
          onProgress: this.onProgress,
          /** Ready callback. */
          onReady: this.onReady,
          /** Log callback. */
          onLog: this.onLog,
          /** Error callback. */
          onError: this.onError,
          /** Object change callback. */
          onObjectChange: this.onObjectChange,
          /** Gets called when the system language is determined */
          onLanguage: this.onLanguage,
          /** Forces the use of the Compact Methods, wich only exists in admin 5 UI. */
          admin5only: false
        };
      
      posted in Visualisierung
      A
      Architect0711
    • RE: Empfehlungen für zuverlässige Darstellung auf Tablets?

      @unclesam Yeah cool vielen Dank! 🙂

      posted in Visualisierung
      A
      Architect0711
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo