Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter doorio v2.1.2

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter doorio v2.1.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • Wal
      Wal Developer @AingTii last edited by

      @aingtii ,
      in der Datei https://github.com/baresip/baresip/blob/master/mk/modules.mk siehst du welche Dateien vorhanden sein müssen, um das Modul zu erstellen. Um vp8.so zu erstellen braucht baresip die Datei vp8.h und die ist im Paket libvpx-dev enthalten.

      sudo apt install libvpx-dev
      
      1 Reply Last reply Reply Quote 0
      • A
        AingTii last edited by

        @wal

        Ok, danke das hat schon mal geklappt.

        nun verbindet baresip sich nicht mehr mit dem 3cx server, immer timeout...
        Das muss auch einer verstehen.....

        Also wieder rumfummeln um den Fehler zu finden 🤔

        1 Reply Last reply Reply Quote 0
        • A
          AingTii last edited by

          bin schon mal ein stück weiter, videotelefonie funktioniert über 3cx

          allerdings, wieder dieses komische verhalten, starte ich baresip automatisch,
          egal ob über ssh aus Nodered oder per autostart wie oben beschrieben wird die Verbindung
          gleich wieder beendet nach dem abnehmen.

          Auch ist das Problem, dass ich auf jeden Fall

          export DISPLAY=:0
          

          eingeben muss damit die videoverbindung funktioniert.

          Beendet ich baresip über killall und starte es in der console manuell, geht alles (export DISPLAY.... vorrausgesetzt)

          Da frage ich mich, was ist der unterschied, ob ich mich mit putty oder per Nodered mit dem user Pi einlogge,
          das es sich unterschiedlich verhält

          Danke
          Gruß Jens

          Wal 1 Reply Last reply Reply Quote 0
          • Wal
            Wal Developer @AingTii last edited by

            @aingtii ,
            das kann nur ein Rechte Problem sein. Das Beste wäre auch, wenn du einen neuen Thread erstellst, da es nichts mit dem Adapter zu tun hat. 😉

            1 Reply Last reply Reply Quote 0
            • R
              RayJayVaughan last edited by

              Hallo zusammen,

              ich sezte gerade auf einem zero w einen baresip-client auf Basis des hier verfügbaren images um. Um Videotelefonie zu ermöglichen bzw. das Bild von meiner Haustür einzufangen, habe ich noch den mjpg-controller installiert. Ich bekomme diesen auch problemlos gestartet. Will ich diesen aber automatisch per Systemdienst starten, funktioniert das nicht.

              Meine Servicedatei sieht wie folgt aus /etc/systemd/system/doorcam.service

              [Unit]
              Description=doorcam
              After=syslog.target network.target
              
              [Service]
              
              Type=simple
              User=pi
              ExecStart=/usr/local/bin/doorcam.sh
              WorkingDirectory=/usr/local/bin/
              StandardOutput=inherit
              StandardError=inherit
              
              
              [Install]
              WantedBy=multi-user.target
              
              

              Die script-Datei /usr/local/bin/doorcam.sh

              #!/bin/sh
              
              export LD_LIBRARY_PATH=/urs/local/bin
              sudo /usr/local/bin/mjpg_streamer -i "input_uvc.so -r 1280x720 -d /dev/video0 -f 30" -o "output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www" &
              
              

              Führe ich die Datei doorcam.sh lokal über putty aus, dann sieht es wie folgt aus (und die Camera ist über den WebBrowser erreichbar).

              pi@raspberrypi:/etc/systemd/system $ MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
               i: Using V4L2 device.: /dev/video0
               i: Desired Resolution: 1280 x 720
               i: Frames Per Second.: 30
               i: Format............: JPEG
               i: TV-Norm...........: DEFAULT
              UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
              UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
               o: www-folder-path......: /usr/local/share/mjpg-streamer/www/
               o: HTTP TCP port........: 8080
               o: HTTP Listen Address..: (null)
               o: username:password....: disabled
               o: commands.............: enabled
              
              

              sudo systemctl start doorcam

              liefert

              pi@raspberrypi:/etc/systemd/system $ sudo systemctl status doorcam
              ● doorcam.service - doorcam
                 Loaded: loaded (/etc/systemd/system/doorcam.service; disabled; vendor preset: enabled)
                 Active: inactive (dead)
              
              Mai 31 17:05:08 raspberrypi systemd[1]: Stopped doorcam.
              Mai 31 17:05:08 raspberrypi systemd[1]: Started doorcam.
              Mai 31 17:05:08 raspberrypi systemd[1]: doorcam.service: Succeeded.
              Mai 31 17:05:10 raspberrypi systemd[1]: Stopped doorcam.
              Mai 31 17:05:37 raspberrypi systemd[1]: Started doorcam.
              Mai 31 17:05:37 raspberrypi systemd[1]: doorcam.service: Succeeded.
              Mai 31 17:08:01 raspberrypi systemd[1]: Started doorcam.
              Mai 31 17:08:01 raspberrypi systemd[1]: doorcam.service: Succeeded.
              Mai 31 17:20:14 raspberrypi systemd[1]: Started doorcam.
              Mai 31 17:20:14 raspberrypi systemd[1]: doorcam.service: Succeeded.
              
              

              Aber unter pstree ist kein Job sichtbar. Das Webfrontend des Streamers läuft ebenfalls nicht. Setze ich in der Service-Datei Restart auf always, dann startet er zwar in einer Endlosschleife (zumindest theoretisch) den Job, praktisch aber nicht. Das Protokoll sagt Folgendes dazu

              May 31 17:20:14 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked executable. Please remove executable permission bits. Proceeding anyway.
              May 31 17:20:14 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
              May 31 17:20:14 raspberrypi systemd[1]: Started doorcam.
              May 31 17:20:14 raspberrypi systemd[1]: doorcam.service: Succeeded.
              May 31 17:20:14 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked executable. Please remove executable permission bits. Proceeding anyway.
              May 31 17:20:14 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
              May 31 17:20:35 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked executable. Please remove executable permission bits. Proceeding anyway.
              May 31 17:20:35 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
              May 31 17:20:35 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked executable. Please remove executable permission bits. Proceeding anyway.
              May 31 17:20:35 raspberrypi systemd[1]: Configuration file /etc/systemd/system/doorcam.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
              
              

              Sorry, will Euch nicht vollspammen.....aber ich hab das ganze Wochenende damit verbracht...leider erfolglos

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @RayJayVaughan last edited by Thomas Braun

                @rayjayvaughan sagte in Test Adapter doorio v2.0.1:

                systemctl status doorcam
                

                sagt? Masked? Disabled?

                getfacl /etc/systemd/system/doorcam.service
                

                sagt?

                R 1 Reply Last reply Reply Quote 0
                • R
                  RayJayVaughan @Thomas Braun last edited by

                  @thomas-braun

                  pi@raspberrypi:/etc/systemd/system $ systemctl status doorcam
                  ● doorcam.service - doorcam
                     Loaded: loaded (/etc/systemd/system/doorcam.service; disabled; vendor preset: enabled)
                     Active: inactive (dead)
                  
                  Mai 31 17:05:08 raspberrypi systemd[1]: Stopped doorcam.
                  Mai 31 17:05:08 raspberrypi systemd[1]: Started doorcam.
                  Mai 31 17:05:08 raspberrypi systemd[1]: doorcam.service: Succeeded.
                  Mai 31 17:05:10 raspberrypi systemd[1]: Stopped doorcam.
                  Mai 31 17:05:37 raspberrypi systemd[1]: Started doorcam.
                  Mai 31 17:05:37 raspberrypi systemd[1]: doorcam.service: Succeeded.
                  Mai 31 17:08:01 raspberrypi systemd[1]: Started doorcam.
                  Mai 31 17:08:01 raspberrypi systemd[1]: doorcam.service: Succeeded.
                  Mai 31 17:20:14 raspberrypi systemd[1]: Started doorcam.
                  Mai 31 17:20:14 raspberrypi systemd[1]: doorcam.service: Succeeded.
                  
                  
                  R Thomas Braun 2 Replies Last reply Reply Quote 0
                  • R
                    RayJayVaughan @RayJayVaughan last edited by

                    @rayjayvaughan

                    pi@raspberrypi:/etc/systemd/system $ getfacl /etc/systemd/system/doorcam.service
                    -bash: getfacl: Kommando nicht gefunden.
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @RayJayVaughan last edited by

                      @rayjayvaughan

                      sudo systemctl enable doorcam
                      

                      Und bitte noch

                      getfacl /etc/systemd/system/doorcam.service
                      

                      nachliefern.

                      1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @RayJayVaughan last edited by

                        @rayjayvaughan
                        Nanu?

                        Dann mal mit

                        ls -la /etc/systemd/system/doorcam.service
                        

                        nach den Rechten schauen.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          RayJayVaughan @Thomas Braun last edited by

                          @thomas-braun

                          pi@raspberrypi:/etc/systemd/system $ ls -la /etc/systemd/system/doorcam.service
                          -rwxrwxrwx 1 root root 267 Mai 31 17:05 /etc/systemd/system/doorcam.service
                          
                          
                          Thomas Braun 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @RayJayVaughan last edited by Thomas Braun

                            @rayjayvaughan

                            sudo apt update 
                            sudo apt install acl
                            
                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @RayJayVaughan last edited by

                              @rayjayvaughan sagte in Test Adapter doorio v2.0.1:

                              -rwxrwxrwx

                              Wie kommst du eigentlich an die Rechte?
                              Ein touch in dem Verzeichnis legt neue Dateien mit

                              -rw-r--r-- 1 root root
                              

                              an.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                RayJayVaughan @Thomas Braun last edited by

                                @thomas-braun

                                Rootrechte waren mein letzter Versuch 😉 ich wollte die mit chmod wieder beschneiden wenn es läuft.

                                Acl hab ich jetzt installiert.

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @RayJayVaughan last edited by

                                  @rayjayvaughan
                                  Dann muss jetzt

                                  getfacl /etc/systemd/system/doorcam.service
                                  

                                  was liefern.

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    RayJayVaughan @Thomas Braun last edited by

                                    @thomas-braun

                                    pi@raspberrypi:~ $ getfacl /etc/systemd/system/doorcam.service
                                    getfacl: Entferne führende '/' von absoluten Pfadnamen
                                    # file: etc/systemd/system/doorcam.service
                                    # owner: root
                                    # group: root
                                    user::rwx
                                    group::rwx
                                    other::rwx
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @RayJayVaughan last edited by

                                      @rayjayvaughan

                                      In deiner doorcam.sh ist auch ein Typo drin:

                                      #!/bin/sh
                                      export LD_LIBRARY_PATH=/urs/local/bin
                                      

                                      Soll bestimmt

                                      #!/bin/sh
                                      export LD_LIBRARY_PATH=/usr/local/bin
                                      

                                      heißen.

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        RayJayVaughan @Thomas Braun last edited by

                                        @thomas-braun

                                        ...den Typo habe ich korrigiert. Den daemon reloaded, den Service gestoppt, gestartet, gebootet....

                                        pi@raspberrypi:~ $ sudo systemctl status doorcam.service
                                        ● doorcam.service - doorcam
                                           Loaded: loaded (/etc/systemd/system/doorcam.service; disabled; vendor preset: enabled)
                                           Active: inactive (dead)
                                        
                                        Jun 01 09:15:05 raspberrypi systemd[1]: Started doorcam.
                                        Jun 01 09:15:05 raspberrypi systemd[1]: doorcam.service: Succeeded.
                                        Jun 01 09:16:37 raspberrypi systemd[1]: Started doorcam.
                                        Jun 01 09:16:37 raspberrypi systemd[1]: doorcam.service: Succeeded.
                                        Jun 01 09:16:41 raspberrypi systemd[1]: Started doorcam.
                                        Jun 01 09:16:41 raspberrypi systemd[1]: doorcam.service: Succeeded.
                                        Jun 01 09:16:43 raspberrypi systemd[1]: Started doorcam.
                                        Jun 01 09:16:43 raspberrypi systemd[1]: doorcam.service: Succeeded.
                                        Jun 01 09:23:46 raspberrypi systemd[1]: Started doorcam.
                                        Jun 01 09:23:46 raspberrypi systemd[1]: doorcam.service: Succeeded.
                                        
                                        
                                        

                                        ...aber leider hat das nichts geändert. Der streamer startet nicht.

                                        Wal 1 Reply Last reply Reply Quote 0
                                        • Wal
                                          Wal Developer @RayJayVaughan last edited by Wal

                                          @rayjayvaughan,
                                          falls du RPI OS nutzt, funktioniert das mit dem User in der doorcam.service nicht mehr.
                                          Du mußt das so machen wie auf Seite 25 mit dem baresip.service von mir beschrieben, halt nur mit der doorcam.service.

                                          Autostart als User einrichten:

                                          sudo loginctl enable-linger pi
                                          
                                          mkdir -p ~/.config/systemd/user/
                                          nano ~/.config/systemd/user/baresip.service
                                          

                                          das einfügen:

                                          [Unit]
                                          Description=baresip
                                          
                                          [Service]
                                          ExecStart=/usr/local/bin/baresip -4 -f /home/pi/.baresip
                                          
                                          [Install]
                                          WantedBy=default.target
                                          

                                          aktivieren und reboot:

                                          systemctl --user daemon-reload
                                          systemctl --user enable baresip.service
                                          sudo reboot
                                          
                                          R 2 Replies Last reply Reply Quote 0
                                          • R
                                            RayJayVaughan @Wal last edited by

                                            @wal

                                            Bislang habe ich mit Deinem Image gearbeitet. Ich werde jetzt aber noch einmal alles neu auf aktuellem RPi OS aufsetzen und dann so einzurichten, denn ich scheine mich im Kreis zu drehen. Danke für Euren Support.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            996
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            door intercom doorpi türsprechstelle
                                            34
                                            583
                                            116402
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo