Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thomsguy @Glasfaser last edited by

      @glasfaser OK, danke

      1 Reply Last reply Reply Quote 0
      • S
        StefanRS last edited by

        Hallo,
        ich hab eine Frage zum Exec Befehl.
        Dieser wird leider nicht ausgeführt. Der Rest funktioniert.
        Wenn ich den Befehl direkt im IoBrokerTerminal ausführe, wird das Bild im Ordner abgelegt.
        Aber wenn der Befehl über das Skript läuft, passiert nix.
        Woran kann das liegen?

        P.S: Mein IoBroker läuft als Docker.

        6107789f-bb89-4fb4-aaff-91ed5b250314-grafik.png

        hydrotec -cs- 2 Replies Last reply Reply Quote 0
        • hydrotec
          hydrotec @StefanRS last edited by

          @stefanrs

          versuch mal den Befehl.
          (Anpassung an deine Umgebung erforderlich)

          wget --quiet --output-document /opt/iobroker/iobroker-data/tmp/dafang01/dafang01.jpg --user <username> --password <password> https://192.168.XXX.XXX/cgi-bin/currentpic.cgi --no-check-certificate
          

          Damit hatte ich ursprünglich meine snapshots der WebCam abgeholt, und per telegram versendet.
          Mit nctalk benötige ich das jetzt nicht mehr 😉

          Gruß, Karsten

          S 1 Reply Last reply Reply Quote 0
          • -cs-
            -cs- @StefanRS last edited by

            @stefanrs sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

            Wenn ich den Befehl direkt im IoBrokerTerminal ausführe, wird das Bild im Ordner abgelegt.
            Aber wenn der Befehl über das Skript läuft, passiert nix.
            Woran kann das liegen?

            Die Rechte der Ordner sind richtig auf iobroker?
            Hatte zu meinen Anfängen auch das Problem, hatte damals vergessen, dass die Ordnerrechte falsch waren.
            Von Unterwegs hab ich die Befehle dazu leider nicht im Kopf.

            S 1 Reply Last reply Reply Quote 1
            • S
              StefanRS @hydrotec last edited by

              @hydrotec Das hat leider nix gebracht. Legt das Bild im Ordner nicht ab.

              hydrotec 1 Reply Last reply Reply Quote 0
              • S
                StefanRS @-cs- last edited by

                @csr dumme Frage: Wie kann ich die Rechte überprüfen? Hab direkt auf der NAS die Berechtigungen für den Ordner auf Lesen/Schreiben gesetzt und im IOBroker bin ich als Admin User drin.

                -cs- 1 Reply Last reply Reply Quote 0
                • hydrotec
                  hydrotec @StefanRS last edited by hydrotec

                  @stefanrs

                  hast du bei der javascript instance auch das Ausführen von exec erlaubt?
                  javascript_instance_01.png

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    StefanRS @hydrotec last edited by

                    @hydrotec ja, hab ich vorher schon aktiviert.
                    Stand Gott sei Dank als Fehlermeldung im Protokoll 🙂

                    hydrotec 1 Reply Last reply Reply Quote 0
                    • hydrotec
                      hydrotec @StefanRS last edited by hydrotec

                      @stefanrs

                      Dann poste doch bitte einmal deinen Befehl komplett.
                      (anonymisiert und in codetags)

                      bzw.
                      Erstell mal ein neues blockly, und da legst du nur den exec Befehl rein.
                      Einmal starten, und nachsehen ob das Bild gespeichert wird.

                      1 Reply Last reply Reply Quote 0
                      • -cs-
                        -cs- @StefanRS last edited by -cs-

                        @stefanrs
                        Kann erst morgen nachschlagen, bin immer noch unterwegs.

                        1 Reply Last reply Reply Quote 0
                        • S
                          StefanRS last edited by

                          Es liegt wohl an den Rechten. Ich hab den Ordner zum Testen unter vis.0 angelegt, das Skript gestartet und jetzt funktioniert es.
                          Muss ich mich mal schlaumachen, wie ich Rechte für Ordner in iobroker vergebe.
                          Thema hat sich somit erledigt
                          Danke für eure Hilfe 🙂

                          1 Reply Last reply Reply Quote 0
                          • T
                            tege0 last edited by

                            Hallo zusammen,
                            ich möchte gerne zusätzlich zum Bild per snap auch eine gif bekommen.

                            Mein test code:

                            ffmpeg -y -i rtsp://admin:PW@192.168.178.48:554/Streaming/Channels/102/?transportmode=unicast -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 15 -O '/opt/iobroker/cambell/alarm.mp4'

                            leider wird kein Bild auf den Pfad abgelegt.

                            Den Pfad für Hikvision habe ich hier gefunden:
                            https://bus-sitech.de/mt-content/uploads/2019/02/navod-hikvision-url-streaming-en.pdf

                            Mein code für das Bild welches auch funktioniert sieht so aus:
                            wget 'http://admin:PW@192.168.178.48/ISAPI/Streaming/channels/101/picture' -O '/opt/iobroker/cambell/alarm.jpg'

                            hydrotec Glasfaser 2 Replies Last reply Reply Quote 0
                            • hydrotec
                              hydrotec @tege0 last edited by

                              @tege0

                              @tege0 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                              Mein test code:
                              ffmpeg -y -i rtsp://admin:PW@192.168.178.48:554/Streaming/Channels/102/?transportmode=unicast -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 15 -O '/opt/iobroker/cambell/alarm.mp4'
                              leider wird kein Bild auf den Pfad abgelegt.

                              Mit diesem Code bekommst du auch kein Bild, sondern eine Videodatei im Format .mp4

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                tege0 @hydrotec last edited by

                                @hydrotec ok hab mich verschrieben möchte ja auch gerne das video haben

                                1 Reply Last reply Reply Quote 0
                                • Glasfaser
                                  Glasfaser @tege0 last edited by

                                  @tege0 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                                  -r 15 -O '/opt/iobroker/cambell/alarm.mp4'

                                  Was mit auffällt ist der ' zuviel .

                                  also

                                  -r 15 -O  /opt/iobroker/cambell/alarm.mp4'
                                  

                                  Bitte den Code in Code-Tags </> setzen !

                                  T 1 Reply Last reply Reply Quote 1
                                  • T
                                    tege0 @Glasfaser last edited by tege0

                                    @Glasfaser

                                    ffmpeg -y -i rtsp://admin:pw@192.168.178.48:554/Streaming/Channels/102/?transportmode=unicast -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 15 -O /opt/iobroker/cambell/alarm.mp4
                                    
                                    Glasfaser 1 Reply Last reply Reply Quote 0
                                    • Glasfaser
                                      Glasfaser @tege0 last edited by

                                      @tege0

                                      ja .. !??

                                      und schau mal hier :

                                      https://forum.iobroker.net/topic/9508/frage-blockly-klingel-bild-per-telegram-versenden-snapshot-von-cam-per-telegram-versenden/75?_=1643061391435

                                      hydrotec T 2 Replies Last reply Reply Quote 0
                                      • hydrotec
                                        hydrotec @Glasfaser last edited by

                                        @glasfaser

                                        OT
                                        Ich glaub ich habe meinen Ansprechpartner gefunden, wenn ich das hier von Perl zu javascript umsetzen möchte.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tege0 @Glasfaser last edited by

                                          @glasfaser ok cool, jetzt hab ich schonmal ein video... ERstellen können mit

                                          ffmpeg -y -i rtsp://admin:pw@192.168.178.48:554/Streaming/Channels/102/?transportmode=unicast -t 8 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 10 /opt/iobroker/cambell/alarm.mp4
                                          
                                          

                                          nur Telegram zeigt es nicht an auf der NAS kann ich es jedoch abspielen

                                          Glasfaser 1 Reply Last reply Reply Quote 0
                                          • Glasfaser
                                            Glasfaser @tege0 last edited by

                                            @tege0 sagte in [Frage BLOCKLY ] Klingel Bild per Telegram versenden / Snapshot von Cam per Telegram versenden:

                                            nur Telegram zeigt es nicht an

                                            ......das liegt an dem Speicherort .

                                            nimm mal mein Script .... und teste

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            476
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            36
                                            157
                                            32375
                                            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