Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Ring Doorbell Bild versenden

    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

    Ring Doorbell Bild versenden

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

      Moin,

      ich habe den Ring Adapter installiert, und möchte mir beim Klingeln eine Whats app mit dem Foto schicken lassen.
      Ich habe hierbei 2 Probleme, anbei mein Blockly:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout2">timeout2</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="CA,1AE8PASojQEzanD)i" x="88" y="63">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">gt</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="rE]oE-zCbQe=}l-#5paX">
              <field name="oid">ring.0.doorbell_362750470.History.created_at</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="whatsapp-cmb" id="F94040-`XXtKJgxVny;A">
              <field name="INSTANCE"></field>
              <field name="LOG"></field>
              <value name="MESSAGE">
                <shadow type="text" id="78_C;CqzCAdYZ9KtPu};">
                  <field name="TEXT"></field>
                </shadow>
                <block type="text" id="KfFdV6SY]te#:awu.Au;">
                  <field name="TEXT">Es hat geklingelt</field>
                </block>
              </value>
              <next>
                <block type="timeouts_settimeout" id="-qEd(6=|s!V/|h@Q4t0d">
                  <field name="NAME">timeout</field>
                  <field name="DELAY">2</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="procedures_callnoreturn" id="_0}K40,*5.|#A$Zq`Up}">
                      <mutation name="Foto senden"></mutation>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="4NtYzPNleNH3I|E3UYk%" x="288" y="363">
          <field name="NAME">Foto senden</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="timeouts_settimeout" id="j}Z(HanNPFb?7o^2S%wI">
              <field name="NAME">timeout2</field>
              <field name="DELAY">10</field>
              <field name="UNIT">sec</field>
              <statement name="STATEMENT">
                <block type="whatsapp-cmb" id=")J6kdx|rpf{^a1,s),MK">
                  <field name="INSTANCE"></field>
                  <field name="LOG"></field>
                  <value name="MESSAGE">
                    <shadow type="text" id="78_C;CqzCAdYZ9KtPu};">
                      <field name="TEXT">/opt/iobroker/iobroker-data/files/ring.0/doorbell_362750470/HDsnapshot.jpg</field>
                    </shadow>
                    <block type="text" id="Ya=]eANO0xWlB-%6|,X,">
                      <field name="TEXT">ring.0/ring_0_doorbell_362750470_HDSnapshot.jpg</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      
      

      Als Trigger habe habe ich den "Created at" unter History, allerdings reagiert dieser erst ein paar Minuten nachdem geklingelt wurde. Gibt es keinen Datenpunkt, der direkt beim klingeln angesprochen wird?

      Das 2. Problem ist das Versenden des Bildes. Die Whatsapp wird geschickt, aber es wird immer nur der Pfad angezeigt, nicht das Bild!

      Könnt Ihr mir sagen, was ich falsch mache?

      H 1 Reply Last reply Reply Quote 0
      • H
        Holzwurm1976 @Holzwurm1976 last edited by

        Hat keiner eine Idee?
        Ich komme nicht weiter…

        H 1 Reply Last reply Reply Quote 0
        • H
          Holzwurm1976 @Walter White last edited by

          @walter-white
          Hattest Du es hinbekommen?
          Bei mir wird auch nur der Pfad gesendet???

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

            @holzwurm1976

            Wie sieht denn Dein Tun bisher aus?
            Was machst Du wie, warum und wohin?

            H 1 Reply Last reply Reply Quote 0
            • H
              Holzwurm1976 @haselchen last edited by

              @haselchen

              Ich habe den Ring Adapter installiert und möchte mir mit folgendem Blockly das Bild aufs Handy schicken:

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable type="timeout" id="timeout2">timeout2</variable>
                  <variable type="timeout" id="timeout">timeout</variable>
                </variables>
                <block type="on_ext" id="CA,1AE8PASojQEzanD)i" x="88" y="63">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">gt</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="rE]oE-zCbQe=}l-#5paX">
                      <field name="oid">ring.0.doorbell_362750470.History.created_at</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="whatsapp-cmb" id="F94040-`XXtKJgxVny;A">
                      <field name="INSTANCE"></field>
                      <field name="LOG"></field>
                      <value name="MESSAGE">
                        <shadow type="text" id="78_C;CqzCAdYZ9KtPu};">
                          <field name="TEXT"></field>
                        </shadow>
                        <block type="text" id="KfFdV6SY]te#:awu.Au;">
                          <field name="TEXT">Es hat geklingelt</field>
                        </block>
                      </value>
                      <next>
                        <block type="timeouts_settimeout" id="-qEd(6=|s!V/|h@Q4t0d">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">2</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="procedures_callnoreturn" id="_0}K40,*5.|#A$Zq`Up}">
                              <mutation name="Foto senden"></mutation>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                <block type="procedures_defnoreturn" id="4NtYzPNleNH3I|E3UYk%" x="288" y="363">
                  <field name="NAME">Foto senden</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="timeouts_settimeout" id="j}Z(HanNPFb?7o^2S%wI">
                      <field name="NAME">timeout2</field>
                      <field name="DELAY">10</field>
                      <field name="UNIT">sec</field>
                      <statement name="STATEMENT">
                        <block type="whatsapp-cmb" id=")J6kdx|rpf{^a1,s),MK">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <value name="MESSAGE">
                            <shadow type="text" id="78_C;CqzCAdYZ9KtPu};">
                              <field name="TEXT">/opt/iobroker/iobroker-data/files/ring.0/doorbell_362750470/HDsnapshot.jpg</field>
                            </shadow>
                            <block type="text" id="Ya=]eANO0xWlB-%6|,X,">
                              <field name="TEXT">ring.0/ring_0_doorbell_362750470_HDSnapshot.jpg</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </xml>
               
               
              
              

              Das Bild wird im Verzeichnis abgelegt…

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

                @holzwurm1976

                Kannst du bitte das Blockly als Screenshot posten.

                H 1 Reply Last reply Reply Quote 0
                • H
                  Holzwurm1976 @haselchen last edited by

                  @haselchen Unbenannt.PNG

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

                    @holzwurm1976

                    Ich hab keine Doorbell, aber ne Sticky Cam.
                    Du musst das Foto erstmal holen und speichern .
                    Dafür kannste nen tmp Ordner anlegen im Iobroker Pfad ( alles aus meiner Sicht wie ich es gemacht habe).
                    Und von da leite ich es weiter an Telegram und in VIS.0 als Bild für die Visualisierung.

                    Edit: bei den Timeouts musste probieren. Bild holen und verschicken muss passen.
                    Hab da fürs holen 3,5sek und nach 5,5sek an Telegram senden.

                    var timeout, timeout1
                    var fs = require('fs'); 
                    
                     on({id: 'hm-rpc.1.XXXXPRESS_SHORT', change: "any"}, function (obj) {
                     var value = obj.state.val;
                     var oldValue = obj.oldState.val;
                     setState("ring.0.cocoa_XXXXXX.Snapshot.request"/*New Snapshot Request*/, true);
                     timeout = setTimeout(function () {
                    const picture= fs.readFileSync('/opt/iobroker/iobroker-data/tmp/cocoa_XXXXXX/SnapshotRingCam.jpg'); //liest linux-datei-system
                    writeFile('vis.0','alarm.jpg', picture, function (error) { });   //schreibt in iobroker system
                    }, 3500);
                    timeout1 = setTimeout(function () {
                       sendTo("telegram.1", "send", {
                           text: '/opt/iobroker/iobroker-data/files/vis.0/alarm.jpg'
                       });
                     }, 5500);
                     });
                    

                    Gibt bestimmt Enthusiasten , die das besser drauf haben, aaaaaaber es funktioniert eben.

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      Holzwurm1976 @haselchen last edited by

                      @haselchen
                      Danke, Aber gespeichert wird das Foto automatisch durch die doorbell, ich kann die Fotos im iobroker unter Dateien auch anschauen, die sind also bereits abgespeichert???

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

                        @holzwurm1976

                        Gab letztens einen Kommentar dazu von @OliverIO

                        Vielleicht kannst Du nochmal was zum Speichern des Bildes schreiben.

                        1 Reply Last reply Reply Quote 0
                        • H
                          Holzwurm1976 @Holzwurm1976 last edited by

                          hat wirklich keiner eine Idee? Ich habe schon diverse Posts durchsucht, aber nur ähnliche Fehler gefunden, mit keinem kam ich wirklich auf eine Lösung.
                          Immer wieder wird nur der Link versendet, aber kein Bild.
                          Wenn ich den diesen Link im Browser eingebe, zeigt er das Bild:

                          http://raspberrypi:8082/ring.0/ring_0_doorbell_362750470_HDSnapshot.jpg
                          

                          Ich wäre froh, wenn mir jemand helfen könnte!

                          Danke Euch...

                          wendy2702 1 Reply Last reply Reply Quote 0
                          • wendy2702
                            wendy2702 @Holzwurm1976 last edited by

                            @holzwurm1976 ich kann dir nur soviel helfen als das du dein Blockly auch als Screenshot posten solltest. Die wenigsten werden sich das importieren.

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              Holzwurm1976 @wendy2702 last edited by

                              @wendy2702

                              OK, danke für den Hinweis:

                              89403888-1d16-4a4c-98eb-284d8179ce84-grafik.png

                              Der gesamte Link ist übrigens:

                              opt/iobroker/iobroker-data/files/ring.0/doorbell_362750470_HDsnapshot.jpg
                              
                              wendy2702 1 Reply Last reply Reply Quote 0
                              • wendy2702
                                wendy2702 @Holzwurm1976 last edited by

                                @holzwurm1976 sehe gerade das du zweimal fragst und das Blockly bereits gepostet hast

                                https://forum.iobroker.net/topic/38485/ring-doorbell-bild-versenden/74

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  Holzwurm1976 @wendy2702 last edited by

                                  @wendy2702
                                  Ja, aber es konnte mir noch keiner helfen…

                                  haselchen 1 Reply Last reply Reply Quote 0
                                  • M
                                    michihorn last edited by

                                    Nach meiner Kenntnis kannst Du aktuell keine Bilder via Whatsapp-Adapter versenden.
                                    Mit Telegram geht das aber

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

                                      @holzwurm1976

                                      Mein letzter Post zu diesem Thema.
                                      Ich habe Dir in dem anderen Thread schon ein Skript gepostet.
                                      Du willst hier was Fertiges , machst Dir gar nicht die Mühe die Suchfunktion oder Dein Gehirnschmalz anzuwerfen.

                                      https://forum.iobroker.net/topic/75884/wiim-multiroom-audio-mit-iobroker-steuern/25?_=1736225321095

                                      In der Mitte dieses Threads geht es um das besagte writeFile damit die Datei für den Iobroker lesbar/bearbeitbar ist.
                                      Nur mit dem gespeicherten Bild im Ring Ordner kannst Du nichts anfangen.

                                      Edit: @Homoran kannst Du beiden Threads bitte zusammenführen.

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @haselchen last edited by

                                        @haselchen sagte in RING Adapter Einstellungen:

                                        Edit: @Homoran kannst Du beiden Threads bitte zusammenführen.

                                        könnte ich!
                                        Danke für die Info.

                                        Ich sehe aber noch nicht die Gemeinsamkeiten von Ring und Wiim.

                                        kenne beides nicht.

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

                                          @homoran

                                          Um „wim“ geht’s auch nicht.
                                          Sondern um die beiden Threads die der TE erstellt hat.
                                          Den hier und den:

                                          https://forum.iobroker.net/topic/38485/ring-doorbell-bild-versenden/74

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

                                          Support us

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

                                          595
                                          Online

                                          31.9k
                                          Users

                                          80.1k
                                          Topics

                                          1.3m
                                          Posts

                                          ring adapter
                                          21
                                          86
                                          11725
                                          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