Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Motioneye Telegram

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Motioneye Telegram

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @thecastle last edited by

      @thecastle also nochmal von vorne, was möchtest du verwenden, das Blockly oder das javascript?
      mein Datenpunkt war nur ein Beispiel, denn kannst du benennen wie du willst. je nach Struktur, ob du
      0_userdata.0 oder einen selbst angelegten Ordner erstellst, ist dir überlassen.

      Als Beispiel
      Mein Ordner lautet

      • Kamera.0
        darin 2 Datenpunkte
      • detection-haustuer
      • trigger-haustuer

      mein webhook in motioneye
      http://IoBrokerIP:8087/set/kamera.0.detection-haustuer?value=true
      Speicherort für das Foto
      /opt/iobroker/ipcam/alarm
      als Blockly
      629ca518-d4df-4c60-bb62-b67fc033850c-image.png

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

        Achsoo also ist webhook nix outsourced bei ifttt oder einem anderen Anbieter?
        ich versuche das mal so nach zustellen.

        crunchip 1 Reply Last reply Reply Quote 0
        • T
          thecastle last edited by

          Unbenannt.png

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

            @thecastle nein nix extra

            hier noch ein kleines einfaches script
            als Auslöser könntest du dann eben den Datenpunkt eintragen, der per webhook auf true/false schaltet
            dein Handy nicht im Wlan ist
            werden 3 Bilder im Abstand von 800ms verschickt

            // Telegram Bild senden durch Klingel oder Text to command
            var source_url = 'http://DeineAdressederKamera', //Adresse der IpKamera
                dest_path = '/opt/iobroker/ipcam/'; //Speicherort der Bilder
             
            var request = require('request');
            var fs      = require('fs');
             
            //var timer = null;
            var count = 0;
             
            // Bild an telegram schicken
            function sendImage (pfad) {
                    sendTo('telegram.0', pfad);
                    //log('Webcam Bild per telegram verschickt');
            }
             
            // Bild speichern
            function saveImage() {
                request.get({url: source_url, encoding: 'binary'}, function (err, response, body) {
                    fs.writeFile(dest_path + 'image.jpg', body, 'binary', function(err) {
             
                    if (err) {
                        //log('Fehler beim Bild speichern: ' + err, 'warn');
                    } else {
                        //log('Webcam Bild gespeichert');
                        sendImage(dest_path + 'image.jpg');
                    }
                  });
                });
            }
             
            //Trigger
            // 3 Bilder senden wenn Bewegung erkannt und keiner zu Hause ist
            on({id: 'HIERKOMMTDEINAUSLÖSER/TRIGGERREIN', val: true}, function () {
                if (getState('HIERDEINHANDYDATENPUNKT').val === false) {
                count = 3;
                counter();
                timer = setInterval(counter, 800);
                }
            });
            false
            function counter() {
                saveImage();
                count--;
                if(count === 0 && timer) clearInterval(timer);
            }   
             
            
            1 Reply Last reply Reply Quote 0
            • T
              thecastle last edited by

              @crunchip said in Motioneye Telegram:

              trigger-haustuer
              Du hast in deinem Blogli steuere scriptEnable.Kamera.Haustür......_telegram. Ist das ein script wo aufgreufen wird oder was soll ich da einbinden?

              crunchip 1 Reply Last reply Reply Quote 0
              • T
                thecastle last edited by thecastle

                @crunchip said in Motioneye Telegram:

                /opt/iobroker/ipcam/alarm

                Unbenannt2.png

                http://192...:8081/set/0_userdata.0.kamera.0.detection-haustuer?value=true das ist jetzt mein hook? Wenn mein Datenpunkt im unteren verzeichnis sind also sprich:
                0_userdata.0.kamera.0.detection-haustuer dann kann ich das so angeben ?

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

                  @thecastle ja, steht in der Regel auf false, kannst ja mal eintragen, wenn dann getriggert wird, ändert sich der wert auf true

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

                    @thecastle
                    wie oben schon geschrieben, text2command
                    c344bc3b-ac4d-40e8-af9e-310728118e7e-image.png
                    einfach ein kleines javascript für die Abfrage, dann hast du auch den fehlenden Datenpunkt im Blockly

                    sendTo('telegram.0', {
                        text:   'möchtest du mehr bilder?',
                        reply_markup: {
                            keyboard: [
                                ['ja','nein'],
                                
                            ],
                            resize_keyboard:   true,
                            one_time_keyboard: true
                            
                            
                        }
                     
                    });
                    
                    1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @thecastle last edited by

                      @thecastle ja

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

                        Unbenannt2.png Unbenannt1.png

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

                          @thecastle und läuft jetzt?

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

                            @crunchip said in Motioneye Telegram:

                            detection-haustuer
                            trigger-haustuer

                            nee noch nicht aber ich denke bald, muss bei den Datenpunkte detection-haustuer
                            trigger-haustuer noch was rein, die sind ja leer bei mir

                            crunchip 2 Replies Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active @thecastle last edited by

                              @thecastle schreib doch mal ein false rein

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

                                @thecastle hab noch zwei vergessen zu zufügen, zum ein ausschalten
                                2f516e14-e1ee-4d3b-8db1-efd9d2e0bfb8-image.png

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

                                  Ich habe Probleme beim triggern http://192....:8081/set/0_userdata.0.kamera.0.detection-haustuer?value=true
                                  kann das wirklich der hook sein?

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

                                    @thecastle du hast aber simple api Adapter laufen?
                                    und du brauchst diesen port
                                    http://IPioBroker :8087/......

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

                                      okay simple api habe ich nicht bewusst an bzw... zumindest nicht das ich es weiß.
                                      mit dem prot muss ich mal schauenUnbenannt.png
                                      das ist alle was ich installiert habe

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

                                        @crunchip said in Motioneye Telegram:

                                        8087

                                        wie wie bekomme ich diesen Port?

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

                                          @crunchip said in Motioneye Telegram:

                                          8087

                                          Unbenannt.png

                                          Die Ip oben nutze ich für die hook

                                          crunchip 2 Replies Last reply Reply Quote 0
                                          • T
                                            thecastle last edited by

                                            Unbenannt.png

                                            Das funktioniert jetzt schon mal auch wenn es ziemlich lange dauert bis ich ein "anderes" Bild bekomme sprich wenn ich auf "ja" drücke bekomme ich ein Bild und wenn ich in 2 Sekunden noch ein mal drücke bekomme ich das selbe... aber wenn ich in 5-10 Sekunden drücke bekomme ich ein anderes. Wichtig ist das das schon mal funzt.
                                            Mit dem Trigger hat sich leider noch nix getan, löste nicht aus bzw... ich bekomme keine Nachrricht bei "motion detection " ;(

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            717
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            motioneye telegram
                                            5
                                            73
                                            5811
                                            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