Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. ESP32 Cam mit Wlan

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    925

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

ESP32 Cam mit Wlan

Scheduled Pinned Locked Moved Hardware
372 Posts 42 Posters 104.6k Views 59 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S sveni_lee

    also irgendwie bekomme ich das nicht gebacken, per http request eine snapshot zu erhalten.
    Muss ich eventuell noch den Benutzer und das Passwort mit einbinden?

    crunchipC Away
    crunchipC Away
    crunchip
    Forum Testing Most Active
    wrote on last edited by
    #57

    @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

    umgestiegen von Proxmox auf Unraid

    lobomauL 1 Reply Last reply
    0
    • crunchipC crunchip

      @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

      lobomauL Offline
      lobomauL Offline
      lobomau
      wrote on last edited by
      #58

      @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.

      Host: NUC8i3 mit Proxmox:

      • ioBroker CT Debian 13, npm 10.9.4, nodejs 22.21.0
      • Slave: Pi4
      K 1 Reply Last reply
      0
      • N Offline
        N Offline
        NetFritz
        wrote on last edited by
        #59

        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
        0
        • lobomauL lobomau

          @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 Offline
          K Offline
          knopers1
          wrote on last edited by
          #60

          Unbenannt1.png Unbenannt.png

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

          HP Microserver Gen8, RPI-4, IoBroker,

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sveni_lee
            wrote on last edited by
            #61

            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
            0
            • N Offline
              N Offline
              NetFritz
              wrote on last edited by
              #62

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

              K 1 Reply Last reply
              0
              • N NetFritz

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

                K Offline
                K Offline
                knopers1
                wrote on last edited by
                #63

                @NetFritz said in ESP32 Cam mit Wlan:

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

                oder sogar ein .jpeg

                HP Microserver Gen8, RPI-4, IoBroker,

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sveni_lee
                  wrote on last edited by
                  #64

                  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
                  0
                  • S Offline
                    S Offline
                    sveni_lee
                    wrote on last edited by
                    #65

                    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
                    0
                    • S Offline
                      S Offline
                      sveni_lee
                      wrote on last edited by
                      #66

                      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.

                      crunchipC 1 Reply Last reply
                      0
                      • S sveni_lee

                        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.

                        crunchipC Away
                        crunchipC Away
                        crunchip
                        Forum Testing Most Active
                        wrote on last edited by
                        #67

                        @sveni_lee
                        probier mal

                        sysemtctl restart motioneye
                        

                        weiss aber nicht ob das bei OS auch geht

                        umgestiegen von Proxmox auf Unraid

                        S 1 Reply Last reply
                        0
                        • crunchipC crunchip

                          @sveni_lee
                          probier mal

                          sysemtctl restart motioneye
                          

                          weiss aber nicht ob das bei OS auch geht

                          S Offline
                          S Offline
                          sveni_lee
                          wrote on last edited by
                          #68

                          @crunchip sagte in ESP32 Cam mit Wlan:

                          sysemtctl restart motioneye

                          nein, geht leider auch nicht...

                          crunchipC 1 Reply Last reply
                          0
                          • S sveni_lee

                            @crunchip sagte in ESP32 Cam mit Wlan:

                            sysemtctl restart motioneye

                            nein, geht leider auch nicht...

                            crunchipC Away
                            crunchipC Away
                            crunchip
                            Forum Testing Most Active
                            wrote on last edited by
                            #69

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

                            umgestiegen von Proxmox auf Unraid

                            S 1 Reply Last reply
                            0
                            • crunchipC crunchip

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

                              S Offline
                              S Offline
                              sveni_lee
                              wrote on last edited by
                              #70

                              @crunchip

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

                              crunchipC 1 Reply Last reply
                              0
                              • S sveni_lee

                                @crunchip

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

                                crunchipC Away
                                crunchipC Away
                                crunchip
                                Forum Testing Most Active
                                wrote on last edited by
                                #71

                                @sveni_lee vllt mit einem

                                sudo poweroff
                                

                                ausschalten, dann kannst neu starten

                                was anderes hab ich leider auch nicht gefunden

                                umgestiegen von Proxmox auf Unraid

                                S 1 Reply Last reply
                                0
                                • crunchipC crunchip

                                  @sveni_lee vllt mit einem

                                  sudo poweroff
                                  

                                  ausschalten, dann kannst neu starten

                                  was anderes hab ich leider auch nicht gefunden

                                  S Offline
                                  S Offline
                                  sveni_lee
                                  wrote on last edited by
                                  #72

                                  @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
                                  0
                                  • haselchenH Offline
                                    haselchenH Offline
                                    haselchen
                                    Most Active
                                    wrote on last edited by
                                    #73

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

                                    Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                                    crunchipC 1 Reply Last reply
                                    -1
                                    • haselchenH haselchen

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

                                      crunchipC Away
                                      crunchipC Away
                                      crunchip
                                      Forum Testing Most Active
                                      wrote on last edited by crunchip
                                      #74

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

                                      umgestiegen von Proxmox auf Unraid

                                      haselchenH 1 Reply Last reply
                                      0
                                      • crunchipC crunchip

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

                                        haselchenH Offline
                                        haselchenH Offline
                                        haselchen
                                        Most Active
                                        wrote on last edited by
                                        #75

                                        @crunchip

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

                                        Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                                        crunchipC 1 Reply Last reply
                                        -1
                                        • haselchenH haselchen

                                          @crunchip

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

                                          crunchipC Away
                                          crunchipC Away
                                          crunchip
                                          Forum Testing Most Active
                                          wrote on last edited by
                                          #76

                                          @haselchen muss man jetzt aber nicht verstehen:joy: :joy:

                                          umgestiegen von Proxmox auf Unraid

                                          haselchenH 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          846

                                          Online

                                          32.6k

                                          Users

                                          82.2k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe