Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Bilder senden

    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

    Bilder senden

    This topic has been deleted. Only users with topic management privileges can see it.
    • David G.
      David G. @horphi0815 last edited by

      @horphi0815

      Quick and dirty könnte man das Bild ja einfach löschen bevor man das neue anlegt ^^.

      1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @horphi0815 last edited by Glasfaser

        @horphi0815 sagte in Bilder senden:

        Das Bild wird einfach nicht erneuert, obwohl es gelöscht wird und auch neu angelegt, aber wenn ich es öffne, ist es das selbe Bild mit

        Hatte das gleich Problem , siehe die Lösung dazu :

        https://forum.iobroker.net/topic/47210/synology-chat/75

        horphi0815 1 Reply Last reply Reply Quote 0
        • horphi0815
          horphi0815 @Glasfaser last edited by

          @glasfaser Danke für die Info. Ich verstehe aber das Vorgehen nicht ganz.

          Ich habe es auch mit einer JS Funktion probiert, aber das Bild wird nicht ersetzt. Es bleibt das Alte.

          const fs = require("fs");
          
          const path = "/opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg";
          
          try {
            fs.unlinkSync(path);
            console.log("File removed:", path);
          } catch (err) {
            console.error(err);
          }
          
          

          Muss ich den Cache deaktivieren?

          Glasfaser apollon77 2 Replies Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @horphi0815 last edited by

            @horphi0815 sagte in Bilder senden:

            Muss ich den Cache deaktivieren?

            hast du es noch nicht gemacht !?

            horphi0815 1 Reply Last reply Reply Quote 0
            • horphi0815
              horphi0815 @Glasfaser last edited by

              @glasfaser Ich weiß nicht wo

              Glasfaser 1 Reply Last reply Reply Quote 0
              • Glasfaser
                Glasfaser @horphi0815 last edited by Glasfaser

                @horphi0815

                aus dem Link :

                @stefan-gleichweit sagte in Synology Chat ...:

                Schau zur Sicherheit noch im Web-Adapter nach und deaktiviere den Cache. (war bei mir auch ein Grund weshalb es nicht funktioniert hat.)

                BINGO ... ............ Top Tip 👍

                Was so ein Haken ausmacht .Danke

                EDIT :

                hier als Screenshot :

                649f9b2f-01c4-4d08-b81a-1bd123e6d144-grafik.png

                horphi0815 1 Reply Last reply Reply Quote 0
                • horphi0815
                  horphi0815 @Glasfaser last edited by

                  @glasfaser der ist die ganze Zeit deaktiviert
                  3e9662c0-4b1c-4104-9826-1591d0e449df-grafik.png

                  Glasfaser 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @horphi0815 last edited by Glasfaser

                    @horphi0815

                    Das war ja nur von mir eine Vermute ... weil es bei mir so war ...

                    Aber ...

                    wir kenne nicht dein ganzes Script , so bringt das nichts !

                    horphi0815 1 Reply Last reply Reply Quote 0
                    • horphi0815
                      horphi0815 @Glasfaser last edited by horphi0815

                      @glasfaser said in Bilder senden:

                      kenne nicht dein ga

                      
                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <block type="procedures_defcustomnoreturn" id="CsW[OaEpx|f^Muc+Tb}^" x="-412" y="-312">
                          <mutation statements="false"></mutation>
                          <field name="NAME">löschen</field>
                          <field name="SCRIPT">Y29uc3QgZnMgPSByZXF1aXJlKCJmcyIpOw0KDQpjb25zdCBwYXRoID0gIi9vcHQvaW9icm9rZXIvaW9icm9rZXItZGF0YS9maWxlcy8wX3VzZXJkYXRhLjAvQmlsZGVyL2FsYXJtLmpwZyI7DQoNCnRyeSB7DQogIGZzLnVubGlua1N5bmMocGF0aCk7DQogIGNvbnNvbGUubG9nKCJGaWxlIHJlbW92ZWQ6IiwgcGF0aCk7DQp9IGNhdGNoIChlcnIpIHsNCiAgY29uc29sZS5lcnJvcihlcnIpOw0KfQ0K</field>
                          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        </block>
                        <block type="procedures_callcustomnoreturn" id="q+V4.sK`N36J2o?+7US+" x="-412" y="-213">
                          <mutation name="löschen"></mutation>
                          <next>
                            <block type="timeouts_wait" id="Ev/eN_VzNXgijl{}1TC6">
                              <field name="DELAY">1000</field>
                              <field name="UNIT">ms</field>
                              <next>
                                <block type="exec" id="_+A8;P$aFMWTT/V+}2MH">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                  <field name="WITH_STATEMENT">FALSE</field>
                                  <field name="LOG">log</field>
                                  <value name="COMMAND">
                                    <shadow type="text" id="-aW!BninHP6+mynL{Y}e">
                                      <field name="TEXT">wget -q -O /opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg "http://192.168.1.165:8765/picture/1/current/"</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </xml>
                      
                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <block type="procedures_defcustomnoreturn" id="CsW[OaEpx|f^Muc+Tb}^" x="-412" y="-312">
                          <mutation statements="false"></mutation>
                          <field name="NAME">löschen</field>
                          <field name="SCRIPT">Y29uc3QgZnMgPSByZXF1aXJlKCJmcyIpOw0KDQpjb25zdCBwYXRoID0gIi9vcHQvaW9icm9rZXIvaW9icm9rZXItZGF0YS9maWxlcy8wX3VzZXJkYXRhLjAvQmlsZGVyL2FsYXJtLmpwZyI7DQoNCnRyeSB7DQogIGZzLnVubGlua1N5bmMocGF0aCk7DQogIGNvbnNvbGUubG9nKCJGaWxlIHJlbW92ZWQ6IiwgcGF0aCk7DQp9IGNhdGNoIChlcnIpIHsNCiAgY29uc29sZS5lcnJvcihlcnIpOw0KfQ0K</field>
                          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        </block>
                        <block type="procedures_callcustomnoreturn" id="q+V4.sK`N36J2o?+7US+" x="-412" y="-213">
                          <mutation name="löschen"></mutation>
                          <next>
                            <block type="timeouts_wait" id="Ev/eN_VzNXgijl{}1TC6">
                              <field name="DELAY">1000</field>
                              <field name="UNIT">ms</field>
                              <next>
                                <block type="exec" id="_+A8;P$aFMWTT/V+}2MH">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                  <field name="WITH_STATEMENT">FALSE</field>
                                  <field name="LOG">log</field>
                                  <value name="COMMAND">
                                    <shadow type="text" id="-aW!BninHP6+mynL{Y}e">
                                      <field name="TEXT">wget -q -O /opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg "http://192.168.1.165:8765/picture/1/current/"</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </xml>
                      
                      
                      Glasfaser 1 Reply Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @horphi0815 last edited by

                        @horphi0815

                        und auf welchen System hast du ioBroker installiert !?

                        horphi0815 1 Reply Last reply Reply Quote 0
                        • horphi0815
                          horphi0815 @Glasfaser last edited by horphi0815

                          @glasfaser Unraid - DOCKER
                          https://hub.docker.com/r/buanet/iobroker/

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

                            Wenn ich 1 -2 Minuten warte aktualisieren sich die Bilder. Ich verstehe nur nicht, warum es nicht im Sekundentakt möglich ist....

                            horphi0815 DJMarc75 Homoran 3 Replies Last reply Reply Quote 0
                            • horphi0815
                              horphi0815 @horphi0815 last edited by

                              Damit scheint es jetzt zu funktionieren

                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <block type="procedures_defcustomnoreturn" id="CsW[OaEpx|f^Muc+Tb}^" x="37" y="-63">
                                  <mutation statements="false"></mutation>
                                  <field name="NAME">löschen</field>
                                  <field name="SCRIPT">Y29uc3QgZnMgPSByZXF1aXJlKCJmcyIpOw0KDQpjb25zdCBwYXRoID0gIi9vcHQvaW9icm9rZXIvaW9icm9rZXItZGF0YS9maWxlcy8wX3VzZXJkYXRhLjAvQmlsZGVyL2FsYXJtLmpwZyI7DQoNCnRyeSB7DQogIGZzLnVubGlua1N5bmMocGF0aCk7DQogIGNvbnNvbGUubG9nKCJGaWxlIHJlbW92ZWQ6IiwgcGF0aCk7DQp9IGNhdGNoIChlcnIpIHsNCiAgY29uc29sZS5lcnJvcihlcnIpOw0KfQ0K</field>
                                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                </block>
                                <block type="on_ext" id="sXv9TD]NOIP%0/%K7Q1V" x="37" y="13">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                  <field name="CONDITION">true</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="~v$44)OGdr=L?g)F@oaI">
                                      <field name="oid">javascript.0.SimpleAPI-Datenpunkte.camera1</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="Jm_PsT_{BCVRq3k=HS5@">
                                      <value name="IF0">
                                        <block type="get_value" id="SZ_yZLgrm]MFAe|iD;t|">
                                          <field name="ATTR">val</field>
                                          <field name="OID">javascript.0.SimpleAPI-Datenpunkte.camera1</field>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="debug" id="r7)9r4oOULI}ZsEzvhvH">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="/Tg]%8Y}d8](-9Xd-Iyy">
                                              <field name="TEXT">Kamera hat Bewegung erkannt</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="procedures_callcustomnoreturn" id="UcaCk?!3rnc0;:Y+$GVc">
                                              <mutation name="löschen"></mutation>
                                              <next>
                                                <block type="timeouts_wait" id="/$tL.su~B,kvm39MIAUc">
                                                  <field name="DELAY">1000</field>
                                                  <field name="UNIT">ms</field>
                                                  <next>
                                                    <block type="exec" id="kT!j2V%7n~igMD_6^AEw">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                      <field name="LOG">log</field>
                                                      <value name="COMMAND">
                                                        <shadow type="text" id="jD}_;=z~%7t1wFiv-/y]">
                                                          <field name="TEXT">wget -q -O /opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg "http://192.168.1.165:8765/picture/1/current/"</field>
                                                        </shadow>
                                                      </value>
                                                      <next>
                                                        <block type="telegram" id="?Mv$,S]n|odKTwHfacI}">
                                                          <field name="INSTANCE">.1</field>
                                                          <field name="LOG">log</field>
                                                          <field name="SILENT">FALSE</field>
                                                          <field name="PARSEMODE">default</field>
                                                          <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                          <value name="MESSAGE">
                                                            <shadow type="text" id="Eg)++5J/twLB=Hzo!8Ze">
                                                              <field name="TEXT">/opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg</field>
                                                            </shadow>
                                                          </value>
                                                          <next>
                                                            <block type="telegram" id="J]F9Ni*dJuqXrmTZUcJ;">
                                                              <field name="INSTANCE">.1</field>
                                                              <field name="LOG">log</field>
                                                              <field name="SILENT">TRUE</field>
                                                              <field name="PARSEMODE">default</field>
                                                              <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                              <value name="MESSAGE">
                                                                <shadow type="text" id="}-5cQ`.i%z0VeX@3s~m6">
                                                                  <field name="TEXT">Kamera hat Bewegung erkannt</field>
                                                                </shadow>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="J0!Vk74ofU?{E_{{yBw)">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.SimpleAPI-Datenpunkte.camera1</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">2</field>
                                                                  <field name="UNIT">sec</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="mJ!wFN0{Ed0I-n{PkEk4">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </xml>
                              
                              Glasfaser 2 Replies Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @horphi0815 last edited by

                                @horphi0815 sagte in Bilder senden:

                                <xml xmlns="https://developers.google.com/blockly/xml">

                                Du holst das Bild .... und zum gleichen Zeitpunkt versendet du es mit Telegram .
                                Mache da noch ein Timout rein .

                                baf6636d-fb9f-44bd-b067-1844e31cf0f2-grafik.png

                                1 Reply Last reply Reply Quote 1
                                • DJMarc75
                                  DJMarc75 @horphi0815 last edited by

                                  @horphi0815 said in Bilder senden:

                                  warum es nicht im Sekundentakt möglich ist....

                                  Hollywood ? 😂
                                  Spässle aber Trigger wäre halt "wenn-dann" und kein Livestream.... da wäre der Broker und so weiter etwas angekratzt.

                                  1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @horphi0815 last edited by

                                    @horphi0815

                                    Und nimm den sendTo Baustein , für beides ....

                                    <block xmlns="https://developers.google.com/blockly/xml" type="sendto_custom" id="K[Jr#M8$~Pt:!xW:LUG%" x="-37" y="413">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="text,caption" with_statement="false"></mutation>
                                      <field name="INSTANCE">telegram.1</field>
                                      <field name="COMMAND">send</field>
                                      <field name="LOG"></field>
                                      <field name="WITH_STATEMENT">FALSE</field>
                                      <value name="ARG0">
                                        <shadow type="text" id="80BtN0;F[b1qHS6aT;Fd">
                                          <field name="TEXT">/opt/iobroker/iobroker-data/files/0_userdata.0/Bilder/alarm.jpg</field>
                                        </shadow>
                                      </value>
                                      <value name="ARG1">
                                        <shadow type="text" id="Mu61PhW^+sT*zo)SgEsw">
                                          <field name="TEXT">Kamera hat Bewegung erkannt</field>
                                        </shadow>
                                      </value>
                                    </block>
                                    

                                    horphi0815 1 Reply Last reply Reply Quote 0
                                    • horphi0815
                                      horphi0815 @Glasfaser last edited by

                                      @glasfaser said in Bilder senden:

                                      <block xmlns="https://developers.google.com/blockly/xml" type="sendto_custom" id="K[Jr#M8$~Pt:!xW:LUG%" x="-37" y="413">

                                      Cool, vielen DANK. 🙂

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

                                        @horphi0815 sagte in Bilder senden:

                                        warum es nicht im Sekundentakt möglich ist....

                                        der Speichervorgang dauert ja auch seine Zeit.

                                        1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @horphi0815 last edited by

                                          @horphi0815 Bitte unbedingt https://forum.iobroker.net/post/820844 beachten ... NICHT im iobroker storage direk rumpfuschen. Weder delete noch ändern. IMMER die iobroker Kommandos an der CLI oder im JavaScript Adapter dafür nutzen!

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

                                          Support us

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

                                          395
                                          Online

                                          31.9k
                                          Users

                                          80.1k
                                          Topics

                                          1.3m
                                          Posts

                                          10
                                          67
                                          4917
                                          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