Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Adapter für mehrere RPI

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Adapter für mehrere RPI

Scheduled Pinned Locked Moved ioBroker Allgemein
23 Posts 4 Posters 4.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    e-i-k-e
    wrote on last edited by
    #13

    Ich bin nach dieser Anleitung vorgegangen.

    http://www.iobroker.net/docu/?page_id=3068&lang=de

    Redis habe ich zum Testen aktiviert.

    iobroker setup custom
    type of states DB [file, redis], default [file] : redis
    

    Zuvor habe ich die ip unter geändert.

    nano /etc/redis/redis.conf
    bind 0.0.0.0
    

    Habe es danach aber wieder auf default gestellt.

    Ob file oder redis, brachte keine Verbesserung.

    Was mir aber aufgefallen ist, unter:

    Host of objects DB(file), default[127.0.0.1]
    

    wird keine andere IP Adresse (Master: 0.0.0.0, Slave: 192.168.178.35) übernommenen/gespeichert.

    1 Reply Last reply
    0
    • HomoranH Do not disturb
      HomoranH Do not disturb
      Homoran
      Global Moderator Administrators
      wrote on last edited by
      #14

      Sollte aber.

      Woran machst du das fest?

      Beim nächsten Aufruf steht da erst einmal der default Wert.

      Da musst du in der iobrojer.conf (?) Nachsehen.

      Gruß Rainer

      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      1 Reply Last reply
      0
      • StabilostickS Online
        StabilostickS Online
        Stabilostick
        wrote on last edited by
        #15

        Datei /opt/iobroker/iobroker-data/iobroker.json

        Bei lokaler DB:

        {
          "system": {
            "memoryLimitMB": 0,
            "hostname": ""
          },
          "multihostService": {
            "enabled": false,
            "secure": true
          },
          "network": {
            "IPv4": true,
            "IPv6": true,
            "bindAddress": null,
            "useSystemNpm": true
          },
          "objects": {
            "type": "file",
            "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
            "host": "127.0.0.1",
            "port": 9001,
            "user": "",
            "pass": "",
            "noFileCache": false,
            "connectTimeout": 2000
          },
          "states": {
            "type": "file",
            "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
            "host": "127.0.0.1",
            "port": 9000,
            "maxQueue": 1000,
            "options": {
              "auth_pass": null,
              "retry_max_delay": 15000
            }
          },
        [...]
        
        1 Reply Last reply
        0
        • E Offline
          E Offline
          e-i-k-e
          wrote on last edited by
          #16

          Das ist auch alles merkwürdig. 😐

          Die IP wurde richtig übernommen.

          Anbei der Code vom Master

            "system": {
              "memoryLimitMB": 0,
              "hostname": ""
            },
            "multihostService": {
              "enabled": true,
              "secure": true,
              "password": "muster"
            },
            "network": {
              "IPv4": true,
              "IPv6": true,
              "bindAddress": null,
              "useSystemNpm": true
            },
            "objects": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379],$
              "memoryLimitMB": 0,
              "hostname": ""
            },
            "multihostService": {
              "enabled": true,
              "secure": true,
              "password": "muster"
            },
            "network": {
              "IPv4": true,
              "IPv6": true,
              "bindAddress": null,
              "useSystemNpm": true
            },
            "objects": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379],$
              "host": "0.0.0.0",
              "port": 9001,
           "pass": "",
              "noFileCache": false,
              "connectTimeout": 2000
            },
            "states": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379$
              "host": "0.0.0.0",
              "port": 9000,
              "maxQueue": 1000,
              "options": {
                "auth_pass": null,
                "retry_max_delay": 15000
              }
            },
            "log": {
              "level": "info",
              "maxDays": 7,
              "noStdout": true,
               "file1": {
                  "type": "file",
                  "enabled": true,
                  "filename": "log/iobroker",
                  "fileext": ".log",
                  "maxsize": null,
                  "maxFiles": null
                },
                "syslog1": { "enabled": false,
                  "host": "localhost",
                  "host_comment": "The host running syslogd, defaults to localhost.",
                  "port_comment": "The port on the host that syslog is running on, defaul$
                  "protocol": "udp4",
                  "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4,$
                  "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or $
                  "facility_comment": "Syslog facility to use (Default: local0).",
                  "localhost": "iobroker",
          
          $ng from (Default: localhost).",
                  "sysLogType_comment": "The type of the syslog protocol to use (Default:$
                  "app_name_comment": "The name of the application (Default: process.titl$
                  "eol_comment": "The end of line character to be added to the end of the$
                }
              }
            },
            "dataDirComment": "Always relative to iobroker.js-controller/",
            "dataDir": "../../iobroker-data/"
          }
          
          

          Vom Slave

            "system": {
              "memoryLimitMB": 0,
              "hostname": ""
            },
            "multihostService": {
              "enabled": false,
              "secure": true
            },
            "network": {
              "IPv4": true,
              "IPv6": true,
              "bindAddress": null,
              "useSystemNpm": true
            },
            "objects": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379],$ "port": 9001,
              "user": "",
              "pass": "",
              "noFileCache": false,
              "connectTimeout": 2000
            },
            "states": {
              "type": "file",
              "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379$
              "host": "192.168.178.35",
              "port": 9000,
              "maxQueue": 1000,
              "options": {
                "auth_pass": null,
                "retry_max_delay": 15000
              }
            },
            "log": {
              "level": "info",  
              "maxDays": 7,
              "noStdout": true,
              "transport": {
                "file1": {
                  "type": "file",
                  "enabled": true,
                  "filename": "log/iobroker",
                  "fileext": ".log",
                  "maxsize": null,
                  "maxFiles": null
           "syslog1": {
                  "type": "syslog",
                  "enabled": false,
                  "host": "localhost",
                  "host_comment": "The host running syslogd, defaults to localhost.",
                  "port_comment": "The port on the host that syslog is running on, defaul$
                  "protocol": "udp4",
                  "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4,$
                  "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or $
                  "facility_comment": "Syslog facility to use (Default: local0).",
                  "localhost": "iobroker",
                  "localhost_comment": "Host to indicate that log messages are coming fro$
                  "sysLogType_comment": "The type of the syslog protocol to use (Default:$
                  "app_name_comment": "The name of the application (Default: process.titl$
                  "eol_comment": "The end of line character to be added to the end of the$
                }
              }
            },
            "dataDirComment": "Always relative to iobroker.js-controller/",
           "dataDir": "../../iobroker-data/"
          }
          
          
          1 Reply Last reply
          0
          • HomoranH Do not disturb
            HomoranH Do not disturb
            Homoran
            Global Moderator Administrators
            wrote on last edited by
            #17

            Gib mal beim slave unter iobroker setup custom

            Auch bei Objects die IP des masters ein

            Gruß Rainer

            kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

            1 Reply Last reply
            0
            • E Offline
              E Offline
              e-i-k-e
              wrote on last edited by
              #18

              Ich habe die IP Adresse neu eingegeben.

              Nun wird sie unter /opt/iobroker/iobroker-data/iobroker.json auch angezeigt.

              Ich bin mir aber sicher, dass ich diese IP bereits eingegeben hatte. :?


              Habe versucht, einen Adapter auf dem Slave hinzuzufügen.

              Bekomme immer wieder die gleiche Meldung.

              $ ./iobroker add hilink 
              undefined server error
              undefined Error: server error    at Socket.onPacket (/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:445:19)
                  at XHR. <anonymous>(/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/socket.js:268:10)
                  at XHR.Emitter.emit (/root/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
                  at XHR.Transport.onPacket (/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/transport.js:145:8)
                  at callback (/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/polling.js:144:10)
                  at Object.exports.decodePayload (/root/node_modules/engine.io-parser/lib/index.js:309:18)
                  at XHR.Polling.onData (/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/polling.js:148:10)
                  at Request. <anonymous>(/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/polling-xhr.js:126:10)
                  at Request.Emitter.emit (/root/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
                  at Request.onData (/root/node_modules/socket.io-client/node_modules/engine.io-client/lib/transports/polling-xhr.js:296:8)</anonymous></anonymous>
              

              Anschließend habe ich die Verbindung zum Master getrennt und mich direkt auf den ioBroker angemeldet.

              Hier kann die Adapter ohne Probleme installieren.


              Nachtrag: Habe bei PI gerade komplett neu aufgesetzt.

              Nun funktioniert alles!

              Es ist aber trotzdem merkwürdig, dass es vorher nicht funktionierte! :?

              1 Reply Last reply
              0
              • StabilostickS Online
                StabilostickS Online
                Stabilostick
                wrote on last edited by
                #19

                Glückwunsch. Prima das es jetzt funktioniert. Darf ich noch fragen, welche npm-Version du jetzt nutzt und ob der Autostart auf dem PI sofort geklappt hat?

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  e-i-k-e
                  wrote on last edited by
                  #20

                  Danke! 😉

                  Aktuell ist NPM 5.8.0 drauf.

                  Wobei ich auch bei dieser Neuinstallation das Problem hatte, dass NPM nicht vorhanden war bzw. mit installiert worden ist.

                  Ich habe mich an die folgende Anleitung gehalten. http://www.iobroker.net/docu/?page_id=5106&lang=de

                  Somit musste ich über > sudo apt-get install npm npm installieren, anschließend habe ich habe ich die Version 5.8.0 über > sudo npm install -g npm@5 eingespielt.

                  Der Autostart hat auch nicht geklappt, da die Datei iobroker.sh. fehlte.

                  :lol: :mrgreen:

                  1 Reply Last reply
                  0
                  • StabilostickS Online
                    StabilostickS Online
                    Stabilostick
                    wrote on last edited by
                    #21

                    Sie fehlte im /etc/init.d-Ordner?

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      e-i-k-e
                      wrote on last edited by
                      #22

                      Korrekt.

                      /etc/init.d/iobroker.sh

                      Gibt es eigentlich noch mit der NPM Version 5.8.0 Probleme?

                      1 Reply Last reply
                      0
                      • StabilostickS Online
                        StabilostickS Online
                        Stabilostick
                        wrote on last edited by
                        #23

                        Das schaut man sich gerade an. Bei mir ging es mit npm 4.6.1 inkl. der automatischen init.d-Anpassung. Alles wird besser…

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Support us

                        ioBroker
                        Community Adapters
                        Donate
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        485

                        Online

                        32.4k

                        Users

                        81.4k

                        Topics

                        1.3m

                        Posts
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        ioBroker Community 2014-2025
                        logo
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Recent
                        • Tags
                        • Unread 0
                        • Categories
                        • Unreplied
                        • Popular
                        • GitHub
                        • Docu
                        • Hilfe