Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Telegram Error Cannot send photo

    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

    Telegram Error Cannot send photo

    This topic has been deleted. Only users with topic management privileges can see it.
    • marcuskl
      marcuskl last edited by

      Hallo zusammen,

      sehr oft sendet mir der Telegram Adapter nicht das Foto meines 3D Druckers.
      Verwende das Skript von @Sven_Topp.

      Folgende Fehlermeldung spuckt er raus:

      telegram.0	2021-04-05 16:56:13.253	error	(11343) Cannot send photo [chatId - 671559404]: Error: ETELEGRAM: 400 Bad Request: file must be non-empty
      

      Jemand eine Idee warum ?

      Danke und LG

      Systemdata Bitte Ausfüllen
      Hardwaresystem: NUC
      Arbeitsspeicher: 4GB
      Festplattenart: SSD
      Betriebssystem: Debian
      Node-Version: 10.x.x
      Nodejs-Version: 10.x.x
      NPM-Version: 6.x.x
      Installationsart: Skript
      Image genutzt: Nein
      Ort/Name der Imagedatei: Link
      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @marcuskl last edited by Glasfaser

        @marcuskl sagte in Telegram Error Cannot send photo:

        sehr oft sendet mir der Telegram Adapter nicht das Foto meines 3D Druckers.

        Also nur manchmal !?

        Verwende das Skript von @Sven_Topp.

        und wie ist das Script ... zeige mal

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

          @glasfaser sagte in Telegram Error Cannot send photo:

          @marcuskl sagte in Telegram Error Cannot send photo:

          sehr oft sendet mir der Telegram Adapter nicht das Foto meines 3D Druckers.

          Also nur manchmal !?

          Ja

          Verwende das Skript von @Sven_Topp.

          und wie ist das Script ... zeige mal

          https://youtu.be/g-MaFbpXNqI

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

            @marcuskl sagte in Telegram Error Cannot send photo:

            https://youtu.be/g-MaFbpXNqI

            SORRY ... ich schaue kein youtube und das Script werde ich mir auch nicht runterladen !!!

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

              @glasfaser das Skript ist ziemlich groß, ist schwer jetzt zu zeigen.
              skript bild.png

              Der wget Befehl ist folgender

              wget --output-document /opt/iobroker/Bild_Kamera/Kamera.jpg 'http://
              

              den Rest sieht man ja

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

                @marcuskl sagte in Telegram Error Cannot send photo:

                /opt/iobroker/Bild_Kamera/Kamera.jpg

                Wird dort ein Bild hinterlegt ???

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

                  @glasfaser ja

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

                    @marcuskl

                    wget --output-document /opt/iobroker/Bild_Kamera/Kamera.jpg 'http://
                    

                    Nimm mal das ` am Anfang und am ende raus und ersetze es durch "http

                    wget --output-document /opt/iobroker/Bild_Kamera/Kamera.jpg "http://xxxxxxxxxxxxxxxxxxx"
                    
                    marcuskl 2 Replies Last reply Reply Quote 0
                    • marcuskl
                      marcuskl @Glasfaser last edited by

                      @glasfaser werde ich ändern und Berichte dann ob es Besserung gebracht hat

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

                        @glasfaser kommt wieder dieselbe Meldung

                        telegram.0	2021-04-05 18:08:48.102	error	(11343) Cannot send photo [chatId - 671559404]: Error: ETELEGRAM: 400 Bad Request: file must be non-empty
                        
                        1 Reply Last reply Reply Quote 0
                        • Glasfaser
                          Glasfaser last edited by Glasfaser

                          @marcuskl

                          Ändere mal den Bildversand

                          /opt/iobroker/Bild_Kamera/Kamera.jpg
                          

                          auf ein anderes Bild was sich z.B im Vis.0 Ordner bei dir befindet , wird dieses versendet

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

                            @glasfaser ja das funktioniert jetzt erstmal.
                            Ich habe jetzt das Bild in den Ordner Test verschoben und das Bild Test genannt, dass geht erstmal.

                            Aber wie gesagt vorher hat es auch paar mal funktioniert und dann plötzlich nicht mehr.

                            1 Reply Last reply Reply Quote 0
                            • BananaJoe
                              BananaJoe Most Active last edited by

                              Hake mal bei exec mit Ergebnissen an bzw. erhöhe die Pause die du machst bevor du das Bild sendest.
                              Die Fehlermeldung könnte man auch interpretieren das das Bild noch leer ist.

                              Hatte ich neulich auch als ich per Skript mir die Bilder von einer ESP32-CAM geholt habe, das Bild war beim nächsten Schritt noch 0 Byte groß.

                              Ich hab auch ein Telegramm welches ein Bild von einer Überwachungskamera holt, das hat noch nie Probleme gemacht - aber da hatte ich auch schon immer "mit Ergebnissen" angehakt, ich meine dann wartet er bis der Befehl fertig ist.

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              469
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              3d drucker bilder telegram adapter
                              3
                              13
                              646
                              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