Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Telegram Bild direkt schicken, ohne Zwischenspeichern

    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 Bild direkt schicken, ohne Zwischenspeichern

    This topic has been deleted. Only users with topic management privileges can see it.
    • coyote
      coyote Most Active @Ralla66 last edited by

      @Ralla66 best.jpg wird immer bei Objekterkennung überschrieben. Gebe ich diesen Pfad im Browser ein, ist ja das Bild da.
      Daher verstehe ich nicht, warum er sagt "no such file or directory", das Bild ist definitv vorhanden

      N Ralla66 2 Replies Last reply Reply Quote 0
      • N
        Nahasapee @coyote last edited by

        @coyote vielleicht hat dein iobroker keine lese rechte?

        coyote 1 Reply Last reply Reply Quote 0
        • coyote
          coyote Most Active @Nahasapee last edited by

          @Nahasapee hm, ist ein Argument. Jetzt ist die Frage, wie gebe ich ioBroker lese Rechte, falls es daran liegt

          N 1 Reply Last reply Reply Quote 0
          • Ralla66
            Ralla66 Most Active @coyote last edited by

            @coyote
            das ist wohl eher das hier:
            da es ja eh auf dem anderen Rechner hinterlegt ist
            Direkt von der Cam geht ja.

            1 Reply Last reply Reply Quote 0
            • N
              Nahasapee @coyote last edited by

              @coyote chmod o+r MyFile

              coyote 1 Reply Last reply Reply Quote 0
              • coyote
                coyote Most Active @Nahasapee last edited by

                @Nahasapee @Ralla66 aber egal von welchem Gerät im Netzwerk ich diese URL aufrufe, bekomme ich das Bild angezeigt, zumindest im Browser

                Ralla66 N 2 Replies Last reply Reply Quote 0
                • Ralla66
                  Ralla66 Most Active @coyote last edited by

                  @coyote
                  ja ok, dann teste Telegramm,
                  leg das Bild ab wo Telgramm läuft und rufe das ab im Browser und mit Telegramm.

                  coyote 1 Reply Last reply Reply Quote 0
                  • N
                    Nahasapee @coyote last edited by

                    @coyote hast du den code oben versucht von mir? ich kann das bild ohne zwischenspeichern verschicken!

                    coyote 2 Replies Last reply Reply Quote 0
                    • coyote
                      coyote Most Active @Ralla66 last edited by

                      @Ralla66 wenn ich es so wie im ersten Post (letzter Code Tag) abrufe und zwar nicht direkt die URL der Cam, sondern die URL mit Endung /best.jpg, dann als "cambild.jpg" unter einem Verzeichnis in ioBroker speichere und das wiederum mit Telegram verschicke, geht es ohne Probleme

                      1 Reply Last reply Reply Quote 0
                      • coyote
                        coyote Most Active @Nahasapee last edited by

                        @Nahasapee werde ich morgen mal testen, vllt geht das

                        1 Reply Last reply Reply Quote 0
                        • coyote
                          coyote Most Active @Nahasapee last edited by

                          @Nahasapee geht leider auch nicht.

                          telegram.0	2020-12-08 05:56:03.874	error	(20198) Cannot send photo [chatId - 182393659]: Error: ETELEGRAM: 400 Bad Request: wrong file identifier/HTTP URL specified
                          
                          N 1 Reply Last reply Reply Quote 0
                          • N
                            Nahasapee @coyote last edited by

                            @coyote zeig Mal dein code

                            coyote 1 Reply Last reply Reply Quote 0
                            • coyote
                              coyote Most Active @Nahasapee last edited by

                              @Nahasapee mehr ist es nicht

                                 sendTo('telegram.0', {
                                      text : "http://192.168.XX.XX:5000/garage/car/best.jpg",
                                      type: 'photo'
                                });
                              
                              N 1 Reply Last reply Reply Quote 0
                              • N
                                Nahasapee @coyote last edited by

                                @coyote blöde Frage aber für die xx schreibst du schon die richtige IP Adresse rein ?

                                coyote 1 Reply Last reply Reply Quote 0
                                • coyote
                                  coyote Most Active @Nahasapee last edited by coyote

                                  @Nahasapee 😉 natürlich

                                  EDIT: Gleicher Fehler kommt im Log, wenn der Webserver abgeschaltet ist. Seltsam.
                                  Macht es einen Unterschied, weil der im Webserver im Docker läuft?
                                  Ich verstehs eben nicht, weil ich diese URL ja von überall im Netzwerk erreichen kann

                                  N 1 Reply Last reply Reply Quote 0
                                  • N
                                    Nahasapee @coyote last edited by Nahasapee

                                    @coyote gehts denn wenn du , wie ich oben von Spiegel.de nen Bild ziehst? ne Firewall hängt aber nicht noch dazwischen die eventuell blockt?

                                    .... oder mal direkt von deinem Broker:

                                            sendTo('telegram.0', {
                                            chatId : getState('telegram.0.communicate.requestChatId'/*User ID of last received request*/).val,
                                            text : " https://192.168.178.60:8081/img/no-image.png",
                                            type: 'photo'
                                      });
                                    
                                    N 1 Reply Last reply Reply Quote 0
                                    • N
                                      Nahasapee @Nahasapee last edited by

                                      @Nahasapee sagte in Telegram Bild direkt schicken, ohne Zwischenspeichern:

                                      https://192.168.178.60:8081/img/no-image.png

                                      ich merk gerade das letzte geht bei mir auch nicht, mit spiegel aber schon....vielleicht kommt er mit den ports nicht klar

                                      N 1 Reply Last reply Reply Quote 0
                                      • N
                                        Nahasapee @Nahasapee last edited by

                                        @Nahasapee ich glaub der telegram dienst veruscht das bild wenn es per http adresse rein kommt selber abzuholen und kommt logischerweise nicht ins netzwerk rein, vermutlich musst du es dir doch vorm verschicken lokal abspeichern und dann halt wieder löschen.

                                        coyote 1 Reply Last reply Reply Quote 0
                                        • coyote
                                          coyote Most Active @Nahasapee last edited by

                                          @Nahasapee hm ok, wenn du es ja jetzt auch ausprobiert hast und es auch nicht geht, ist es eben so... Ja genau, lokal speichern und dann schicken ist ja kein Problem, das geht.
                                          Wie gesagt, dachte eben, da das Bild ja schon vorhanden ist, könnte ich es direkt weiterleiten

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          836
                                          Online

                                          31.9k
                                          Users

                                          80.2k
                                          Topics

                                          1.3m
                                          Posts

                                          javascript
                                          3
                                          29
                                          2787
                                          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