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.
    • M
      maxpd @Sub7 last edited by

      @sub7 I'm Endeffekt genau das letzte blocky von Glasfaser, nur das man im js Adapter exec aktivieren muss.

      1 Reply Last reply Reply Quote 0
      • T
        Thomsguy @Guest last edited by

        @brainbug Hallo,

        habe gerade dein Blockly getestet. Bekomme aber im Log nen Fehler.

        1. Cannot send photo [chatId - 205338609]: Error: ETELEGRAM: 400 Bad Request: file must be non-empty

        Hast du mir noch n Tipp was ich machen kann

        Das Verzeichniss habe ich erstellt mit ipcam

        DIe Adresse wenn ich sie im Browser eingebe, zeigt mir auch ein Bild der Kamera.

        Viele Grüße

        Glasfaser crunchip 2 Replies Last reply Reply Quote 0
        • Glasfaser
          Glasfaser @Thomsguy last edited by Glasfaser

          @thomsguy

          Lese mal ein paar Beiträge über deinem und nimm mal mein Blockly

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

            @glasfaser Muss ich da dann vorher wieder ein neues Verzeichniss machen?

            Glasfaser 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @Thomsguy last edited by

              @thomsguy kenn jetzt das blockly zwar nicht, ETELEGRAM: 400 Bad Request: file must be non-empty , aus dem Stehgreif heraus würde ich sagen, das Bild ist noch nicht da, bevor du versenden möchtest, also timeout erhöhen

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

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

                Muss ich da dann vorher wieder ein neues Verzeichniss machen?

                Nein , einfach ausführen .

                T 1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            400
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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