Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Bild von Kamera per Pushover senden

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Bild von Kamera per Pushover senden

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

      Ich weiß, das Thema wurde schon öfter angesprochen, aber leider habe ich bis jetzt keine zufriedenstellende Lösung umsetzen können.

      Wie immer:

      Wird die Klingel gedrückt, soll per Pushover eine Foto einer IPCam an mein Handy gesendet werden, gleichzeitig melden noch alle DOTs im Haus, dass es klingelt.

      Alexa und Klingel habe ich mit Blockly gescripted bekommen. Auch Pushover schickt eine Nachricht, leider bekomme ich es nicht hin, einen File anzuhängen. Ich weiß, dass es im Blockly aktuell keine Möglichkeit gibt einen Anhang zu übergeben. Deshalb hab ich mir viele verschiedene Lösung in Javascript angesehen. Leider krieg ich es mit try and error nichts ans laufen.

      Vielleicht kann mir jemand helfen? Hab sonst mit Javascript nicht viel zu tun gehabt.(eigentlich nichts 😄 )

      on({id: "hm-rpc.3.XXX.1.STATE"/*Klingel Flur.STATE*/, change: "ne"}, function (obj) {
        var value = obj.state.val;
        var oldValue = obj.oldState.val;
        setState("alexa2.0.Echo-Devices.XXX.Commands.speak"/*speak*/, (String('DingDong') + String('')));
        sendTo("pushover.0", "send", {
           "message": 'Klingel', "attachment": '/home/pi/image.jpg'
        });
      });
      

      Das funktioniert, bis auf das Bild anhängen. Woran liegt das? Habe jetzt wirklich schon zig Varianten ausprobiert. Der nächste Schritt wäre für mich dann noch das abholen und abspeichern des Webcam Bildes auf dem PI bzw. Netzwerkspeicher.

      Es wäre toll, wenn jemand Idee hat. Danke!!!

      1 Reply Last reply Reply Quote 0
      • Z
        zecki79 last edited by

        Hi, bei mir funktioniert es so mit telegram

        5087_unbenannt.jpg

        1 Reply Last reply Reply Quote 1
        • D
          dan11hh last edited by

          Sorry, für die späte Antwort.

          Ja, danke. Das speichern scheint zu funktionieren? Aktuell raff ich noch nicht den Unterschied zwischen zwischen "mache" und 'steuere' aber egal. Abgespeichert wird das File jetzt. Nun muss ich sehen, wie ich das zu PushOver kriege. Noch eine Idee? 17266_bildschirmfoto_2019-01-21_um_09.43.04.png

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

            Pushover kann noch keine Bilder per Blockly versenden. Siehe GitHub https://github.com/ioBroker/ioBroker.pushover/issues/5

            SebastianSchultz created this issue in ioBroker/ioBroker.pushover

            closed Implement usage of attachments #5

            1 Reply Last reply Reply Quote 0
            • D
              dan11hh last edited by

              Ich weiß. Danke. Aber ich dachte an eine Skript Lösung.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User last edited by

                Hast du gesehen was dort verlinkt ist? viewtopic.php?f=21&t=13287&hilit=Pushov … 20#p198733

                1 Reply Last reply Reply Quote 0
                • D
                  dan11hh last edited by

                  Ja, Danke. Das hab ich nicht umgemodelt bekommen. Meist klappt das ja, aber so ganz ohne JScript Kenntnisse…<emoji seq="1f62c">😬</emoji>

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User last edited by

                    Ich hab das jetzt mal getestet. Mit dem Code aus dem Beitrag habe ich ein JS Script angelegt. file Pfad an deine gespeicherte Datei anpassen!

                    sendTo("pushover", {
                      message: 'Dies ist eine Test-Nachricht', // mandatory - your text message
                      title: 'ioBroker', // optional - your message's title, otherwise your app's name is used
                      sound: 'magic', // optional - the name of one of the sounds supported by device clients to override the user's default sound choice
                                      // pushover, bike, bugle, cashregister, classical, cosmic, falling,
                                      // gamelan, incoming, intermission, magic, mechanical, pianobar, siren,
                                      // spacealarm, tugboat, alien, climb, persistent, echo, updown, none
                      priority: 0, // optional (-2, -1, 0, 1, 2)
                                      // -2 to always send as a quiet notification,
                                      // 1 to display as high-priority and bypass the user's quiet hours, or
                                      // 2 to also require confirmation from the user
                      file: '/opt/iobroker/alarm.jpg', // optional - attachment
                      //token: 'API/KEY token', // optional - add other than configurated token to the call
                      //url: , // optional - a supplementary URL to show with your message
                      //url_title: , // optional - a title for your supplementary URL, otherwise just the URL is shown
                      //device: , // optional - your user's device name to send the message directly to that device, rather than all of the user's devices
                      //timestamp // optional - a Unix timestamp of your message's date and time to display to the user, rather than the time your message is received by our API
                    });
                    

                    Anstatt den Block pushover nimmst du dann steuere und wählst dort unter Javascript usw bis zum Objekt des Script und steuerst mit wahr. Ein paar ms später steuerst du es wieder mit false. Und vor dem versenden noch ein Timeout damit das Bild auch komplett gespeichert wird. Speichern und gleich versenden geht nicht. Und ein paar Sekunden später wird das Bild mit pushover gesendet.
                    6779_pushover.jpg

                    jogge N 2 Replies Last reply Reply Quote 1
                    • D
                      dan11hh last edited by

                      Wie cool ist DAS denn? Vielen, viele Dank. Ich probier das morgen mal aus, heute hab ich dazu leider keine Zeit. Wollte aber auf jeden Fall schon einmal DANKE! sagen. Danke 😉

                      1 Reply Last reply Reply Quote 0
                      • S
                        stimezo Forum Testing last edited by

                        @Brainbug:

                        Ich hab das jetzt mal getestet. Mit dem Code aus dem Beitrag habe ich ein JS Script angelegt. file Pfad an deine gespeicherte Datei anpassen!

                        sendTo("pushover", {
                          message: 'Dies ist eine Test-Nachricht', // mandatory - your text message
                          title: 'ioBroker', // optional - your message's title, otherwise your app's name is used
                          sound: 'magic', // optional - the name of one of the sounds supported by device clients to override the user's default sound choice
                                          // pushover, bike, bugle, cashregister, classical, cosmic, falling,
                                          // gamelan, incoming, intermission, magic, mechanical, pianobar, siren,
                                          // spacealarm, tugboat, alien, climb, persistent, echo, updown, none
                          priority: 0, // optional (-2, -1, 0, 1, 2)
                                          // -2 to always send as a quiet notification,
                                          // 1 to display as high-priority and bypass the user's quiet hours, or
                                          // 2 to also require confirmation from the user
                          file: '/opt/iobroker/alarm.jpg', // optional - attachment
                          //token: 'API/KEY token', // optional - add other than configurated token to the call
                          //url: , // optional - a supplementary URL to show with your message
                          //url_title: , // optional - a title for your supplementary URL, otherwise just the URL is shown
                          //device: , // optional - your user's device name to send the message directly to that device, rather than all of the user's devices
                          //timestamp // optional - a Unix timestamp of your message's date and time to display to the user, rather than the time your message is received by our API
                        });
                        

                        Danke für das Script,

                        habe es ausprobiert, leider wird mein Bild nicht mitgesendet.

                        irgendeine Idee warum?

                        Viele Grüße

                        Christian `

                        1 Reply Last reply Reply Quote 0
                        • D
                          dan11hh last edited by

                          Bei mir klappt es! Super. @brainbug Vielen Dank dafür.

                          @stimezo

                          Wird dein Bild abgespeichert?

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User last edited by

                            @stimezo:

                            irgendeine Idee warum? `

                            Erstmal kontrollieren ob das Bild auch lokal vorhanden ist an dem Pfad den du angibst!

                            1 Reply Last reply Reply Quote 0
                            • S
                              stimezo Forum Testing last edited by

                              @Brainbug:

                              @stimezo:

                              irgendeine Idee warum? `

                              Erstmal kontrollieren ob das Bild auch lokal vorhanden ist an dem Pfad den du angibst! `

                              Gebe zum Testen ein bereits bestehendes Bild an, bei mir:

                              /opt/iobroker/iobroker-data/files/eigene/Wohnzimmer_0.jpg
                              

                              Mit meinem Telegram-Script funktioniert es, würde es aber lieber per Pushover machen.

                              Danke

                              Christian

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User last edited by

                                Wenn du den Pushover Adapter eingerichtet hast und das Script bei file an deinen Pfad angepasst hast sollte ein Bild gesendet werden.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  der-eine last edited by

                                  Hallo zusammen,

                                  ich häng mich hier mal dran. Habe das Problem, dass mir Telegram nur den Pfad zum Bild schickt und nicht das Bild.

                                  wenn ich es lösche und den wget Befehl erneut ausführe, bekomme ich nur den Link.

                                  Jemand eine Idee wieso?

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User last edited by

                                    Zeig doch mal ein Bild von deinem Blockly?

                                    Und hast du deinen Link zum Bild im Browser gestartet?

                                    1 Reply Last reply Reply Quote -1
                                    • D
                                      der-eine last edited by

                                      Hier mal das Blockly.

                                      Das ganze hat mit 4 verschiedenen Auslösern funktioniert mit genau diesem Pfad. Hab den Pfad nochmal geprüft, im Browser kann ich das Bild aufrufen und im angegebenen Ordner wird auch ein neues Bild erstellt. Es wird nur nicht versendet.

                                      Seit der Umstellung auf den Multihost gehen diese Skripte nicht mehr. Bzw das Bilder versenden.
                                      10117_2758fa1e-fd8d-4585-aeed-9a66e879c96a.jpeg

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User last edited by

                                        Dann liegt es wohl am Multihost, dass das Bild nicht dort gespeichert wird wo es wieder versendet werden soll?

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          der-eine last edited by

                                          Wenn ich das Bild am Speicherort lösche und das Skript neu Anstoße legt er das Bild wieder genau da hin…

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            der-eine last edited by

                                            @Brainbug:

                                            Dann liegt es wohl am Multihost, dass das Bild nicht dort gespeichert wird wo es wieder versendet werden soll? `

                                            Du hast recht, dass Foto war wo anders bzw Telegram war auf dem Slave und ich dachte sie wären beide auf dem Master. Somit sucht er wohl auf dem Slave nach dem Bild das aber auf dem Master liegt. <emoji seq="1f926-1f3fb-2642">🤦🏻‍♂️</emoji>

                                            Danke Dir!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            872
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            18
                                            54
                                            11708
                                            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