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. Rasppi(gpio) und iobroker ein Smarthome

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

Rasppi(gpio) und iobroker ein Smarthome

Scheduled Pinned Locked Moved ioBroker Allgemein
23 Posts 4 Posters 5.7k 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.
  • R Offline
    R Offline
    RappiRN
    Most Active
    wrote on last edited by
    #11

    @Dutchman:

    Er hat keine berechtigungen, die RPI adapter documentation auf github sagt das iobroker als root laufen muss sonst kan er die pins nicht steuern. `

    Ich brauch das zwar nicht, aber der Vollständigkeit halber, wie stellt man das ein?

    Enrico

    1 Reply Last reply
    0
    • DutchmanD Offline
      DutchmanD Offline
      Dutchman
      Developer Most Active Administrators
      wrote on last edited by
      #12

      @RappiRN:

      @Dutchman:

      Er hat keine berechtigungen, die RPI adapter documentation auf github sagt das iobroker als root laufen muss sonst kan er die pins nicht steuern. `

      Ich brauch das zwar nicht, aber der Vollständigkeit halber, wie stellt man das ein?

      Enrico `

      Entweder man startet ioBroker aus root (root ist man nach dem Commando "sudo su")

      Oder

      Man lässt ioBroker als Service laufen.

      Bei mir habe ich ioBroker installiert mir sudo, danach per root als Service festgelegt.

      Ich such Mal schnell die befehle

      edit: Found it:

      cp /opt/iobroker/node_modules/iobroker/install/linux/iobroker.sh /etc/init.d/
      chmod 777 /etc/init.d/iobroker.sh
      bash /opt/iobroker/node_modules/iobroker/install/linux/install.sh
      
      

      Dieses iobroker.sh sorgt fuer laufenim root siehe code der datei:

      #!/bin/bash
      ### BEGIN INIT INFO
      # Provides:          iobroker.sh
      # Required-Start:    $network $local_fs $remote_fs
      # Required-Stop::    $network $local_fs $remote_fs
      # Default-Start:     2 3 4 5
      # Default-Stop:      0 1 6
      # Short-Description: starts ioBroker
      # Description:       starts ioBroker
      ### END INIT INFO
      (( EUID )) && echo .You need to have root privileges.. && exit 1
      PIDF=/opt/iobroker/node_modules/iobroker.js-controller/lib/iobroker.pid
      NODECMD=/usr/bin/node
      IOBROKERCMD=/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
      RETVAL=0
      IOBROKERUSER=root
      
      start() {
                  export IOBROKER_HOME=/opt/iobroker
                  echo -n "Starting ioBroker"
                  sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD start
                  RETVAL=$?
      }
      
      stop() {
                  echo -n "Stopping ioBroker"
                  sudo -u ${IOBROKERUSER} $NODECMD $IOBROKERCMD stop
                  RETVAL=$?
      }
      case "$1" in
          start)
            start
        ;;
          stop)
            stop
        ;;
          restart)
            stop
            start
        ;;
          *)
            echo "Usage: iobroker {start|stop|restart}"
            exit 1
        ;;
      esac
      exit $RETVAL
      
      

      –-----------------------

      Send from mobile device

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RappiRN
        Most Active
        wrote on last edited by
        #13

        Wenn ich deinen Code ausführe kommt:

        root@ioBroker-BPi:~# cp /opt/iobroker/node_modules/iobroker/install/linux/iobrok                 er.sh /etc/init.d/
        root@ioBroker-BPi:~# chmod 777 /etc/init.d/iobroker.sh
        root@ioBroker-BPi:~# bash /opt/iobroker/node_modules/iobroker/install/linux/inst                 all.sh
        Use user root for install.
        Set permissions...
        Start iobroker...
        : No such file or directory
        call http://ip_address:8081/ in browser to get the AdminUI of ioBroker
        root@ioBroker-BPi:~# ^C
        root@ioBroker-BPi:~#
        
        

        Die iobroker.sh ist vorhanden im angegebenen Pfad.

        Enrico

        1 Reply Last reply
        0
        • DutchmanD Offline
          DutchmanD Offline
          Dutchman
          Developer Most Active Administrators
          wrote on last edited by
          #14

          ich sehe da lehrzeichen bei dir ?

          root@ioBroker-BPi:~# cp /opt/iobroker/node_modules/iobroker/install/linux/iobrok                 er.sh /etc/init.d/
          root@ioBroker-BPi:~# chmod 777 /etc/init.d/iobroker.sh
          root@ioBroker-BPi:~# bash /opt/iobroker/node_modules/iobroker/install/linux/inst                 all.sh
          
          

          dein iobroker ist wohl in diesem verzeichnis installiert ?

          /opt/iobroker/
          

          ~Dutch

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RappiRN
            Most Active
            wrote on last edited by
            #15

            @Dutchman:

            ich sehe da lehrzeichen bei dir ?

            root@ioBroker-BPi:~# cp /opt/iobroker/node_modules/iobroker/install/linux/iobrok                 er.sh /etc/init.d/
            root@ioBroker-BPi:~# chmod 777 /etc/init.d/iobroker.sh
            root@ioBroker-BPi:~# bash /opt/iobroker/node_modules/iobroker/install/linux/inst                 all.sh
            
            ```` `  
            

            Die Leerzeichen kommen vom Zeilenwechsel im kleinen putty-Fenster.

            Ja ist in opt/iobroker.

            Enrico

            1 Reply Last reply
            0
            • DutchmanD Offline
              DutchmanD Offline
              Dutchman
              Developer Most Active Administrators
              wrote on last edited by
              #16

              @RappiRN:

              @Dutchman:

              ich sehe da lehrzeichen bei dir ?

              root@ioBroker-BPi:~# cp /opt/iobroker/node_modules/iobroker/install/linux/iobrok                 er.sh /etc/init.d/
              root@ioBroker-BPi:~# chmod 777 /etc/init.d/iobroker.sh
              root@ioBroker-BPi:~# bash /opt/iobroker/node_modules/iobroker/install/linux/inst                 all.sh
              
              ```` `  
              

              Die Leerzeichen kommen vom Zeilenwechsel im kleinen putty-Fenster.

              Ja ist in opt/iobroker.

              Enrico `

              diese 2 dateien sind aber wohl in deinem installations verzeichnis ?

              /opt/iobroker/node_modules/iobroker/install/linux/iobroker.sh /etc/init.d/
              /opt/iobroker/node_modules/iobroker/install/linux/install.sh
              

              und diese datei ist noch nicht da ?

              /etc/init.d/iobroker.sh
              
              

              startet dein iobroker im moment automatisch (z.b. nach einen reboot der hardware ?)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mafe68
                wrote on last edited by
                #17

                Gehe mal in den Ordner mit

                cd /etc/init.d
                

                und schau ob dort die Datei drin ist

                iobroker.sh
                

                das Kannst du mit dem Befehl machen

                ls -l
                

                LG. Mario

                ioBroker LXC Container Proxmox

                ioBroker BananaPi M1

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mafe68
                  wrote on last edited by
                  #18

                  > Adapter installieren und probieren ;).
                  Werde es dann probieren und berichten ob es auch mit dem Bpi geht 😉

                  LG. Mario

                  ioBroker LXC Container Proxmox

                  ioBroker BananaPi M1

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    RappiRN
                    Most Active
                    wrote on last edited by
                    #19

                    @Dutchman:

                    @RappiRN:

                    @Dutchman:

                    ich sehe da lehrzeichen bei dir ?

                    root@ioBroker-BPi:~# cp /opt/iobroker/node_modules/iobroker/install/linux/iobrok                 er.sh /etc/init.d/
                    root@ioBroker-BPi:~# chmod 777 /etc/init.d/iobroker.sh
                    root@ioBroker-BPi:~# bash /opt/iobroker/node_modules/iobroker/install/linux/inst                 all.sh
                    
                    ```` `  
                    

                    Die Leerzeichen kommen vom Zeilenwechsel im kleinen putty-Fenster.

                    Ja ist in opt/iobroker.

                    Enrico `

                    diese 2 dateien sind aber wohl in deinem installations verzeichnis ?

                    
                    /opt/iobroker/node_modules/iobroker/install/linux/iobroker.sh /etc/init.d/
                    /opt/iobroker/node_modules/iobroker/install/linux/install.sh
                    

                    und diese datei ist noch nicht da ?

                    /etc/init.d/iobroker.sh
                    
                    

                    startet dein iobroker im moment automatisch (z.b. nach einen reboot der hardware ?) `

                    Ja alle drei Dateien sind vorhanden und ioBroker startet automatisch.

                    Enrico

                    1 Reply Last reply
                    0
                    • DutchmanD Offline
                      DutchmanD Offline
                      Dutchman
                      Developer Most Active Administrators
                      wrote on last edited by
                      #20

                      Wie sieht dein Inhalt von /etc/init.d/ioBroker.sh aus ?

                      –-----------------------

                      Send from mobile device

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        RappiRN
                        Most Active
                        wrote on last edited by
                        #21

                        Genau so, wie du weiter oben geschrieben hast.

                        Enrico

                        1 Reply Last reply
                        0
                        • DutchmanD Offline
                          DutchmanD Offline
                          Dutchman
                          Developer Most Active Administrators
                          wrote on last edited by
                          #22

                          @RappiRN:

                          Genau so, wie du weiter oben geschrieben hast.

                          Enrico `

                          sorry dan steh ich auf dem schlauch, es hoert sich an das dein iobroker nicht als root laeuft (der service) und dadurch die pinst nicht steuern kan.

                          Da wir dieses scenario jetzt durchgelaufen haben (bis soweit mein wissen reicht) kan ich dir leider nicht weiterhelfen.

                          Eventuell mal probieren om iobroker zu stoppen und als root zu starten und schaun was dan passiert ?

                          ~Dutch

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            RappiRN
                            Most Active
                            wrote on last edited by
                            #23

                            Ist erstmal nicht weiter tragisch, ich hatte ja geschrieben, dass das momentan noch nicht so wichtig ist. Ich habe noch einen Raspi2 hier und werde den mal bei Gelegenheit scharf machen und damit mal das Gleiche probieren.

                            Danke für deine Bemühungen!

                            Enrico

                            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

                            531

                            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