Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. ESP32 Cam mit Wlan

    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

    ESP32 Cam mit Wlan

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

      @sveni_lee hast du e in motion eingebunden? dann musst du für deinen request die vorgegeben url von motion nehmen, zu finden bei"video streaming-Useful URLs

      lobomau 1 Reply Last reply Reply Quote 0
      • lobomau
        lobomau @crunchip last edited by

        @crunchip sagte in ESP32 Cam mit Wlan:

        @sveni_lee hast du e in motion eingebunden? dann musst du für deinen request die vorgegeben url von motion nehmen, zu finden bei"video streaming-Useful URLs

        Ja, guter Tipp. Mit MotionEye klappt es prima. So kann das Script dafür für snapshot über telegram aussehen:

        createState('javascript.0.Variablen.ESP32-Cam-detection', false, 
        {type: 'boolean', name: 'ESP32-Cam-detection', min: false, max: true, read: true, write: true, role: 'javascript' });
        
        var request = require('request');
        var fs      = require('fs');
        
        function sendImage() {
            request.get({url: 'http://IP_motioneye:port/picture/X/current/', encoding: 'binary'}, function (err, response, body) {
                fs.writeFile("/tmp/ESP32.jpg", body, 'binary', function(err) {
        
                if (err) {
                    console.error(err);
                } else {
                    console.log('Snapshot sent');
                    sendTo('telegram.0', '/tmp/ESP32.jpg');
                    //sendTo('telegram.0', {text: '/tmp/snap.jpg', caption: 'Snapshot'});
                }
              });
            });
        }
        on("javascript.0.Variablen.ESP32-Cam-detection", function (obj) {
            if (obj.state.val) {
                // send 4 images: immediately, in 5, 15 and 30 seconds
                sendImage();
                setTimeout(sendImage, 5000);
                //setTimeout(sendImage, 10000);
                //setTimeout(sendImage, 15000);
            }
        });
        

        Damit es funktioniert muss nur die richtige IP "IP_motioneye:port/picture/X/current/" eingetragen werden.

        K 1 Reply Last reply Reply Quote 0
        • N
          NetFritz last edited by

          Hallo

          @lobomau
          Doch, wenn ich die Adresse in den Browser eingebe erscheint das Bild. Und die Adresse vom Bild ist natürlich http://IP/capture. Oder wie meinst du das?

          Wenn das Bild im Browser erscheint, ein rechts klick in das Bild, dann
          Grafig Info auswählen (Firefox).
          Da kann man die ganze Adresse des Bildes rausfinden.
          Gruß NetFritz

          1 Reply Last reply Reply Quote 0
          • K
            knopers1 @lobomau last edited by

            Unbenannt1.png Unbenannt.png

            bei mir wird ein Bild im Browser angezeigt. Auch die Grafik Info zeigt die gleiche Adresse an.

            1 Reply Last reply Reply Quote 0
            • S
              sveni_lee last edited by

              bei klappt es jetzt auch...

              function snapshot(timestamp, prefix){
              
                  var num = ("0" + prefix).slice(-2);
                      
              //        log(timestamp + "_" + prefix);
                          
                          
                          request.get({url: 'http://192.168.x.x/picture/1/current', encoding: 'binary'}, function (err, response, body) {
                              
                              fs.writeFile("/home/iobroker/garden/" + timestamp + "/" + timestamp + "_" + num + ".jpg", body, 'binary', function(err) {
                                  
                                  if (err) {                        
                                      console.error(err);
                                  }
                              });
                          });
              
                      setTimeout(function() {
                          exec('mogrify -resize 600x450 ' + '/home/iobroker/garden/' + timestamp + "/" + timestamp + "_" + num + '.jpg', function (error, stdout, stderr) 
                       { 
                      });
                      },2000);
              }
              

              ich lasse die Bilder dann runterrechnen und anschließend in ein GIF umwandeln und per pushover versenden...

              1 Reply Last reply Reply Quote 0
              • N
                NetFritz last edited by

                Hallo
                Vielleicht muss hinter capture noch ein .jpg ?
                Gruß NetFritz

                K 1 Reply Last reply Reply Quote 0
                • K
                  knopers1 @NetFritz last edited by

                  @NetFritz said in ESP32 Cam mit Wlan:

                  Hallo
                  Vielleicht muss hinter capture noch ein .jpg ?
                  Gruß NetFritz

                  oder sogar ein .jpeg

                  1 Reply Last reply Reply Quote 0
                  • S
                    sveni_lee last edited by

                    also wie oben geschrieben, bei mir klappt es jetzt so

                    http://192.168.x.x/picture/1/current
                    

                    ganz ohne .jpg oder .jpeg

                    1 Reply Last reply Reply Quote 0
                    • S
                      sveni_lee last edited by

                      Ich habe am Samstag meine 3 bestellten ESP32-Cam bekommen. Werde ich dann mal
                      versuchen zu flashen.
                      Gibt es eigendlich auch eine Möglichkeit die ESP32 mit einem nightview auszustatten?

                      1 Reply Last reply Reply Quote 0
                      • S
                        sveni_lee last edited by

                        weiß zufällig jemand wie bei motioneyeos einen reboot über die console auslösen kann?
                        Ich kann mich zwar per ssh aufloggen aber ein eifaches reboot klappt nicht.

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

                          @sveni_lee
                          probier mal

                          sysemtctl restart motioneye
                          

                          weiss aber nicht ob das bei OS auch geht

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sveni_lee @crunchip last edited by

                            @crunchip sagte in ESP32 Cam mit Wlan:

                            sysemtctl restart motioneye

                            nein, geht leider auch nicht...

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

                              @sveni_lee bei der os verion ist doch direkt auf der seite ein reboot button

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                sveni_lee @crunchip last edited by

                                @crunchip

                                das ist schon richtig aber ich komme nicht mehr auf die Weboberfläche.
                                Ich kann mich grad nur per SSH aufloggen.

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

                                  @sveni_lee vllt mit einem

                                  sudo poweroff
                                  

                                  ausschalten, dann kannst neu starten

                                  was anderes hab ich leider auch nicht gefunden

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    sveni_lee @crunchip last edited by

                                    @crunchip sagte in ESP32 Cam mit Wlan:

                                    @sveni_lee vllt mit einem

                                    sudo poweroff
                                    

                                    ausschalten, dann kannst neu starten

                                    was anderes hab ich leider auch nicht gefunden

                                    das geht dann aber nicht mehr aus der ferne 🙂

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

                                      Hat jemand , eventuell über nen 3D Drucker, eine Hülle für das ESP Board gebastelt ?

                                      crunchip 1 Reply Last reply Reply Quote -1
                                      • crunchip
                                        crunchip Forum Testing Most Active @haselchen last edited by crunchip

                                        @haselchen ne aber gibt ja auf thingiverse einiges
                                        z.b. https://www.thingiverse.com/thing:3827265

                                        haselchen 1 Reply Last reply Reply Quote 0
                                        • haselchen
                                          haselchen Most Active @crunchip last edited by

                                          @crunchip

                                          Jetzt brauche ich anscheinend nur jemanden, der mir das druckt 😂

                                          crunchip 1 Reply Last reply Reply Quote -1
                                          • crunchip
                                            crunchip Forum Testing Most Active @haselchen last edited by

                                            @haselchen muss man jetzt aber nicht verstehen😂 😂

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            655
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            42
                                            372
                                            82679
                                            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