Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bewegungserkennung mit Motioneye, Lösung komplett in Blockly

    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

    Bewegungserkennung mit Motioneye, Lösung komplett in Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • Wszene
      Wszene @Marc_el_K last edited by

      @marc_el_k sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

      @crunchip Ich bin hier nach gegangen

      MotioneyeOS Aktivierung/Deaktivierung Bewegungserkennung

      Als Script habe ich den EXEC Befehl ausgeführt mit

      curl http://IPIOBROKER:7999/1/detection/start
      

      bzw.

      curl http://IPIOBROKER:7999/1/detection/pause
      

      Die 1 im Link steht für Kamera 1...also anpassen.

      Den Status kannst du mit

      http://IPIOBROKER:7999/1/detection/status
      

      abfragen.

      Bei mir hatte es erst nicht geklappt, bis ich in der motion.conf auf

      webcontrol_localhost off
      

      geändert habe.

      Hoffe das hilft dir!


      Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"
      Nehme ich die IP vom MotionEye passiert das selbe

      Mache ich das Ganze aber direkt auf der MotionEye VM dann geht es

      Und die nächste Frage die ich hätte
      Wie bekomme ich den Status in einen Datenpunkt
      Über die URL bekomme ich den Status korekt angezeigt

      Danke im Voraus
      Gruß
      Marcel

      oberfragger 1 Reply Last reply Reply Quote 0
      • oberfragger
        oberfragger @Wszene last edited by oberfragger

        @wszene sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

        Wenn ich diese Befehle vom ioBroker absetzte bekomme ich die Antwort der "Verbindungsaufbau wurde abgelehnt"

        Das muss aber klappen sonst bringt der Rest nix. Bitte Datei Datei /etc/motioneye/motion.conf editieren und "webcontrol_localhost off" anpassen (bzw. motioneye.conf) und neustarten.

        Unter http://motioneye:7999/ (im Browser) erhalte ich dann:

        Motion 4.5.0 Running [2] Cameras 
        1 
        2 
        
        Wszene 2 Replies Last reply Reply Quote 0
        • Wszene
          Wszene @oberfragger last edited by

          @oberfragger
          Danke

          Den Neustart habe ich noch nicht gemacht
          Das werde ich heute Abend nachholen

          1 Reply Last reply Reply Quote 0
          • Wszene
            Wszene @oberfragger last edited by

            @oberfragger

            Der Neustart hat geholfen
            Danke

            Nun habe ich nur noch die Einstellungen für die Bewegungsempfindlichkeit

            Hat da evtl. noch jemand eine Idee?

            1 Reply Last reply Reply Quote 1
            • Virus2K12
              Virus2K12 last edited by

              Auch wenn der Beitrag schon älter ist, eventuell liest das ja einer und kann mir weiterhelfen.
              Habe alles nach Anleitung gemacht, nur den Port von 8082 auf 8083 geändert da alles auf einem RPI4 läuft. Soweit funktionier auch alles, nur bei:

              Wenn man jetzt also "Foto" an seinen Bot schickt, wird ein Foto ausgelöst und geschickt.

              kommt kein Foto. Er schickt mir "Foto kommt" zurück, aber mehr passiert nicht.

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

                @virus2k12

                logfile? Fehlermeldungen?

                Virus2K12 1 Reply Last reply Reply Quote 0
                • Virus2K12
                  Virus2K12 @Guest last edited by

                  @ilovegym nicht im log und keine Fehlermeldung.?

                  1 Reply Last reply Reply Quote 0
                  • Virus2K12
                    Virus2K12 last edited by Virus2K12

                    im javasript haut er dieses log raus, wenn ich per Telegramm Foto schicke:

                    3/6/2024, 11:03:26 AM.583 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                    3/6/2024, 11:03:27 AM.656 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                    3/6/2024, 11:03:27 AM.695 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                    3/6/2024, 11:03:45 AM.966 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                    3/6/2024, 11:05:56 AM.554 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                    3/6/2024, 11:05:57 AM.241 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                    3/6/2024, 11:05:57 AM.267 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                    3/6/2024, 11:06:07 AM.386 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                    3/6/2024, 11:06:41 AM.546 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                    3/6/2024, 11:06:42 AM.353 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                    3/6/2024, 11:06:42 AM.385 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                    3/6/2024, 11:06:52 AM.330 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: exec: curl 192.168.178.51:7999/1/action/snapshot
                    3/6/2024, 11:07:07 AM.332 [info ]: javascript.0 (2028) Stop script script.js.yicam.bild_telegramm
                    3/6/2024, 11:07:08 AM.057 [info ]: javascript.0 (2028) Start javascript script.js.yicam.bild_telegramm
                    3/6/2024, 11:07:08 AM.064 [info ]: javascript.0 (2028) script.js.yicam.bild_telegramm: registered 2 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions

                    ? 1 Reply Last reply Reply Quote 0
                    • Virus2K12
                      Virus2K12 last edited by Virus2K12

                      94b81d34-d5d5-422c-b702-e6a590dcce70-image.png

                      26539e14-0ab6-4c24-b6d2-d39357eabb99-image.png

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

                        @virus2k12 setz mal den Haken Mit Ergebnisse, im Blockly

                        1 Reply Last reply Reply Quote 0
                        • Virus2K12
                          Virus2K12 last edited by Virus2K12

                          keine Änderung, werder im Telegramm noch im log.

                          d0023c1f-cc57-4879-99b7-7f9d4f723df0-image.png

                          8cae913f-734d-4b59-b9ad-6ad089f8eb13-image.png

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

                            @virus2k12

                            laedt er das Bild denn auch runter, also funktioniert der exec curl befehl?

                            Virus2K12 1 Reply Last reply Reply Quote 0
                            • Virus2K12
                              Virus2K12 @Guest last edited by Virus2K12

                              @ilovegym ja. liegt im angegeben pfad. siehe screen weiter oben

                              https://forum.iobroker.net/topic/40016/bewegungserkennung-mit-motioneye-lösung-komplett-in-blockly/47

                              1 Reply Last reply Reply Quote 0
                              • Virus2K12
                                Virus2K12 last edited by

                                und das sagt mein iob log:

                                aaba2afb-c27e-446f-b15a-222786cf569f-image.png

                                1 Reply Last reply Reply Quote 0
                                • Virus2K12
                                  Virus2K12 last edited by

                                  was ich jetzt beobachtet habe, der Wert von takeSnapshot ändert sich nicht in true und lässt sich auch nicht per Hand auf true setzen. Bei getLastpic funktioniert das.?
                                  Woran kann das liegen?

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

                                    @virus2k12 sagte in Bewegungserkennung mit Motioneye, Lösung komplett in Blockly:

                                    Woran kann das liegen?

                                    Zeig mal das Raw vom DP

                                    1 Reply Last reply Reply Quote 0
                                    • Virus2K12
                                      Virus2K12 last edited by

                                      @crunchip
                                      {
                                      "common": {
                                      "name": "motioneye.takeSnapshot",
                                      "role": "state",
                                      "type": "boolean",
                                      "custom": {
                                      "telegram.0": {
                                      "enabled": true,
                                      "alias": "takeSnapshot",
                                      "buttons": 3,
                                      "writeOnly": false,
                                      "offCommand": "",
                                      "onCommand": "",
                                      "offStatus": "",
                                      "onStatus": "",
                                      "onlyFalse": false,
                                      "readOnly": false,
                                      "report": true,
                                      "onlyTrue": false,
                                      "reportChanges": true
                                      }
                                      }
                                      },
                                      "native": {},
                                      "type": "state",
                                      "_id": "javascript.0.motioneye.takeSnapshot",
                                      "acl": {
                                      "object": 1636,
                                      "state": 1636,
                                      "owner": "system.user.admin",
                                      "ownerGroup": "system.group.user"
                                      },
                                      "from": "system.adapter.admin.0",
                                      "user": "system.user.admin",
                                      "ts": 1710056777837
                                      }

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

                                        @virus2k12 und den anderen zum Vergleich
                                        Irgendwie fehlt da read/write true

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

                                          @crunchip
                                          {
                                          "common": {
                                          "name": "motioneye.getLastPic",
                                          "role": "state",
                                          "type": "boolean",
                                          "custom": {
                                          "telegram.0": {
                                          "enabled": true,
                                          "alias": "getLastPic",
                                          "buttons": 3,
                                          "writeOnly": false,
                                          "offCommand": "",
                                          "onCommand": "",
                                          "offStatus": "",
                                          "onStatus": "",
                                          "onlyFalse": false,
                                          "readOnly": false,
                                          "report": true,
                                          "onlyTrue": false,
                                          "reportChanges": true
                                          }
                                          }
                                          },
                                          "native": {},
                                          "type": "state",
                                          "_id": "javascript.0.motioneye.getLastPic",
                                          "acl": {
                                          "object": 1636,
                                          "state": 1636,
                                          "owner": "system.user.admin",
                                          "ownerGroup": "system.group.administrator"
                                          },
                                          "from": "system.adapter.admin.0",
                                          "user": "system.user.admin",
                                          "ts": 1710056528080
                                          }

                                          Virus2K12 1 Reply Last reply Reply Quote 0
                                          • Virus2K12
                                            Virus2K12 @Virus2K12 last edited by Virus2K12

                                            wurden beide im Blockly so angelegt.
                                            Habe mal read + write mit rein genommen, ändert sich aber nichts.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            506
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly communication monitoring security template
                                            12
                                            62
                                            15117
                                            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