Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Probleme Smarte Klingel

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Probleme Smarte Klingel

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

      Hallo, ich möchte gerne das ich immer wen es bei mir klingelt ein Bild zu meinem Handy geschickt wird. Aber ich bekomme immer nur den Text mit dem Pfad geschickt. Er legt die Datei nicht im Iobroker ab. Wisst ihr vielleicht was ich verbessern kann damit es funktioniert.

      Danke im vorraus

      var timeout;

      on({id: "mihome.0.devices.magnet_158d00041c72cc.state"/Is opened/, val: true}, function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      setState("alexa2.0.Echo-Devices.G090LV03733701KC.Commands.speak"/speak/, 'Es klingelt an der Tür,wer kann das sein');
      exec('sudo -wget -q -O /opt/iobroker/snap.jpg 'http://192.168.178.45/mjpeg/snap.cgi?chn=0');
      timeout = setTimeout(function () {
      sendTo("telegram", "send", {
      text: '/opt/iobroker/snap.jpg'
      });
      }, 1200);
      });

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

        @Marc-Wilgeroth

        Vermutlich fehlt da ein Timeout vom Speichern zum Verschicken.
        Zeitgleich Foto machen, speichern und verschicken wird nicht gehen.

        1 Reply Last reply Reply Quote 0
        • Marc Wilgeroth
          Marc Wilgeroth last edited by

          hab ich nun eingebaut. Hilft aber nicht er schreibt keine Datei

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @Marc Wilgeroth last edited by

            @Marc-Wilgeroth
            Wird die Datei geschrieben, wenn Du den Befehl über die Konsole ausführst?

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

            Support us

            ioBroker
            Community Adapters
            Donate

            475
            Online

            32.0k
            Users

            80.3k
            Topics

            1.3m
            Posts

            3
            4
            200
            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