Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Probleme mit node-red

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    324

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.5k

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

Probleme mit node-red

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
31 Beiträge 5 Kommentatoren 8.1k Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • HomoranH Nicht stören
    HomoranH Nicht stören
    Homoran
    Global Moderator Administrators
    schrieb am zuletzt editiert von
    #14

    @Bluefox:

    Du solltest alles als root machen `
    Mach ich immer, bin zu faul mit sudo.

    @Bluefox:

    Jetzt neu starten. `
    habe ich komplett neu gestartet, der pushbullet node bleibt verschollen.

    Installation war wie folgt (als root!):

    root@quad-pi:/opt/iobroker/node_modules/iobroker.node-red/node_modules# npm install node-red-node-pushbullet
    npm http GET https://registry.npmjs.org/when
    npm http 304 https://registry.npmjs.org/when
    node-red-node-pushbullet@0.0.6 node-red-node-pushbullet
    └── when@3.7.3
    

    Die Struktur ist auch vorhanden, die vom log angemeckerte Datei:

    node-red-0	2015-08-13 19:04:55	warn	13 Aug 19:04:55 - [warn] ------------------------------------------
    node-red-0	2015-08-13 19:04:55	warn	13 Aug 19:04:55 - [warn] [pushbullet] Error: Cannot find module 'qs'
    node-red-0	2015-08-13 19:04:55	warn	13 Aug 19:04:55 - [warn] ------------------------------------------
    

    habe ich jedoch nicht finden können.

    Danke

    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 Antwort Letzte Antwort
    0
    • BluefoxB Offline
      BluefoxB Offline
      Bluefox
      schrieb am zuletzt editiert von
      #15

      Verzeichnis ist falsch:

      root@quad-pi:/opt/iobroker/node_modules/iobroker.node-red/[color]node_modules[/color]# npm install node-red-node-pushbullet
      
      

      Es muss "/opt/iobroker/node_modules/iobroker.node-red/" sein.

      Und vor allem die neueste Version unterstützt, so dass du das konfigurieren kannst. Einfach in "Zusätzliche NPM-Module" "node-red-node-pushbullet" eintragen.

      1 Antwort Letzte Antwort
      0
      • HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von
        #16

        @Bluefox:

        Einfach in "Zusätzliche NPM-Module" "node-red-node-pushbullet" eintragen. `
        Hatte ich auch probiert, klappte ebenfalls nicht.

        Muss ich erst das alte löschen?

        und wenn ja, wie?

        Den Pfad hattest du damals irgendwo im Forum angegeben, und ich habs in die Doku übernommen.
        ~~@[url=http://www.iobroker.net/?page_id=166⟨=de:~~

        ~~Doku"]~~Importieren von weiteren nodes

        Auf der Seite von node-red werden weitere nodes angeboten. Dort finden sich dann auch die jeweiligen Installationsanleitungen.

        Auf der iobroker-Installation geht man dazu in das node-red Verzeichnis (z.B. auf dem Raspberry2):

        /opt/iobroker/node_modules/iobroker.node-red/node_modules

        und ruft da den Installationsbefehl von der node-red Website auf, z.B. :

        npm install node-red-node-fitbit

        Anschließend muss der node-red Adapter neu gestartet werden. Danach steht der neue node zur Verfügung. `
        Bis zuletzt hat es auch noch so geklappt.

        http://www.forum.iobroker.org/viewtopic … 4295#p4289

        Sorry für die Mühen

        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 Antwort Letzte Antwort
        0
        • BluefoxB Offline
          BluefoxB Offline
          Bluefox
          schrieb am zuletzt editiert von
          #17

          Ich weiß nicht warum es funktioniert hat. Aber es war definitiv falsch.

          Mache bitte folgendes:

          cd /opt/iobroker/node_modules/iobroker.node-red
          sudo rm node_modules/node-red-node-pushbullet/* -R
          sudo rmdir node_modules/node-red-node-pushbullet
          npm install node-red-node-pushbullet
          cd /opt/iobroker/
          iobroker restart node-red.0
          
          
          1 Antwort Letzte Antwort
          0
          • HomoranH Nicht stören
            HomoranH Nicht stören
            Homoran
            Global Moderator Administrators
            schrieb am zuletzt editiert von
            #18

            Danke,

            aber klappt immer noch nicht.

            Die Struktur sieht jetzt so aus:
            144_iobroker_node_red_pushbullet02.jpg

            Sind das noch Reste (von gestern) von der falschen Installation?

            Gruß

            Rainer

            PS lass mal, ich versuche es selber

            scheint zwei nodes zu geben:

            • node-pushbullet

            • node-red-node-pushbullet

            Vielleicht hatte ich ja vor dem Problem den anderen (?)

            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 Antwort Letzte Antwort
            0
            • HomoranH Nicht stören
              HomoranH Nicht stören
              Homoran
              Global Moderator Administrators
              schrieb am zuletzt editiert von
              #19

              Also es läuft!

              Ich hatte schon den node-red-node-pushbullet (wozu die Suche im Forum doch gut ist ;-) )

              Ich habe nochmals alles gelöscht und nach deiner Anleitung neu installiert - ohne Erfolg

              dann wieder gelöscht und nach "meiner" Anleitung in /opt/iobroker/node_modules/iobroker.node-red/node_modules installiert.

              Frag mich nicht warum, aber es klappt.

              Auch pix hat es nach der Anleitung erfolgreich geschafft.

              http://www.forum.iobroker.org/viewtopic.php?f=32&t=621

              kann also so falsch nicht sein ;-)

              EDiT:

              Es muss am Löschen der alten Struktur gelegen haben, denn jetzt endete die Installation mit:

              node-red-node-pushbullet@0.0.6 node-red-node-pushbullet
              ├── when@3.7.3
              └── pushbullet@1.4.3 (mime@1.2.11, request@2.44.0, websocket@1.0.21)
              root@quad-pi:/opt/iobroker/node_modules/iobroker.node-red/node_modules#
              
              

              beim letzten mal war da nur "when@3.7.3" und nicht "pushbullet@1.4.3" dabei - außerdem war die Ausführung extrem kurz:

              root@quad-pi:/opt/iobroker/node_modules/iobroker.node-red# npm install node-red-node-pushbullet
              npm http GET https://registry.npmjs.org/node-red-node-pushbullet
              npm http 304 https://registry.npmjs.org/node-red-node-pushbullet
              npm http GET https://registry.npmjs.org/when
              npm http 304 https://registry.npmjs.org/when
              node-red-node-pushbullet@0.0.6 node_modules/node-red-node-pushbullet
              └── when@3.7.3
              
              

              diesmal waren es194 Zeilen!

              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 Antwort Letzte Antwort
              0
              • HomoranH Nicht stören
                HomoranH Nicht stören
                Homoran
                Global Moderator Administrators
                schrieb am zuletzt editiert von
                #20

                node-red lässt sich nicht mehr aufrufen.

                Die fixes von bluefox und der neue js-controller laufen sonst spitze.

                Beim Versuch node-red aufzurufen erscheint bei Aufruf über den Tab:
                > server hat die Verbindung abgelehnt

                Bei Aufruf über <ip>:1880
                > ERR_CONNECTION_REFUSED
                was wohl das selbe ist ;-)

                im log steht:

                ! ````
                2015-08-24 19:18:05.871 - info: host.quad-pi instance system.adapter.node-red.0 started with pid 31808
                2015-08-24 19:18:08.643 - debug: node-red.0 objectDB connected
                2015-08-24 19:18:08.687 - debug: node-red.0 statesDB connected
                2015-08-24 19:18:09.107 - info: node-red.0 starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.node-red
                2015-08-24 19:18:11.301 - info: node-red.0 Starting node-red: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
                2015-08-24 19:18:15.638 - debug: node-red.0 Unable to load settings file: /opt/iobroker/iobroker-data/node-red/settings.js
                ! 2015-08-24 19:18:15.671 - info: node-red.0 node-red exited with 0
                2015-08-24 19:18:20.674 - info: node-red.0 Starting node-red: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
                2015-08-24 19:18:25.132 - debug: node-red.0 Unable to load settings file: /opt/iobroker/iobroker-data/node-red/settings.js

                und das geht immer so weiter
                
                Die datei
                
                /opt/iobroker/iobroker-data/node-red/settings.js
                
                ist vorhanden und hat die Rechte 777
                
                Gruß
                
                Rainer
                
                iobroker auf RasPi 2
                
                RaspBian vom 05.05.2015
                
                js-controller 0.7.11
                
                node-red 0.3.5
                
                WIN7 Home mit Chrome</ip>

                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 Antwort Letzte Antwort
                0
                • BluefoxB Offline
                  BluefoxB Offline
                  Bluefox
                  schrieb am zuletzt editiert von
                  #21

                  @Homoran:

                  node-red lässt sich nicht mehr aufrufen.

                  Die fixes von bluefox und der neue js-controller laufen sonst spitze.

                  Beim Versuch node-red aufzurufen erscheint bei Aufruf über den Tab:
                  > server hat die Verbindung abgelehnt

                  Bei Aufruf über <ip>:1880
                  > ERR_CONNECTION_REFUSED
                  was wohl das selbe ist ;-)

                  im log steht:

                  ! ````
                  2015-08-24 19:18:05.871 - info: host.quad-pi instance system.adapter.node-red.0 started with pid 31808
                  2015-08-24 19:18:08.643 - debug: node-red.0 objectDB connected
                  2015-08-24 19:18:08.687 - debug: node-red.0 statesDB connected
                  2015-08-24 19:18:09.107 - info: node-red.0 starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.node-red
                  2015-08-24 19:18:11.301 - info: node-red.0 Starting node-red: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
                  2015-08-24 19:18:15.638 - debug: node-red.0 Unable to load settings file: /opt/iobroker/iobroker-data/node-red/settings.js
                  ! 2015-08-24 19:18:15.671 - info: node-red.0 node-red exited with 0
                  2015-08-24 19:18:20.674 - info: node-red.0 Starting node-red: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
                  2015-08-24 19:18:25.132 - debug: node-red.0 Unable to load settings file: /opt/iobroker/iobroker-data/node-red/settings.js

                  und das geht immer so weiter
                  
                  Die datei
                  
                  /opt/iobroker/iobroker-data/node-red/settings.js
                  
                  ist vorhanden und hat die Rechte 777
                  
                  Gruß
                  
                  Rainer
                  
                  iobroker auf RasPi 2
                  
                  RaspBian vom 05.05.2015
                  
                  js-controller 0.7.11
                  
                  node-red 0.3.5
                  
                  WIN7 Home mit Chrome</ip> `  
                  

                  Hast du zusätzliche Module in Settings?

                  1 Antwort Letzte Antwort
                  0
                  • HomoranH Nicht stören
                    HomoranH Nicht stören
                    Homoran
                    Global Moderator Administrators
                    schrieb am zuletzt editiert von
                    #22

                    @Bluefox:

                    Hast du zusätzliche Module in Settings? `
                    Ja!

                    node-pushbullet

                    Gruß

                    Rainer

                    EDIT:

                    Ohne läufts auch nicht!

                    EDIT2:

                    ist aber bereits installiert:

                    /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-pushbullet
                    

                    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 Antwort Letzte Antwort
                    0
                    • BluefoxB Offline
                      BluefoxB Offline
                      Bluefox
                      schrieb am zuletzt editiert von
                      #23

                      @Homoran:

                      @Bluefox:

                      Hast du zusätzliche Module in Settings? `
                      Ja!

                      node-pushbullet

                      Gruß

                      Rainer

                      EDIT:

                      Ohne läufts auch nicht!

                      EDIT2:

                      ist aber bereits installiert:

                      /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-pushbullet
                      ```` `  
                      

                      Kannst du settings.js zeigen?

                      1 Antwort Letzte Antwort
                      0
                      • HomoranH Nicht stören
                        HomoranH Nicht stören
                        Homoran
                        Global Moderator Administrators
                        schrieb am zuletzt editiert von
                        #24

                        Heute nicht mehr

                        Gesendet von meinem LIFETAB_S785X mit Tapatalk

                        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 Antwort Letzte Antwort
                        0
                        • HomoranH Nicht stören
                          HomoranH Nicht stören
                          Homoran
                          Global Moderator Administrators
                          schrieb am zuletzt editiert von
                          #25

                          Hier:

                          /**
                           * Copyright 2013 IBM Corp.
                           *
                           * Licensed under the Apache License, Version 2.0 (the "License");
                           * you may not use this file except in compliance with the License.
                           * You may obtain a copy of the License at
                           *
                           * http://www.apache.org/licenses/LICENSE-2.0
                           *
                           * Unless required by applicable law or agreed to in writing, software
                           * distributed under the License is distributed on an "AS IS" BASIS,
                           * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                           * See the License for the specific language governing permissions and
                           * limitations under the License.
                           **/
                          
                          // The `https` setting requires the `fs` module. Uncomment the following
                          // to make it available:
                          //var fs = require("fs");
                          
                          module.exports = {
                              // the tcp port that the Node-RED web server is listening on
                              uiPort: '%%port%%',
                          
                              // By default, the Node-RED UI accepts connections on all IPv4 interfaces.
                              // The following property can be used to listen on a specific interface. For
                              // example, the following would only allow connections from the local machine.
                              //uiHost: "127.0.0.1",
                              iobrokerInstance: '%%instance%%',
                              iobrokerConfig: '%%config%%',
                          
                              // Retry time in milliseconds for MQTT connections
                              mqttReconnectTime: 15000,
                          
                              // Retry time in milliseconds for Serial port connections
                              serialReconnectTime: 15000,
                          
                              // Retry time in milliseconds for TCP socket connections
                              //socketReconnectTime: 10000,
                          
                              // Timeout in milliseconds for TCP server socket connections
                              //  defaults to no timeout
                              //socketTimeout: 120000,
                          
                              // Maximum number of lines in debug window before pruning
                              debugMaxLength: 1000,
                          
                              // The file containing the flows. If not set, it defaults to flows_<hostname>.json
                              flowFile: 'flows.json',
                          
                              // To enabled pretty-printing of the flow within the flow file, set the following
                              //  property to true:
                              flowFilePretty: true,
                          
                              // By default, all user data is stored in the Node-RED install directory. To
                              // use a different location, the following property can be used
                              userDir: __dirname + '/',
                          
                              // Node-RED scans the `nodes` directory in the install directory to find nodes.
                              // The following property can be used to specify an additional directory to scan.
                              nodesDir: '%%nodesdir%%',
                          
                              // By default, the Node-RED UI is available at http://localhost:1880/
                              // The following property can be used to specify a different root path.
                              // If set to false, this is disabled.
                              //httpAdminRoot: '/admin',
                          
                              // You can protect the user interface with a userid and password by using the following property.
                              // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                              //httpAdminAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                          
                              // Some nodes, such as HTTP In, can be used to listen for incoming http requests.
                              // By default, these are served relative to '/'. The following property
                              // can be used to specifiy a different root path. If set to false, this is
                              // disabled.
                              //httpNodeRoot: '/nodes',
                          
                              // To password protect the node-defined HTTP endpoints, the following property
                              // can be used.
                              // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                              //httpNodeAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                          
                              // When httpAdminRoot is used to move the UI to a different root path, the
                              // following property can be used to identify a directory of static content
                              // that should be served at http://localhost:1880/.
                              //httpStatic: '/home/nol/node-red-dashboard/',
                          
                              // To password protect the static content, the following property can be used.
                              // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                              //httpStaticAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                          
                              // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
                              // to apply the same root to both parts.
                              //httpRoot: '/red',
                          
                              // The following property can be used in place of 'httpAdminAuth' and 'httpNodeAuth',
                              // to apply the same authentication to both parts.
                              //httpAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                          
                              // The following property can be used to disable the editor. The admin API
                              // is not affected by this option. To disable both the editor and the admin
                              // API, use either the httpRoot or httpAdminRoot properties
                              //disableEditor: false,
                          
                              // The following property can be used to enable HTTPS
                              // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
                              // for details on its contents.
                              // See the comment at the top of this file on how to load the `fs` module used by
                              // this setting.
                              // 
                              //https: {
                              //    key: fs.readFileSync('privatekey.pem'),
                              //    cert: fs.readFileSync('certificate.pem')
                              //},
                          
                              // The following property can be used to configure cross-origin resource sharing
                              // in the HTTP nodes.
                              // See https://github.com/troygoode/node-cors#configuration-options for
                              // details on its contents. The following is a basic permissive set of options:
                              //httpNodeCors: {
                              //    origin: "*",
                              //    methods: "GET,PUT,POST,DELETE"
                              //},
                          
                              // Anything in this hash is globally available to all functions.
                              // It is accessed as context.global.
                              // eg:
                              //    functionGlobalContext: { os:require('os') }
                              // can be accessed in a function block as:
                              //    context.global.os
                          
                              functionGlobalContext: {
                                  //'%%functionGlobalContext%%'
                                  // os:require('os'),
                                  // bonescript:require('bonescript'),
                                  // arduino:require('duino')
                              }
                          
                          }</hostname> 
                          

                          Gruß

                          Rainer

                          Gesendet von meinem LIFETAB_S785X mit Tapatalk

                          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 Antwort Letzte Antwort
                          0
                          • BluefoxB Offline
                            BluefoxB Offline
                            Bluefox
                            schrieb am zuletzt editiert von
                            #26

                            Bist du sicher, dass es wirklich

                            /opt/iobroker/iobroker-data/node-red/settings.js

                            ist, weil es sieht nach

                            /opt/iobroker/node_modules/iobroker.node-red/settings.js

                            aus?

                            1 Antwort Letzte Antwort
                            0
                            • HomoranH Nicht stören
                              HomoranH Nicht stören
                              Homoran
                              Global Moderator Administrators
                              schrieb am zuletzt editiert von
                              #27

                              Sorry, du hast wahrscheinlich recht wie immer :(

                              Mach ich, wenn ich wieder zu Hause bin.

                              Gruß

                              Rainer

                              Gesendet von meinem Cynus T7 mit Tapatalk
                              5104_akku.png
                              5104_battery.txt

                              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 Antwort Letzte Antwort
                              0
                              • HomoranH Nicht stören
                                HomoranH Nicht stören
                                Homoran
                                Global Moderator Administrators
                                schrieb am zuletzt editiert von
                                #28

                                Hallo Bluefox,

                                die Datei /opt/iobroker/iobroker-data/node-red/settings.js sieht so aus:

                                ! ````
                                /**

                                • Copyright 2013 IBM Corp.
                                • Licensed under the Apache License, Version 2.0 (the "License");
                                • you may not use this file except in compliance with the License.
                                • You may obtain a copy of the License at
                                • http://www.apache.org/licenses/LICENSE-2.0
                                • Unless required by applicable law or agreed to in writing, software
                                • distributed under the License is distributed on an "AS IS" BASIS,
                                • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                • See the License for the specific language governing permissions and
                                • limitations under the License.
                                  **/

                                ! // The https setting requires the fs module. Uncomment the following
                                // to make it available:
                                //var fs = require("fs");
                                ! module.exports = {
                                // the tcp port that the Node-RED web server is listening on
                                uiPort: 1880,
                                ! // By default, the Node-RED UI accepts connections on all IPv4 interfaces.
                                // The following property can be used to listen on a specific interface. For
                                // example, the following would only allow connections from the local machine.
                                //uiHost: "127.0.0.1",
                                iobrokerInstance: 0,
                                iobrokerConfig: {"network":{"IPv4":true,"IPv6":true,"bindAddress":null},"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},"states":{"type":"file","typeComment":"Possible values: 'file' - [port 9000], 'redis' - [port 6379].","host":"127.0.0.1","port":9000,"options":{"auth_pass":null,"retry_max_delay":15000}},"log":{"level":"debug","transport":{"syslog1":{"type":"syslog","enabled":false,"host":"127.0.0.1","port":"514","protocol":"udp4","facility":"local0"},"file1":{"type":"file","enabled":true,"filename":"log/iobroker.log","maxsize":null,"maxFiles":null}}},"dataDirComment":"Always relative to iobroker.js-controller/","dataDir":"../../iobroker-data/"},
                                ! // Retry time in milliseconds for MQTT connections
                                mqttReconnectTime: 15000,
                                ! // Retry time in milliseconds for Serial port connections
                                serialReconnectTime: 15000,
                                ! // Retry time in milliseconds for TCP socket connections
                                //socketReconnectTime: 10000,
                                ! // Timeout in milliseconds for TCP server socket connections
                                // defaults to no timeout
                                //socketTimeout: 120000,
                                ! // Maximum number of lines in debug window before pruning
                                debugMaxLength: 1000,
                                ! // The file containing the flows. If not set, it defaults to flows_<hostname>.json
                                flowFile: 'flows.json',
                                ! // To enabled pretty-printing of the flow within the flow file, set the following
                                // property to true:
                                flowFilePretty: true,

                                // By default, all user data is stored in the Node-RED install directory. To
                                // use a different location, the following property can be used
                                userDir: __dirname + '/',
                                

                                ! // Node-RED scans the nodes directory in the install directory to find nodes.
                                // The following property can be used to specify an additional directory to scan.
                                nodesDir: "/opt/iobroker/node_modules/iobroker.node-red/nodes/",
                                ! // By default, the Node-RED UI is available at http://localhost:1880/
                                // The following property can be used to specify a different root path.
                                // If set to false, this is disabled.
                                //httpAdminRoot: '/admin',
                                ! // You can protect the user interface with a userid and password by using the following property.
                                // The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                //httpAdminAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                ! // Some nodes, such as HTTP In, can be used to listen for incoming http requests.
                                // By default, these are served relative to '/'. The following property
                                // can be used to specifiy a different root path. If set to false, this is
                                // disabled.
                                //httpNodeRoot: '/nodes',

                                // To password protect the node-defined HTTP endpoints, the following property
                                // can be used.
                                // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                //httpNodeAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                
                                // When httpAdminRoot is used to move the UI to a different root path, the
                                // following property can be used to identify a directory of static content
                                // that should be served at http://localhost:1880/.
                                //httpStatic: '/home/nol/node-red-dashboard/',
                                

                                ! // To password protect the static content, the following property can be used.
                                // The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                //httpStaticAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},

                                // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
                                // to apply the same root to both parts.
                                //httpRoot: '/red',
                                
                                // The following property can be used in place of 'httpAdminAuth' and 'httpNodeAuth',
                                // to apply the same authentication to both parts.
                                //httpAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                
                                // The following property can be used to disable the editor. The admin API
                                // is not affected by this option. To disable both the editor and the admin
                                // API, use either the httpRoot or httpAdminRoot properties
                                //disableEditor: false,
                                
                                // The following property can be used to enable HTTPS
                                // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
                                // for details on its contents.
                                // See the comment at the top of this file on how to load the `fs` module used by
                                // this setting.
                                // 
                                //https: {
                                //    key: fs.readFileSync('privatekey.pem'),
                                //    cert: fs.readFileSync('certificate.pem')
                                //},
                                

                                ! // The following property can be used to configure cross-origin resource sharing
                                // in the HTTP nodes.
                                // See https://github.com/troygoode/node-cors#configuration-options for
                                // details on its contents. The following is a basic permissive set of options:
                                //httpNodeCors: {
                                // origin: "*",
                                // methods: "GET,PUT,POST,DELETE"
                                //},

                                // Anything in this hash is globally available to all functions.
                                // It is accessed as context.global.
                                // eg:
                                //    functionGlobalContext: { os:require('os') }
                                // can be accessed in a function block as:
                                //    context.global.os
                                

                                ! functionGlobalContext: {
                                //
                                "node-pushbullet": require("/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-pushbullet")
                                // os:require('os'),
                                // bonescript:require('bonescript'),
                                // arduino:require('duino')
                                }
                                ! }</hostname>

                                
                                die Datei /opt/iobroker/node_modules/iobroker.node-red/settings.js sieht so aus:
                                
                                >! ````
                                /**
                                 * Copyright 2013 IBM Corp.
                                 *
                                 * Licensed under the Apache License, Version 2.0 (the "License");
                                 * you may not use this file except in compliance with the License.
                                 * You may obtain a copy of the License at
                                 *
                                 * http://www.apache.org/licenses/LICENSE-2.0
                                 *
                                 * Unless required by applicable law or agreed to in writing, software
                                 * distributed under the License is distributed on an "AS IS" BASIS,
                                 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                 * See the License for the specific language governing permissions and
                                 * limitations under the License.
                                 **/
                                >! // The `https` setting requires the `fs` module. Uncomment the following
                                // to make it available:
                                //var fs = require("fs");
                                >! module.exports = {
                                    // the tcp port that the Node-RED web server is listening on
                                    uiPort: '%%port%%',
                                >!     // By default, the Node-RED UI accepts connections on all IPv4 interfaces.
                                    // The following property can be used to listen on a specific interface. For
                                    // example, the following would only allow connections from the local machine.
                                    //uiHost: "127.0.0.1",
                                    iobrokerInstance: '%%instance%%',
                                    iobrokerConfig: '%%config%%',
                                >!     // Retry time in milliseconds for MQTT connections
                                    mqttReconnectTime: 15000,
                                >!     // Retry time in milliseconds for Serial port connections
                                    serialReconnectTime: 15000,
                                >!     // Retry time in milliseconds for TCP socket connections
                                    //socketReconnectTime: 10000,
                                >!     // Timeout in milliseconds for TCP server socket connections
                                    //  defaults to no timeout
                                    //socketTimeout: 120000,
                                >!     // Maximum number of lines in debug window before pruning
                                    debugMaxLength: 1000,
                                >!     // The file containing the flows. If not set, it defaults to flows_<hostname>.json
                                    flowFile: 'flows.json',
                                >!     // To enabled pretty-printing of the flow within the flow file, set the following
                                    //  property to true:
                                    flowFilePretty: true,
                                
                                    // By default, all user data is stored in the Node-RED install directory. To
                                    // use a different location, the following property can be used
                                    userDir: __dirname + '/',
                                >!     // Node-RED scans the `nodes` directory in the install directory to find nodes.
                                    // The following property can be used to specify an additional directory to scan.
                                    nodesDir: '%%nodesdir%%',
                                >!     // By default, the Node-RED UI is available at http://localhost:1880/
                                    // The following property can be used to specify a different root path.
                                    // If set to false, this is disabled.
                                    //httpAdminRoot: '/admin',
                                >!     // You can protect the user interface with a userid and password by using the following property.
                                    // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                    //httpAdminAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                >!     // Some nodes, such as HTTP In, can be used to listen for incoming http requests.
                                    // By default, these are served relative to '/'. The following property
                                    // can be used to specifiy a different root path. If set to false, this is
                                    // disabled.
                                    //httpNodeRoot: '/nodes',
                                
                                    // To password protect the node-defined HTTP endpoints, the following property
                                    // can be used.
                                    // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                    //httpNodeAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                
                                    // When httpAdminRoot is used to move the UI to a different root path, the
                                    // following property can be used to identify a directory of static content
                                    // that should be served at http://localhost:1880/.
                                    //httpStatic: '/home/nol/node-red-dashboard/',
                                >!     // To password protect the static content, the following property can be used.
                                    // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
                                    //httpStaticAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                
                                    // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
                                    // to apply the same root to both parts.
                                    //httpRoot: '/red',
                                
                                    // The following property can be used in place of 'httpAdminAuth' and 'httpNodeAuth',
                                    // to apply the same authentication to both parts.
                                    //httpAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
                                
                                    // The following property can be used to disable the editor. The admin API
                                    // is not affected by this option. To disable both the editor and the admin
                                    // API, use either the httpRoot or httpAdminRoot properties
                                    //disableEditor: false,
                                
                                    // The following property can be used to enable HTTPS
                                    // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
                                    // for details on its contents.
                                    // See the comment at the top of this file on how to load the `fs` module used by
                                    // this setting.
                                    // 
                                    //https: {
                                    //    key: fs.readFileSync('privatekey.pem'),
                                    //    cert: fs.readFileSync('certificate.pem')
                                    //},
                                >!     // The following property can be used to configure cross-origin resource sharing
                                    // in the HTTP nodes.
                                    // See https://github.com/troygoode/node-cors#configuration-options for
                                    // details on its contents. The following is a basic permissive set of options:
                                    //httpNodeCors: {
                                    //    origin: "*",
                                    //    methods: "GET,PUT,POST,DELETE"
                                    //},
                                
                                    // Anything in this hash is globally available to all functions.
                                    // It is accessed as context.global.
                                    // eg:
                                    //    functionGlobalContext: { os:require('os') }
                                    // can be accessed in a function block as:
                                    //    context.global.os
                                >!     functionGlobalContext: {
                                        //'%%functionGlobalContext%%'
                                        // os:require('os'),
                                        // bonescript:require('bonescript'),
                                        // arduino:require('duino')
                                    }
                                >! }</hostname> 
                                

                                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 Antwort Letzte Antwort
                                0
                                • BluefoxB Offline
                                  BluefoxB Offline
                                  Bluefox
                                  schrieb am zuletzt editiert von
                                  #29

                                  @Rainer: Ist noch aktuell?

                                  1 Antwort Letzte Antwort
                                  0
                                  • HomoranH Nicht stören
                                    HomoranH Nicht stören
                                    Homoran
                                    Global Moderator Administrators
                                    schrieb am zuletzt editiert von
                                    #30

                                    @Bluefox:

                                    @Rainer: Ist noch aktuell? `
                                    Hab irgendwie :shock: gelöscht und neu installiert - läuft jetzt wieder. Hat aber länger gedauert, ging nicht auf Anhieb.

                                    Lass gut sein, du hast genug zu tun. Wenn es wieder auftritt versuch ich mal die Ursache, oder Zusammenhänge genau herauszubekommen.

                                    Danke

                                    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 Antwort Letzte Antwort
                                    0
                                    • BluefoxB Bluefox

                                      @Homoran:

                                      Seit ein paar Tagen läuft mein node red nicht mehr. Ich kann die Seite weder über den node-red Tab noch über den link unter Instanzen aufrufen.

                                      In beiden fällen kommt Seite nicht verfügbar. Oder err_connection_refused.

                                      Teilweise erscheint das node-red icon im Browser-Tab. Letzten blitzte beim Seite neu laden auch kurz die Arbeitsfläche auf.

                                      Ich habe jetzt zuerst die Instanz, dann den gesamten Adapter gelöscht und neu installiert. Ohne Erfolg.

                                      Zwischen drin meine ich gesehen zu haben, dass es eine Warnung gab, npm >1.4 (?) würde benötigt, ich hätte aber nur 1.3x!

                                      Kann das zu diesen Problemen führen?

                                      Log sagt

                                      node-red-02015-08-11 20:12:55infonode-red exited with 1node-red-02015-08-11 20:12:37infoStarting node-red: /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
                                      
                                      

                                      Gruß

                                      Rainer

                                      Gesendet von meinem LIFETAB_S785X mit Tapatalk `
                                      Was kommt bei dir:

                                      cd /opt/iobroker
                                      iobroker stop node-red.0
                                      node node_modules/iobroker.node-red/main.js --force
                                      
                                      
                                      AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      schrieb am zuletzt editiert von
                                      #31

                                      @Bluefox sagte in Probleme mit node-red:

                                      node node_modules/iobroker.node-red/main.js --force

                                      mega !!! bei mir hat der befehl geholfen ! Vielen Dank

                                      1 Antwort Letzte Antwort
                                      0
                                      Antworten
                                      • In einem neuen Thema antworten
                                      Anmelden zum Antworten
                                      • Älteste zuerst
                                      • Neuste zuerst
                                      • Meiste Stimmen


                                      Support us

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

                                      609

                                      Online

                                      32.5k

                                      Benutzer

                                      81.7k

                                      Themen

                                      1.3m

                                      Beiträge
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                      ioBroker Community 2014-2025
                                      logo
                                      • Anmelden

                                      • Du hast noch kein Konto? Registrieren

                                      • Anmelden oder registrieren, um zu suchen
                                      • Erster Beitrag
                                        Letzter Beitrag
                                      0
                                      • Home
                                      • Aktuell
                                      • Tags
                                      • Ungelesen 0
                                      • Kategorien
                                      • Unreplied
                                      • Beliebt
                                      • GitHub
                                      • Docu
                                      • Hilfe